Meteohub plugin for Saratoga AJAX/PHP templates

Moderator: Mattk

User avatar
saratogaWX
Junior Boarder
Junior Boarder
Posts: 36
Joined: Tue Jun 14, 2011 2:39 am
Location: Saratoga, CA, USA
Contact:

Meteohub plugin for Saratoga AJAX/PHP templates

Post 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
Free Weather website PHP templates and scripts at Saratoga-Weather.org
pinto
Junior Boarder
Junior Boarder
Posts: 25
Joined: Thu Apr 14, 2011 7:33 pm
Contact:

Re: Meteohub plugin for Saratoga AJAX/PHP templates

Post by pinto »

Great job, like always. :D

Jozef

See it in action ? I'm using it.
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7854
Joined: Mon Oct 01, 2007 10:51 pm

Re: Meteohub plugin for Saratoga AJAX/PHP templates

Post by admin »

thank you ken for doing the integration.
skyewright
Platinum Boarder
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

Post by skyewright »

Great work Ken. Thank you. :D
User avatar
saratogaWX
Junior Boarder
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

Post 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
Free Weather website PHP templates and scripts at Saratoga-Weather.org
wfpost
Platinum Boarder
Platinum Boarder
Posts: 591
Joined: Thu Jun 12, 2008 2:24 pm
Location: HONSOLGEN
Contact:

Re: Meteohub plugin for Saratoga AJAX/PHP templates

Post 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?
wfpost
Platinum Boarder
Platinum Boarder
Posts: 591
Joined: Thu Jun 12, 2008 2:24 pm
Location: HONSOLGEN
Contact:

Re: Meteohub plugin for Saratoga AJAX/PHP templates

Post by wfpost »

have now copied all files into the root of the webserver, but still no luck :roll:
http://adr.homedns.org:88/
Last edited by wfpost on Wed Aug 10, 2011 7:49 pm, edited 1 time in total.
wfpost
Platinum Boarder
Platinum Boarder
Posts: 591
Joined: Thu Jun 12, 2008 2:24 pm
Location: HONSOLGEN
Contact:

Re: Meteohub plugin for Saratoga AJAX/PHP templates

Post 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 :roll:
skyewright
Platinum Boarder
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

Post 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...
User avatar
saratogaWX
Junior Boarder
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

Post 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
Free Weather website PHP templates and scripts at Saratoga-Weather.org
User avatar
saratogaWX
Junior Boarder
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

Post 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 :?:
Free Weather website PHP templates and scripts at Saratoga-Weather.org
wfpost
Platinum Boarder
Platinum Boarder
Posts: 591
Joined: Thu Jun 12, 2008 2:24 pm
Location: HONSOLGEN
Contact:

Re: Meteohub plugin for Saratoga AJAX/PHP templates

Post by wfpost »

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
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
User avatar
saratogaWX
Junior Boarder
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

Post 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.
Image

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
wfpost
Platinum Boarder
Platinum Boarder
Posts: 591
Joined: Thu Jun 12, 2008 2:24 pm
Location: HONSOLGEN
Contact:

Re: Meteohub plugin for Saratoga AJAX/PHP templates

Post 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
User avatar
saratogaWX
Junior Boarder
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

Post 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
Free Weather website PHP templates and scripts at Saratoga-Weather.org
Post Reply