Help getting Tempest setup with Weewx on Pi running Debian

1,003 views
Skip to first unread message

Cookie

unread,
May 23, 2021, 5:27:25 PM5/23/21
to weewx-user
Hello

Apologies it has been twenty years since I have used Unix so these may be dumb questions.

I have successfully installed the Weewx software onto my PI using Debian Ver 10. Using the SUDO command brings back memories!

Can anyone recommend a stable driver for the Tempest? I have tried this one https://github.com/captain-coredump/weatherflow-udp. And not much luck. I am assuming that you put the IP address in weatherflow-udp.py in the usr file. I have added it there and it times out. I can't find anywhere to put the IP address in the weewx.conf file. Perhaps I am putting it in the wrong area? If someone could tell me what driver and what line that would be of help.

I would rather pull the data from the Tempest API but could not find a driver.

Any help appreciated. I have burned about 5 hours on this today.

Essentially I am trying to get my Tempest to connect directly to CWOP. I know Tempest already pushed to CWOP through its API. I desire to have this eventually publish to a website that my son can utilise for a project that he is working on that would pull the data from CWOP.

Many thanks.

mbat...@gmail.com

unread,
May 23, 2021, 6:29:02 PM5/23/21
to weewx-user

vince

unread,
May 23, 2021, 7:20:11 PM5/23/21
to weewx-user
There are many threads here on this as well as in the Weatherflow forums, with working examples people (including me) have posted many times.

The docs for the driver at https://github.com/captain-coredump/weatherflow-udp have an example weewx.conf snippet for the original Air+Sky WeatherFlow station.   You want to replace the sensor_map section with the Tempest example that is at https://github.com/captain-coredump/weatherflow-udp/blob/master/sample_Tempest_sensor_map.

You need to edit those examples to use 'your' Tempest serial number which will be of a format similar to the example of ST-00000025

Message has been deleted

Cookie

unread,
May 24, 2021, 3:12:56 AM5/24/21
to weewx-user
Thanks for the replies. I didn't pick up on the nuance between the Air+Sky Weatherflow station and the Tempest. Will give the suggestions a try. With thanks.

Cookie

unread,
May 24, 2021, 1:51:54 PM5/24/21
to weewx-user
Hello all I have got it to work. 


Only problem is I am getting this error: 

May 24 18:41:38 raspberrypi weewx[3623] ERROR user.weatherflowudp: Socket timeout waiting for incoming UDP packet!

I am publishing to CWOP on an interval of 300ms.

I have set the timeout value in the driver for 400ms and still seem to be getting the error. Any ideas on how to correct this?

I have attached the information in my driver. 

Many thanks
weatherflowudp.py

vince

unread,
May 24, 2021, 1:57:05 PM5/24/21
to weewx-user
You should not need to edit the driver.

You are trying to publish to CWOP every 0.3 seconds ?   Why ?

The station emits rapid_wind once every 3.0 seconds 'if' its battery is charged enough.   Normal readings are every 60 seconds.   Most places like CWOP don't like you hammering on them many times a second and ask that you do so only once every few minutes.

Cookie

unread,
May 24, 2021, 1:59:23 PM5/24/21
to weewx...@googlegroups.com

Correction 300 seconds but I take your point. I shall put it back to the default.

 

Regardless even if I leave the value as is I am still getting UDP timeout errors. Any thoughts why?

--
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/XPK1BCZZkNI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/72046768-2559-49ab-b7ae-ca567382928bn%40googlegroups.com.

Cookie

unread,
May 24, 2021, 2:36:37 PM5/24/21
to weewx-user
These are my logs. Checking the CWOP site it seems that the unit starts to report and then stops. Thoughts appreciated.

