WD taglist.txt
Moderator: Mattk
WD taglist.txt
Hello,
I have a MeteoHub on order from AmbientWeather and it is scheduled to be delivered this Tuesday. I'm in the process of designing a web site and plan on using php scripts. One script uses the taglist.txt file that WD generates. Does MeteoHub generate this file ? I've looked in the manual but have not seen that file mentioned.
Thanks
Jim
I have a MeteoHub on order from AmbientWeather and it is scheduled to be delivered this Tuesday. I'm in the process of designing a web site and plan on using php scripts. One script uses the taglist.txt file that WD generates. Does MeteoHub generate this file ? I've looked in the manual but have not seen that file mentioned.
Thanks
Jim
Re:WD taglist.txt
A "taglist.txt" is not generated by Meteohub. But I am interested in learning, what is WD's taglist about?
-
- Platinum Boarder
- Posts: 873
- Joined: Fri Jan 25, 2008 6:27 pm
- Location: Isle of Skye, Scotland
Re:WD taglist.txt
taglist.txt is a WD documentation file.
I think that Jim probably means testtag.txt which is a template file that WD populates with data, then publishes as testtags.php.
That file is used with a popular style of php template driven website.
Using Meteohub variables it would probably be possible to provide at least quite a lot of the necessary data but I've not looked in detail.
My own website, uses WD generated versions of the relevant files (with WD being fed by Meteohub, of course).
I think that Jim probably means testtag.txt which is a template file that WD populates with data, then publishes as testtags.php.
That file is used with a popular style of php template driven website.
Using Meteohub variables it would probably be possible to provide at least quite a lot of the necessary data but I've not looked in detail.
My own website, uses WD generated versions of the relevant files (with WD being fed by Meteohub, of course).
Re:WD taglist.txt
Thanks
Yes that is the web site that I want to use the php scripts from. I guess the question to ask is do I really need the testtag.txt file generated. And if I do how hard would it be to do that from the variables that MeteoHub generates. I'll ask at the Saratoga Web site since that is where the scripts are coming from.
I would like to not have to run WD on another computer to have it make the files. The reason I purchased the MeteoHub was to free up a computer.
Jim
Yes that is the web site that I want to use the php scripts from. I guess the question to ask is do I really need the testtag.txt file generated. And if I do how hard would it be to do that from the variables that MeteoHub generates. I'll ask at the Saratoga Web site since that is where the scripts are coming from.
I would like to not have to run WD on another computer to have it make the files. The reason I purchased the MeteoHub was to free up a computer.
Jim
-
- Platinum Boarder
- Posts: 873
- Joined: Fri Jan 25, 2008 6:27 pm
- Location: Isle of Skye, Scotland
Re:WD taglist.txt
Those templates get some of their values from clientraw.txt, which Meteohub can already produce, but to make the templates work fully you'd need a way of producing an equivalent to testtags.php.jrospopo wrote:I guess the question to ask is do I really need the testtag.txt file generated.
Assessing the feasibility of that would require a detailed look through the WD variables used in testtags.txt (from which WD generates testtags.php) and seeing how many can be provided from Meteohub variables.
That's probably more a task for someone with Meteohub familiarity than for Ken at Saratoga Weather?
Re:WD taglist.txt
I use php on my website (www.meteoqueixans.com). You can have MeteoHub upload a taglist (or better "tagfile" ) as I do like:
File example:
<?php
$date = "[actual_date0_day_local]"."/"."[actual_date0_month_local]"."/"."[actual_date0_year_local]";
$time = substr("[actual_date0_time_local]",0,5);
$temp = "[actual_th0_temp_c]";
$maxtemp = "[day1_th0_tempmax_c]";
$maxtempt = substr("[day1_th0_tempmax_time]",8,2).":".substr("[day1_th0_tempmax_time]",10,2);
$mintemp = "[day1_th0_tempmin_c]";
$mintempt = substr("[day1_th0_tempmin_time]",8,2).":".substr("[day1_th0_tempmin_time]",10,2);
$hum = "[actual_th0_hum_rel]";
And then, MeteoHub uploads as data.php (or the name you need):
<?php
$date = "11"."/"."01"."/"."2009";
$time = substr("15:42:01",0,5);
$temp = "5.0";
$maxtemp = "5.0";
$maxtempt = substr("20090111153644",8,2).":".substr("20090111153644",10,2);
$mintemp = "-8.3";
$mintempt = substr("20090111082808",8,2).":".substr("20090111082808",10,2);
$hum = "44";
I read this variable-file on avery page I need to show data.
File example:
<?php
$date = "[actual_date0_day_local]"."/"."[actual_date0_month_local]"."/"."[actual_date0_year_local]";
$time = substr("[actual_date0_time_local]",0,5);
$temp = "[actual_th0_temp_c]";
$maxtemp = "[day1_th0_tempmax_c]";
$maxtempt = substr("[day1_th0_tempmax_time]",8,2).":".substr("[day1_th0_tempmax_time]",10,2);
$mintemp = "[day1_th0_tempmin_c]";
$mintempt = substr("[day1_th0_tempmin_time]",8,2).":".substr("[day1_th0_tempmin_time]",10,2);
$hum = "[actual_th0_hum_rel]";
And then, MeteoHub uploads as data.php (or the name you need):
<?php
$date = "11"."/"."01"."/"."2009";
$time = substr("15:42:01",0,5);
$temp = "5.0";
$maxtemp = "5.0";
$maxtempt = substr("20090111153644",8,2).":".substr("20090111153644",10,2);
$mintemp = "-8.3";
$mintempt = substr("20090111082808",8,2).":".substr("20090111082808",10,2);
$hum = "44";
I read this variable-file on avery page I need to show data.
- YJB
- Platinum Boarder
- Posts: 387
- Joined: Thu Feb 19, 2009 5:53 pm
- Location: Venhuizen, Netherlands
- Contact:
Re:WD taglist.txt
I agree that it would be really nice if meteohub would be able to create the testtag.txt (and consequently the testtags.php file).
I was also looking at the saratoga scripts as an easy way to setup a website, but right now I'm just lacking the right information (probably knowledge I guess) to get it done.
Running WD would be an option, but my webserver is running Solaris on Sparc, and I'm not really looking forward to bring in another box for running WD.
I really would appreciate if Boris could have a look at this, althoug I realize that there are probably many other requests out there. I'm also not sure how feasible/do-able this is anyway.
Thanks
I was also looking at the saratoga scripts as an easy way to setup a website, but right now I'm just lacking the right information (probably knowledge I guess) to get it done.
Running WD would be an option, but my webserver is running Solaris on Sparc, and I'm not really looking forward to bring in another box for running WD.
I really would appreciate if Boris could have a look at this, althoug I realize that there are probably many other requests out there. I'm also not sure how feasible/do-able this is anyway.
Thanks
Re:WD taglist.txt
I know that this is an old topic, but someone may find this useful.
I am in the process of setting up a weather site using http://saratoga-weather.org/ PHP/AJAX tempates with a WMR-200, NSLU2 slug, and meteo hub as the data logger.
I have attached the file that I am using. I am making no guarantees that I have created it properly since it is still a work in progress. Modify to your tastes.
What you do is put it in your meteohub graphs directory as testtags.html. You have meteohub upload it to your weather site as testtags.php.
Hope this helps. [file name=testtags.zip size=3083]http://www.meteohub.de/joomla/images/fb ... sttags.zip[/file]
I am in the process of setting up a weather site using http://saratoga-weather.org/ PHP/AJAX tempates with a WMR-200, NSLU2 slug, and meteo hub as the data logger.
I have attached the file that I am using. I am making no guarantees that I have created it properly since it is still a work in progress. Modify to your tastes.
What you do is put it in your meteohub graphs directory as testtags.html. You have meteohub upload it to your weather site as testtags.php.
Hope this helps. [file name=testtags.zip size=3083]http://www.meteohub.de/joomla/images/fb ... sttags.zip[/file]
- nduku
- Senior Boarder
- Posts: 45
- Joined: Sun Jan 03, 2010 8:07 pm
- Location: Eberfing, Bavaria/Germany
- Contact:
Re:WD taglist.txt
Hi,
I also found the saratoga templates and was playing around with them, but I have some trouble with then.
First issue I have, the clientraw.txt generated by maeteohub is obviously not found by the AJAx/PHP templates.
I have installed them in http://www.mysite.com/ajaxphp and the clientraw.txt is uploaded in http://www.mysite.com/weather
In the settings.php I have the path set to '../weather/clientraw.txt' with no luck. According to the docs this should work.
When I copy the clientraw to http://www.mysite.com/ and set the path to '../clientraw.txt' it works :huh:
When I use the AJAX/HTML templates I can get it work, although the syntax to the clientraw.txt is a bit different, there I can use '/weather/clientraw.txt' (without the dots).
If the AJAX/PHP would work I would really like to use your testtags. :woohoo:
Did you come across the same issue?
Regards,
Axel
I also found the saratoga templates and was playing around with them, but I have some trouble with then.
First issue I have, the clientraw.txt generated by maeteohub is obviously not found by the AJAx/PHP templates.
I have installed them in http://www.mysite.com/ajaxphp and the clientraw.txt is uploaded in http://www.mysite.com/weather
In the settings.php I have the path set to '../weather/clientraw.txt' with no luck. According to the docs this should work.
When I copy the clientraw to http://www.mysite.com/ and set the path to '../clientraw.txt' it works :huh:
When I use the AJAX/HTML templates I can get it work, although the syntax to the clientraw.txt is a bit different, there I can use '/weather/clientraw.txt' (without the dots).
If the AJAX/PHP would work I would really like to use your testtags. :woohoo:
Did you come across the same issue?
Regards,
Axel
-
- Platinum Boarder
- Posts: 873
- Joined: Fri Jan 25, 2008 6:27 pm
- Location: Isle of Skye, Scotland
Re:WD taglist.txt
I also upload clientraw.txt to a sub-folder (which is also where settings.php, etc., are located).nduku wrote:I have installed them in http://www.mysite.com/ajaxphp and the clientraw.txt is uploaded in http://www.mysite.com/weather
The settting.php path that works for me is:
$SITE['clientrawfile'] = './clientraw.txt'; // relative FILE location of clientraw.txt
- nduku
- Senior Boarder
- Posts: 45
- Joined: Sun Jan 03, 2010 8:07 pm
- Location: Eberfing, Bavaria/Germany
- Contact:
Re:WD taglist.txt
Hi,
Jep, you're right that works fine.
Since I have the templates in one folder and clientraw.txt in a different one I thought '../weather/clientraw.txt' should do the trick... but it doesn't.
Your configuration means you upload all meteohub files (graphs, .. etc.) into the directory of these ajax/php files, correct?
I think the two dots should tell the parser "go one directory up" and the /weather/ tells "go into the directory "weather"'. Or do I miss something?
Cheers,
Axel
Jep, you're right that works fine.
Since I have the templates in one folder and clientraw.txt in a different one I thought '../weather/clientraw.txt' should do the trick... but it doesn't.
Your configuration means you upload all meteohub files (graphs, .. etc.) into the directory of these ajax/php files, correct?
I think the two dots should tell the parser "go one directory up" and the /weather/ tells "go into the directory "weather"'. Or do I miss something?
Cheers,
Axel
- YJB
- Platinum Boarder
- Posts: 387
- Joined: Thu Feb 19, 2009 5:53 pm
- Location: Venhuizen, Netherlands
- Contact:
Re:WD taglist.txt
This is what I've got:
My Settings.php (and all the other php files) are stored in
weather
my uploaded files are stored in (to keep things clean):
weather/vars
This is the entry in Settings.php:
$SITE['clientrawfile'] = 'vars/clientraw.txt';
My Settings.php (and all the other php files) are stored in
weather
my uploaded files are stored in (to keep things clean):
weather/vars
This is the entry in Settings.php:
$SITE['clientrawfile'] = 'vars/clientraw.txt';
-
- Platinum Boarder
- Posts: 873
- Joined: Fri Jan 25, 2008 6:27 pm
- Location: Isle of Skye, Scotland
Re:WD taglist.txt
Yes.nduku wrote:Your configuration means you upload all meteohub files (graphs, .. etc.) into the directory of these ajax/php files, correct?
I agree with your analysis of what ../ means.I think the two dots should tell the parser "go one directory up" and the /weather/ tells "go into the directory "weather"'. Or do I miss something?
Maybe it's a matter of 'point of view'?
Since ./clientraw.txt works for me does that imply that the code sees the folder where it already is as a 'root'? If so then by definition it won't be able to go back a level from that 'root' then up a different branch (which is what ../weather would involve).
- nduku
- Senior Boarder
- Posts: 45
- Joined: Sun Jan 03, 2010 8:07 pm
- Location: Eberfing, Bavaria/Germany
- Contact:
Re:WD taglist.txt
That makes sense again... maybe I'll change my file structure. But still, according to the docs I can go a dir up by using '..' and in fact that works, but the next step, go into another dir does not work... strange.
So the combination:
www.mysite.com/ajax (for the website)
www.mysite.com/weather (for the meteohub uploads)
'../weather/clientraw.txt' (settings.php)
does not work, but from your replies it seems that
www.mysite.com/ajax (for the website)
www.mysite.com/ajax/vars (for the meteohub uploads)
'vars/clientraw.txt' (settings.php)
and
www.mysite.com/ajax (for the website)
www.mysite.com/ajax (for the meteohub uploads)
'./clientraw.txt' (settings.php)
do work.
Myself I successfully tried:
www.mysite.com/ajax (for the website)
www.mysite.com/ (for the meteohub uploads)
'../clientraw.txt' (settings.php)
Therefore I can go up one dir, but I cannot change into another one...
Cheers,
Axel
So the combination:
www.mysite.com/ajax (for the website)
www.mysite.com/weather (for the meteohub uploads)
'../weather/clientraw.txt' (settings.php)
does not work, but from your replies it seems that
www.mysite.com/ajax (for the website)
www.mysite.com/ajax/vars (for the meteohub uploads)
'vars/clientraw.txt' (settings.php)
and
www.mysite.com/ajax (for the website)
www.mysite.com/ajax (for the meteohub uploads)
'./clientraw.txt' (settings.php)
do work.
Myself I successfully tried:
www.mysite.com/ajax (for the website)
www.mysite.com/ (for the meteohub uploads)
'../clientraw.txt' (settings.php)
Therefore I can go up one dir, but I cannot change into another one...
Cheers,
Axel
- nduku
- Senior Boarder
- Posts: 45
- Joined: Sun Jan 03, 2010 8:07 pm
- Location: Eberfing, Bavaria/Germany
- Contact:
Re:WD taglist.txt
Update:
I was wrong, for me it's not possible to go one directory up. I just doublechecked, and it doesn't work, even if the documentation says different:
$SITE['clientrawfile'] = './clientraw.txt';
This setting specifies the relative FILE location of the WD clientraw.txt file. If you've installed the template set in a subdirectory, and your clientraw.txt is in the document root directory, use
$SITE['clientrawfile'] = '../clientraw.txt';
Source: http://saratoga-weather.org/template/Se ... config.php
So probably Skyewright is right. It seems that from the templates 'point of view' the installation path is the root.
Cheers,
Axel
I was wrong, for me it's not possible to go one directory up. I just doublechecked, and it doesn't work, even if the documentation says different:
$SITE['clientrawfile'] = './clientraw.txt';
This setting specifies the relative FILE location of the WD clientraw.txt file. If you've installed the template set in a subdirectory, and your clientraw.txt is in the document root directory, use
$SITE['clientrawfile'] = '../clientraw.txt';
Source: http://saratoga-weather.org/template/Se ... config.php
So probably Skyewright is right. It seems that from the templates 'point of view' the installation path is the root.
Cheers,
Axel