Froggit WH3000SE
Fine Offset WH2909
Ventus 830
Ambient Weather WS2902 a
i think all these brands and models are the equal Station type ;-)
if you are just interested using weewx with your PWS, give me a sign here.
Spoiler: You have to use the interceptor Driver and you have to reroute your iptables to weewx server. This is the only existing solution for my understanding.
if you prefer, we can go on in german language ;-)
Kind regards,
Bernd
iptables -t mangle -A PREROUTING -s 192.168.1.33 -j ROUTE --tee --gw 192.168.1.76
iptables -t mangle -A POSTROUTING -d 192.168.1.33 -j ROUTE --tee --gw 192.168.1.76
In this case the first ip is my WH3000 Console, and the second one is my weewx server. Please replace it to your ip adresses ;-)
Of course, at this point it is very useful if you give your router in your router and the weewx server a fixed ip address.
To be able to parse this weather packages on your weewx server, you habe to install and enable the interceptor driver.
I hope you are familiar with Linux console? If so, it is easy for you to install the interceptor driver. In my case I used the following manual:
https://github.com/matthewwall/weewx-interceptor
Little hint: At point 2, as I remember, the name of the package was wrong. Maybe you have to delete the last word -master to install the driver.
Please, give it a try ;-)
Now you have to configure the weewx interceptor driver in your weewx.conf You have to change station_type like this:
station_type = Interceptor
and at the end of weewx.conf copy and paste this part here: (Replace the ip adress of your console)
[Interceptor]
# This section is for the network traffic interceptor driver.
# The driver to use:
driver = user.interceptor
# Specify the hardware device to capture. Options include:
# acurite-bridge - acurite internet bridge
# observer - fine offset WH2600/HP1000/HP1003, aka 'observer'
# lw30x - oregon scientific LW301/LW302
# lacrosse-bridge - lacrosse GW1000U/C84612 internet bridge
device_type = observer
mode = sniff
iface = eth0
pcap_filter = src 192.168.1.33 and dst port 80
To check if everything is working fine, you can set the parameter: debug = 1 in your weewx.conf
In best case, when you have a look at your syslog, you can see a lot of weather data packages ;-)
To have a look at syslog --> tail -f /var/log/syslog
Please remember you have to restart weewx after changing the weewx.conf to take effect.
i think, this is the most important part for the beginning. I optimized other little things for a durable running.
Please do not hesitate to ask further questions, I´ll try to help you if I can :-)
Cheers,
Bernd
| SniffServer vs TCPServer | |
| The driver can obtain packets by sniffing network traffic using pcap, or by | |
| listening for TCP/IP requests. The pcap approach requires the python pypcap | |
| module, which in turn requires libpcap. This means a separate installation | |
| on most platforms. | |
| https://github.com/pynetwork/pypcap | |
| To run a listener, specify an address and port. This is the default mode. | |
| For example: | |
| [Interceptor] | |
| mode = listen | |
| address = localhost | |
| port = 9999 | |
| To run a sniffer, specify an interface and filter. For example: | |
| [Interceptor] |
| mode = sniff | |
| iface = eth0 |
| pcap_filter = src host 192.168.1.5 && dst port 80 | |
| """ |