Page 1 of 2

WD taglist.txt

Posted: Sat Jan 03, 2009 6:11 am
by jrospopo
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

Re:WD taglist.txt

Posted: Sat Jan 03, 2009 11:31 am
by admin
A "taglist.txt" is not generated by Meteohub. But I am interested in learning, what is WD's taglist about?

Re:WD taglist.txt

Posted: Sat Jan 03, 2009 11:43 am
by skyewright
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).

Re:WD taglist.txt

Posted: Sat Jan 03, 2009 9:14 pm
by jrospopo
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

Re:WD taglist.txt

Posted: Sat Jan 03, 2009 11:52 pm
by skyewright
jrospopo wrote:I guess the question to ask is do I really need the testtag.txt file generated.
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.

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

Posted: Sun Jan 11, 2009 4:47 pm
by gpfoto
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.

Re:WD taglist.txt

Posted: Fri Mar 27, 2009 10:52 pm
by YJB
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

Re:WD taglist.txt

Posted: Sat Feb 06, 2010 9:27 pm
by mghens
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]

Re:WD taglist.txt

Posted: Mon Feb 08, 2010 9:58 am
by nduku
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

Re:WD taglist.txt

Posted: Mon Feb 08, 2010 11:25 am
by skyewright
nduku wrote:I have installed them in http://www.mysite.com/ajaxphp and the clientraw.txt is uploaded in http://www.mysite.com/weather
I also upload clientraw.txt to a sub-folder (which is also where settings.php, etc., are located).

The settting.php path that works for me is:

$SITE['clientrawfile'] = './clientraw.txt'; // relative FILE location of clientraw.txt

Re:WD taglist.txt

Posted: Mon Feb 08, 2010 12:31 pm
by nduku
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

Re:WD taglist.txt

Posted: Mon Feb 08, 2010 12:36 pm
by YJB
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';

Re:WD taglist.txt

Posted: Mon Feb 08, 2010 1:43 pm
by skyewright
nduku wrote:Your configuration means you upload all meteohub files (graphs, .. etc.) into the directory of these ajax/php files, correct?
Yes.
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?
I agree with your analysis of what ../ means.

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).

Re:WD taglist.txt

Posted: Mon Feb 08, 2010 1:45 pm
by nduku
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

Re:WD taglist.txt

Posted: Mon Feb 08, 2010 1:49 pm
by nduku
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