Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forward onto other ecowitt handler #105

Open
spacelama opened this issue Apr 24, 2022 · 1 comment
Open

Forward onto other ecowitt handler #105

spacelama opened this issue Apr 24, 2022 · 1 comment

Comments

@spacelama
Copy link

I want to be able to run weewx-interceptor to answer port 8000, but then also forward onto another URI (in my case, homeassistant:4199/weatherdata/report).

Using the hints at the bottom of the README, I came up with this:

sudo ngrep -l -q -W byline -d eth0 dst 192.168.1.17 and port 8000 | grep --line-buffered PASSKEY | xargs -n 1 curl http://homeassistant:4199/weatherdata/report/ -s -d

It works, but not a huge fan of packet captures running permanently. It should be an easy task for weewx-interceptor to forward all received raw data onto another receiver, with appropriately short connection timeouts etc (don't both with store-and-forward). But I ain't no good with python. Or I might be missing something really basic.

@chrisgilldc
Copy link

This would likewise be very useful to me - I want to split my weather station traffic to both my home automation system and to WeeWx, and all other options are turning into a big ball of kludges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants