FTP Stopped Working After Updating Station Hardware

97 views
Skip to first unread message

Pat W.

unread,
Jul 26, 2020, 10:24:34 PM7/26/20
to weewx-user
Hi All,

I've been using weewx for a couple years with an old WMR-918 and all works fine, including an FTP upload to my personal web page every five minutes. Recently bought a Weatherflow Tempest and installed the WeatherFlowUDP extension. Weewx appears to be receiving data from the station properly, but the FTP function has stopped working and I can't find any references to it in the syslog. I reinstalled weewx from scratch (installed via apt-get on Raspberry Pi 4) after the hardware change to no avail. 

I'm a linux novice but can find my way around. This one has me stumped. Any help is appreciated. mylog and wee_debug files attached

Pat W.
mylog
wee_debug-07-26-2020

Tom Keffer

unread,
Jul 26, 2020, 11:22:11 PM7/26/20
to weewx-user
I have my suspicions about what's going on here, but first let me ask you two questions.

1. Is there any evidence that anything is getting stored in the database? Take a look in your database. This will show the timestamps of the last 10 records that have been stored in the database:

sqlite3 /var/lib/weewx/weewx.sdb
sqlite> select datetime(dateTime,'unixepoch','localtime') from archive order by dateTime desc limit 10;

2. Is there any evidence that reports have been generated at all (let alone FTP'd)? 

ls -l /var/www/html/weewx

-tk

--
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/d5cd1209-4b4c-4165-b857-39f237300f8co%40googlegroups.com.

Pat W.

unread,
Jul 27, 2020, 8:16:26 PM7/27/20
to weewx-user
Tom,

1. Using your sqlite commands (thanks!) I see only one entry in the database, and its from yesterday when I was fiddling with things.

2. Same here, html and png files were created at least once yesterday. Nothing today.

Pat W.


On Sunday, July 26, 2020 at 6:22:11 PM UTC-5, Tom Keffer wrote:
I have my suspicions about what's going on here, but first let me ask you two questions.

1. Is there any evidence that anything is getting stored in the database? Take a look in your database. This will show the timestamps of the last 10 records that have been stored in the database:

sqlite3 /var/lib/weewx/weewx.sdb
sqlite> select datetime(dateTime,'unixepoch','localtime') from archive order by dateTime desc limit 10;

2. Is there any evidence that reports have been generated at all (let alone FTP'd)? 

ls -l /var/www/html/weewx

-tk

On Sun, Jul 26, 2020 at 3:24 PM Pat W. <pwe...@gmail.com> wrote:
Hi All,

I've been using weewx for a couple years with an old WMR-918 and all works fine, including an FTP upload to my personal web page every five minutes. Recently bought a Weatherflow Tempest and installed the WeatherFlowUDP extension. Weewx appears to be receiving data from the station properly, but the FTP function has stopped working and I can't find any references to it in the syslog. I reinstalled weewx from scratch (installed via apt-get on Raspberry Pi 4) after the hardware change to no avail. 

I'm a linux novice but can find my way around. This one has me stumped. Any help is appreciated. mylog and wee_debug files attached

Pat W.

--
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 weewx...@googlegroups.com.

Tom Keffer

unread,
Jul 28, 2020, 1:59:43 PM7/28/20
to weewx-user
Could you please post the results of the database query? I want to compare the timestamps with the raw data output of the WeatherFlow.

Also, is this problem consistent? Or, does it come and go?

-tk

To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/c74fba6c-92cf-49aa-8732-9302e8ff8525o%40googlegroups.com.

Pat W.

unread,
Jul 28, 2020, 8:24:31 PM7/28/20
to weewx-user
The problem seems consistent. DB query here:

sqlite> select datetime(dateTime,'unixepoch','localtime') from archive order by dateTime desc limit 10;
2020-07-26 16:05:00

Tom Keffer

unread,
Jul 28, 2020, 8:55:25 PM7/28/20
to weewx-user
That's the only value in the database?

To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/7d99645c-d737-4d32-87f6-7b1377ea7881o%40googlegroups.com.

Pat W.

unread,
Jul 28, 2020, 10:33:31 PM7/28/20
to weewx-user
Affirmative.

Tom Keffer

unread,
Jul 28, 2020, 11:05:15 PM7/28/20
to weewx-user
OK, seeing as how that's the only value in the database, let's start afresh. Can you delete the database, then restart weewx? Keep debug=2. Post the log from the restart for the first couple of report cycles (10 minutes or so).

-tk

To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/53e8e5ea-74d2-402b-91f8-63886ea38a87o%40googlegroups.com.

Pat W.

unread,
Jul 30, 2020, 4:58:01 AM7/30/20
to weewx-user
As instructed...
mylog

Tom Keffer

unread,
Jul 30, 2020, 2:03:17 PM7/30/20
to weewx-user
Post the log from the restart, for the first couple of report cycles (10 minutes or so).

To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/10b958ab-2b3e-4f4e-acbc-d8fb90b81052o%40googlegroups.com.

Pat W.

unread,
Jul 30, 2020, 3:03:49 PM7/30/20
to weewx-user
Here you go. Thanks for your help.
mylog

Tom Keffer

unread,
Jul 30, 2020, 3:24:07 PM7/30/20
to weewx-user
Should have spotted this earlier: your sensor map is messed up. You're using the serial number that was given as an example in the driver's documentation, instead of your own serial number. As a result, no LOOP packets are getting emitted by the driver.

You want something like this:

    [[sensor_map]]
        outTemp = air_temperature.ST-00007656.obs_st
        outHumidity = relative_humidity.ST-00007656.obs_st
        pressure = station_pressure.ST-00007656.obs_st
        lightning_strikes = lightning_strike_count.ST-00007656.obs_st
        avg_distance = lightning_strike_avg_distance.ST-00007656.obs_st
        outTempBatteryStatus = battery.ST-00007656.obs_st
        windSpeed = wind_speed.ST-00007656.rapid_wind
        windDir = wind_direction.ST-00007656.rapid_wind
        luxXXX = illuminance.ST-00007656.obs_st
        UV = uv.ST-00007656.obs_st
        rain = rain_accumulated.ST-00007656.obs_st
        windBatteryStatus = battery.ST-00007656.obs_st
        radiation = solar_radiation.ST-00007656.obs_st
        lightningXXX = distance.ST-00007656.evt_strike
        lightningYYY = energy.ST-00007656.evt_strike

-tk

To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/5690bd14-5358-41a3-bfc0-ec5acbe1c8fco%40googlegroups.com.

Pat W.

unread,
Jul 30, 2020, 3:49:44 PM7/30/20
to weewx-user
That was it. I updated the sensor map and everything seems to be working just fine now. 

Thank you Tom for catching my mistake and for all the troubleshooting. I sincerely appreciate it.

vince

unread,
Jul 30, 2020, 4:39:35 PM7/30/20
to weewx-user
On Thursday, July 30, 2020 at 8:24:07 AM UTC-7, Tom Keffer wrote:
Should have spotted this earlier: your sensor map is messed up. You're using the serial number that was given as an example in the driver's documentation, instead of your own serial number.

Wow we see this a lot.

I wonder if the example should use a serial number of ST-EDITME1234 or something like that....

Tom Keffer

unread,
Jul 30, 2020, 4:57:22 PM7/30/20
to weewx-user
Or, parameterize a generic sensor map:

[WeatherFlowUDP]
    serial_number = ST-00007656
    ...
    
    [[sensor_map]]
        outTemp = air_temperature.{serial_number}.obs_st
        outHumidity = relative_humidity.{serial_number}.obs_st
        ...

The install program could listen to the UDP packets for a while and discover all the serial numbers on its own. If there's more than one, it would ask the user to choose among them.

-tk





--
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 weewx-user+...@googlegroups.com.

Pat Weeden

unread,
Jul 30, 2020, 4:57:48 PM7/30/20
to weewx...@googlegroups.com
As a technical writer, I like to use [xxxxxxx] or [your-serial-number] or something similar as a flag to replace text. I still should’ve caught it the way the sample was written though. My bad!


--
Reply all
Reply to author
Forward
0 new messages