Seasons High/Low Widget only shows one column.

38 views
Skip to first unread message

John Kline

unread,
Jun 16, 2019, 7:55:28 PM6/16/19
to weewx-user
I've forked the Seasons skin and modified it to update the widgets and graphs at various intervals here:


I've carefully diff'ed all the code and it doesn't appear that my issue is related to the mods.  Famous last words.  Of course, I may be wrong.  See below.

I have three instances of weewx running.  Two of them show only the "Today" column in the High/Low widget (the second is at https://weather.johnkline.com/).
The third, alas, not accessible to the public, shows two columns: "Today" and Year (or Rain Year via a toggle).  This third is almost the exact same code, but running a modified Rainwise IP100 driver rather than modified CC3000 drivers in the first two.

My issue is that the code in hilo.inc has four columns, day, week, month and year-or-/rain-year.

Of these four columns, I see one (or two in one instance).  Perhaps something is restricting the width, but I have not found it yet as the width increases I've tried in the seasons.css just gets me a bigger area, but no additional columns.

Now, as for my speculation that the mods do not appear to be responsible:

In searching the registry, I only see one column (the Today column) in other instances of the seasons skin:

For example:


Two questions,
(1) Which columns are expected to be displayed in the High/Low widget?
(2) Presuming the answer above is not just one (the Today) column, is anyone running the seasons skin and seeing the expected behavior?

Cheers,
John

Glenn McKechnie

unread,
Jun 16, 2019, 8:28:32 PM6/16/19
to weewx...@googlegroups.com
Hi John,

I'm running an old version of Seasons but I believe it's much the same.

1. Depends on the History selected.

If you select History: Day then you'll get Day Hi/Lo displayed in the
sidebar widget
If you select History: Week, you'll get Day and Week displayed in that
same sidebar
Try selecting History: Month, then History:Year and you'll see the
logic continue.

2. I believe that is the expected behaviour.
Day displays the Day column
Anything but Day displays Day Hi/Lo and the Hi/Lo for the selected
History (eg: Week returns Day, Week columns.

This is controlled from seasons.js (or whatever your version of js is called)
[...]
function choose_history(id) {
choose_div('history', id, ['day', 'week', 'month', 'year',
'dayrain', 'weekrain']);
choose_col('hilo', id, ['week', 'month', 'year']);
}

Try disabling the choose_col line and you'll find they are all
displayed, all the time.

If you've added rain/year then you'll need to add that to the js file
as a choose_col option.

Looking at https://www.andylittle.us/weewx/.
That version runs as I'd expect which suggests that you have modified
the js file on that site.
What js are the others running?
> --
> 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/5c97a316-1a26-4862-8427-2b067c758a6c%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>


--


Cheers
Glenn

rorpi - read only raspberry pi & various weewx addons
https://github.com/glennmckechnie

John Kline

unread,
Jun 16, 2019, 8:35:23 PM6/16/19
to weewx...@googlegroups.com
Hi Glenn,

Thank you very much for your detailed answer. It’s good to know it’s working as expected and how to choose a second column.

Again, thanks for your help!

Cheers,
John
> To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CAAraAzj9odu9x-fTg3LmTJHAkN5kNv1DKM1TO0GNUs0OT2THWg%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages