eolab:weather_station:makerere:start
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| eolab:weather_station:makerere:start [2026/06/29 14:53] – [Table] harley.lara | eolab:weather_station:makerere:start [2026/07/02 11:08] (current) – [Raspberry] harley.lara | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ===== List of Components ===== | ===== List of Components ===== | ||
| - | ^ Component | + | ^ Expected Env. Var |
| - | | Rain-O-Matic " | + | | mm/ |
| - | | [[https:// | + | | m/s |
| - | | [[https:// | + | | deg |
| + | | Temp. and %RH | [[https:// | ||
| + | | W/m2 | [[https:// | ||
| + | | | [[https:// | ||
| + | |||
| + | ===== Raspberry ===== | ||
| + | |||
| + | [[https:// | ||
| + | [[https:// | ||
| + | |||
| + | ===== First Program ===== | ||
| + | |||
| + | Rain Bucket | ||
| + | |||
| + | <file python intro.py> | ||
| + | import time | ||
| + | import RPi.GPIO as GPIO | ||
| + | |||
| + | BUCKET_PIN = 7 | ||
| + | |||
| + | GPIO.setmode(GPIO.BOARD) | ||
| + | |||
| + | GPIO.setup(BUCKET_PIN, | ||
| + | |||
| + | def bucket_back(channel): | ||
| + | print(" | ||
| + | |||
| + | GPIO.add_event_detect(BUCKET_PIN, | ||
| + | |||
| + | try: | ||
| + | while True: | ||
| + | time.sleep(0.1) | ||
| + | except KeyboardInterrupt: | ||
| + | pass | ||
| + | |||
| + | GPIO.cleanup() | ||
| + | |||
| + | </ | ||
eolab/weather_station/makerere/start.1782737605.txt.gz · Last modified: 2026/06/29 14:53 by harley.lara