Help with NOAA-Year and Unknown color specifier

87 views
Skip to first unread message

Micael Fredriksson

unread,
Mar 15, 2019, 4:59:17 PM3/15/19
to weewx-user
Hello!

I would really appreciate some help figuring out two issues I have with my Weewx setup. I've really tried to figure out whats wrong but I no longer have any idea what to change.

On my homepage I can not get the Yearly summary to show the "NOAA-year.txt", but the "NOAA-month.txt" works as expected. If I open some NOAA-month.txt via link and then change the address in the address bar to the NOOA-year.txt it shows up, but not if I click on the link on the homepage. This means that the file exist but somethings wrong when I choose a year in the drop-down on the homepage.

The second issue is that in the syslog I get a error with some Unknown color specifier, from I guess weewx.imagegenerator.ImageGenerator. I've looked through the all skin.conf and weewx.conf to see I could find som wrong typed colors in "image_background_color" , but I don't find anything thats written in wrong color format.

Is it possible to read out something more from my syslog to find out where to look for this wrong color specifier?

Attach Skin.conf from the skin I use, mylog from debug=1, and index.html.
Let me know if I should attach some other files.

weewx 3.9.1
installed from deb
weatherstation WH1080


Hope someone could help me with this or point me in some direction where to look! 
And sorry for my bad english!

/Micael
index.html.txt
mylog.txt
skin.conf.txt

gjr80

unread,
Mar 15, 2019, 5:50:06 PM3/15/19
to weewx-user
Hi,

Regards your colour problem, I know the skin.conf comments indicate you can use #RRGGBB or 0xBBGGRR but try changing your # format colour settings to 0x format (ie only use 0x format and not # format). Note your will need to swap the last and first pair of characters to keep the same colour.

Gary

Micael Fredriksson

unread,
Mar 15, 2019, 6:30:55 PM3/15/19
to weewx-user
Hi,

Great!

Thank you for your answer, that seemed to solve the issue! Hours of searching solved in minutes in this great forum. 
But when that "error" disappeared from the log, a new one came up, something with "NoColumnError: no such column: extra1Dewpoint". Don't know why it came up, and why it didn't appear in the previous log that I attached? 
Attaching the new log.

/Micael
mylog2.txt

gjr80

unread,
Mar 15, 2019, 6:37:03 PM3/15/19
to weewx-user
Have a look at your 'pond' plots in skin.conf, they all include extraDewpoint1 and there is no extraDewpoint1 field in your archive. Is that a typo? If so you need to fix it. If not remove it or make sure field extraDewpoint1 is populated.

Gary

Thomas Keffer

unread,
Mar 15, 2019, 7:17:39 PM3/15/19
to weewx-user
Micael,

Are you still having problems getting your drop down lists to populate? I have noticed this problem on a few installations, including one of my own.

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

Micael Fredriksson

unread,
Mar 15, 2019, 7:59:39 PM3/15/19
to weewx-user
Ok, found the pond plots, and I don't use the extraDewpoint1 so I put a # at the lines. Surely not the right way to solve it but I still learning loads about the weewx, python and html coding! So for now I let it be that way. Really hard sometimes with the language.
Thanks for your answer and guidance!

Micael

Micael Fredriksson

unread,
Mar 15, 2019, 8:11:41 PM3/15/19
to weewx-user
Hi Thomas!

Yes, still an issue for me, and as I said I've really tried to change things to figure out why only the month drop-down list work and not the year drop-down. I get both 2018 and 2019 in the list but the don't lead anywhere when I click on them. But, as I mentioned, if I first click on the month and choose some month in the drop-down list and then change the address in the address bar in the browser ( /weewx/NOAA/NOAA-2018-07.txt to /weewx/NOAA/NOAA-2018.txt) I see the text for 2018. I've looked at other sites that uses sofaskin and some of the sites also has issue. 

Any clue why this is happening?

Micael

Thomas Keffer

