Error charts update

155 views
Skip to first unread message

alean...@hotmail.com

unread,
Jan 17, 2017, 11:00:48 AM1/17/17
to weewx-user
Hi to all,
a few days ago i downloaded and perfectly configured weewx for my weather station (PCE-FWS 20). When i sent the files to my web site i had some problems. In particular the charts of index.html.tmpl don't update but everything else yes! Into folder of my pc it's all right, everything it's updated. I don't understand the problem. Please hel me.
Thanks. 

Thomas Keffer

unread,
Jan 17, 2017, 11:10:01 AM1/17/17
to weewx-user
Post the log.

-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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Andrew Milner

unread,
Jan 17, 2017, 11:11:20 AM1/17/17
to weewx-user
If you are asking for some help providing more details of the issues will be required!! 

What specific problems do you have with the charts??
If the issues are just with some of the charts then the output from wee_debug and the log from startup of weewx until after two or three archive/reporting intervals may also help diagnose your problems.

We cannot help much if you are as vague as you were in your initial post.




On Tuesday, 17 January 2017 18:00:48 UTC+2, alean...@hotmail.com wrote:
Hi to all,
a few days ago i dueownloaded and perfectly configured weewx for my weather station (PCE-FWS 20). When i sent the files to my web site i had some problems. In particular the charts of index.html.tmpl don't update but everything else yes! Into folder of my pc it's all right, everything it's updated. I don't understand the problem. Please hel me.
Thanks. 

alean...@hotmail.com

unread,
Jan 17, 2017, 11:24:35 AM1/17/17
to weewx-user
Ok. In particular the charts don't update time, date and lines. It's stop since first upload to my web site. http://stazionemeteopce.altervista.org/

Andrew Milner

unread,
Jan 17, 2017, 12:16:08 PM1/17/17
to weewx-user
And the log??

alean...@hotmail.com

unread,
Jan 17, 2017, 1:04:01 PM1/17/17
to weewx-user




Andrew Milner

unread,
Jan 17, 2017, 1:10:15 PM1/17/17
to weewx-user
Since the log clearly shows an error is being detected by cheetah posting the output from wee_debug would help as you have something incorrect in either weewx.conf or skin.conf



On Tuesday, 17 January 2017 20:04:01 UTC+2, alean...@hotmail.com wrote:




alean...@hotmail.com

unread,
Jan 17, 2017, 3:11:53 PM1/17/17
to weewx-user
I don't resolved the problem. Can you explain me how to resolve it please? Thanks for the support.

Thomas Keffer

unread,
Jan 17, 2017, 3:31:55 PM1/17/17
to weewx-user
Please post the file /etc/weewx/skins/Standard/skin.conf.

-tk

On Tue, Jan 17, 2017 at 12:11 PM, <alean...@hotmail.com> wrote:
I don't resolved the problem. Can you explain me how to resolve it please? Thanks for the support.

--

alean...@hotmail.com

unread,
Jan 17, 2017, 4:24:20 PM1/17/17
to weewx-user
This is the file.
skin.conf

Thomas Keffer

unread,
Jan 17, 2017, 4:44:57 PM1/17/17
to weewx-user
Nothing unusual there.

Please try running the wee_debug program:

wee_debug --info --output

Then post the file /var/tmp/weewx.debug

-tk

On Tue, Jan 17, 2017 at 1:24 PM, <alean...@hotmail.com> wrote:
This is the file.

alean...@hotmail.com

unread,
Jan 17, 2017, 5:14:24 PM1/17/17
to weewx-user
ok. Thanks again.


weewx.debug

Thomas Keffer

unread,
Jan 17, 2017, 5:36:51 PM1/17/17
to weewx-user
According to the screenshot of the log you posted, the Cheetah generator is looking for a template called "data.txt.tmpl". I have no idea what that template could be --- it is not part of the standard weewx distribution and it is not mentioned in the skin configuration file, skin.conf, that you posted.

However, searching the weewx-user archives, I found another user who was creating a template called data.txt.tmpl for posting to an Italian website. He is Italian, you are Italian. 

Maybe a coincidence, but I thought I'd ask: do you know anything about this file? Are you trying to run any unusual services?

The last thing to try is to post the full log from the start up of weewx. That means, run tail -f /var/log/syslog in a window, then in another window stop and restart weewx. Cut and paste the log from the startup of weewx.

