Difference between revisions of "W6NOAP"

From Noisebridge
Jump to navigation Jump to search
m (1st datum (RED))
m (+ Relay pi/py tweeks)
Line 8: Line 8:
 
== pi shield build ==
 
== pi shield build ==
  
 +
=== Python Test ===
 
bashland garage M.V.P. 2020.10.03
 
bashland garage M.V.P. 2020.10.03
  
Line 27: Line 28:
 
36.73362625401162
 
36.73362625401162
 
</pre>
 
</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>
 +
  
 
<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>
 
<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>
Line 34: Line 55:
 
*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 ==
 
== Node-RED/MQTT ==

Revision as of 22:49, 31 October 2020

Weather Station

2169 Roof Unit (decommissioned mmxx)

Currently dormant on #fort rack shelf.


pi shield build

Python Test

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

#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


<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?)

Node-RED/MQTT