Difference between revisions of "W6NOAP"
Jump to navigation
Jump to search
(make it rain!) |
m (et al output) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 8: | Line 8: | ||
== pi shield build == | == pi shield build == | ||
− | pi@phreak | + | === Python Test === |
+ | bashland garage M.V.P. 2020.10.03 | ||
+ | |||
+ | <pre> | ||
+ | pi@phreak:~ $ python | ||
+ | Python 2.7.16 (default, Oct 10 2019, 22:02:15) | ||
+ | [GCC 8.3.0] on linux2 | ||
+ | >>> from piweathershield import PiWeatherShield | ||
+ | >>> ws = PiWeatherShield() | ||
+ | >>> ws.htu21d.read_humidity() | ||
+ | 22.835296630859375 | ||
+ | >>> ws.htu21d.read_temperature() | ||
+ | 38.4145263671875 | ||
+ | >>> ws.ms5637.read_temperature_and_pressure() | ||
+ | (39.89, 1012.41) | ||
+ | >>> ws.tsd305.read_temperature_and_object_temperature() | ||
+ | (36.662845611572266, 22.8941942454943) | ||
+ | >>> ws.tsys01.read_temperature() | ||
+ | 36.73362625401162 | ||
+ | </pre> | ||
+ | |||
+ | === Python WX Report === | ||
+ | <pre> | ||
+ | #cat NoisebridgeWeatherReport.py | ||
+ | from piweathershield import PiWeatherShield | ||
+ | from time import sleep | ||
+ | import time | ||
+ | print("Weather Stats for Noisebridge") | ||
+ | while True: | ||
+ | ws = PiWeatherShield() | ||
+ | print("") | ||
+ | print("Location: 272 Capp Street, S.F. Earth") | ||
+ | print("Date & Time: " + time.asctime()) | ||
+ | print("Humidity: " + str(ws.htu21d.read_humidity()) + " %") | ||
+ | print("Pressure: " + str(ws.ms5637.read_temperature_and_pressure()[1]) + " mBar") | ||
+ | print("Object Temperature: " + str(ws.tsd305.read_temperature_and_object_temperature()[1]) + " Celcius") | ||
+ | print("Ambient Temperature: " + str(ws.tsys01.read_temperature()) + " Celcius") | ||
+ | sleep(20) #moved to end so prints before 1st sleep | ||
+ | </pre> | ||
+ | |||
+ | Output: | ||
+ | <pre> | ||
+ | Location: 272 Capp Street, S.F. Earth | ||
+ | Date & Time: Sat Oct 31 15:43:58 2020 | ||
+ | Humidity: 18.6238708496 % | ||
+ | Pressure: 1016.93 mBar | ||
+ | Object Temperature: 22.3973064849 Celcius | ||
+ | Ambient Temperature: 30.8398327111 Celcius | ||
+ | </pre> | ||
+ | |||
+ | |||
+ | <quote>Observations for the evening of October 3rd in the garage behind the Amburlance and Pomegranate/Raspberry of Ashland California are; humidity 22.835%, 1,012.41 milibars, 36.73 degrees sell-shee-us, and thermocouple object reading for the ceiling of 22.894194245494... tree (72 fr33d'm nuggets).</quote> | ||
replicant floating (272 w/pi?) | replicant floating (272 w/pi?) | ||
Line 14: | Line 65: | ||
*https://github.com/TEConnectivity/piweathershield-python | *https://github.com/TEConnectivity/piweathershield-python | ||
*https://www.te.com/usa-en/models/6/30/082/390/CAT-DCS0036.html#mdp-tabs-content | *https://www.te.com/usa-en/models/6/30/082/390/CAT-DCS0036.html#mdp-tabs-content | ||
+ | |||
+ | == Node-RED/MQTT == | ||
+ | |||
+ | *Dashboard: http://199.188.195.72:1880/ui/ | ||
+ | *Flow edit: http://199.188.195.72:1880/ | ||
+ | |||
+ | *Article: http://www.yoctopuce.com/EN/article/a-weather-station-with-mqtt-and-node-red | ||
+ | *"flow" https://www.yoctopuce.com/pubarchive/2018-11/Node-Red_WeatherStationFlow_1.json | ||
+ | *mqtt test: https://stackoverflow.com/questions/38733589/publishing-mqtt-messages-from-a-python-script-on-a-raspberry-pi |
Latest revision as of 22:50, 31 October 2020
Weather Station[edit]
2169 Roof Unit (decommissioned mmxx)[edit]
Currently dormant on #fort rack shelf.
pi shield build[edit]
Python Test[edit]
bashland garage M.V.P. 2020.10.03
pi@phreak:~ $ python Python 2.7.16 (default, Oct 10 2019, 22:02:15) [GCC 8.3.0] on linux2 >>> from piweathershield import PiWeatherShield >>> ws = PiWeatherShield() >>> ws.htu21d.read_humidity() 22.835296630859375 >>> ws.htu21d.read_temperature() 38.4145263671875 >>> ws.ms5637.read_temperature_and_pressure() (39.89, 1012.41) >>> ws.tsd305.read_temperature_and_object_temperature() (36.662845611572266, 22.8941942454943) >>> ws.tsys01.read_temperature() 36.73362625401162
Python WX Report[edit]
#cat NoisebridgeWeatherReport.py from piweathershield import PiWeatherShield from time import sleep import time print("Weather Stats for Noisebridge") while True: ws = PiWeatherShield() print("") print("Location: 272 Capp Street, S.F. Earth") print("Date & Time: " + time.asctime()) print("Humidity: " + str(ws.htu21d.read_humidity()) + " %") print("Pressure: " + str(ws.ms5637.read_temperature_and_pressure()[1]) + " mBar") print("Object Temperature: " + str(ws.tsd305.read_temperature_and_object_temperature()[1]) + " Celcius") print("Ambient Temperature: " + str(ws.tsys01.read_temperature()) + " Celcius") sleep(20) #moved to end so prints before 1st sleep
Output:
Location: 272 Capp Street, S.F. Earth Date & Time: Sat Oct 31 15:43:58 2020 Humidity: 18.6238708496 % Pressure: 1016.93 mBar Object Temperature: 22.3973064849 Celcius Ambient Temperature: 30.8398327111 Celcius
<quote>Observations for the evening of October 3rd in the garage behind the Amburlance and Pomegranate/Raspberry of Ashland California are; humidity 22.835%, 1,012.41 milibars, 36.73 degrees sell-shee-us, and thermocouple object reading for the ceiling of 22.894194245494... tree (72 fr33d'm nuggets).</quote>
replicant floating (272 w/pi?)
- https://github.com/TEConnectivity/piweathershield-python
- https://www.te.com/usa-en/models/6/30/082/390/CAT-DCS0036.html#mdp-tabs-content
Node-RED/MQTT[edit]
- Dashboard: http://199.188.195.72:1880/ui/
- Flow edit: http://199.188.195.72:1880/