I have the template uploaded to my website and I have some of the variables that are showing up and some that are showing NaN and I dont know what seems to be the problem. Can someone please take a look it and point me in the right direction. My website is http://www.kclloyd.net
Thanks
Kevin
Saratoga Template Issues **solved**
Moderator: Mattk
Re: Saratoga Template Issues
@moderator This post should be moved from Hardware => Vantage to the correct thread, probably Meteobridge => Discussion
Can you please do that?
1. There are two files which should be uploaded by Meteobridge to your website
You have to correctly set those uploads at the "Push services tab" in your meteobridge device.
1. The file with all available tags using FTP
template url = gen-MBtags.php
upload as MBtags.php
You can inspect your file using your ftp program or by this link in your browser http://www.kclloyd.net/MBtags.php?sce=view
If you inspect the file you you detect that it is still the old file form the download dated date|2013-03-17|// local date:|:
2. The realtime file using http, you have to carefully follow the instructions in the download.
This is the resulting file on your webserver. http://www.kclloyd.net/MBrealtime.txt The first part of that file readsThe first part of an old test-file of mine
Your file contains extra ___ characters which are introduced in the input file for Meteobridge. You can see that in the [wind0wind-__act=bft.0] part which should read [wind0wind-act=bft.0].
Meteobridge translates that file as long as it are valid tags, all other information is left as is.
=== So where do these NAN texts come from?
Step 1: The template uses MBtags.php to fill ALL fields on your page. As an example the temperature field: When the start page http://www.kclloyd.net/ is sent to your browser the contents of the temperature fields is for the very first moment:
The temperature is correctly set from the last MBtags.php (from 2013-03-17) where the temp is
You can check that yourself by using Chrome => right click => choose "view source".
Step 2: The realtime update process uses MBrealtime.txt to update the page with the realtime values. Immidiatly after the page is received by your browser the ajax script ajaxMBwx.js reads the realtime file MBrealtime.txt and tries to make something from it. As that file is nearly unreadable it substitues a lot of NAN for the missing values.
=== Solution for the NAN texts
Read the documentation from Saratoga again http://saratoga-weather.org/wxtemplates ... bridge.php
Check the realtime-source file on your webserver and replace with a new one if those dreaded ___ characters are in the file there
http://www.kclloyd.net/MBrealtime-template.txt I do not see them from here, so probable OK
Re-insert the string in the Meteobridge Push services tab. This is the tricky part. Use a decent program editor like notepad++ (http://notepad-plus-plus.org/). Do not use msWord or even the notepad program from Windows. Copy the whole line as ONE string and paste it in the Meteobridge => Push Serrvices => HTTP => URL field.
Press save.
Go to the Meteobridge => live data tab and check if the HTTP upload still has a green V. Wait until you are sure a fresh upload is done and check the resulting MBrealtime.txt if the ___ are gone.
=== Check normal FTP upload
After your realtime file is OK you have to check the upload of the normal tags file. Most of the times the FTP path is set wrong. So either the file is not send or is placed in another folder on your webserver.
Succes, Wim
Can you please do that?
=== Background informationkclloyd21 wrote:I have the template uploaded to my website and I have some of the variables that are showing up and some that are showing NaN and I dont know what seems to be the problem. Can someone please take a look it and point me in the right direction. My website is http://www.kclloyd.net
Thanks
Kevin
1. There are two files which should be uploaded by Meteobridge to your website
You have to correctly set those uploads at the "Push services tab" in your meteobridge device.
1. The file with all available tags using FTP
template url = gen-MBtags.php
upload as MBtags.php
You can inspect your file using your ftp program or by this link in your browser http://www.kclloyd.net/MBtags.php?sce=view
If you inspect the file you you detect that it is still the old file form the download dated date|2013-03-17|// local date:|:
2. The realtime file using http, you have to carefully follow the instructions in the download.
This is the resulting file on your webserver. http://www.kclloyd.net/MBrealtime.txt The first part of that file reads
Code: Select all
06/04/2015 01:35:21 __11.7 97 11.2 2.7 __3.3 185.0 0.0 0.0 __1012.6 S [wind0wind-__act=bft.0] m
Code: Select all
17/03/2013 09:15:48 5.8 86 3.6 0.4 0.4 200.0 0.0 0.0 997.4 SSW 0 m/s C hPa mm -- -0.1 0.2 0.2
Meteobridge translates that file as long as it are valid tags, all other information is left as is.
=== So where do these NAN texts come from?
Step 1: The template uses MBtags.php to fill ALL fields on your page. As an example the temperature field: When the start page http://www.kclloyd.net/ is sent to your browser the contents of the temperature fields is for the very first moment:
Code: Select all
<span class="ajax" id="ajaxthermometer"><img src="thermometer.php?t=66.6" alt="Currently: 66.6, Max: 66.6, Min: 40.6"
title="Currently: 66.6, Max: 66.6, Min: 40.6" height="170" width="54" /> </span>
</td><td class="data1" style="text-align: center;border: none" valign="middle"> <span class="ajax" id="ajaxtemp" style="font-size:20px">
66.6°F </span>
Code: Select all
th0temp-act|66.6|// outdoor temperature most recent:|:
Step 2: The realtime update process uses MBrealtime.txt to update the page with the realtime values. Immidiatly after the page is received by your browser the ajax script ajaxMBwx.js reads the realtime file MBrealtime.txt and tries to make something from it. As that file is nearly unreadable it substitues a lot of NAN for the missing values.
=== Solution for the NAN texts
Read the documentation from Saratoga again http://saratoga-weather.org/wxtemplates ... bridge.php
Check the realtime-source file on your webserver and replace with a new one if those dreaded ___ characters are in the file there
http://www.kclloyd.net/MBrealtime-template.txt I do not see them from here, so probable OK
Re-insert the string in the Meteobridge Push services tab. This is the tricky part. Use a decent program editor like notepad++ (http://notepad-plus-plus.org/). Do not use msWord or even the notepad program from Windows. Copy the whole line as ONE string and paste it in the Meteobridge => Push Serrvices => HTTP => URL field.
Press save.
Go to the Meteobridge => live data tab and check if the HTTP upload still has a green V. Wait until you are sure a fresh upload is done and check the resulting MBrealtime.txt if the ___ are gone.
=== Check normal FTP upload
After your realtime file is OK you have to check the upload of the normal tags file. Most of the times the FTP path is set wrong. So either the file is not send or is placed in another folder on your webserver.
Succes, Wim
Re: Saratoga Template Issues
That did the trick! Thank you for the help!