Next I replicated the directory and php script /weatherstation/updateweatherstation.php. 100 which is where my Nginx reverse proxy lives. This NAT rule will route all traffic from the weather station (with ip. ip firewall nat> add chain=dstnat action=dst-nat to-addresses=10.0.0.100 protocol=tcp src-address=10.0.0.34 Let's tell the router to route that sweet data somewhere else. Sure enough, it posted to a php file : HTTP 450 GET 169.47.111.60/weatherstation/updateweatherstation.php?ID=BABABOEY&PASSWORD=FAFAFOHI&action=updateraww&realtime=1&rtfreq=5&dateutc=now&baromin=29.91&tempf=68.9&dewptf=55.0&humidity=61&windspeedmph=4.6&windgustmph=4.6&winddir=112&rainin=0.0&dailyrainin=0.36&indoortempf=72.6&indoorhumidity=54 HTTP/1.1Īnd it does that often too, like every 20 seconds, that near enough real time, exactly what I wanted in HA. (Mikrotik/Tools/Packet Sniffer -> Stream to server and cap everything coming from the weather station) However, this thing is reporting to the WU site, so I just need to trap the data.I fired up wireshark and sniffed all the packets from the device ip to the internet. My server looks like a porcupine already, what's one more. Damn it, maybe I should've gotten another crap dongle. The API in homeassistant for WU doesn't do anything and the other custom component I found didn't work either. I installed it, verified it was reporting sensible data and then tried to hook it up to the Weather Underground and right there is where things went to crap. I chose this one because I really don't need another dongle to read 868Mhz or whatever these things use.A nice post to some third party site I can scrape will do just fine. This afternoon PostNL delivered my very first weather station, a " Bresser Prol 5-in-1 Weatherstation incl. Some forum that is.Īnyways, rather than binning the whole post I'll paste it here and I'll move it over there if I can be arsed :) I just typed this out over at the home assistant forum but it says I can't actually post it because it's in read only.
0 Comments
Leave a Reply. |