Page 1 of 3
Meteohub plugin for Saratoga AJAX/PHP templates
Posted: Tue Aug 09, 2011 11:13 pm
by saratogaWX
My special thanks to Rob Ingham of
RainmanWeather and Ysbrand of
Venhuizen, NL weather for their invaluable assistance in helping create the Meteohub plugin for the template sets.
The MH-plugin is now available at
http://saratoga-weather.org/wxtemplates/
Please let me know if you have issues with the installation/operation either on this forum or on
http://www.wxforum.net/ forum.
Best regards,
Ken
Re: Meteohub plugin for Saratoga AJAX/PHP templates
Posted: Wed Aug 10, 2011 10:13 am
by pinto
Great job, like always.
Jozef
See it in action ? I'm using it.
Re: Meteohub plugin for Saratoga AJAX/PHP templates
Posted: Wed Aug 10, 2011 3:54 pm
by admin
thank you ken for doing the integration.
Re: Meteohub plugin for Saratoga AJAX/PHP templates
Posted: Wed Aug 10, 2011 6:32 pm
by skyewright
Great work Ken. Thank you.

Re: Meteohub plugin for Saratoga AJAX/PHP templates
Posted: Wed Aug 10, 2011 6:33 pm
by saratogaWX
Thanks for trying the Meteohub plugin for the template sets, Jozef and skyewright!
You're very welcome Boris .. I hope the templates with Meteohub will enable more Meteohub users to enjoy the PHP/AJAX/multilingual functionality for their personal weather websites .. the hobby is all about trying new stuff
Best regards,
Ken
Re: Meteohub plugin for Saratoga AJAX/PHP templates
Posted: Wed Aug 10, 2011 6:48 pm
by wfpost
Yep, great to have this multi-language design working with meteohub ...
I´ve tried it on my tiny alix board which has Debian Squeeze and full PHP5 / Apache installed.
http://adr.homedns.org:88/saragota/
Two thinks are not working.
1. Automatic update of the values every 60 seconds
2. Date/Time sticks at
09/08/2011 08:45
Anybody knows what I´m doing wrong?
Re: Meteohub plugin for Saratoga AJAX/PHP templates
Posted: Wed Aug 10, 2011 6:52 pm
by wfpost
have now copied all files into the root of the webserver, but still no luck
http://adr.homedns.org:88/
Re: Meteohub plugin for Saratoga AJAX/PHP templates
Posted: Wed Aug 10, 2011 7:10 pm
by wfpost
okay, I didn´t setup the MHtags.php.
DATE/TIME is current now with the 5 minutes MHtags intervall,
but not with clientraw one minute intervall
and Automatic updates still not working

Re: Meteohub plugin for Saratoga AJAX/PHP templates
Posted: Wed Aug 10, 2011 7:54 pm
by skyewright
saratogaWX wrote:
.. the hobby is all about trying new stuff
I wonder if Meteoplug might be supportable?
Meteoplug offers no clientraw support, but it does have a template mechanism and can also produce csv style output (though data would need to be "pulled", e.g. using a server based crontab entry, since Meteoplug has no equivalent to
Graph Uploads).
Just a crazy thought...
Re: Meteohub plugin for Saratoga AJAX/PHP templates
Posted: Wed Aug 10, 2011 7:56 pm
by saratogaWX
wfpost, I think the issue is that the customized MHtags.html in /graphs and MH-defs.php in the website root are not yet installed.
At
http://adr.homedns.org:88/MHtags.php?sce=dump I see
Code: Select all
$WX['actual_moonset_standard_utc'] = '00:22';
$WX['actual_INSIDE_temp_TUOM'] = '[actual_INSIDE_temp_TUOM]';
$WX['actual_INSIDE_hum_rel'] = '[actual_INSIDE_hum_rel]';
$WX['actual_INSIDE_hum_abs'] = '[actual_INSIDE_hum_abs]';
$WX['actual_INSIDE_dew_TUOM'] = '[actual_INSIDE_dew_TUOM]';
and at
http://adr.homedns.org:88/MH-defs.php?sce=view
Code: Select all
// Customized by gen-MHfiles.php - V1.00 - 08-Aug-2011 on 2011-08-09 03:03 UTC
which indicates the sample MH-defs.php using my English units is still on the website.
To fix, I suggest you use the setup instructions at
http://saratoga-weather.org/wxtemplates ... teohub.php in which your
http://adr.homedns.org:88/MHconfig/ would be used to generate (and you to manually save) the files needed for your station's operation.
Best regards,
Ken
Re: Meteohub plugin for Saratoga AJAX/PHP templates
Posted: Wed Aug 10, 2011 8:00 pm
by saratogaWX
skyewright wrote:saratogaWX wrote:
.. the hobby is all about trying new stuff
I wonder if Meteoplug might be supportable?
Meteoplug offers no clientraw support, but it does have a template mechanism and can also produce csv style output (though data would need to be "pulled", e.g. using a server based crontab entry, since Meteoplug has no equivalent to
Graph Uploads).
Just a crazy thought...
I'm not familiar enough with the Meteoplug to know if it's possible. The basic template architecture needs to have the weather software push data to the website for PHP and optional JavaScript/AJAX processing. If Meteoplug can push stuff via ftp, then it could work

