Historic data Rain0Total not working **solved**

All about the standard Meteobridge devices based on mobile routers from TP-Link, D-Link, ASUS

Moderator: Mattk

Post Reply
StefanV
Fresh Boarder
Fresh Boarder
Posts: 11
Joined: Sat Mar 05, 2016 12:33 am

Historic data Rain0Total not working **solved**

Post by StefanV » Sun Mar 20, 2016 3:01 pm

Hi,

I'm trying to get historic data from the Meteobrige Pro, in particular the amounts of rain.

This is the data showed by Meteobridge:

Image

As you can see, at 12:08 the amount of rain is 4,8mm.

This is the template I use to retrieve the data (snippet of 24h template):

Code: Select all

>>201603041200=[rain0total-sum@201603041200=.:-]
>>201603041201=[rain0total-sum@201603041201=.:-]
>>201603041202=[rain0total-sum@201603041202=.:-]
>>201603041203=[rain0total-sum@201603041203=.:-]
>>201603041204=[rain0total-sum@201603041204=.:-]
>>201603041205=[rain0total-sum@201603041205=.:-]
>>201603041206=[rain0total-sum@201603041206=.:-]
>>201603041207=[rain0total-sum@201603041207=.:-]
>>201603041208=[rain0total-sum@201603041208=.:-]
>>201603041209=[rain0total-sum@201603041209=.:-]
>>201603041210=[rain0total-sum@201603041210=.:-]
>>201603041211=[rain0total-sum@201603041211=.:-]
>>201603041212=[rain0total-sum@201603041212=.:-]
>>201603041213=[rain0total-sum@201603041213=.:-]
>>201603041214=[rain0total-sum@201603041214=.:-]
>>201603041215=[rain0total-sum@201603041215=.:-]
>>201603041216=[rain0total-sum@201603041216=.:-]
>>201603041217=[rain0total-sum@201603041217=.:-]
>>201603041218=[rain0total-sum@201603041218=.:-]
>>201603041219=[rain0total-sum@201603041219=.:-]
>>201603041220=[rain0total-sum@201603041220=.:-]
>>201603041221=[rain0total-sum@201603041221=.:-]
>>201603041222=[rain0total-sum@201603041222=.:-]
>>201603041223=[rain0total-sum@201603041223=.:-]
>>201603041224=[rain0total-sum@201603041224=.:-]
>>201603041225=[rain0total-sum@201603041225=.:-]
>>201603041226=[rain0total-sum@201603041226=.:-]
>>201603041227=[rain0total-sum@201603041227=.:-]
>>201603041228=[rain0total-sum@201603041228=.:-]
>>201603041229=[rain0total-sum@201603041229=.:-]
>>201603041230=[rain0total-sum@201603041230=.:-]
>>201603041231=[rain0total-sum@201603041231=.:-]
>>201603041232=[rain0total-sum@201603041232=.:-]
>>201603041233=[rain0total-sum@201603041233=.:-]
>>201603041234=[rain0total-sum@201603041234=.:-]
>>201603041235=[rain0total-sum@201603041235=.:-]
>>201603041236=[rain0total-sum@201603041236=.:-]
>>201603041237=[rain0total-sum@201603041237=.:-]
>>201603041238=[rain0total-sum@201603041238=.:-]
>>201603041239=[rain0total-sum@201603041239=.:-]
>>201603041240=[rain0total-sum@201603041240=.:-]
>>201603041241=[rain0total-sum@201603041241=.:-]
>>201603041242=[rain0total-sum@201603041242=.:-]
>>201603041243=[rain0total-sum@201603041243=.:-]
>>201603041244=[rain0total-sum@201603041244=.:-]
>>201603041245=[rain0total-sum@201603041245=.:-]
>>201603041246=[rain0total-sum@201603041246=.:-]
>>201603041247=[rain0total-sum@201603041247=.:-]
>>201603041248=[rain0total-sum@201603041248=.:-]
>>201603041249=[rain0total-sum@201603041249=.:-]
>>201603041250=[rain0total-sum@201603041250=.:-]
>>201603041251=[rain0total-sum@201603041251=.:-]
>>201603041252=[rain0total-sum@201603041252=.:-]
>>201603041253=[rain0total-sum@201603041253=.:-]
>>201603041254=[rain0total-sum@201603041254=.:-]
>>201603041255=[rain0total-sum@201603041255=.:-]
>>201603041256=[rain0total-sum@201603041256=.:-]
>>201603041257=[rain0total-sum@201603041257=.:-]
>>201603041258=[rain0total-sum@201603041258=.:-]
>>201603041259=[rain0total-sum@201603041259=.:-]
This outputs:

