Finally it works ... (used: "sudo apt install python3-ephem")
Added this :
/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>
(...)
I always use this as a reference ...
Thanks again!
Yves,
YMmartin.com/meteo
Le jeudi 13 juillet 2023 à 15 h 44 min 24 s UTC-4, [email protected] a
écrit :
> 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.
>
> Yves Martin schrieb am Donnerstag, 13. Juli 2023 um 21:09:17 UTC+2:
>
>> 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
>>
>
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/weewx-user/72ea05a4-e2ca-444b-bb0d-afb6aa36caa9n%40googlegroups.com.