Page 1 of 1
HTML template with [th0temp-min@D2] ***solved***
Posted: Sun May 15, 2016 12:38 pm
by marco
Hi
i trying to get data from 2 days back from today. if I'm right this should be the right thing:
[th0temp-min@D2] (min temp. 2 days in the past from today)
[th0temp-max@D2] (max temp. 2 days in the past from today.)
But thats not working for me??
If I inspect the data in the history tab from MB-Pro I can see datas from that day (13.05.2016), so everything should be fine!
Any Idea?
Thank you!
Re: HTML template with [th0temp-min@D2]
Posted: Mon May 16, 2016 11:27 am
by marco
This makes my crazy !
really don't know WTF i'm doing wrong with those variables??? another example (attached):
many thanks in advance for any help!
Re: HTML template with [th0temp-min@D2]
Posted: Mon May 16, 2016 11:54 am
by wvdkuil
Hello Marco,
Could you attach the file you use for MB-pro with the variables in it?
I will test it at my MB-Pro just to see if there is a difference.
And having the file, one can inspect the exact typing of the variables .
Without that it is fairly difficult to give an answer.
Wim
Re: HTML template with [th0temp-min@D2]
Posted: Mon May 16, 2016 2:20 pm
by marco
Hi Wim
yes of course, its just a snippet from the standard dashboard.html from MB-PRO. for testing variables!
Thank you !
Marco
Code: Select all
<html>
<style type="text/css">
#table-2 {
border: 1px solid #e3e3e3;
background-color: #f2f2f2;
width: auto;
border-radius: 6px;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
}
#table-2 td, #table-2 th {
padding: 5px;
color: #333;
}
#table-2 thead {
font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
padding: .2em 0 .2em .5em;
text-align: left;
color: #4B4B4B;
background-color: #C8C8C8;
background-image: -webkit-gradient(linear, left top, left bottom, from(#f2f2f2), to(#e3e3e3), color-stop(.6,#B3B3B3));
background-image: -moz-linear-gradient(top, #D6D6D6, #B0B0B0, #B3B3B3 90%);
border-bottom: solid 1px #999;
}
#table-2 th {
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 13px;
line-height: 20px;
font-style: normal;
font-weight: normal;
text-align: left;
}
#table-2 td {
line-height: 20px;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 14px;
border-bottom: 1px solid #fff;
border-top: 1px solid #fff;
}
#table-2 td:hover {
background-color: #fff;
}
</style>
<body>
<table id="table-2">
<thead><tr><th>description of variables I used. without brackets [ ]</th>
<th>th0temp-act.1:--</th><!--just a title -->
<th>th0temp-dmax.1:--</th><!--just a title -->
<th>th0temp-dmin.1:--</th><!--just a title -->
<th>th0temp-max@D2.1:--</th><!--just a title -->
<th>th0temp-min@D2.1:--</th><!--just a title -->
<th>th0temp-max@D7.1:--</th><!--just a title -->
<th>th0temp-min@D7.1:--</th><!--just a title -->
</tr>
</thead>
<tbody>
<tr><td><strong>Values from meteobridge</strong></td>
<td>[th0temp-act.1:--]°C</td><!--variable -->
<td>[th0temp-dmax.1:--]°C</td><!--variable -->
<td>[th0temp-dmin.1:--]°C</td><!--variable -->
<td>[th0temp-max@D2.1:--]°C</td><!--variable -->
<td>[th0temp-min@D2.1:--]°C</td><!--variable -->
<td>[th0temp-max@D7.1:--] °C</td><!--variable -->
<td>[th0temp-min@D7.1:--]°C</td><!--variable -->
</tr>
</tbody>
</table>
</body>
<html>
Re: HTML template with [th0temp-min@D2]
Posted: Mon May 16, 2016 3:59 pm
by wvdkuil
marco wrote:Hi Wim
yes of course, its just a snippet from the standard dashboard.html from MB-PRO. for testing variables!
Thank you !
Marco
I ran the same file on Meteobridge 2.8 (May 14 2016, build 9888), FW 1.4
Stored your text "input" file in the
MB-pro templates folder as dash2
.txt => and let MB-pro upload it as test
.html
Uploaded file:
http://leuven.meteobridge.com/leuven28/ ... /test.html
See attached screenshot.
Wim
Re: HTML template with [th0temp-min@D2] ***solved***
Posted: Mon May 16, 2016 6:32 pm
by marco
wvdkuil wrote:
I ran the same file on Meteobridge 2.8 (May 14 2016, build 9888), FW 1.4
Stored your text "input" file in the
MB-pro templates folder as dash2
.txt => and let MB-pro upload it as test
.html
Uploaded file:
http://leuven.meteobridge.com/leuven28/ ... /test.html
See attached screenshot.
Wim
Hi Wim
Thank you so much for your clean test. And for providing me your setup (build Nr. etc.) thats great!
My system was runnning the follwing setup:
Meteobridge 2.8 (Apr 28 2016, build 9814), FW 1.4
after the reboot:
Meteobridge 2.8 (May 16 2016, build 9899), FW 1.4
And now it works prefect!
it was (as allways) my fault, I had never thought to check the SW version without you!
again, thank you. marco