Seasons skin: widgets toggle, no answers to help me?

66 views
Skip to first unread message

paul....@gmail.com

unread,
Nov 29, 2025, 6:25:35 AM (7 days ago) Nov 29
to weewx-user
This skin start always the widgets in open state.
How can i start weewx using the Seasons skin with the widgets  on the left (current conditons, etc...) in the closed condition by default, to have a more compact presentation at start-up? 
Thanks for helping...

matthew wall

unread,
Nov 29, 2025, 6:53:57 AM (7 days ago) Nov 29
to weewx...@googlegroups.com
hi!

take a look at the fuction 'setup' in the file seasons.js. at line 31 you should see this:

const state = get_state(widgets[i] + '.state', 'expanded');

change 'expanded' to 'collapsed'

note that this is a modification to javascript code, not a configuration file. your changes will remain through any update/upgrade of weewx, since updates/upgrades do not touch the skin files. but if you do a new installation, you will have to make the change again.

if you want some javascript programming practice, try modifying seasons.js so that the initial state is obtained from a configuration file instead of hard-coded.

m
> --
> 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 visit https://groups.google.com/d/msgid/weewx-user/d1a1d628-8d21-493d-977e-2e08fd8ef4a5n%40googlegroups.com.

paul....@gmail.com

unread,
Nov 29, 2025, 7:45:27 AM (7 days ago) Nov 29
to weewx-user
Thanks Matthew,
I tried this change in line 31 : no effect !  Could it be due to a conflict with cookies checking?

Reply all
Reply to author
Forward
0 new messages