If that doesn't work, I'll have to send you an instrumented copy of cheetahgenerator.py

-tk


On Tue, Jan 17, 2017 at 2:14 PM, <alean...@hotmail.com> wrote:
ok. Thanks again.


alean...@hotmail.com

unread,
Jan 18, 2017, 4:09:36 AM1/18/17
to weewx-user
OK. data.txt.tmpl is a file txt for an Italian website (i'm Italian). I downloaded this file a few days ago and i edited skin.conf for update data time to that website. When i posted the screenshot the file was into skin.conf but not into folder /etc/weewx/skins/Standard because weewx don't permitted me to move a file from /download (folder of my pc) to directory of skin Standard. Then i deleted the file from skin.conf for this reason you don't saw it. But the first problem (error charts update) it was present already first to add data.txt.tmpl. Now i hope is clear everything :) I'm sorry for confusion. I don't know to resolve my problem.
Thanks for all.

I add a file data.txt.tmpl if you want to see it  
data.txt.tmpl

Thomas Keffer

unread,
Jan 18, 2017, 7:44:07 AM1/18/17
to weewx-user
It does not do us any good to be debugging files that you are not using. 

In summary, your problem seems to be that the skin.conf file you are actually using references the template data.txt.tmpl, but you are not providing that template. Either remove the reference to data.txt.tmpl from the skin.conf that you are using, or provide a copy of data.txt.tmpl in the directory /etc/weewx/skins/Standard.

-tk

--

gjr80

unread,
Jan 18, 2017, 7:59:46 AM1/18/17
to weewx-user
Perhaps there is a language barrier but when I first read this thread this morning I thought the issue was that the weewx generated images (the plots) on index.html were not being uploaded to the webserver. I took the data.txt.tmpl error as a bit of a red herring. If you look later in the log extract Standard appears to generate a number of reports and images and the same number of files appear to be successfully uploaded by FTP. When I looked at the site via the link provided earlier, the site was stuck on 18 January 00:10 and remained so for a while today. The plots were tiemstamped with this time. When I look just now I see the site now appears to be updating (it just changed from 18 January 12:45 to 12:50) but I see the plots are still as of 00:10. It seems to me the html is generating and uploading by FTP but the plots are generating but not uploading. Could understand if the upload was to the wrong directory but if the html is making it to the correct directory I woudl expect theimages to as well. Perhaps the plots are not being generated. A more up to date log extract from weewx start might help.

Gary

Andrew Milner

unread,
Jan 18, 2017, 8:25:21 AM1/18/17
to weewx-user
I suspect the images are being generated into the wrong directory.  Can you either post your weewx.conf or the output from running wee_debug

On Wednesday, 18 January 2017 14:59:46 UTC+2, gjr80 wrote:
Perhaps there is a language barrier but when I first read this thread this morning I thought the issue was that the weewx generated images (the plots) on index.html were not being uploaded to the webserver. I took the data.txt.tmpl error as a bit of a red herring. If you look later in the log extract Standard appears to generate a number of reports and images and the same number of files appear to be successfully uploaded by FTP. When I looked at the site via the link provided earlier, the site was stuck on 18 January 00:10 and remained so for aour weewx.conf  while today. The plots were tiemstamped with this time. When I look just now I see the site now appears to be updating (it just changed from 18 January 12:45 to 12:50) but I see the plots are still as of 00:10. It seems to me the html is generating and uploading by FTP but the plots are generating but not uploading. Could understand if the upload was to the wrong directory but if the html is making it to the correct directory I woudl expect theimages to as well. Perhaps the plots are not being generated. A more up to date log extract from weewx start might help.

Gary

Dave Vaughan

unread,
Jan 18, 2017, 8:28:51 AM1/18/17
to weewx...@googlegroups.com

I agree to the language barrier possibly being a problem. When I look at the site it seems to be working properly, he does not have a refresh line in the index.html.tmpl file, so one would have to refresh manually. Also I noticed the the time is off by 1 hour. Sicily should be CET+1.

Dave


On 18.1.2017 13:59 PM, gjr80 wrote:
Perhaps there is a language barrier but when I first read this thread this morning I thought the issue was that the weewx generated images (the plots) on index.html were not being uploaded to the webserver. I took the data.txt.tmpl error as a bit of a red herring. If you look later in the log extract Standard appears to generate a number of reports and images and the same number of files appear to be successfully uploaded by FTP. When I looked at the site via the link provided earlier, the site was stuck on 18 January 00:10 and remained so for a while today. The plots were tiemstamped with this time. When I look just now I see the site now appears to be updating (it just changed from 18 January 12:45 to 12:50) but I see the plots are still as of 00:10. It seems to me the html is generating and uploading by FTP but the plots are generating but not uploading. Could understand if the upload was to the wrong directory but if the html is making it to the correct directory I woudl expect theimages to as well. Perhaps the plots are not being generated. A more up to date log extract from weewx start might help.

Gary
--
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.

Andrew Milner

unread,
Jan 18, 2017, 9:14:51 AM1/18/17
to weewx-user
Dave
When you say it is 'working properly' - does the date and time of the plots which you see match the date and time at the top of the page??  Gary and myself have seen the html updates correctly - but the plots are stuck on 17 Jan at 16:20

What do you see?

alean...@hotmail.com

unread,
Jan 18, 2017, 9:28:22 AM1/18/17
to weewx-user


Thanks to all for the support. Could anyone to explain me to change the time (CET+1) and how to move a file (data.txt.tmpl) into other directory?
When i try to move this file (data.txt.tmpl) weewx say me "permission denied". Can you help me?
About the plots i'm continuing to see the time and the data are stop since 16:00:00  15/01/2017.
Thanks.

Dave Vaughan

unread,
Jan 18, 2017, 9:35:05 AM1/18/17
to weewx...@googlegroups.com

Same thing as you do now, I only looked at the graphs and the time in the header, did not pay attention to the embedded date/time in the graphs. Sorry.

Dave

Andrew Milner

unread,
Jan 18, 2017, 10:37:31 AM1/18/17
to weewx-user
f you have permission problems when moving or copying files use sudo in front of the command - for example    sudo mv filea fileb instead of mv filea fileb

alean...@hotmail.com

unread,
Jan 18, 2017, 11:15:58 AM1/18/17
to weewx-user

Ok. I'll try it. If i'll have a problems i'll contact you.
Thanks.

gjr80

unread,
Jan 18, 2017, 6:50:16 PM1/18/17
to weewx-user
Let's get back to the original problem. When I looked just now the site is as it was the last time I looked; html is being updated but the plots remain from 18 January 00:10. I suggest we first establish whether weewx is generating the plots and where they are being saved by weewx. It seems from the original post they were, but this thread would indicate there have been some changes since the original log extract. Could you post a current log extract. Stop weewx, make sure debug=1 in weewx.conf then start weewx. Make sure you let weewx run for at least 10 minutes. Then post an extract of the log here. Make sure you include from the line 'engine: Initializing weewx version 3.6.2', we need to see all of the startup and some report cycles. Try to avoid posting screen captures of VNC viewer or similar showing the logs, it might be an easy way to post the logs but they are hard to read/search etc. If you are not using PuTTY or similar that lets you capture text then download the relevant log to the computer you are using to post to this forum and copy the relevant extract from the downloaded log file.

Gary

alean...@hotmail.com

unread,
Jan 19, 2017, 5:48:08 AM1/19/17
to weewx-user

Thank Milner. I managed to move the file.

alean...@hotmail.com

unread,
Jan 19, 2017, 5:52:47 AM1/19/17
to weewx-user

Gary about for post the log of startup  of weewx (berfore stop it) i downloaded putty, when i try to connect to my raspberry, putty say me "network error: connection refused". 

gjr80

unread,
Jan 19, 2017, 5:56:53 AM1/19/17
to weewx-user

alean...@hotmail.com

unread,
Jan 19, 2017, 6:07:12 AM1/19/17
to weewx-user

I think of no. Thanks.

alean...@hotmail.com

unread,
Jan 19, 2017, 7:42:42 AM1/19/17
to weewx-user

These are the logs of startup of weewx.
Immagine.png
Immagine2.jpg
Immagine3.jpg

gjr80

unread,
Jan 19, 2017, 8:09:34 AM1/19/17
to weewx-user
I thought you were installing putty so you could capture the text rather than post screen captures! When you are using putty if you run the command:

$ tail -f -n 50 /var/log/syslog

in the putty session window you will see the last 50 lines of syslog in the putty window and any subsequent lines sent to log will appear at the bottom. Open another putty session and execute the command you want to capture the log output from eg:

$ sudo service weewx stop
$ sudo service weewx start

You will see the syslog output from the commands (in this case stop then start weewx) appear on the screen and you can use you mouse to highlight the syslog text you want. Once the text is highlighted with the mouse it is automatically copied to the clipboard and you can then paste the text (not a picture or a jpg) to the forums. Much easier for us to help then.

Gary

gjr80

unread,
Jan 19, 2017, 8:35:52 AM1/19/17
to weewx-user
Well, after much flicking from screen to screen :) , it appears that weewx is generating the day images :