Re: Meteohub plugin for Saratoga AJAX/PHP templates
Posted: Wed Aug 10, 2011 9:48 pm
by wfpost
Hi Ken,
I´ve done that and config looks okay now, but still no automatic updates and time only showing and changing with the 5 minutes MHtags intervall.
Anything else I have done wrong?
Kind regards,
Wolfgang
Re: Meteohub plugin for Saratoga AJAX/PHP templates
Posted: Wed Aug 10, 2011 10:17 pm
by saratogaWX
Hi Wolfgang,
It looks like
http://adr.homedns.org:88/wxstatus.php is showing that you are doing MHtags.php updates regularly now

Both your MHtags.php and MH-defs.php appear to be customized and installed correctly.
The MHtags.php file should be updating at 5 minute intervals.
For AJAX updates, make sure you selected the WD-Live file for 'every minute' updates to clientraw.txt, then the site should update more frequently using the AJAX JavaScript.
You should finish using
http://adr.homedns.org:88/MHconfig/ to create and install the four graphics for your site, then your wxtrends.php and wxgraphs.php pages will be complete.
I've noticed that sometimes it takes a while for Meteohub to finish the generation and FTP uploads for all the entities listed in the Graphs Upload page .. I just give it 10 minutes or so, and it usually works out.
Best regards,
Ken
Re: Meteohub plugin for Saratoga AJAX/PHP templates
Posted: Wed Aug 10, 2011 11:28 pm
by wfpost
saratogaWX wrote:
For AJAX updates, make sure you selected the WD-Live file for 'every minute' updates to clientraw.txt, then the site should update more frequently using the AJAX JavaScript.
Hi Ken,
it didn´t update automatically even if my clientraw files was updated every minute and I found out why.
My station name with WD-Live is empty and therefore my clientraw.txt shows with the time field only the time like
23:17 and not as Stationname-time (
Stationname-23:17 ).
With an empty stationame in clientraw.txt automatic updates won´t work.
Regards,
Wolfgang
Re: Meteohub plugin for Saratoga AJAX/PHP templates
Posted: Thu Aug 11, 2011 4:08 am
by saratogaWX
wfpost wrote:saratogaWX wrote:
For AJAX updates, make sure you selected the WD-Live file for 'every minute' updates to clientraw.txt, then the site should update more frequently using the AJAX JavaScript.
Hi Ken,
it didn´t update automatically even if my clientraw files was updated every minute and I found out why.
My station name with WD-Live is empty and therefore my clientraw.txt shows with the time field only the time like
23:17 and not as Stationname-time (
Stationname-23:17 ).
With an empty stationame in clientraw.txt automatic updates won´t work.
Regards,
Wolfgang
Thanks for finding that issue, Wolfgang!
I've updated the Meteohub setup for the WD / MH Live instructions to include a station name (and omit using a dash (-) in the name as it will cause malfunction of the AJAX script if used).
Best regards,
Ken