Missing graph since upgrade to 3.7.1

Skip to first unread message

Nick Mason

unread,
May 2, 2017, 12:57:16 PM5/2/17
to weewx-user
I've had a small but nagging problem for a while with my Raspberry Pi that runs weewx. When I try to upgrade rasbian I get an error message.

I'm not sure if I get a partial upgrade or no upgrade following a;

sudo apt-get update
sudo apt-get upgrade

I finally got around to sorting it out by by creating a new MicroSD card with the latest rasbian image. I then decide that along with the latest OS that I'd do a fresh install of weewx as well and this time rather than do a manual download and install using setup.py I would install weewx via apt-get install weewx.

All went well, it's a lot easier than the manual method and it worked as advertised. I then replaced the new database with the one from my backup and weewx dutifully brought it up to date. However, I noticed that the graphs on the web page were staggered and out of alignment and that this was because one of the graphs, Outside Humidity, is missing. All that shows is a small box with 'outside humidity' in it.

I've had a look through the code and what should be displayed is the dayhumidity.png image. This image isn't being generated and does not appear in /var/www/html/weewx

I've compared the new weewx.conf and skin.conf files with the backups I have from the older version and they look the same.

Can someone point me at where the report is generated and the image file produced please so I can have a look at what's going on.

Thanks
Nick

Thomas Keffer

unread,
May 2, 2017, 5:55:35 PM5/2/17
to weewx-user
If other images are being generated, but only the dayhumidity.png image is missing, the problem must be in the skin.conf file. If you did a Debian install, it will be located in /etc/weewx/skins/Standard/skin.conf

The relevant section should look something like this:


        ...
        [[[daytempchill]]]
            [[[[windchill]]]]
            [[[[heatindex]]]]

        [[[dayhumidity]]]
            [[[[outHumidity]]]]

        [[[dayrain]]]
            # Make sure the y-axis increment is at least 0.02 for the rain plot
            yscale = None, None, 0.02
            plot_type = bar
            [[[[rain]]]]
                aggregate_type = sum
                aggregate_interval = 3600
                label = Rain (hourly total)
        ...        



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

Nick Mason

unread,
May 3, 2017, 4:05:55 AM5/3/17
to weewx-user
Tom,

thank you, those two lines of code were missing from skin.conf and from the backup.

Just to prove I wasn't going mad I put the original SD card back in the RPi and they are there!

I also had to add the code to the monthly and yearly sections, modified accordingly.

How they got removed from the backup I have no idea, it seems too specific for corruption during the backup but stranger things have happened

Regards
Nick
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.

Paul Carpenter

unread,
May 11, 2017, 8:25:14 AM5/11/17
to weewx-user
I also rebuilt a new SD card (for a Pi) to transfer from Wheezy to Jessie and used apt-get to install Weewx 3.7.1 (from 3.6.2 if I remember correctly)

I do have dayhumidity.png in the html pages but it is not populated with data.

I do have the lines (shown by Tom above) in the skin.conf file for Day, Week, Month and Year

Also have the Weekly , Monthly and Yearly png files and these are all populated and up to date.

Any ideas appreciated

Paul

Andrew Milner

unread,
May 11, 2017, 12:13:49 PM5/11/17
to weewx-user
what data do you have in the inHumidity and outHumidity fields in the database??? Note the caps in .conf are also required.

Paul Carpenter

unread,
May 13, 2017, 6:18:42 AM5/13/17
to weewx-user
Hi

I do have data in all fields and it is being displayed in weekly, monthly and yearly graphs.

On day 1 I lost outHumidity and since then I have lost all other DAILY graphs except rain and wind vector.

Weekly still correct and up-to date

I sort of suspect some sort of 'units' issue as I rebuilt the conf file during the conversion but I don't understand how the weekly graph would still be ok and up to date.

The Units displaying in daily and weekly graphs are the same.



Many thanks for your help

Paul

Andrew Milner

unread,
May 13, 2017, 7:09:43 AM5/13/17
to weewx-user
perhaps giving us an extract from your archive table together with the .conf and .skin you are using would help shed some light.

if it was a units issue I would expect some errors in the log

seeing the data which is trying to be plotted would certainly help to understand what may be happening!!

is your site available to view?

gjr80

unread,
May 13, 2017, 7:38:54 AM5/13/17
to weewx-user
It's not clear to me exactly what the issue is; is dayhumidity.png being generated or not. Arguably you could take "I do have dayhumidity.png in the html pages but it is not populated with data" to mean one of two things; either a plot devoid of data or a placeholder with no image. I have seen no mention that the logs have been looked at yet - do they show any errors; even if they don't have any errors a log extract covering a couple of archive periods (along with the .conf files asked for by Andrew) will clear up exactly what weeWx is generating and what it is not.

Gary

Paul Carpenter

unread,
May 17, 2017, 5:20:48 AM5/17/17
to weewx-user
I realised that I needed to lake this more seriously and try and work out what was going on.

Well that didn't work but what did was to revert to  my previous skin.conf and drop the vanilla skin.conf in 3.7.1

I have no idea (from a visual inspection) why the new one didn't work in my  setup

Sorry to waste your time 

Paul

Andrew Milner

unread,
May 17, 2017, 5:25:34 AM5/17/17
to weewx-user
If you had post both skin.conf's we may have be able to help identify the cause for you.

So that was the only change you made to get it working again - stopped weewx, swapped the skin.conf and restarted weewd -  no other changes to anything??

Paul Carpenter

unread,
May 17, 2017, 5:36:19 AM5/17/17
to weewx-user
Andrew

I was hoping that you weren't going to ask that.

During my investigations I changed a whole heap of things but I believe (ok don't laugh) that the root solution was the skin.conf swap.

I don't want you to waste your time in case it was one of those other things!!!

Paul
Reply all
Reply to author
Forward
0 new messages