13:36:43 genimages: Generated 12 images for StandardReport in 4.92 seconds

and despite the ftp error message:

13:36:43 ftpupload: Unable to connect or log into server : [Errno 104] Connection reset by peer

it appears that 12 day pngs are uploaded along with the other html etc files. The html files are all making it to your web server so should the pngs. The only thing I can think of is to download one of the day png files, eg daytempdex.png to your PC, open the file and see what timestamp it has. The file will be in /var/www/html/weewx on your weewx machine. If the timestamp is current then it is an FTP problem otherwise it is something really weird.


Gary

On Thursday, 19 January 2017 22:42:42 UTC+10, alean...@hotmail.com wrote:

alean...@hotmail.com

unread,
Jan 19, 2017, 8:44:10 AM1/19/17
to weewx-user

 sudo tail -f -n50 /var/log/syslog
Jan 19 14:41:10 raspberrypi weewx[3166]: reportengine: Found configuration file /etc/weewx/skins/Standard/skin.conf for report StandardReport
Jan 19 14:41:10 raspberrypi weewx[3166]: restx: Wunderground-PWS: Published record 2017-01-19 14:40:00 CET (1484833200)
Jan 19 14:41:11 raspberrypi weewx[3166]: cheetahgenerator: using search list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras']
Jan 19 14:41:36 raspberrypi weewx[3166]: cheetahgenerator: Generated 14 files for report StandardReport in 25.50 seconds
Jan 19 14:41:36 raspberrypi rsyslogd-2007: action 'action 17' suspended, next retry is Thu Jan 19 14:43:06 2017 [try http://www.rsyslog.com/e/2007 ]
Jan 19 14:41:41 raspberrypi weewx[3166]: genimages: Generated 12 images for StandardReport in 4.93 seconds
Jan 19 14:41:41 raspberrypi weewx[3166]: reportengine: copied 9 files to /var/www/html/weewx
Jan 19 14:41:41 raspberrypi weewx[3166]: reportengine: Running report FTP
Jan 19 14:41:41 raspberrypi weewx[3166]: reportengine: Found configuration file /etc/weewx/skins/Ftp/skin.conf for report FTP
Jan 19 14:41:41 raspberrypi weewx[3166]: ftpupload: Attempting secure connection to ftp.stazionemeteopce.altervista.org
Jan 19 14:41:42 raspberrypi weewx[3166]: ftpupload: Secure connection to ftp.stazionemeteopce.altervista.org
Jan 19 14:41:43 raspberrypi weewx[3166]: ftpupload: Uploaded file /daytempdew.png
Jan 19 14:41:44 raspberrypi weewx[3166]: ftpupload: Uploaded file /index.html
Jan 19 14:41:45 raspberrypi weewx[3166]: ftpupload: Uploaded file /year.html
Jan 19 14:41:46 raspberrypi weewx[3166]: ftpupload: Uploaded file /daybarometer.png
Jan 19 14:41:47 raspberrypi weewx[3166]: ftpupload: Uploaded file /daywindvec.png
Jan 19 14:41:48 raspberrypi weewx[3166]: ftpupload: Uploaded file /dayinside.png
Jan 19 14:41:48 raspberrypi weewx[3166]: ftpupload: Uploaded file /daywind.png
Jan 19 14:41:49 raspberrypi weewx[3166]: ftpupload: Uploaded file /dayrain.png
Jan 19 14:41:50 raspberrypi weewx[3166]: ftpupload: Uploaded file /month.html
Jan 19 14:41:51 raspberrypi weewx[3166]: ftpupload: Uploaded file /favicon.ico
Jan 19 14:41:52 raspberrypi weewx[3166]: ftpupload: Uploaded file /weewx.css
Jan 19 14:41:53 raspberrypi weewx[3166]: ftpupload: Uploaded file /daywinddir.png
Jan 19 14:41:53 raspberrypi weewx[3166]: ftpupload: Uploaded file /dayradiation.png
Jan 19 14:41:54 raspberrypi weewx[3166]: ftpupload: Uploaded file /week.html
Jan 19 14:41:55 raspberrypi weewx[3166]: ftpupload: Uploaded file /dayrx.png
Jan 19 14:41:56 raspberrypi weewx[3166]: ftpupload: Uploaded file /mobile.html
Jan 19 14:41:57 raspberrypi weewx[3166]: ftpupload: Uploaded file /daypond.png
Jan 19 14:41:58 raspberrypi weewx[3166]: ftpupload: Uploaded file /daytempchill.png
Jan 19 14:41:59 raspberrypi weewx[3166]: ftpupload: Uploaded file /dayuv.png
Jan 19 14:41:59 raspberrypi weewx[3166]: ftpupload: Uploaded file /mobile.css
Jan 19 14:42:00 raspberrypi weewx[3166]: ftpupload: Uploaded file /NOAA/NOAA-2017.txt
Jan 19 14:42:01 raspberrypi weewx[3166]: ftpupload: Uploaded file /NOAA/NOAA-2017-01.txt
Jan 19 14:42:02 raspberrypi weewx[3166]: ftpupload: Uploaded file /backgrounds/band.gif
Jan 19 14:42:03 raspberrypi weewx[3166]: ftpupload: Uploaded file /RSS/weewx_rss.xml
Jan 19 14:42:04 raspberrypi weewx[3166]: ftpupload: Uploaded file /smartphone/index.html
Jan 19 14:42:04 raspberrypi weewx[3166]: ftpupload: Uploaded file /smartphone/wind.html
Jan 19 14:42:05 raspberrypi weewx[3166]: ftpupload: Uploaded file /smartphone/barometer.html
Jan 19 14:42:06 raspberrypi weewx[3166]: ftpupload: Uploaded file /smartphone/temp_outside.html
Jan 19 14:42:07 raspberrypi weewx[3166]: ftpupload: Uploaded file /smartphone/rain.html
Jan 19 14:42:08 raspberrypi weewx[3166]: ftpupload: Uploaded file /smartphone/radar.html
Jan 19 14:42:08 raspberrypi weewx[3166]: ftpupload: Uploaded file /smartphone/custom.js
Jan 19 14:42:09 raspberrypi weewx[3166]: ftpupload: Uploaded file /smartphone/icons/icon_ipad_x2.png
Jan 19 14:42:10 raspberrypi weewx[3166]: ftpupload: Uploaded file /smartphone/icons/icon_iphone_x1.png
Jan 19 14:42:11 raspberrypi weewx[3166]: ftpupload: Uploaded file /smartphone/icons/icon_iphone_x2.png
Jan 19 14:42:12 raspberrypi weewx[3166]: ftpupload: Uploaded file /smartphone/icons/icon_ipad_x1.png
Jan 19 14:42:12 raspberrypi weewx[3166]: reportengine: ftp'd 35 files in 30.41 seconds
Jan 19 14:42:12 raspberrypi weewx[3166]: reportengine: Running report RSYNC
Jan 19 14:42:12 raspberrypi weewx[3166]: reportengine: Found configuration file /etc/weewx/skins/Rsync/skin.conf for report RSYNC
Jan 19 14:42:12 raspberrypi weewx[3166]: reportengine: rsync upload not requested. Skipped.

Andrew Milner

unread,
Jan 19, 2017, 8:50:45 AM1/19/17
to weewx-user
If you brouse to /var/www/html/weewx/index.html on your local machine do you see the correct page AND correct images??
If you browse to /etc/weewx/public_html/index.html on your local machine do you see the correct page and correct images??

Can you give the output from ls -l *.png in public_html and also from ls -l *.png in /var/www/html/weewx

alean...@hotmail.com

unread,
Jan 19, 2017, 9:20:27 AM1/19/17
to weewx-user


For Gary
So if i open url of my website that's into log posted, i see my page index.html reloaded perfectly, but if i open my website from broswer i see charts stops.

For Andrew 
If i go to /var/www/html/weewx (from my raspberry) i see all files reloaded, correct images and file, but i don't find public_html/index.html on my folder.
Reply all
Reply to author
Forward
0 new messages