NOAA Reports

103 views
Skip to first unread message

Andy Hudson-Smith

unread,
Jun 6, 2019, 11:53:59 AM6/6/19
to weewx-user
Hope its ok ask this - my system has created a series of NOAA reports back to 1970 (I assumed due to a date/time error on the pi).

I have deleted the files from /var/www/html/weewx/NOAA/ and rerun reports but the data still appears at:

http://www.finchamweather.co.uk/weewx/reports/

I could not find any old data in archive on weewx.sdb so wondering where they are being generated from. I must have made a basic error but cant seem to find how to clear my NOAA page - any thoughts/help would be great,

Andy

Pat

unread,
Jun 6, 2019, 12:22:29 PM6/6/19
to weewx-user
I've never seen this before. Does it exist if you switch and use the Seasons skin?

Thomas Keffer

unread,
Jun 6, 2019, 12:31:27 PM6/6/19
to weewx-user
Double check whether you have any old data in your sqlite data file. Use the tool sqlite3.

$ sudo apt install sqlite3     # If necessary
$ sqlite3 weewx.sdb
sqlite> select min(dateTime), datetime(min(dateTime),'unixepoch','localtime') from archive;

See what it says.

If that comes out clean, make sure you are using the copy of weewx.sdb that you think you are using.

-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/76c5b5a6-3bf1-406a-8aa4-e071443decbc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Andy Hudson-Smith

unread,
Jun 6, 2019, 1:14:33 PM6/6/19
to weewx-user
Thanks for the database check info - yep run that and all is clear - looking at the html on the pi at /var/www/html/weewx/reports the noaa page is correct with all the old data now clear:

<div class="col-sm-12 wx-year-row">
<a href="?yr=2019" class="noaa_rep_nav"><b>2019</b></a>: <a href="?yr=2019&amp;mo=01" class="noaa_rep_nav"><b$
</div>

So it seems to not be moving the updated page to the external ftp server (all the other pages worked ok so will check my host - seems to be up and running ok).

Hmmmm

Andy

Andy Hudson-Smith

unread,
Jun 6, 2019, 2:14:07 PM6/6/19
to weewx-user
Looking at my ftp logs - the main Belchertown index.html has been updating fine but /report/index.html is not getting an update.

So wondering if its the latest skin update perhaps? The file is there on the pi but not on the main server...

Andy

Pat

unread,
Jun 6, 2019, 3:06:36 PM6/6/19
to weewx-user
I admit I'm not familiar with the FTP skin, so I'm not sure how the new Belchertown skin would affect this. 

My understanding is that anything inside your HTML_ROOT will get captured by the FTP Skin and get uploaded. So I guess I'd check that your Pi's HTML_ROOT is updating accurately during each run? Maybe your Pi's syslog will show there's an error with generating the skin?

Anyone feel free to correct me

gjr80

unread,
Jun 6, 2019, 9:32:09 PM6/6/19
to weewx-user
You are correct Pat, but things go awry sometimes.

So if I understand the current state of play correctly /report/index.html is being generated correctly each report cycle on your WeeWX machine but the updated /report/index.html is not being uploaded to your web server? A few suggestions to track down/fix the problem.

First up and easiest, WeeWX keeps track of what was previously uploaded in the file #FTP.last (I believe it will be in your HTML_ROOT on your WeeWX machine). Sometimes there can be an issue with the file and it can interfere with correct FTP operation. Locate #FTP.last and delete it. This will force WeeWX to upload all files on the next report cycle. See if that causes /report/index.html to be correctly uploaded/updated on your web server.

If that fails we need to dig a bit deeper. Best to set debug=1 in weewx.conf and restart WeeWX/do a config reload. Let WeeWX run for a couple of report cycles then post a log extract from when WeeWX was restarted through until the report cycles complete. Also post a copy of your [StdReport] stanza from weewx.conf, either do this via wee_debug or manually copy/paste. Either way check what you post for user names/passwords; wee_debug will do a good job obfuscating them but it is not perfect.

Gary

Andy Hudson-Smith

unread,
Jun 7, 2019, 5:08:51 AM6/7/19
to weewx-user
Brilliant - deleting FTP.last worked, it happily uploaded reports.hmtl once it had been deleted.

Thanks for the help - what a great forum...

Andy

Reply all
Reply to author
Forward
0 new messages