Code: Select all

>>201603041200=0.0
>>201603041201=0.0
>>201603041202=0.0
>>201603041203=0.0
>>201603041204=0.0
>>201603041205=0.0
>>201603041206=0.0
>>201603041207=0.0
>>201603041208=0.0
>>201603041209=0.0
>>201603041210=0.0
>>201603041211=0.0
>>201603041212=0.0
>>201603041213=0.0
>>201603041214=0.0
>>201603041215=0.0
>>201603041216=0.0
>>201603041217=0.0
>>201603041218=0.0
>>201603041219=0.0
>>201603041220=0.0
>>201603041221=0.0
>>201603041222=0.0
>>201603041223=0.0
>>201603041224=0.0
>>201603041225=0.0
>>201603041226=0.0
>>201603041227=0.0
>>201603041228=0.0
>>201603041229=0.0
>>201603041230=0.0
>>201603041231=0.0
>>201603041232=0.0
>>201603041233=0.0
>>201603041234=0.0
>>201603041235=0.0
>>201603041236=0.0
>>201603041237=0.0
>>201603041238=0.0
>>201603041239=0.0
>>201603041240=0.0
>>201603041241=0.0
>>201603041242=0.0
>>201603041243=0.0
>>201603041244=0.0
>>201603041245=0.0
>>201603041246=0.0
>>201603041247=0.0
>>201603041248=0.0
>>201603041249=0.0
>>201603041250=0.0
>>201603041251=0.0
>>201603041252=0.0
>>201603041253=0.0
>>201603041254=0.0
>>201603041255=0.0
>>201603041256=0.0
>>201603041257=0.0
>>201603041258=0.0
>>201603041259=0.0
What is going wrong? Because I don't see the 4,8mm @ 201603041208. Do I have the wrong sensor, wrong selector? Or isn't it possible to retrieve raintotal values from the past?

Thanks for the answer!

User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 5024
Joined: Mon Oct 01, 2007 10:51 pm

Re: Historic data Rain0Total not working

Post by admin » Mon Mar 21, 2016 2:29 am

Strange. I test this definition with email sending :

Code: Select all

rain0total-sum@201603050306:--#[rain0total-sum@201603050306:--]
and it returns the value of the addressed database field fine. In which context are
you using these template variables? email? http? ftp?

User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 5024
Joined: Mon Oct 01, 2007 10:51 pm

Re: Historic data Rain0Total not working

Post by admin » Mon Mar 21, 2016 2:35 am

One more remark. You say it is a snippet from a 24h request.
Please tell me that you are not firing 1440 such requests to fill up
the data of a day? It would be rather unwise to do 1440 isolated
database requests for getting this. Please make use of export functions
when you are looking for arrays of data. Doing this via templates
will not work on larger amounts of data. Database will stall at
some point of overload.

StefanV
Fresh Boarder
Fresh Boarder
Posts: 11
Joined: Sat Mar 05, 2016 12:33 am

Re: Historic data Rain0Total not working

Post by StefanV » Mon Mar 21, 2016 5:58 pm

I did actually fire 1440 requests ;) sorry! But in the meantime I tried to export the data using the export function and that will do the trick for now. But even when I only tried 1 or 2 requests, it didn't work for some reason.

Anyway; it's solved in another way (export functions). :)

Post Reply