Meteohub plugin for Saratoga AJAX/PHP templates
Moderator: Mattk
- saratogaWX
- Junior Boarder
- Posts: 36
- Joined: Tue Jun 14, 2011 2:39 am
- Location: Saratoga, CA, USA
- Contact:
Meteohub plugin for Saratoga AJAX/PHP templates
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
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
Free Weather website PHP templates and scripts at Saratoga-Weather.org
Re: Meteohub plugin for Saratoga AJAX/PHP templates
Great job, like always.
Jozef
See it in action ? I'm using it.

Jozef
See it in action ? I'm using it.
Re: Meteohub plugin for Saratoga AJAX/PHP templates
thank you ken for doing the integration.
-
- Platinum Boarder
- Posts: 873
- Joined: Fri Jan 25, 2008 6:27 pm
- Location: Isle of Skye, Scotland
Re: Meteohub plugin for Saratoga AJAX/PHP templates
Great work Ken. Thank you. 

- saratogaWX
- Junior Boarder
- Posts: 36
- Joined: Tue Jun 14, 2011 2:39 am
- Location: Saratoga, CA, USA
- Contact:
Re: Meteohub plugin for Saratoga AJAX/PHP templates
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
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
Free Weather website PHP templates and scripts at Saratoga-Weather.org
Re: Meteohub plugin for Saratoga AJAX/PHP templates
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?
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
have now copied all files into the root of the webserver, but still no luck
http://adr.homedns.org:88/

http://adr.homedns.org:88/
Last edited by wfpost on Wed Aug 10, 2011 7:49 pm, edited 1 time in total.
Re: Meteohub plugin for Saratoga AJAX/PHP templates
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
DATE/TIME is current now with the 5 minutes MHtags intervall,
but not with clientraw one minute intervall
and Automatic updates still not working

-
- Platinum Boarder
- Posts: 873
- Joined: Fri Jan 25, 2008 6:27 pm
- Location: Isle of Skye, Scotland
Re: Meteohub plugin for Saratoga AJAX/PHP templates
I wonder if Meteoplug might be supportable?saratogaWX wrote: .. the hobby is all about trying new stuff![]()
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...
- saratogaWX
- Junior Boarder
- Posts: 36
- Joined: Tue Jun 14, 2011 2:39 am
- Location: Saratoga, CA, USA
- Contact:
Re: Meteohub plugin for Saratoga AJAX/PHP templates
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
and at http://adr.homedns.org:88/MH-defs.php?sce=view
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
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]';
Code: Select all
// Customized by gen-MHfiles.php - V1.00 - 08-Aug-2011 on 2011-08-09 03:03 UTC
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
Free Weather website PHP templates and scripts at Saratoga-Weather.org
- saratogaWX
- Junior Boarder
- Posts: 36
- Joined: Tue Jun 14, 2011 2:39 am
- Location: Saratoga, CA, USA
- Contact:
Re: Meteohub plugin for Saratoga AJAX/PHP templates
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 workskyewright wrote:I wonder if Meteoplug might be supportable?saratogaWX wrote: .. the hobby is all about trying new stuff![]()
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...

Free Weather website PHP templates and scripts at Saratoga-Weather.org
Re: Meteohub plugin for Saratoga AJAX/PHP templates
Hi Ken,saratogaWX wrote: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.
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
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
- saratogaWX
- Junior Boarder
- Posts: 36
- Joined: Tue Jun 14, 2011 2:39 am
- Location: Saratoga, CA, USA
- Contact:
Re: Meteohub plugin for Saratoga AJAX/PHP templates
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
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
Free Weather website PHP templates and scripts at Saratoga-Weather.org
Re: Meteohub plugin for Saratoga AJAX/PHP templates
Hi Ken,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.
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
- saratogaWX
- Junior Boarder
- Posts: 36
- Joined: Tue Jun 14, 2011 2:39 am
- Location: Saratoga, CA, USA
- Contact:
Re: Meteohub plugin for Saratoga AJAX/PHP templates
Thanks for finding that issue, Wolfgang!wfpost wrote:Hi Ken,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.
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
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
Free Weather website PHP templates and scripts at Saratoga-Weather.org