Tag for trend table.
Moderator: Mattk
Tag for trend table.
Hello everyone, I need your knowledge of the meteobridge, I would like to create a table with the comparison of the current value (for example the outside temperature) with the same value as yesterday, last month and last year but I can't find the right tags to create the table. Who can help me? Thanks so much.
Re: Tag for trend table.
What MB are you running? Have you checked the template page? Meteobridge PRO Additions?
https://www.meteobridge.com/wiki/index.php/Templates
https://www.meteobridge.com/wiki/index.php/Templates
Re: Tag for trend table.
You can compare current values with high-lows of other periods.masgio69 wrote: ↑Sat Jun 27, 2020 11:34 am Hello everyone, I need your knowledge of the meteobridge, I would like to create a table with the comparison of the current value (for example the outside temperature) with the same value as yesterday, last month and last year but I can't find the right tags to create the table. Who can help me? Thanks so much.
How to define those historical values => https://www.meteobridge.com/wiki/index.php/Templates
Some examples:
Code: Select all
|tempMaxToday|[th0temp-dmax.1:--]|!
|tempMaxTodayTime|[th0temp-dmaxtime:--]|!
|tempMaxYday|[th0temp-ydmax.1:--]|!
|tempMaxYdayTime|[th0temp-ydmaxtime:--]|!
|tempMaxMonth|[th0temp-mmax.1:--]|!
|tempMaxMonthTime|[th0temp-mmaxtime:--]|!
|tempMaxYear|[th0temp-ymax.1:--]|!
|tempMaxYearTime|[th0temp-ymaxtime:--]|!
Code: Select all
|tempMaxToday|16.9|!
|tempMaxTodayTime|20180922133508|!
|tempMaxYday|20.2|!
|tempMaxYdayTime|20180921041544|!
|tempMaxMonth|29.8|!
|tempMaxMonthTime|20180918160643|!
|tempMaxYear|37.8|!
|tempMaxYearTime|20180726171913|!
Re: Tag for trend table.
I have the meteobridge pro and want compare the actual value not the max o min value.....
Thank you so much...




Thank you so much...
Re: Tag for trend table.
OK But when I check the NaNo database (AFAIK similar to the Pro database) the values have a resolution of 1 hour and contain average/max/min values. So if you want to compare "current" values it should comparing the average value of the current hour
https://www.meteobridge.com/wiki/index.php/Templates => Meteobridge PRO Additions
If you want to compare current ( it is now 202006271730 ) outside temp [th0temp-val60] with yesterdays the tag needs to be [th0temp-avg@2020062617]Using "[uv0index-avg@2015110316]" in a template will report average UV index on November 3, 2015 between 16:00 and 16:59.
So the template file must be generated every hour to adjust for the @parts. That is doable.
But what to do on leap years with February 29? Or with months with 31 days -> compare it with this month first day or last month last day? Also switching into / or out of daylight saving time needs some programming effort.
Nice programming job.

Wim
- Attachments
-
- db.jpeg (72.15 KiB) Viewed 2679 times
Re: Tag for trend table.
Ok. Thank you so much.
Re: Tag for trend table.
It's not really what I wanted to do, but I'll use the tags you recommended me. Thank you all for the help you have given me.