last rain

109 views
Skip to first unread message

zasp...@gmail.com

unread,
Oct 19, 2024, 3:08:19 AM10/19/24
to weewx-user

I had a problem with my pi 4 and need to reboot it

Unfortunately I had a error with the sd card, and it would not boot

 my last back up was 18 months ago

so I am trying to bring the card or installation up to date with all the tweeks I have made

all is not completely lost as I had a daily cron job running that would back my weewx directory up to an external flash drive

I am trying to get the last rain extension to run

I have copied the lastrain.py to my /home/weewx/bin/user

Added this to my skin.conf

                search_list_extensions = user.lastrain.lastRainTags, user.stats.MyStats, user.time_since.TimeSince,  user.colorize_3.Colorize

 

 

Upated the index.html.tmpl with

 

 <tr>

     <td class="label">$obs.label.last_rain</td>

     <td class="data">$time_at('rain>0')<br/>$time_since('rain>0').long_form ago</td>

 </tr>

 

And this is the output


last_rain                
19/10/24 05:10:00
                              $time_since('rain>0').long_form ago

 

The other strange thing is the color formatting as gone its all black text. The normal formatting for the cells on the index page is green for the label cell and red for the data value

Why is the time since not returning a value

 

Thanks for any advice

Tom Keffer

unread,
Oct 19, 2024, 8:04:49 AM10/19/24
to weewx...@googlegroups.com
Impossible to tell without seeing the log. 

See the wiki for how to get a useful log.

--
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/752c958d-69f7-4be6-908f-dbf80ca14104n%40googlegroups.com.

vince

unread,
Oct 19, 2024, 10:39:12 AM10/19/24
to weewx-user
Which lastrain extension specifically ?
Did you have a v4 backup and install v5 ?
Are you a dpkg or pip installation ? 
Did you forget to install the colorize extension ?

We can’t read minds.  Need to know what your setup looks like.

zasp...@gmail.com

unread,
Oct 19, 2024, 10:40:44 AM10/19/24
to weewx-user
Thank you Tom my Syslog attached
syslog

Tom Keffer

unread,
Oct 19, 2024, 10:51:36 AM10/19/24
to weewx...@googlegroups.com
The suffix "long_form" was introduced in WeeWX V4.10.0. You are using V3.9.2.

You should upgrade both your version of Python, and WeeWX.

-tk

zasp...@gmail.com

unread,
Oct 19, 2024, 10:57:43 AM10/19/24
to weewx-user
ok thanks get on to it now
Reply all
Reply to author
Forward
0 new messages