Count days since the last recorded rainfall

This section covers the Meteobridge PRO, PRO2, NANO SD, Raspberry Pi and VM platforms exclusively

Moderator: Mattk

masgio69
Senior Boarder
Senior Boarder
Posts: 67
Joined: Thu Apr 23, 2020 12:38 pm

Re: Count days since the last recorded rainfall

Post by masgio69 »

Mattk wrote: Sat Jun 25, 2022 11:42 pm The following will give you the number of whole and decimal part days from the current time to the time of last rain record. This simply determines the number of seconds between the current epoch (in linux time) to the linux epoch time of last rain record. Divide that by 86400 (# seconds in a day) and you have the number of complete days

{*([epoch]-[rain0total-nonzerotime=epoch])/86400:--*}

By including a 0 (zero) *0} before the end of the expression then the output will be an integer number of whole days rounded

{*([epoch]-[rain0total-nonzerotime=epoch])/86400:--*0}
Ti ringrazio ancora per l'aiuto che mi hai dato , avrei un'altra domanda se posso , è possibile fare in modo che il conteggio del tempo che passa dall'ultima pioggia funzioni solo con una determinata quantità di pioggia in su? in poche parole che conti giorno di pioggia solo se supera una certa quantità di acqua , ad esempio 0.6 o 1.0 mm . Grazie mille.
Mattk
Platinum Boarder
Platinum Boarder
Posts: 1387
Joined: Mon Sep 22, 2014 3:24 am

Re: Count days since the last recorded rainfall

Post by Mattk »

Trying to progressively look back through time for a conditional match I don't see any simple means using tags/tools provided to do that one?
masgio69
Senior Boarder
Senior Boarder
Posts: 67
Joined: Thu Apr 23, 2020 12:38 pm

Re: Count days since the last recorded rainfall

Post by masgio69 »

Dici che non c'è nessuna possibilità di farlo?
Post Reply