Ambient Weather WS-2902 and WeewX

2,369 views
Skip to first unread message

Bruno BORDAS

unread,
Aug 1, 2018, 10:05:10 AM8/1/18
to weewx-user
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.

vk3...@gmail.com

unread,
Aug 1, 2018, 11:11:20 PM8/1/18
to weewx-user
As the author of the HP1000 driver I have not tested it on anything other than the HP1000/WS1001/<insert other clone name here> that I have and some other users have found works for them.

It relies on being able to connect to the console over the network, and for the packets being exchanged with the console to be of exactly the right structure.

Looking at the description of the WS-2902 at https://www.ambientweather.com/amws2902.html I see that it mentions 'Encrypted WiFi Internet two-way communication' - if the network traffic is encrypted then that would rule out my driver unless the encryption is known.

I also see mention of IFTTT in the above link. I have no idea how this fits in (if at all) but it might be something to look at.

Susan

Bruno BORDAS

unread,
Aug 3, 2018, 9:35:18 AM8/3/18
to weewx-user
Hi Susan,

Thank you for your kind reply,

I found the info HERE
IFTTT is not an option since the goal is to get my infos directly without needing internet.

I don't have any other clue ^^

Bruno

Topher Webb

unread,
Feb 16, 2019, 6:52:32 AM2/16/19
to weewx-user
If you find a solution, let me know :D

I have a clone of this station, works well, uploads to WU, and Weather Cloud. WC is tweeting every hour, but would like to grab the data and upload to a domain for display rather than using WU or WC. I have used Weather Display before, and installed that, but no good... so was hoping for Interceptor or similar plugin to pull that data and upload a CLIENTRAW.TXT file or similar to domain as per Weather-Display software... or simply use WeeWx to create the HTML/PHP pages

I am thinking I may see if I can go the route of SDR sniffing 433Mhz and see if I can decrypt the data that way.

Bruno BORDAS

unread,
Feb 16, 2019, 7:44:44 AM2/16/19
to weewx...@googlegroups.com
Sorry, but I found nothing si far.
Actually, I stopped searching. 

Mine is 868Mhz. Check yours

--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/X5kzb6yCwtc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Scott Grayban

unread,
Feb 16, 2019, 2:23:01 PM2/16/19
to weewx-user

Bruno BORDAS

unread,
Feb 16, 2019, 6:01:59 PM2/16/19
to weewx...@googlegroups.com
Oh great news. Thank you a lot for sharing. I'll definitely take à look 

Scott Grayban

unread,
Feb 16, 2019, 8:08:48 PM2/16/19
to weewx-user
Any questions ask !

Scott Grayban

unread,
Feb 16, 2019, 8:13:37 PM2/16/19
to weewx-user


On Saturday, February 16, 2019 at 3:01:59 PM UTC-8, Bruno BORDAS wrote:

Bruno BORDAS

unread,
Feb 17, 2019, 10:35:02 AM2/17/19
to weewx...@googlegroups.com
Again, thanks à lot.
I think I'll try again 😁

So, if I understand correctly, the pi sniff the wifi Network with hostapd and transmit it to weewx with the interceptor driver and eth0 is that right ?

I read your git, pretty well made. You did à great job 

Scott Grayban

unread,
Feb 17, 2019, 3:51:32 PM2/17/19
to weewx-user
Correct.

The weather station connects to the PI wifi (hostap) then the observer device sniffs port 80 for the data being sent from the WS to Ambient api. That data is then saved to weeWX database which produces the data for the skin.

Bruno BORDAS

unread,
May 20, 2019, 4:58:18 AM5/20/19
to weewx-user
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 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

####################
### 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

Bruno BORDAS

unread,
Nov 10, 2019, 1:12:45 PM11/10/19
to weewx...@googlegroups.com
Me again.

I just release my own docker image of the setup I spoke about before. 

Feel free to try

--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/X5kzb6yCwtc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages