Some variables are not working with Boostrap 4.0 ?

36 views
Skip to first unread message

Yves Martin

unread,
Jul 13, 2023, 3:09:17 PM7/13/23
to weewx-user
Hi,

When I upgrade weewx from 3.7 to 4.10, I wanted to keep some useful features, but I discovered they are not supported here. Here is the code I've added in /etc/weewx/skins/Boutstrap/livegauge.html.inc

(...)
            <tr>
                #if $almanac.next_solstice.raw < $almanac.next_equinox.raw
                <td">$gettext("Solstice")</td>
                <td>$almanac.next_solstice</td>
                #else
                <td>$gettext("Equinox")</td>
                <td>$almanac.next_equinox</td>
                #end if
            <tr/>
            <tr>
                #if $almanac.next_equinox.raw < $almanac.next_solstice.raw
                <td>$gettext("Solstice")</td>
                <td>$almanac.next_solstice</td>
                #else
                <td>$gettext("Equinox")</td>
                <td>$almanac.next_equinox</td>
                #end if
            </tr>
            <tr>
                <td>$gettext("Cumulative rain")</td>
                <td>$time_since_last_rain</td>
            </tr>
(...)

Unfortunately, these variable are not supported.
Did I forget something?

Yves,
YMartin.com/meteo

michael.k...@gmx.at

unread,
Jul 13, 2023, 3:44:24 PM7/13/23
to weewx-user
Do they work with another skin? For the almanac, my best guess is that these are not weewx almanac values and you don't have ephem installed (the latter is a very educated guess, since your charts don't show dayNight background and I highly doubt you turned this feature off) I have ephem installed, I just tested $almanac.next_equinox , it works.

for  $time_since_last_rain: is this a standard feature? Anyway, Bootstrap skin will not interfere. My best guess here, you didn't install https://github.com/vinceskahan/vds-weewx-lastrain-extension.

Message has been deleted

Yves Martin

unread,
Jul 13, 2023, 4:32:43 PM7/13/23
to weewx-user
Finally it works ... (used: "sudo apt install python3-ephem")

Added this :
I always use this as a reference ...

Thanks again!

Yves,
YMmartin.com/meteo

Yves Martin

unread,
Jul 13, 2023, 5:06:09 PM7/13/23
to weewx-user
About the last-rain ... I've added the extension for the "last rain" but it does not seem to work ...

I'm am trying to show the cumulative rain of the current day ... Any idea?

Yves,
YMartin.com/meteo

Le jeudi 13 juillet 2023 à 15 h 44 min 24 s UTC-4, michael.k...@gmx.at a écrit :
Reply all
Reply to author
Forward
0 new messages