HTML template with [th0temp-min@D2] ***solved***

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

Moderator: Mattk

Post Reply
marco
Senior Boarder
Senior Boarder
Posts: 42
Joined: Wed Apr 11, 2012 11:04 am

HTML template with [th0temp-min@D2] ***solved***

Post 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?? :shock:

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!
Attachments
mb-pro-15-05-2016.png
mb-pro-15-05-2016.png (33.22 KiB) Viewed 4085 times
Last edited by marco on Mon May 16, 2016 6:33 pm, edited 1 time in total.
marco
Senior Boarder
Senior Boarder
Posts: 42
Joined: Wed Apr 11, 2012 11:04 am

Re: HTML template with [th0temp-min@D2]

Post 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!
Attachments
description.png
description.png (7.52 KiB) Viewed 4050 times
User avatar
wvdkuil
Platinum Boarder
Platinum Boarder
Posts: 606
Joined: Sun Jul 24, 2011 8:00 pm
Location: Belgium
Contact:

Re: HTML template with [th0temp-min@D2]

Post 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
marco
Senior Boarder
Senior Boarder
Posts: 42
Joined: Wed Apr 11, 2012 11:04 am

Re: HTML template with [th0temp-min@D2]

Post 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:--]&deg;C</td><!--variable -->
          <td>[th0temp-dmax.1:--]&deg;C</td><!--variable -->
          <td>[th0temp-dmin.1:--]&deg;C</td><!--variable -->
		  		<td>[th0temp-max@D2.1:--]&deg;C</td><!--variable -->
		  		<td>[th0temp-min@D2.1:--]&deg;C</td><!--variable -->
		  		<td>[th0temp-max@D7.1:--] &deg;C</td><!--variable -->
		  		<td>[th0temp-min@D7.1:--]&deg;C</td><!--variable -->
			</tr>
    </tbody>
  </table>
</body>
<html>
User avatar
wvdkuil
Platinum Boarder
Platinum Boarder
Posts: 606
Joined: Sun Jul 24, 2011 8:00 pm
Location: Belgium
Contact:

Re: HTML template with [th0temp-min@D2]

Post 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
Attachments
mb-test.jpg
mb-test.jpg (207.5 KiB) Viewed 4025 times
marco
Senior Boarder
Senior Boarder
Posts: 42
Joined: Wed Apr 11, 2012 11:04 am

Re: HTML template with [th0temp-min@D2] ***solved***

Post 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
Post Reply