No, not the entire post from Pat O'Brien, just the firewall script. If you can setup DD-WRT (which I've done so many times I don't even need to be awake now), you just enter two lines in the firewall commands. That will pass the data to the interceptor plugin running on Weewx.
iptables -t nat -A PREROUTING -s 192.168.1.55 -p tcp --dport 80 -j DNAT --to-destination x.x.x.x:80 iptables -t nat -A POSTROUTING -j MASQUERADE Probably there's a way to mirror and not redirect, but I don't know what it is, not do I claim to even fully understand the above script. I just entered it and finally after months of beating my head against the wall, I was able to make something work. From your description, I still really don't understand how exactly you achieved that. I probably don't need an adapter and could sniff with the router I have, but I wouldn't know how. Some have said sniffing isn't as good as listening, but I'm not sure why unless it results in inaccurate data. I have read that many who were originally using the sniff method have switched to the listen method, noting it didn't work as well, but that explanation is a bit short on details. I just know that if I can find out how the data should be formatted for Interceptor, I can maybe get the ambient2pwsweather developer to modify his code, allowing the preferred listen mode for the Interceptor plug-in and full Ambientweather.net functionality. On Monday, August 13, 2018 at 8:18:27 PM UTC-4, G Hammer wrote: > > Wow! Looks pretty involved. > I bought a $6 WiFi USB adapter and run an AP on my weewx box. > The WiFi USB is in monitor mode and then you can sniff the data. > There is a way with the routes to mirror the data, letting the data > continue to it's original destination while mirroring it to another. > iptables is still the way to do it that method, just mirror instead of > redirect. > > On Monday, August 13, 2018 at 5:06:34 PM UTC-4, Douglas Krug wrote: >> >> LOL. How are you sniffing the data from the console! I could not get that >> to work with either an Acurite bridge or my Observer IP bridge. >> >> I'm using listen as was recommended for the FineOffset (e.g. Ambient >> Weather and others) Observer IP bridge. I used Pat O'Brien's instructions >> <https://obrienlabs.net/redirecting-weather-station-data-from-observerip/> >> for the DD-WRT firewall script together with Matthew Wall's Interceptor >> plugin <https://github.com/matthewwall/weewx-interceptor> (configured >> for Observer) and it worked. >> >> On Monday, August 13, 2018 at 4:37:41 PM UTC-4, G Hammer wrote: >>> >>> How are you capturing the data from the console? >>> I have this configured so that weewx gets the data, but only by sniffing >>> it. The data is never interrupted/diverted so everyone gets the feed from >>> the console along with weewx. >>> >>> >>> On Monday, August 13, 2018 at 9:19:34 AM UTC-4, Douglas Krug wrote: >>>> >>>> I've been discussing the possibility to have the author of "a >>>> mbient2pwsweather <https://github.com/killroyboy/ambient2pwsweather>" >>>> modify his node.js service to allow input to Matthew Wall's Interceptor >>>> plugin. The idea is to allow the continued use of Ambientweather.net, >>>> while >>>> still capturing weather data for Weewx, so that it can be published to the >>>> supported weather services and used with Hubitat or other home automation >>>> systems. I'm already able to listen to my WS-0900-IP bridge and get the >>>> data into Weewx, but currently that comes at the cost of no longer being >>>> able to use Ambientweather.net or any of their services such as IFTTT, >>>> Alex >>>> Voice Services and Google Assistant. >>>> >>>> >>>> Is there a guide for how the data must be formatted for input to the >>>> interceptor.py plugin? Hoping anyone with knowledge of interceptor or >>>> @mwall could comment please. >>>> >>>> >>>> Here's what the ambient2pwsweather >>>> <https://github.com/killroyboy/ambient2pwsweather> developer wrote: >>>> >>>> >>>> >>>> *"If I'm understanding it correctly, it wouldn't be that difficult to >>>> enhance this utility to send the data to a different url/port. You would >>>> then need to run a new interceptor instance running in "listen mode" that >>>> would handle the insertion into weewx.* >>>> >>>> *The minor difficulty would be in ensuring the data is in a format that >>>> the interceptor would understand. If you can work that out and get me some >>>> documentation (or point me to a URL), I can enhance ambient2pwsweather."* >>>> >>> -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