May 24 19:20:40 raspberrypi weewx[3623] ERROR user.weatherflowudp: Socket timeout waiting for incoming UDP packet!
May 24 19:22:10 raspberrypi weewx[3623] ERROR user.weatherflowudp: Socket timeout waiting for incoming UDP packet!
May 24 19:23:40 raspberrypi weewx[3623] ERROR user.weatherflowudp: Socket timeout waiting for incoming UDP packet!
May 24 19:25:10 raspberrypi weewx[3623] ERROR user.weatherflowudp: Socket timeout waiting for incoming UDP packet!
May 24 19:26:40 raspberrypi weewx[3623] ERROR user.weatherflowudp: Socket timeout waiting for incoming UDP packet!
May 24 19:28:10 raspberrypi weewx[3623] ERROR user.weatherflowudp: Socket timeout waiting for incoming UDP packet!
May 24 19:29:41 raspberrypi weewx[3623] ERROR user.weatherflowudp: Socket timeout waiting for incoming UDP packet!
May 24 19:31:11 raspberrypi weewx[3623] ERROR user.weatherflowudp: Socket timeout waiting for incoming UDP packet!
May 24 19:32:41 raspberrypi weewx[3623] ERROR user.weatherflowudp: Socket timeout waiting for incoming UDP packet!
May 24 19:34:11 raspberrypi weewx[3623] ERROR user.weatherflowudp: Socket timeout waiting for incoming UDP packet!

vince

unread,
May 24, 2021, 3:41:28 PM5/24/21
to weewx-user
On Monday, May 24, 2021 at 11:36:37 AM UTC-7 corey...@gmail.com wrote:
These are my logs. Checking the CWOP site it seems that the unit starts to report and then stops. Thoughts appreciated.


It doesn't matter what CWOP shows if weewx on the pi isn't quite happy.

What model pi are you running on ?
What extensions are you running ?
What skins are enabled ?
Are you wired or wifi ?
If you're wifi are you 2.4GHz or 5GHz ?
Is your wifi stable ?

My wild guess is that you are running too much stuff on a pi-zero or similar minimal device or that your wifi is unstable, or both.

But you've provided us really nothing to go on in terms of understanding your setup.  See the FAQ for how to report a problem so we can try to help better.

If you want to diagnose your Tempest setup directly without weewx you can try my UDP listener from https://github.com/vinceskahan/weatherflow-udp-listener - I'd suggest the --raw --debug options.   If you run my listener at the same time as the weewx driver, you need to set share_sockets=true for the weewx driver so that multiple programs can listen for traffic at the same time.

 

 
Message has been deleted

Ton vanN

unread,
May 24, 2021, 4:17:09 PM5/24/21
to weewx-user
[Removed my previous version of this message, because it contained info not needed]

If I look at the sensor-map you inserted in weaterheflowudp.py for your Tempest-setup, I see codes like AR-00008830 and SK-00008830
In my opinion there is the error, causing time-out for the UDP-messagehandling.

The required sensor-code you find by going to the Weatherflow-webpage showing the info from your Tempest-station:
easiest via https://tempestwx.com/station/xxxxx/ in which xxxxx is the unique Weatherflow-number for your station.
Then tick the 'sensorhead' at the 2nd line, top right side of the display, and in the window popping up, the required number will show at the left side of each subwindow (something like ST-0000xxxxx ).
That number must be inserted in all lines of the Tempest sensormap [not the Air/Sky-sensormap!].

Stumbled also on that aspect:
see the discussion in this group between me and vince around 5th of May under title Tempest Weewx

Other aspect met in practise:
some other software is 'not friends' with WeeWX.
Had that experience with Domoticz.
Now run WeeWX as only software at a RPI0W_RaspianBuster, without any problem.


Op maandag 24 mei 2021 om 21:41:28 UTC+2 schreef vince:

Cookie

unread,
May 24, 2021, 4:27:46 PM5/24/21
to weewx...@googlegroups.com

Good spot. I ran a fresh install of this and didn’t notice that I didn’t put ST in. I have amended and re-started. Will advise. Many thanks.

--

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/XPK1BCZZkNI/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