unread,
Mar 15, 2019, 8:20:04 PM3/15/19
to weewx-user
As an experiment, could you please replace your copy of weewx/cheetahgenerator.py with the attached. Let me know if it makes a difference.

-tk
cheetahgenerator.py

Micael Fredriksson

unread,
Mar 15, 2019, 8:32:55 PM3/15/19
to weewx-user
Ok, I'll try that tomorrow and let you know the result.

Micael

gjr80

unread,
Mar 15, 2019, 9:11:24 PM3/15/19
to weewx-user
Aha, so the issue with the NOAA drop downs is on a Sofa skin template generated page, not the Standard or Seasons skins included with WeeWX. Not saying that is the cause but I had assumed until now it was the Standard or Seasons skin.

Gary

Thomas Keffer

unread,
Mar 15, 2019, 9:15:36 PM3/15/19
to weewx-user
Don't know. Populating the drop down lists depends on running the ByMonth and ByYear templates before the ToDate templates. But, I realized when doing the Python 3 port, that the algorithm made an assumption about the ordering of the dictionary used by ConfigObj. Normally, that's not a problem, except the CheetahGenerator makes a copy of the ConfigObj, and that copy doesn't always convey the ordering faithfully.

That's what we're testing.

-tk

--

Micael Fredriksson

unread,
Mar 16, 2019, 6:20:32 AM3/16/19
to weewx...@googlegroups.com
Hi Thomas,

tried the file you attached but it makes no difference with the year drop-down.

I wrote that I've seen this on other sofa skin templates, but it may occur on other skins as well but I've been looking at sofa skins most. 
In my seasons skin the year drop-down works as intended.

 

Micael


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/1aXsosXgENo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.

Thomas Keffer

unread,
Mar 16, 2019, 7:17:49 AM3/16/19
to weewx-user
Look  through the sofa skin configuration file (its skin.conf) and make sure the sections are in the following order:

[CheetahGenerator]
   [[SummaryByMonth]]
     ...
   [[SummaryByDate]]
     ...
   [[ByDate]]
     ...

The algorithm that populates the drop down list depends on [[ByDate]] appearing last.

-tk

Micael Fredriksson

unread,
Mar 16, 2019, 7:36:22 AM3/16/19
to weewx-user
This is how it looks in skin.conf


[CheetahGenerator]
    # This section is used by the generator CheetahGenerator, and specifies
    # which files are to be generated from which template.

    # Possible encodings are 'html_entities', 'utf8', or 'strict_ascii'
    encoding = html_entities

    [[SummaryByMonth]]
        # Reports that summarize "by month"
        [[[NOAA_month]]]
            encoding = utf8
            template = NOAA/NOAA-YYYY-MM.txt.tmpl

    [[SummaryByYear]]
        # Reports that summarize "by year"
        [[[NOAA_year]]]
            encoding = utf8
            template = NOAA/NOAA-YYYY.txt.tmpl
        
    [[ToDate]]
        # Reports that show statistics "to date", such as day-to-date,
        # week-to-date, month-to-date, etc.

        [[[day]]]
            template = index.html.tmpl
        
        [[[week]]]
            template = week.html.tmpl
        
        [[[month]]]
            template = month.html.tmpl
        
        [[[year]]]
            template = year.html.tmpl
        
[[[RSS]]]
          # template = RSS/weewx_rss.xml.tmpl
           encoding = utf8
          # template = dashboard.html.tmpl

Micael Fredriksson

unread,
Mar 21, 2019, 12:06:17 PM3/21/19
to weewx-user
Hi!

Finally got the NOAA-Year to work!

Look at the attached txt-file to see what I changed in my index.html.tmpl.
The dates are those I have in my database so you might have to put in whatever dates you have in your database. 
Maybe the dates updates themself directly, I don't know, but this is how I did now.

Try this if you have NOAA-year issue in your sofaskin setup.

/Micael
Changes_in_Index_html_tmpl.txt
Reply all
Reply to author
Forward
0 new messages