Weather Station Simulator

Runs the logic of firmware v3 (RAK3172, main board Rev B) against weather you set: pulse counting, the 16-position wind vane ladder, the 46-byte uplink, store-and-forward during gateway outages and the network server's decoder. Weather inputs and the wind factor are illustrative; the firmware rules are taken from weather_station.ino.

Station clock
LoRaWAN
Queue in RAM
Battery, as reported
Next report

Wind vane and reed ring

Live counters (3 s tick)

Anemometer pulses this interval
Gust, most pulses in one 3 s window
Vane samples (only while wind turns the cups)
Vane ADC, fraction of rail
Rain tips this interval
Rain tips since power-up
BH1750 raw count

Wind pulses use an assumed 0.7 m/s per Hz only to drive the simulation. The real factor comes from the calibration run, and until then the decoder reports frequency, not speed.

Last uplink (port 2, big-endian)

waiting for the first report

Decoded by payload_decoder.js


    

Debug serial (DBG lines)


    

Network server

Uplinks received
Unique readings
Missing readings
Confirmed uplinks / day
TTN allows 10 downlinks a day
Sends blocked by duty cycle
Measured atReceivedBoot·seqT °CRH %Wind HzGust HzDir °Rain mmLuxBatt VNote