top of page

Personal Weather Station

This is a basic weather station that measures air temperature and relative humidity.

Program


---

Personal Weather Station

---


prog_vars =

d/count 0

d/air_temp 0.0

d/rh 0

prog_vars.


prog_start =

pclear

print "Weather Station Program Start"

i2con

d1000

f2c

pb 100 50 ^n=Quit^p=exitprog^

ptl 20 0 ^ts=24^ "My Weather Station"

prog_start.


prog_loop =

-- main program loop

/air_temp /35

/rh /36

ptl 100 100 ^ts=24^tc=red^ "Air Temp /air_temp"

ptl 100 150 ^ts=24^tc=blue^ "RH /rh"


prog_loop.

prog_stop =

print "Bye"

prog_stop.


bottom of page