Dear all,

I came here to provide with a solution.

#################
### MY SETUP ###
#################

First, here is an overview of the relevant hardware and software I used

#--> A NAS Synology that can run Vrtual Machines. So... A Virtual Machine 
with debian without GUI
#--> A PiHole <https://pi-hole.net/> device to control my DNS (
#--> A Meteo Station Ambient Weather WS-2902

I will assume that you PiHole is installed correctly and working, that 
you're able to install debian and that your meteo station is correctly set 
up to upload weather to wunderground and connected to your network.

#######################
### WEEWX INSTALL ###
#######################

Next, I assume debian is installed and functionnal. It should work with any 
linux device.
Install weewx. I managed to install with the APT, but here again, it should 
work with any solution provided by weewx

Proceed with the installation of the interceptor driver and reconfigure
<https://github.com/matthewwall/weewx-interceptor>

####################
### WEEWX.CONF ###
####################

Now, the fun part. At least, the one who took me hours to figure out.
You'll have to configure the driver.

Change the settings to:

[Interceptor]
    driver = user.interceptor
    device_type = observer

Change also all the settings related to your location, and the IDs for 
weather upload

##################
### HIJACK DNS ###
##################

If you take a look at your PiHole dashboard and especially at the WS-2902 
traffic, you'll see that it connects very often to something like 
"rtp.wundeground.....".
This URL is the one your station contacts to upload weather.

So, we will tell PiHole to route this URL to your weewx interceptor
This part also took me quite some time...

Lets assume that my weewx VM has 10.10.10.20
We will modify the /etc/hosts file, in PiHole (I've done int via SSH)
Add the line:
10.10.10.20   rtp.wunderground...
Specify the correct url.

This will tell to PiHole:
When someone in my network tries to contact rtp.wunderground..., the 
correct IP is 10.10.10.20.
This way, the weewx driver will listens to the traffic going to weather 
wunderground, take it, and route it to wunderground so that your weather is 
still updated online

My next part is to dockerize this stuff, but.... Hard work.
Good luck mates


Le mercredi 1 août 2018 16:05:10 UTC+2, Bruno BORDAS a écrit :
>
> Hi dear WeewX users,
>
> First of all, I'm sorry for the burden.
> Despite the few hours I spent on reading and trying stuffs, I'm not able 
> to make WeewX run.
> So, I came to ask for help
>
> Here are the informations:
>
> #--> I own an Ambient Weather Ws-2902
> #--> Sending data to Weather Wunderground
> #--> I receive the data from Weather Wunderground to my MagicMirror
> #--> I'd like to retrieve and store locally my data
> #--> Google says WeewX is very great for this
>
> So first, I tried to find some docker solutions, but I'm not ready for 
> this (too complicated)
> So I installed Weewx on a RPI 3 with the deb package.
>
> I read that I should use
> #--> The interceptor driver
> or
> #--> The observer driver
> or
> #--> The ovserverIP driver
> or
> #--> The HP1000 driver.
>
> I tried several of them, but nothing worked.
> Nothing appears in my var/www/html/weewx
>
> I'm quite lost.
> Please, can someone provide me with an how two or tips to help me?
>
> Thank you a lot guys.
>

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/1024b2f7-8761-460d-97bf-b6caf16f072f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to