Trixology

WeatherCat => WeatherCat Web Templates => Topic started by: tigers on April 14, 2012, 02:48:50 AM

Title: Ajaxeline AJAX and PHP template. Beta release available.
Post by: tigers on April 14, 2012, 02:48:50 AM
Here's an initial beta (alpha?) release. This template uses PHP, so your server must support that.

Highlights:
-Realtime data updated from WC without a page refresh
-Forecast, weather alerts, and radar via Weather Underground
-HTML5 and CSS3 valid
-"Easy-ish" theming

You can see the template in action here: http://wx.atkinsfamily.org
Download from here: http://atkinsfamily.org/weather-templates/

How to use:

1. Open config.php and edit the settings there. The API key for Weather Underground is required for all the forecast and radar info, but it is free for up to 500 requests/day. So unless you're planning on refreshing your page every 3 minutes or have a high traffic site, this should be fine.
2. Open submit_weather.php and edit the username and password to something of your liking.
2. Upload all the files exactly as-is to your webserver.
3. Put wctags.php into your WeatherCat template directory and set it to upload to your webserver root directory. Note this is the only file that weathercat needs to process.
4. Open WeatherCat preferences and set your custom cgi path and user/pass that you entered into the submit_weather.php file above. See screenshot below.

That's it for the initial setup. If you want to change around the theme, go to http://jqueryui.com/themeroller/ and set the colors, fonts, etc. to your liking then click the download button. Extract the downloaded zip and look in the css/custom-theme folder. You should see a file in there called jquery-ui-1.8.18.custom.css (or something similar) and a folder called images. Rename the .css file to style.sss and upload it to your sever into the folder "css". Also upload the images folder into the "css"
 folder on the server. Refresh your page and you should see your changes. DO NOT DELETE the ajaxeline.css file that's present in your server's "css" folder.

There's still work to be done on this, primarily international support but I wanted to get it out there and see what issues arise. I hope you enjoy the template.

Title: Thanks Tigers!! (Re: Ajaxeline AJAX and PHP template. )
Post by: elagache on April 14, 2012, 03:09:52 AM
Hi Todd (aka Tigers!)

I'm mired in my own bugs (http://www.canebas.org/Weather/LWC_forum/Custom_emoticons/angry_spider.gif) so I'm not ready to play with this yet.

However, I certainly do appreciate your efforts!!  [bounce]

Thanks for putting this together!! (http://www.canebas.org/Weather/LWC_forum/Custom_emoticons/thankyou.gif)

Hopefully, I'll get a chance to play with it reasonably soon!!

Cheers, Edouard  [cheers1]
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: Steve on April 14, 2012, 04:14:06 AM
This looks great, Todd! A little late tonight, but I'll download this and fiddle with it tomorrow. I'm eager to see how I can integrate this into my other web pages.

Thanks for your work on this!
Steve
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: HairyMcLeary on April 14, 2012, 06:47:18 AM
Looking Good,

The wctags.php doesn't update as it doesn't have the WC web tags in it, but completed data... your data.

You didn't download this file from your web server rather than the web files folder  on your Mac that WC updates?  ;)

The live data updates properly, albeit in Imperial, due to the issue described above.

Tony
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: tigers on April 14, 2012, 11:31:29 AM
Heh, yeah you got me. Here's the correct file. This should correct the units for you as well.

I've also updated the zip download as well.
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: Administrator on April 14, 2012, 12:20:14 PM
Thank you Todd, I've made this topic a sticky.
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: HairyMcLeary on April 14, 2012, 01:52:15 PM
Heh, yeah you got me. Here's the correct file. This should correct the units for you as well.

I've also updated the zip download as well.

I had he web page working before I downloaded the correct wctags.php, albeit with stale data, but once the new file was parsed and uploaded the webpage will no longer load. I have looked at the uploaded wctags.php on my web server and all of the information appears to be there except the ISO date format in the first line.

Tony
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: tigers on April 15, 2012, 02:28:42 AM
Heh, yeah you got me. Here's the correct file. This should correct the units for you as well.

I've also updated the zip download as well.

I had he web page working before I downloaded the correct wctags.php, albeit with stale data, but once the new file was parsed and uploaded the webpage will no longer load. I have looked at the uploaded wctags.php on my web server and all of the information appears to be there except the ISO date format in the first line.

Tony

Interesting. Can you post a link to your page so I can take a look?
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: xtommo on April 15, 2012, 05:05:36 AM
what do you use to seperate the username from passoword, the red box covers the symbol, is it a comma?

is there a more in depth instruction on how to get this working? i habe never done anything like this but i think this is the best looking template out there.

currently i am using you previous template running on my mac as a server...
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: WCDev on April 15, 2012, 10:18:38 AM
Check the 'Send Time As Local' tick-box in the custom CGI preferences. WeatherCat can send the time as either UTC or local, what's needed depends on the script.

For general info regarding the Custom CGI, check out the manual (page 85 in the current manual) - the username and password have to match what you've put in the script.

Cheers,
Stu.
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: HairyMcLeary on April 15, 2012, 11:37:02 AM
Heh, yeah you got me. Here's the correct file. This should correct the units for you as well.

I've also updated the zip download as well.

I had he web page working before I downloaded the correct wctags.php, albeit with stale data, but once the new file was parsed and uploaded the webpage will no longer load. I have looked at the uploaded wctags.php on my web server and all of the information appears to be there except the ISO date format in the first line.

Tony

Interesting. Can you post a link to your page so I can take a look?

Here it is:
www.oamaruweather.net.nz/test.php (http://www.oamaruweather.net.nz/test.php)

Just put of interest I uploaded your original wctags with your stale data in it, the site worked again [interesting]
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: jace on April 15, 2012, 11:59:28 AM

Here it is:
www.oamaruweather.net.nz/test.php (http://www.oamaruweather.net.nz/test.php)

Just put of interest I uploaded your original wctags with your stale data in it, the site worked again [interesting]

Being nosey I tried your link to the test page, nothing loading at all.

JC
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: HairyMcLeary on April 15, 2012, 12:35:59 PM
PROBLEM FIXED!

I have a Journal of several hundred entries and this was being uploaded even though it had been commented out in the wctag.php. I deleted the line which mentioned the journal and the page sprung to life.

May I suggest replacing the tag with the COUNTEDJOURNT$nnnn$ tag, nnnn= the number of journal entries you want shown, 5 should do it.

Tony
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: tigers on April 15, 2012, 06:22:35 PM
PROBLEM FIXED!

I have a Journal of several hundred entries and this was being uploaded even though it had been commented out in the wctag.php. I deleted the line which mentioned the journal and the page sprung to life.

May I suggest replacing the tag with the COUNTEDJOURNT$nnnn$ tag, nnnn= the number of journal entries you want shown, 5 should do it.

Tony

Interesting. I suspect it's not escaping some characters or something somewhere along the line and thus blowing up the template. I'm going to remove the journal tag for now since there's no accommodations in the template to display journal entries.
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: tigers on April 15, 2012, 06:33:30 PM
what do you use to seperate the username from passoword, the red box covers the symbol, is it a comma?

is there a more in depth instruction on how to get this working? i habe never done anything like this but i think this is the best looking template out there.

currently i am using you previous template running on my mac as a server...

The delimeter is an & like so:
ID=XXIDXX&PASSWORD=XXPWXX
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: tigers on April 15, 2012, 06:34:25 PM
I've updated the template to remove the journal tags from wctags.php and to add in the footer.php that was missing from the initial release zip file.

http://atkinsfamily.org/weather-templates/
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: Steve on April 15, 2012, 11:20:03 PM
How to use:

1. Open config.php and edit the settings there. The API key for Weather Underground is required for all the forecast and radar info, but it is free for up to 500 requests/day.

OK, this is beginning to look like I'm a complete computer newb, when in fact I've been fiddling with them for more than 30 years...

The link in the config.php script takes me to a WU documentation page that tells me a bunch of stuff I don't understand about getting an API key. Where do I get one? How do I know what choices I need to make on that huge list of options? There's a "Key Settings page, but you have to be a developer to access that. Do I actually have to apply to be a developer to be able to use the new template? This stuff is baffling me! (http://www.morrisgarage.com/misc/stuff/scratch_head.gif)
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: tigers on April 15, 2012, 11:57:12 PM
How to use:

1. Open config.php and edit the settings there. The API key for Weather Underground is required for all the forecast and radar info, but it is free for up to 500 requests/day.

OK, this is beginning to look like I'm a complete computer newb, when in fact I've been fiddling with them for more than 30 years...

The link in the config.php script takes me to a WU documentation page that tells me a bunch of stuff I don't understand about getting an API key. Where do I get one? How do I know what choices I need to make on that huge list of options? There's a "Key Settings page, but you have to be a developer to access that. Do I actually have to apply to be a developer to be able to use the new template? This stuff is baffling me! (http://www.morrisgarage.com/misc/stuff/scratch_head.gif)

Yeah, perhaps that wasn't the best link to include. Just go here http://www.wunderground.com/weather/api/ and signup for the key then just copy that key into the config.php. You can quite safely ignore all that other stuff unless you want to hack on the template!
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: Steve on April 16, 2012, 01:02:05 AM
OK, I've got that taken care of. Thanks, Todd

I may have shot myself in the foot with the rest of it, though. To keep these files separate from my main web site, I uploaded all the files to a subfolder at www.avon-weather.com/live, and that's where I pointed the CGI as well. But WeatherCat's FTP uploads the files to www.avon-weather.com. So I'm not populating the wctags.php file in the "live" subfolder. I can manually drag it there to see what the page looks like.

Any way to point the stuff in the "live" folder to the wctags.pho file in the root folder?

Thanks for your help,
Steve
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: tigers on April 16, 2012, 01:52:54 AM
OK, I've got that taken care of. Thanks, Todd

I may have shot myself in the foot with the rest of it, though. To keep these files separate from my main web site, I uploaded all the files to a subfolder at www.avon-weather.com/live, and that's where I pointed the CGI as well. But WeatherCat's FTP uploads the files to www.avon-weather.com. So I'm not populating the wctags.php file in the "live" subfolder. I can manually drag it there to see what the page looks like.

Any way to point the stuff in the "live" folder to the wctags.pho file in the root folder?

Thanks for your help,
Steve

Yeah, you can create symlink and it should work.

Login to a command prompt on your server via ssh or telnet and go into your /live folder and issue the following command:

Code: [Select]
ln -s ../wctags.php wctags.php

This assumes that the /live folder is a folder underneath your webroot folder where WC is uploading the wctags.php

Also, it looks like your missing all the other php files as well. Make sure you upload all the files onto your server (into the /live folder in your case) and just have WC process the wctags.php. Once you add the symlink everything should start working.
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: xtommo on April 16, 2012, 02:48:43 AM
Thanks
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: Steve on April 16, 2012, 02:53:23 AM
Yeah, you can create symlink and it should work.

Login to a command prompt on your server via ssh or telnet and go into your /live folder and issue the following command:

Code: [Select]
ln -s ../wctags.php wctags.php

This assumes that the /live folder is a folder underneath your webroot folder where WC is uploading the wctags.php

Also, it looks like your missing all the other php files as well. Make sure you upload all the files onto your server (into the /live folder in your case) and just have WC process the wctags.php. Once you add the symlink everything should start working.

Thanks Todd,

All the files are where they are supposed to be in the /live folder.

(https://img.skitch.com/20120416-qyft9sm33ucfbqr9jj7p2a3q45.jpg)

As far as creating a symlink, I'm again over my head. I vaguely remember using Telnet on a teletype over a shared mainframe back in the early '70s, but that's all hazy to me now. I downloaded ZOC6, a telnet application, but I can't figure out how to connect to my server, which is a shared hosting company.

I guess I'll just move all the files from the /live folder to the root folder.

Thanks!
Steve
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: tigers on April 16, 2012, 03:06:41 AM
It's pretty easy. Open up a terminal prompt on your mac, then type

Code: [Select]
ssh -l yourloginnameforyourserver yourservername.com.

Hopefully that should present you with a password prompt where you can type in your password and you'll then be at a command line for your server.

Also, who's your hosting company? It looks like your server's configuration will require another extra step or two that (I hope) is a little unique to them.
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: Steve on April 16, 2012, 04:22:08 AM
"Connection Refused" I tried several combinations, with and without www, using my primary domain name or subdomains. No joy.

My provider is HostDime.com I have a shared hosting account with a main domain (morrisgarage.com) and several subdomains, of which Avon-weather.com is one. So while www.avon-weather.com gets directly to my web pages, the path is www.morrisgarage.com/public_html/avon-weather.com/

Thanks
Steve
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: xtommo on April 16, 2012, 08:11:03 AM
edit: i got most of it working but i cant figure out how to get the reading into metric???

also the colophon page has a few errors which i cant figure out

my page is
http://tommo.web44.net/


another issue i am having and i dont know if this is an issue is in the Custom CGI preferances tab in WeatherCar the current status always says Error - Unexpected response from server. is this normal?



any help would be much appreciated

thanks
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: tigers on April 16, 2012, 01:01:08 PM
edit: i got most of it working but i cant figure out how to get the reading into metric???

also the colophon page has a few errors which i cant figure out

my page is
http://tommo.web44.net/


another issue i am having and i dont know if this is an issue is in the Custom CGI preferances tab in WeatherCar the current status always says Error - Unexpected response from server. is this normal?



any help would be much appreciated

thanks

I've got to head out to work so I don't have any time right now, but it does look like you're missing the about.php file. I've attached it here so just unzip and upload it to your site and it should correct those errors.

As for the "Unexepected response...", that shouldn't be happening. It looks like the real-time data is not uploading to your site just yet. And the metric units should be appearing in your page since that setting is read from wctags.php. It'll be tonight (morning for you!) before I can look into those errors.

Thanks for testing this out for me. Hopefully as the process comes along, things will get easier.
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: tigers on April 16, 2012, 01:03:01 PM
"Connection Refused" I tried several combinations, with and without www, using my primary domain name or subdomains. No joy.

My provider is HostDime.com I have a shared hosting account with a main domain (morrisgarage.com) and several subdomains, of which Avon-weather.com is one. So while www.avon-weather.com gets directly to my web pages, the path is www.morrisgarage.com/public_html/avon-weather.com/

Thanks
Steve

Eh...looks like hostdime charges extra for ssh access. https://desk.hostdime.com/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=47

I'll look into this some more tonight. Hostdime is also blocking the requests for the forecast data from wunderground. I'll look into this some more tonight and see if there are any solutions.
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: Steve on April 16, 2012, 02:19:28 PM
No need to worry about it on my account, Todd. I've got a perfectly good working web page now (thanks to your previous templates. :) )

I was mostly interested in the prettied up portion of the live current conditions. After I got the pages up and working, I was going to try to dissect them like I did with the wxi templates and incorporate parts into my existing site. Right now I'm using the bare bones raw data sample for live current conditions, and was going to use the modified ajaxeline template to replace that. I can do that by moving the files to the root directory easily enough and then removing what I don't need.

http://www.avon-weather.com/test_php/watch_weather.php

So don't take up your time trying to get my particular circumstances working.

Thanks,
Steve
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: HairyMcLeary on April 16, 2012, 04:39:59 PM
Thanks for the work you have put into this.

I've managed to get it working ok. There were a few issues with metric, it needed a file to be manually tweaked to get the live data to display in Metric, and WU forecast wouldn't show in metric either. I found a typo in the forecast.php - if ($UNITS == "C") - i took out one of the "=" and the forecast popped up in metric.
I'm not sure i will stick with WU forecast as they are useless down here and they don't have radar maps.

I might play around with some of the colours next.

Thanks again for the great work.

Tony
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: Steve on April 16, 2012, 06:42:22 PM
I'm good to go now. I contacted HostDime and they replied with the following and fixed it. No more errors from the server!

Quote
You were receiving the errors on your page because we have allow_url_fopen disabled by default. We have placed a copy of the server's php.ini file within your /home/smorris/public_html/avon-weather.com/ directory and enabled this feature

Steve

[EDIT} I was so intent on getting this to work, that I completely ignored the content. Date of update on the main page (http://www.avon-weather.com/live.php) is from three days ago before I downloaded the template, and data displayed is wrong. But the Short Term Status shows some correct and some wrong (or old) data. For instance, today the wind was at a peak of 41 mph, which shows correctly for week but wrong for today. And I've disabled the CGI feed as it shows errors every time.

I think I need to delete everything and start over. ;)
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: Steve on April 16, 2012, 11:15:05 PM
Bingo! I deleted everything and started over, and found what I did wrong the first time.

In the instructions it says
Quote
2. Open submit_weather.php and edit the username and password to something of your liking
And that's exactly what I did. I replaced the words ID and PASSWORD with my own ID and password. But that's not what you are opposed to do. You are supposed to replace the really obvious REPLACEME shown twice with your ID and password.

The problems encountered with this template occurred entirely between the seat and the keyboard...

Sorry for all the trouble and thanks for working through it with me, Todd. I sure wouldn't have figured out the HostDime part without you.

Current version is at http://www.avon-weather.com/live.php  Of cours y'all know me; it won't look like this for long! :D

Thanks a lot!
Steve

[EDIT] Except I used my Wunderground daily allotment up in 42 minutes. I guess this isn't meant to be updated every five seconds like my live raw data was!
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: tigers on April 17, 2012, 01:02:58 AM
Cool, I'm glad you got it working, and no don't update the WU stuff every 5 seconds or you see what happens. You get 500 requests/day from WU without paying up for their api access.

If you're going to theme it, take a look at http://jqueryui.com/themeroller/ and you can customize your the css from there and then upload the resultants css files and images to your server (see my first post in this thread). You can also try out some of the canned themes as well. Just replace the link in index.php that looks like

Code: [Select]
<link rel="stylesheet" type="text/css" href="./css/ajaxeline.css">

with a line that looks like

Code: [Select]
http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.17/themes/start/jquery-ui.css

And you'll see quite a different looking site. To see the pre-made therems, just go to the themeroller link above and click the "Gallery" tab. Replace the "start" portion of the link above to anything of your liking. E.g. ui-lightness, mint-choc, etc.

Also, seems as if you have a Wind Advisory until 10 PM.

Bingo! I deleted everything and started over, and found what I did wrong the first time.

In the instructions it says
Quote
2. Open submit_weather.php and edit the username and password to something of your liking
And that's exactly what I did. I replaced the words ID and PASSWORD with my own ID and password. But that's not what you are opposed to do. You are supposed to replace the really obvious REPLACEME shown twice with your ID and password.

The problems encountered with this template occurred entirely between the seat and the keyboard...

Sorry for all the trouble and thanks for working through it with me, Todd. I sure wouldn't have figured out the HostDime part without you.

Current version is at http://www.avon-weather.com/live.php  Of cours y'all know me; it won't look like this for long! :D

Thanks a lot!
Steve

[EDIT] Except I used my Wunderground daily allotment up in 42 minutes. I guess this isn't meant to be updated every five seconds like my live raw data was!
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: xtommo on April 17, 2012, 01:04:04 AM
i've uploaded the about.php file and that has fixed that problem.
i also used HairyMcLeary's tip of removing one of the = in the forecast.php file and now WU forecast shows up in celsius.

but live data is still not metric. data seems to update as the update time on the page changes every 60 seconds (which i have set in the custom cgi tab) but i still get the error in the custom cgi tab. i am using 000webhost so could it be a problem on their side or mine.

i had a look in the curdata.xml file and it is not metric in there...

thanks


edit: i got most of it working but i cant figure out how to get the reading into metric???

also the colophon page has a few errors which i cant figure out

my page is
http://tommo.web44.net/


another issue i am having and i dont know if this is an issue is in the Custom CGI preferances tab in WeatherCar the current status always says Error - Unexpected response from server. is this normal?



any help would be much appreciated

thanks

I've got to head out to work so I don't have any time right now, but it does look like you're missing the about.php file. I've attached it here so just unzip and upload it to your site and it should correct those errors.

As for the "Unexepected response...", that shouldn't be happening. It looks like the real-time data is not uploading to your site just yet. And the metric units should be appearing in your page since that setting is read from wctags.php. It'll be tonight (morning for you!) before I can look into those errors.

Thanks for testing this out for me. Hopefully as the process comes along, things will get easier.
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: tigers on April 17, 2012, 01:05:02 AM
Thanks for the work you have put into this.

I've managed to get it working ok. There were a few issues with metric, it needed a file to be manually tweaked to get the live data to display in Metric, and WU forecast wouldn't show in metric either. I found a typo in the forecast.php - if ($UNITS == "C") - i took out one of the "=" and the forecast popped up in metric.
I'm not sure i will stick with WU forecast as they are useless down here and they don't have radar maps.

I might play around with some of the colours next.

Thanks again for the great work.

Tony

Yeah, you definitely found a bug there. I'll get it fixed.
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: xtommo on April 17, 2012, 01:46:40 AM
the wctags.php file is being uploaded to the web server root directory, same as all the other files.
i would really love to get metric working as imperial means nothing to me.

what i also love about this template is that it looks great on all devices, my browser, ipad and iphone which means i will only need the one site.
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: tigers on April 17, 2012, 01:54:29 AM
Ok, I'm on it. Looks like there's a problem getting the variable from wctags.php to the javascript. I'll post and update when I've got this fixed.

the wctags.php file is being uploaded to the web server root directory, same as all the other files.
i would really love to get metric working as imperial means nothing to me.

what i also love about this template is that it looks great on all devices, my browser, ipad and iphone which means i will only need the one site.
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: xtommo on April 17, 2012, 02:04:45 AM
thanks heaps

i appreciate the work and help you've given.

Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: tigers on April 17, 2012, 02:23:06 AM
Try this latest download. I *think* this fixes the issues with metric/imperial units.

http://atkinsfamily.org/weather-templates/

thanks heaps

i appreciate the work and help you've given.
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: xtommo on April 17, 2012, 03:26:53 AM
looks like the WCTAGS.php file is your processed one so can you send the the unprocessed one.

is the template already configured for metric or will i have to make any changes.

now with the updated one, even my WU forecast is imperial and i managed to get it to metric before...
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: xtommo on April 17, 2012, 03:31:18 AM
i actually put the old wctags.php in and now i have metric!!! yey
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: tigers on April 17, 2012, 04:36:25 AM
i actually put the old wctags.php in and now i have metric!!! yey

Yeah I grabbed the post processed wctags.php again. If others have this issue, just use the wctags.php posted earlier in this thread.

One of these days I'll quit grabbing the wrong one.
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: xtommo on April 17, 2012, 07:28:17 AM
thanks for all your help, the site is working nicely but i still cant explain why the CGI tab in WeatherCat continually reports the "Unexpected Response from Server"
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: Steve on April 18, 2012, 06:12:42 PM
Todd,

Is there an easy way to make the template only poll WU once every five minutes, no matter what I have the CGI set at? I'd like the current conditions from WeatherCat be true up to the second information, while the forecast, maps, and alerts from WU don't need updated so often.

Or vise versa, having the CGI setting control WU every five minutes, but have WeatherCat's "additional files" under Custom Web update the wctags more frequently?

Just wondering and experimenting.
Thanks,
Steve
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: tigers on April 18, 2012, 07:01:30 PM
Not sure I quite follow.

The template doesn't poll wunderground continuously--it only updates when one manually refreshes the page (or that's the idea anyway). If I've got some weird code in there that's autorefreshing wunderground, I'd love to know so I can take it out!

As for the realtime data, look in wcfunctions.php and look for the line

Code: [Select]
setInterval(getData, 2500);

Note the 2500 in there is the refresh time for the ajax data in milliseconds. So the above tells the getData function to run every 2.5 seconds. You can change that around to suit your needs. 10 seconds = 10000, 1 minute = 60000, etc.

Todd,

Is there an easy way to make the template only poll WU once every five minutes, no matter what I have the CGI set at? I'd like the current conditions from WeatherCat be true up to the second information, while the forecast, maps, and alerts from WU don't need updated so often.

Or vise versa, having the CGI setting control WU every five minutes, but have WeatherCat's "additional files" under Custom Web update the wctags more frequently?

Just wondering and experimenting.
Thanks,
Steve
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: Steve on April 18, 2012, 07:43:18 PM
OK, maybe I didn't write what I meant. ;)

I still have the Custom CGI set to update every 5 seconds so that I have near real-time current conditions from WeatherCat to the web site. Because of this, I quickly use up the 500 Weather Underground requests per day.

What I was asking, was is there a way to *not* request updates from WU every 5 seconds.

The second part of my question, was that if there isn't a way to do what I'm asking above, then I will set the Custom CGI to 3 minutes (480 requests a day.) If I do that, can I send the wxtags every few seconds via the "additional files" section of the Custom Web tag.

If neither of the above, then I'll just set the Custom CGI at 3 minutes and not have the real-time current conditions.

Hopefully that makes more sense.

Thanks,
Steve
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: tigers on April 18, 2012, 08:44:42 PM
Yeah, I'm still not following. Send me a link again to your pages and let me see how you have it setup. The wunderground stuff gets updated ONLY on a manual page refresh and is not affected by the cgi settings in WC.


OK, maybe I didn't write what I meant. ;)

I still have the Custom CGI set to update every 5 seconds so that I have near real-time current conditions from WeatherCat to the web site. Because of this, I quickly use up the 500 Weather Underground requests per day.

What I was asking, was is there a way to *not* request updates from WU every 5 seconds.

The second part of my question, was that if there isn't a way to do what I'm asking above, then I will set the Custom CGI to 3 minutes (480 requests a day.) If I do that, can I send the wxtags every few seconds via the "additional files" section of the Custom Web tag.

If neither of the above, then I'll just set the Custom CGI at 3 minutes and not have the real-time current conditions.

Hopefully that makes more sense.

Thanks,
Steve
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: Steve on April 18, 2012, 10:33:42 PM
The wunderground stuff gets updated ONLY on a manual page refresh and is not affected by the cgi settings in WC.

Oh! I've had it running two days and received email from WU twice that I've exceeded my allotted 500, and used on of the "raindrops", which seem to be free passes for one day's over use. I've got one magic bean, err, raindrop left.

The test of ajaxeline is at http://www.avon-weather.com/live.php

(https://img.skitch.com/20120418-m45sdx5wbtduwqjxgpk3kgf5u3.jpg)


(https://img.skitch.com/20120418-8kjrexuxwxa6xemifp295qbgpb.jpg)


(https://img.skitch.com/20120418-pnyng2me1rbn57xdh6ruutwwuj.jpg)

Those are all the settings.
I changed the "about.php" by changing my iMac for your Mini, but that doesn't change anything.
I changed the name index.php to live.php in order to avoid confusion with my own home page.
I changed the header.php to make the site name a link back to my home page.

(https://img.skitch.com/20120418-gunr5j4pgxnqhcnqjie3sm2k1h.jpg)

And on the index.php (my live.php) file, I added the following below the footer. This is my own disclaimer and the script for GoSquared analytics.

Code: [Select]
</div> <!-- End Footer !-->

<BR>
<BR>

<I>avon-weather.com is privately owned and operated, and is not affiliated with the City of Avon, Ohio, or any business or governmental entity.This data is provided as a hobby from a personal weather station, and while regularly <A HREF="http://weather.gladstonefamily.net/site/D8454" TARGET="_blank" onMouseOver="status='MADIS'; return true;" onMouseOut="status=''; return true;">verified for accuracy</A>, you should not base important decisions on this or any weather information obtained from the Internet. For the most current and accurate weather information for your area tune to your local TV or Radio Stations or your official <B><A HREF="http://www.weather.gov/" TARGET="_blank">National Weather Service</A></B> forecast.

<!--- End Discalimer --->


<BR><BR>

<div style="text-align: center;">copyright 2011-2012, avon-weather.com &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A title ="Email" HREF="mailto:admin@avon-weather.com">Email <img border="0" alt="" src="images/email.gif" width="16" height="16"/></A> | <a title="Mobile" href="/ipwx_Cam.html">Mobile <img border="0" alt="" src="images/mobile.gif" width="16" height="16" /></a> | <a href="http://twitter.com/avonweather" title="Twitter" target="_blank">Twitter <img border="0" alt="" src="images/twitter.png" width="16" height="16" /></a> | <a href="http://www.facebook.com/avonweather" title="Facebook" target="_blank">Facebook <img border="0" alt="" src="images/facebook-icon.png" width="16" height="16" /></a><BR>
<BR>
External Links: This site contains links to other sites. avon-weather.com is not responsible for the content of such web sites.<BR>
</div>

<script type="text/javascript">
    var GoSquared={};
    GoSquared.acct = "GSN-940458-Y";
    (function(w){
        function gs(){
            w._gstc_lt=+(new Date); var d=document;
            var g = d.createElement("script"); g.type = "text/javascript"; g.async = true; g.src = "//d1l6p2sc9645hc.cloudfront.net/tracker.js";
            var s = d.getElementsByTagName("script")[0]; s.parentNode.insertBefore(g, s);
        }
        w.addEventListener?w.addEventListener("load",gs,false):w.attachEvent("onload",gs);
    })(window);
</script>

I can't see how anything that I've done would trigger a call to WU so frequently. I'm only showing 115 hits on my whole site this week, so it has to be something I'm doing.

Thanks for any help, Todd. I know just enough about some of this stuff to get myself in trouble. Again...
Thanks
Steve

Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: tigers on April 18, 2012, 10:45:28 PM
Yeah I don't see anything there that would cause those wunderground refreshes. I'll look some more tonight and see what I come up with. For what it's worth, I've not hit the max at all on my site.  If you go to http://www.wunderground.com/weather/api/ there's a dashboard where you can see you're usage. It's possible that the radar gif is generating a hit for each frame but the api is not well documented just yet to be sure. Try opening up radar.php and changing the

Code: [Select]
num=10

to say 5 and see if that helps. It'll make your radar animation a little "chunkier" but in theory it's 1/2 the size of the current radar request.
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: Steve on April 18, 2012, 11:57:07 PM
Arrrg! What an idiot! (Again...)

It probably would help if I'd read the reason I'd gotten the email a little better. I exceeded my rate as noted. But it wasn't the daily rate but the queries per minute. Max is 10 and having the setting at 5 seconds, I was hitting it 12 times every minute. I just changed it to 6.1 seconds and I should be golden.

Again, sorry for leading you astray trying to chase down something that I wasn't describing properly.  [banghead] Thanks for the link, as that's what set me straight.
Steve
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: HairyMcLeary on April 19, 2012, 12:18:14 AM
I've also received an email from WU stating I have exceeded my daily paid for usage.
Not sure how that was achieved, I'm not even using their radar as they don't have one for here down-under. That was 2 days ago and haven't received  a notice since.

I have discovered one little issue when running in metric, the pressure readings in both the long and short term stats are showing in ' " ' rather than mb, (which I've changed to hPa  ;) ), I manually adjusted them in various daily, weekly etc files and now show the correct units. All other measurements showed the correct metric units and "Today's" readings show the correct pressure units.

I've has some very positive comments about the web template, keep up the good work  [rockon]

Tony
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: tigers on April 19, 2012, 12:33:12 AM
I've also received an email from WU stating I have exceeded my daily paid for usage.
Not sure how that was achieved, I'm not even using their radar as they don't have one for here down-under. That was 2 days ago and haven't received  a notice since.

I have discovered one little issue when running in metric, the pressure readings in both the long and short term stats are showing in ' " ' rather than mb, (which I've changed to hPa  ;) ), I manually adjusted them in various daily, weekly etc files and now show the correct units. All other measurements showed the correct metric units and "Today's" readings show the correct pressure units.

I've has some very positive comments about the web template, keep up the good work  [rockon]

Tony

Glad you like it. I'll get those units fixed for the next release. I've got a bead on a way to perhaps reduce the requests to WU, but I don't know if it's going to work or not.

Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: tigers on April 19, 2012, 12:38:56 AM

I have discovered one little issue when running in metric, the pressure readings in both the long and short term stats are showing in ' " ' rather than mb, (which I've changed to hPa  ;) ), I manually adjusted them in various daily, weekly etc files and now show the correct units. All other measurements showed the correct metric units and "Today's" readings show the correct pressure units.


Tony

Oh, and unfortunately we don't see fit to use metric around here...
So perhaps a silly questions, is "hPa" preferred over "mbar" for the units on pressure?
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: xtommo on April 19, 2012, 12:47:11 AM
hey tigers
a question about the below

is the data updated according to the interval you mention below or is updated according to what the customer cgi setting is in weathercat?
what is the difference between the two?

i have wctags.php file process and uploaded every hour as its not really real time stats and it reduces the amount of ftp traffic but i am not sure how the CGI update affects everything.

Not sure I quite follow.

The template doesn't poll wunderground continuously--it only updates when one manually refreshes the page (or that's the idea anyway). If I've got some weird code in there that's autorefreshing wunderground, I'd love to know so I can take it out!

As for the realtime data, look in wcfunctions.php and look for the line

Code: [Select]
setInterval(getData, 2500);

Note the 2500 in there is the refresh time for the ajax data in milliseconds. So the above tells the getData function to run every 2.5 seconds. You can change that around to suit your needs. 10 seconds = 10000, 1 minute = 60000, etc.

Todd,

Is there an easy way to make the template only poll WU once every five minutes, no matter what I have the CGI set at? I'd like the current conditions from WeatherCat be true up to the second information, while the forecast, maps, and alerts from WU don't need updated so often.

Or vise versa, having the CGI setting control WU every five minutes, but have WeatherCat's "additional files" under Custom Web update the wctags more frequently?

Just wondering and experimenting.
Thanks,
Steve
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: tigers on April 19, 2012, 01:24:55 AM
The CGI setting in WC ultimately controls the timing of the real-time stats. All my function does is specify how often the data is read from the file generated by WC cgi. For example, I have my CGI settings set to update every 5 seconds, but I query the file on the server every 2.5 seconds.

hey tigers
a question about the below

is the data updated according to the interval you mention below or is updated according to what the customer cgi setting is in weathercat?
what is the difference between the two?

i have wctags.php file process and uploaded every hour as its not really real time stats and it reduces the amount of ftp traffic but i am not sure how the CGI update affects everything.

Not sure I quite follow.

The template doesn't poll wunderground continuously--it only updates when one manually refreshes the page (or that's the idea anyway). If I've got some weird code in there that's autorefreshing wunderground, I'd love to know so I can take it out!

As for the realtime data, look in wcfunctions.php and look for the line

Code: [Select]
setInterval(getData, 2500);

Note the 2500 in there is the refresh time for the ajax data in milliseconds. So the above tells the getData function to run every 2.5 seconds. You can change that around to suit your needs. 10 seconds = 10000, 1 minute = 60000, etc.

Todd,

Is there an easy way to make the template only poll WU once every five minutes, no matter what I have the CGI set at? I'd like the current conditions from WeatherCat be true up to the second information, while the forecast, maps, and alerts from WU don't need updated so often.

Or vise versa, having the CGI setting control WU every five minutes, but have WeatherCat's "additional files" under Custom Web update the wctags more frequently?

Just wondering and experimenting.
Thanks,
Steve
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: HairyMcLeary on April 19, 2012, 02:37:21 AM
Oh, and unfortunately we don't see fit to use metric around here...
So perhaps a silly questions, is "hPa" preferred over "mbar" for the units on pressure?

We only use hPa down here, I know some countries use kPa and others still use mbar . Not much help I'm sorry.
Even before New Zealand went metric in the 70's we used mbar rather than inches.

On another subject, I seem to be missing the about.php used for the "Colophon" tab

Tony
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: tigers on April 19, 2012, 02:41:58 AM
Ok, thanks for the info. I attached about.php here for you.

Oh, and unfortunately we don't see fit to use metric around here...
So perhaps a silly questions, is "hPa" preferred over "mbar" for the units on pressure?

We only use hPa down here, I know some countries use kPa and others still use mbar . Not much help I'm sorry.
Even before New Zealand went metric in the 70's we used mbar rather than inches.

On another subject, I seem to be missing the about.php used for the "Colophon" tab

Tony
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: Tornado Tim on April 19, 2012, 02:54:30 AM
First of all, fantastic work on this template!

However on a web development prospective, there are a few problems:

If Javascript is turned off the page doesnt "fallback" nicely, this is mainly because Javascript is handling the DOM manipulation and Page segmentation.

Google Search Ranking and pages: It seems there is only 1 page that will be indexed due to all the data being put on one page and being segmented by JS only, Googlebot doesnt use javascript to render page it simply reads html.

The problem with this is there will be no other pages for googlebot to refine a persons search specifically (as you have multiple data sets on one page), which will eventually mean that google will start to drop your sites ranking.

I am not saying this for people to avoid using the template, just take into consideration what will happen if or when you do use this web template.

Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: xtommo on April 19, 2012, 04:01:04 AM
hPa is the way to go in my opinion. At least that's what I'm used to.

Thanks again for the awesome template.

Once the little bugs already mentioned are ironed out it will be a fairly straight forward template to set up which is a great for people like me who are not that good with coding.



I have discovered one little issue when running in metric, the pressure readings in both the long and short term stats are showing in ' " ' rather than mb, (which I've changed to hPa  ;) ), I manually adjusted them in various daily, weekly etc files and now show the correct units. All other measurements showed the correct metric units and "Today's" readings show the correct pressure units.


Tony

Oh, and unfortunately we don't see fit to use metric around here...
So perhaps a silly questions, is "hPa" preferred over "mbar" for the units on pressure?
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: xtommo on April 19, 2012, 11:21:52 PM
Is it possible to replace the radar from a different source as I just realized that the WU radar shows up on the page but it never has any rain on it...
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: tigers on April 20, 2012, 01:31:38 AM
Is it possible to replace the radar from a different source as I just realized that the WU radar shows up on the page but it never has any rain on it...

The answer is....maybe. Technically, it's no problem. The issue is whether or not the provider will let you show it on your site.

Who's the preferred source for radar in your area?
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: xtommo on April 20, 2012, 07:14:58 AM
The two best providers would be the

Bureau of Meteorology
www.bom.gov.au

or
Weatherzone
www.weatherzone.com.au



Is it possible to replace the radar from a different source as I just realized that the WU radar shows up on the page but it never has any rain on it...

The answer is....maybe. Technically, it's no problem. The issue is whether or not the provider will let you show it on your site.

Who's the preferred source for radar in your area?
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: tigers on April 23, 2012, 02:09:35 AM
I looked over both those sites, and it looks like they charge for access to their data. Interesting in the case of the government site since the theory is that the taxpayers are already paying for it...

Anyway, you can of course "hotlink" to the radar image from either of those sites, but I suspect they will frown on that. Open up radar.php and replace the line that says

Code: [Select]
<?php echo "<img alt=\"Weather Radar\" class=\"radar\" src=\"http://api.wunderground.com/api/" $WUND_KEY"/animatedradar/q/" $LOCATION ".gif?newmaps=1&amp;timelabel=1&amp;timelabel.y=10&amp;num=10&amp;delay=50&amp;width=900&amp;height=480\" />" ?>

with

Code: [Select]
<img alt="Weather Radar" class="radar" src="http://LINKTOTHERADARIMAGE.COM">

The two best providers would be the

Bureau of Meteorology
www.bom.gov.au

or
Weatherzone
www.weatherzone.com.au



Is it possible to replace the radar from a different source as I just realized that the WU radar shows up on the page but it never has any rain on it...

The answer is....maybe. Technically, it's no problem. The issue is whether or not the provider will let you show it on your site.

Who's the preferred source for radar in your area?
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: tigers on April 26, 2012, 02:31:01 AM
I've updated the template a little bit. Hopefully this corrects all the issues with switching units and it also adds an iphone optimized page. I'm going to let this bake a little while and if all seems OK, I'll post up a link later this weekend. Have a look and let me know if you see any problems.

http://wx.atkinsfamily.org

and iphone: http://wx.atkinsfamily.org/m.php

Changes:
-Added a way to more easily switch among the available themes. See http://jqueryui.com/themeroller/ and click the gallery tab on the left to see the default available themes.
-Fixed (I hope) the metric/imperial settings
-Added iphone optimized page. This autoredirects so I'd be interested to hear the results from those who run android since I don't have a way to test that. If you've seen my ipwx template, this will look pretty familiar.
-Misc. style updates.
-Switched to microsoft cdn for the jquery, jqueryui, and styles libraries. If this proves too slow, I'll switch back to google. Of course you can always download all these libraries and host them yourself.
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: xtommo on April 26, 2012, 08:46:54 AM
hey, thanks for the info.
i had a play with it and decided to remove the radar all together and just add a link from the page to the radar page.

i like your new updated page, looks good. cant wait to try it out.


edit: i am now hosting my page on
http://tommo.homeip.net
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: wurzelmac on April 26, 2012, 06:20:49 PM
Hi tigers,
I like the iPhone template - is it possible to add a webcam button?
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: elagache on April 26, 2012, 11:40:19 PM
Hi Todd (aka Tigers, )

I like the iPhone template - is it possible to add a webcam button?

When you have a little free time (assuming ever!  ;D) I would second the motion on this one.  It is really neat to get a quick view of the sky at home while on the go.

Cheers, Edouard  [cheers1]
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: tigers on April 27, 2012, 01:17:53 AM
Yeah, no problem. I added an image link to the mobile page. I don't use webcams myself so I'll probably be asking for help on those functions as this progresses.
Title: You are missin' out on the "fun" (Re: Ajaxeline AJAX and PHP template.)
Post by: elagache on April 27, 2012, 03:20:02 AM
Hi Todd (aka Tigers),

Yeah, no problem. I added an image link to the mobile page.

Thanks, it is "habit forming" . . . . .  ;D

I don't use webcams myself so I'll probably be asking for help on those functions as this progresses.

 ;) Now wait a minute, that's not fair.  You've gotta get one like the rest of us.  If you don't have those hassles too  [banghead] - that's cheatin'!!   [lol2]

Cheers, Edouard  [cheers1]
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: xtommo on April 30, 2012, 11:18:00 PM
hi tigers
ive noticed that on my page all wind readings, ie Wind Speed, Wind Gust and the 10min Wind Average readings are always the same... is that something that i've done wrong or is the site not displaying them correctly?

another problem ive found is that the heat index and wind chill are always displaying N/A

http://tommo.homeip.net/
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: WCDev on May 01, 2012, 12:10:21 AM
Hi Tommo,
Interesting, might be a CustomCGI issue - how does the data on your page compare to the data displayed in the Live Data View within WeatherCat?

Cheers,
Stu.
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: tigers on May 01, 2012, 12:52:11 AM
I've noticed that as well but they do differ from time to time.

(https://img.skitch.com/20120501-fbefry6s6wkwxq34pxirwhtr6n.preview.jpg) (https://skitch.com/tcatkins99/8s6s9/http-wx.atkinsfamily.org)Click for large view (https://skitch.com/tcatkins99/8s6s9/http-wx.atkinsfamily.org) - Uploaded with Skitch (http://skitch.com)

As for the Heat Index and Wind Chill, those values will read N/A unless certain thresholds are met:

-Heat Index: Temp=>80F and Humidity => 40%
-Wind Chill Temp<=50F and 10 Minute Wind => 5mph

Note that the above values are in imperial but the logic and calculations are done prior to converting the final output to metric units.

The formulas I'm using are:

Code: [Select]
// Calculate the Heat Index. See http://en.wikipedia.org/wiki/Heat_index
function heatindex (t,r)
{
    var t2=Math.pow(t, 2);
var rh2=Math.pow(r, 2);
    return -42.379 + 2.04901523*t + 10.14333127*r - 0.22475541*t*r - 6.83783e-03*t2 - 5.481717e-02*rh2 + 1.22874e-03*t2*r + 8.5282e-04*t*rh2 - 1.99e-06*t2*rh2;
}

// Calculate the Wind Chill. See http://en.wikipedia.org/wiki/Wind_chill
function windchill (t,w)
{
    return 35.74 + 0.6215*t - 35.75*Math.pow(w,0.16) + 0.4275*t*Math.pow(w,0.16);
}


Eventually I'd like to add some logic so that that those boxes can be combined into a single box.

hi tigers
ive noticed that on my page all wind readings, ie Wind Speed, Wind Gust and the 10min Wind Average readings are always the same... is that something that i've done wrong or is the site not displaying them correctly?

another problem ive found is that the heat index and wind chill are always displaying N/A

http://tommo.homeip.net/
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: tigers on May 01, 2012, 02:17:30 AM
I've uploaded a new version of the template. Hopefully got the metric/imperial bugs fixed. Also made it a little easier to choose your desired theme. Download here: http://atkinsfamily.org/weather-templates/  and you can see the template in action here: http://wx.atkinsfamily.org/

There's also a new iPhone optimized page. If you visit your site on an iPhone (but not iPad), it'll auto redirect you to m.php which is very similar to my previous ipwx template. This page behaves as a "web app" so you can add it to your home screen and it'll get put in there with a nice little icon and everything.

I've also added a drop down box at the top of my page so you can switch the themes and see how the different ones look. Once you find one you like, just edit config.php per the instructions on my page and you'll be good to go.

Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: HairyMcLeary on May 01, 2012, 04:24:29 AM
I've noticed that as well but they do differ from time to time.

(https://img.skitch.com/20120501-fbefry6s6wkwxq34pxirwhtr6n.preview.jpg) (https://skitch.com/tcatkins99/8s6s9/http-wx.atkinsfamily.org)Click for large view (https://skitch.com/tcatkins99/8s6s9/http-wx.atkinsfamily.org) - Uploaded with Skitch (http://skitch.com)

As for the Heat Index and Wind Chill, those values will read N/A unless certain thresholds are met:

-Heat Index: Temp=>80F and Humidity => 40%
-Wind Chill Temp<=50F and 10 Minute Wind => 5mph

Note that the above values are in imperial but the logic and calculations are done prior to converting the final output to metric units.

Eventually I'd like to add some logic so that that those boxes can be combined into a single box.



I've noticed my various wind readings are nearly always the same, but they do vary from the to time.

I had the windchill working yesterday for the first time - 2.7 C  I kind of wish it wasn't, made it feel that little bit colder ;-)

Tony
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: xtommo on May 01, 2012, 06:18:53 AM
the readings differ from the Live Data view
i have attached a screen capture showing both at the same time.

i cant figure out how they can be all the same readings, when they do differ its only for a few seconds and then they all match up again.

i have installed the latest version and its still the same.

ps. l love how easy you've made it to change the theme. thats awesome
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: WCDev on May 01, 2012, 05:10:40 PM
Interesting, thanks for the screenshot. There may be some latency between what you're seeing in the Live Data View and what's on your web-page depending on the rate you have set in the custom CGI pane of the preferences.

The raw data output on mine here: http://live.trixology.com/watch_weather.php looks fine, but just to be sure, I've raised it as a bug so the code will get looked at.

Cheers,
Stu.
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: xtommo on May 02, 2012, 01:29:28 AM
i believe i have found one of the problems

in the wcfunctions.php file

line 251 - twindgust10 =  (MtoK(wcwindgust)).toFixed(1) + ' kph';

**************************^^^^^^****** should read wcwindgust10

this now shows the correct 10 min wind gust reading...


however WeatherCat is still doing some funny things with readings... or maybe my weather station

im pretty sure its my lacrosse ws2355 weatherstation though

my windspeed and windgust readings are usually pretty much the same they will differ for a half a minute and then match up again same with the windgust averages.

i think that my weather station doesnt update weather cat often enough which will throw the averages out but i dont know if its the weather station that calculates gusts or weather cat itself.

 

Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: tigers on May 04, 2012, 02:47:41 AM
Thanks for finding that. I've got it fixed in 0.61 which is now available from my site. Also fixed a formatting issue on the iPhone page.

http://atkinsfamily.org/weather-templates
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: homerc on May 07, 2012, 12:42:03 AM
I do not understan what the following instruction means:

3. Put wctags.php into your WeatherCat template directory and set it to upload to your webserver root directory. Note this is the only file that weathercat needs to process.

does this mean to move the wctags.php to the WeatherCat Web templats directory in the WeatherCat directory or leave it on the webserver?? [banghead]
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: HairyMcLeary on May 07, 2012, 02:11:28 AM
You place the wctags.php in the Weathercat template directory as set in: Weathercat => Preferences => On-Line => Custom Web  and what ever folder you have set as your HTML Source

Tony
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: batr3a on May 14, 2012, 09:23:25 PM
I have read thread and am trying to implement the following:

3. Put wctags.php into your WeatherCat template directory and set it to upload to your webserver root directory. Note this is the only file that weathercat needs to process.

How do I process and upload wctags.php when I am using Custom Web for another directory.

Any ideas - I may have missed something.

My Ajaxline 0.61 is at http://www.thetaggarts.net/weather2/ (http://www.thetaggarts.net/weather2/) and my Custom Web is at http://www.thetaggarts.net/weather/ (http://www.thetaggarts.net/weather/)

Thanks
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: HairyMcLeary on May 14, 2012, 11:10:59 PM
This was discussed in an earlier post which i have quoted here:



I may have shot myself in the foot with the rest of it, though. To keep these files separate from my main web site, I uploaded all the files to a subfolder at www.avon-weather.com/live, and that's where I pointed the CGI as well. But WeatherCat's FTP uploads the files to www.avon-weather.com. So I'm not populating the wctags.php file in the "live" subfolder. I can manually drag it there to see what the page looks like.

Any way to point the stuff in the "live" folder to the wctags.pho file in the root folder?

Thanks for your help,
Steve

Yeah, you can create symlink and it should work.

Login to a command prompt on your server via ssh or telnet and go into your /live folder and issue the following command:

Code: [Select]
ln -s ../wctags.php wctags.php

This assumes that the /live folder is a folder underneath your webroot folder where WC is uploading the wctags.php


Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: Steve on May 15, 2012, 01:18:42 AM
I just ended up putting it in with my regular weather page upload, and renamed index.php to live.php So my AJAXaline link is www.avon-weather.com/live.php
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: tigers on May 15, 2012, 02:45:26 AM
I just ended up putting it in with my regular weather page upload, and renamed index.php to live.php So my AJAXaline link is www.avon-weather.com/live.php

This is probably the best way. Somebody really ought to start a wiki... heheh
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: xtommo on May 24, 2012, 04:55:10 PM
hello again
ive been making some mods to personalise the iphone version of the template "m.php" but need a little help with one thing.

i want to add some stats, daily, monthly etc but i am having trouble with getting the format right.

i've added a stats tab/slider thing but when i add the stat tags they dont display properly as in all the data just merges together and is unreadable.

what class or formatting do i need to use to be able to add the stat tags and make them display as in the wctags.php file??

also i sit possible to add the weather underground forecast into the mobile page? icing on the cake ;o)

thanks
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: tigers on May 28, 2012, 02:16:31 AM
hello again
ive been making some mods to personalise the iphone version of the template "m.php" but need a little help with one thing.

i want to add some stats, daily, monthly etc but i am having trouble with getting the format right.

i've added a stats tab/slider thing but when i add the stat tags they dont display properly as in all the data just merges together and is unreadable.

what class or formatting do i need to use to be able to add the stat tags and make them display as in the wctags.php file??

also i sit possible to add the weather underground forecast into the mobile page? icing on the cake ;o)

thanks

These need to be added the desired stat tags into wctags.php then use a php echo in m.php.

So for example, if you want the max all-time windspeed, you'd add this to wctags.php (i.e. the template file that's in your WC templates directory):

So wctags.php before being processed would have a line like this:
Code: [Select]
$ATMAXWT="STAT$WINDSPEED:MAX:ALLTIME:TIME$";

which will look like this post-processing:
Code: [Select]
$ATMAXWT="34";
[\code]

What this does is set the php variable $ATMAXWT to equal 34. So to include that in m.php, you'd add

[code]
<?php Echo $ATMAXW;?>

This just tells php to print (echo) the variable.

Hope that helps.
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: xtommo on May 29, 2012, 12:08:06 PM
thanks tigers

but the problem i am having is with the formatting of how it displays.

here is an example

the coding i used is



     <div class id="stats">
               <div class="toolbar">
                    <a href="#" class="back">back</a>
                    <h1><!-- Will be filled in --></h1>
                </div>
                  <?php Echo $STYEAROVERYEAR;?>
               
                  <div class="info"><?php include("footer.php"); ?></div>
            </div>



how can i get it to display properly?
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: WCDev on May 29, 2012, 05:06:58 PM
The $STYEAROVERYEAR tag outputs pre-formatted text so you'll need to use <PRE> and </PRE> tags - i.e.
<PRE>$STYEAROVERYEAR</PRE>

This also applies to other stats tags that output tabled data (i.e STMONTHLY$, STDAILY$ etc).
 
Hope this helps,
Stu.
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: tigers on May 30, 2012, 12:29:53 AM
thanks tigers

but the problem i am having is with the formatting of how it displays.

here is an example

the coding i used is



     <div class id="stats">
               <div class="toolbar">
                    <a href="#" class="back">back</a>
                    <h1><!-- Will be filled in --></h1>
                </div>
                  <?php Echo $STYEAROVERYEAR;?>
               
                  <div class="info"><?php include("footer.php"); ?></div>
            </div>



how can i get it to display properly?

Stu's right, a <pre> tag wrapping the stat should do it. However I'm not 100% certain even that will work on this template. The issue is that the output of that tag is quite wide and I *think* the template script will truncate it. Never hurts to try tho!
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: xtommo on May 30, 2012, 02:59:28 AM
thanks guys
the <pre> tag works a charm and the stats display correctly and you just scroll to the right to see all data. the only problem is that the template header remains the same size and doesnt extend the width of the stat data but thats just a cosmetic issue.

Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: WCDev on May 30, 2012, 05:11:30 PM
Good to know you got it going - thanks for the update.
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: batr3a on June 06, 2012, 02:36:43 PM
I believe the animated radar using the wunderground API code is no longer working as you folks who are using this feature in their template will notice. Here is the error I get:

invalidimage   29   2012-06-06   2   6   /api/MY API/animatedradar/q/43.6950,-70.9000.gif?newmaps=1&timelabel=1&timelabel.y=10&num=10&delay=50&width=900&height=480

Any ideas on how we can correct the code?

Thanks,

Bryant
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: Steve on June 06, 2012, 03:04:43 PM
I don't see an error message on Safari, but I'm not getting the radar image to load, either. Thanks for the note, as I don't always look at each page.

Steve
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: batr3a on June 06, 2012, 03:17:03 PM
Steve and others,

If you want to see your API errors, go to http://www.wunderground.com/weather/api/ (http://www.wunderground.com/weather/api/)

Cheers,
Bryant

P.S. - After 12 hours is appears to have cleared itself. Must have been a Wunderground SNAFU.
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: nowait on June 14, 2012, 03:11:25 AM
I getting a strange error after my attempt at setting up the templates.  Is it messing up the template with my subdomain redirect?

I get the following when I try hitting my test folder : http://test.nowaitweather.com (nowaitweather.com/test)...

Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /home/content/n/o/w/nowait/html/test/alerts.php on line 3

Warning: file_get_contents(http://api.wunderground.com/api/MyAPIKey/geolookup/alerts/lang:EN/q/68123.json) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /home/content/n/o/w/nowait/html/test/alerts.php on line 3

Fatal error: Call to undefined function: json_decode() in /home/content/n/o/w/nowait/html/test/alerts.php on line 4
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: tigers on June 15, 2012, 03:08:56 AM
I getting a strange error after my attempt at setting up the templates.  Is it messing up the template with my subdomain redirect?

I get the following when I try hitting my test folder : http://test.nowaitweather.com (nowaitweather.com/test)...

Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /home/content/n/o/w/nowait/html/test/alerts.php on line 3

Warning: file_get_contents(http://api.wunderground.com/api/MyAPIKey/geolookup/alerts/lang:EN/q/68123.json) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /home/content/n/o/w/nowait/html/test/alerts.php on line 3

Fatal error: Call to undefined function: json_decode() in /home/content/n/o/w/nowait/html/test/alerts.php on line 4

Yeah, that's due to a configuration setting by your hosting company. Please replace your alerts.php with the file I've attached here and see if it works. If so, I'll roll this into the main template.

Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: nowait on June 15, 2012, 12:21:58 PM
I uploaded the new alerts.php file and now I see a bunch more of the data (as text) that is being sent by weather cat but at the bottom I get the black graphic with this message instead:

L$


Fatal error: Call to undefined function: json_decode() in /home/content/n/o/w/nowait/html/test/alerts.php on line 15

my test page is http://test.nowaitweather.com

I can't hardly wait to get this working!  Thanks for your help.
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: tigers on June 16, 2012, 02:14:31 AM
I uploaded the new alerts.php file and now I see a bunch more of the data (as text) that is being sent by weather cat but at the bottom I get the black graphic with this message instead:

L$


Fatal error: Call to undefined function: json_decode() in /home/content/n/o/w/nowait/html/test/alerts.php on line 15

my test page is http://test.nowaitweather.com

I can't hardly wait to get this working!  Thanks for your help.

Hmmm. Looks like your PHP install doesn't have the json_decode() function installed. Can you upload this file to your server and post either a link or a screenshot of its output? Also, who's your hosting company?

There's workarounds for it but I'd like to see what your server is capable of before I get to modifying things too extensively.

Also, what happens if you open header.php and delete the line that says

Code: [Select]
<?php include("alerts.php");?>

This will remove the WX alert function from the template. If that lets the rest of the template work, then that's at least a start.

Thanks.
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: nowait on June 16, 2012, 02:31:41 AM
My web host is GoDaddy Linux hosting.

http://test.nowaitweather.com

I have put the phpinfo.php file in place for you -: http://test.nowaitweather.com/phpinfo.php

Taking the alert line out of the header.php file produces most of the first screen but still with errors and A lot of data (text) that starts at the top of the page and at the bottom the weather page is shown...

Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /home/content/n/o/w/nowait/html/test/forecast.php on line 2

Warning: file_get_contents(http://api.wunderground.com/api/7524fdd0a96bd397/geolookup/forecast/lang:EN/q/68123.json) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /home/content/n/o/w/nowait/html/test/forecast.php on line 2

Fatal error: Call to undefined function: json_decode() in /home/content/n/o/w/nowait/html/test/forecast.php on line 3
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: tigers on June 16, 2012, 02:37:53 AM
My web host is GoDaddy Linux hosting.

http://test.nowaitweather.com

I have put the phpinfo.php file in place for you -: http://test.nowaitweather.com/phpinfo.php

Taking the alert line out of the header.php file produces most of the first screen but still with errors and A lot of data (text) that starts at the top of the page and at the bottom the weather page is shown...

Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /home/content/n/o/w/nowait/html/test/forecast.php on line 2

Warning: file_get_contents(http://api.wunderground.com/api/7524fdd0a96bd397/geolookup/forecast/lang:EN/q/68123.json) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /home/content/n/o/w/nowait/html/test/forecast.php on line 2

Fatal error: Call to undefined function: json_decode() in /home/content/n/o/w/nowait/html/test/forecast.php on line 3

Oh boy. You've got PHP4 there but the template needs PHP5. Looks like it may be possible to upgrade to PHP5 though. Take a look at http://support.godaddy.com/help/article/3937/viewing-or-changing-your-php-language-version and see if you can update your PHP to 5. PHP4 is getting pretty long in the tooth these days.
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: nowait on June 16, 2012, 03:07:20 AM
Good Catch. I am now upgraded to PHP 5.3 and most of the page shows up.  I put your original header.php back in place.
There are some values that are not resolved (like stats for yesterday and yearly stats.  I don't understand all the weather station text that fills the top of the page... Is this debug information?

Thanks
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: tigers on June 16, 2012, 03:44:25 AM
Good Catch. I am now upgraded to PHP 5.3 and most of the page shows up.  I put your original header.php back in place.
There are some values that are not resolved (like stats for yesterday and yearly stats.  I don't understand all the weather station text that fills the top of the page... Is this debug information?

Thanks

No that shouldn't be showing like that. It looks like something is still amiss with the wctags.php file.I'm not at the computer right now but I'll take a closer look tomorrow.
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: tigers on June 16, 2012, 07:36:08 PM
Good Catch. I am now upgraded to PHP 5.3 and most of the page shows up.  I put your original header.php back in place.
There are some values that are not resolved (like stats for yesterday and yearly stats.  I don't understand all the weather station text that fills the top of the page... Is this debug information?

Thanks

I think your wctags.php file is messed up somehow. Replace your wctags.php with the one attached here and let weathercat process and upload it to your site. Hopefully that'll get the rest of these errors fixed.
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: nowait on June 16, 2012, 08:23:47 PM
That seemed to be the ticket!

Now to do some customization....  I need to add my graphs in.

Thanks for all your patience and help.

nowair
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: tigers on June 16, 2012, 08:30:04 PM
That seemed to be the ticket!

Now to do some customization....  I need to add my graphs in.

Thanks for all your patience and help.

nowair

Cool, glad it's working now. Hope you enjoy it.
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: xtommo on June 29, 2012, 06:45:10 AM
is there a way to make the page just display the heat index and windchill thats calculated by weathercat? there are tags to display heat index and wind chill in the wctags.php but im not sure how to use them instead of the calculated values. i have never had anything dosplay for those, its always reading N/A
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: tigers on June 30, 2012, 02:14:34 AM
is there a way to make the page just display the heat index and windchill thats calculated by weathercat? there are tags to display heat index and wind chill in the wctags.php but im not sure how to use them instead of the calculated values. i have never had anything dosplay for those, its always reading N/A

I suppose it's possible to use standard WC tags for those values but note that it wouldn't be "real-time" since the CGI doesn't expose those values. Therefore, I just calculate them based on the following parameters (note that the CGI units are always imperial):

Heat Index: Temp>80 (26.67 C) and Humidity>40%
Wind Chill :Temp<=50 (10 C) and Wind Speed >=5 (8 kmh)

These are the parameters that NOAA uses here in the US.

http://en.wikipedia.org/wiki/Heat_index
http://en.wikipedia.org/wiki/Wind_chill
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: xtommo on September 27, 2012, 12:07:53 PM
Hi Tigers
Will you be releasing an update to the template to allow for the bigger screen on the iPhone 5?
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: tigers on October 03, 2012, 12:45:50 AM
Hi Tigers
Will you be releasing an update to the template to allow for the bigger screen on the iPhone 5?

Well I'm going to wait for the 5S :D, so I don't have a way to test the page. That said, it should work without any changes since it's just html/css/js. If you or somebody else has one and can post some screenshots then maybe I can modify the template a bit to take advantage.
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: xtommo on October 04, 2012, 12:24:50 PM
here is a screen shot

there are black bars along the top and bottom

Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: tigers on October 06, 2012, 10:41:48 PM
Ok, can you go to http://wx.atkinsfamily.org/m.php and see if it works for your iphone 5 now? If so, i'll upload a new version of the template.
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: xtommo on October 11, 2012, 04:14:47 AM
yep, that works good.
is there a lot to change in the coding?
could i just update the templates which i've adapted myself?

Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: tigers on October 12, 2012, 12:38:31 AM
Nope, it's not hard. Just open up m.php and find the line that says

Code: [Select]
statusBar: 'black'

and edit it by adding "fullScreen: false":
Code: [Select]
statusBar: 'black',
fullScreen: false

Don't forget the , after the 'black' text.
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: xtommo on October 12, 2012, 06:29:43 AM
nice... thanks heaps
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: xtommo on January 03, 2013, 10:48:00 PM
hello
im looking for a little help with a problem i am having with the templates on an iPhone.

i have created a page with various statistics but the stats pages are wider then the screen which is fine but i cannot scroll around to see all the info.

screen grabs attached...

how can i allow the screen to be scrollable so that i can see all the data?

thanks

Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: tigers on January 07, 2013, 03:38:48 AM
Can you post up a link to that page and I'll take a look? I think I looked at this a while back and it's because of an overflow: hidden; in the css. Those stats are very wiiiiiddde.
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: xtommo on January 08, 2013, 08:32:28 AM
hey
thanks mate but i figured it out.

i added the following into the m.css file.

pre {
   -webkit-overflow-scrolling: touch;
   padding: 5px;
   overflow: auto;
   width: 99%;
   }

and that did the trick.
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: xtommo on January 13, 2013, 12:50:00 AM
hi
with the new 1.1.3 update the tag AT_Aus$ was added which is awesome as its what i wanted for australia.

what i am trying to do with it is add it to the mobile template.

they way i would like to to look is have a box that spans the width of the page below the temp and barometer readings with the "feels like" reading centred.

i have attached a screen shot of where i have gotten so far (which is pretty much nowhere) but the other problem i have is i dont know how to add it as part of the cgi update.

i just added a wctag which only gets updates avery 15 minutes.


this is the  code i have but i know thats not correct.

<ul class="individual">
               <li>
                  <h5>Temp</h5>
                  <h3 id="mtemp">Loading</h3>
                  <span class="low" id="mlot">Loading</span></span><span class="high" id="mhit">Loading</span>
               </li>
               
               <li>
                  <h5>Barometer</h5>
                  <h3 id="mpress">Loading</h3>
                  <span class="low" id="mlop">Loading</span><span class="high" id="mhip">Loading</span>
               </li>
            </ul>

            <ul class="individual">   
               
                  <h5>Feels Like</h5>
                  <h3><?php Echo $ATAUS; ?><?php Echo $TEMPUNITS; ?></h3>
               
            </ul>


            <ul class="individual">
               <li><h5>Rain</h5><h3 id="mrain">Loading</h3></li>
               <li><h5>Rain Rate</h5><h3 id="mrainrate">Loading</h3></li>
            </ul>



any help would be awesome.

oh yeah, my site is http://tommo.homeip.net/m.php

thanks
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: UncleBuck on January 13, 2013, 12:35:01 PM
What you can do to show it in the center of the screen is remove the class from the UL and then put in a style on the LI

Like this:
Code: [Select]
<ul> 
      <li style="text-align:center"><h5>Feels Like</h5><h3><?php Echo $ATAUS?><?php Echo $TEMPUNITS?></h3></li>
</ul>
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: xtommo on January 13, 2013, 03:01:35 PM
thanks for that. looks good

i used

<ul> 
<li style="text-align:center"><h6>Feels Like</h6><h7><?php Echo $ATAUS; ?><?php Echo $TEMPUNITS; ?></h7></li>
</ul>

which results in the following (see screenshot)

is there a way of adding the apparent temp as part of the cgi script like all the other readings?

ps... i don't know anything about coding, php or css but I've learned a lot be looking at how the template is structured and just modifying it and seeing what happens so thanks for your help.
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: bunger on February 03, 2013, 02:28:19 PM
I just tried to download this template and the download link is dead.  Is the template no longer available or is there a new DL link?

tia
Bill
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: jenkins007 on February 09, 2013, 02:30:13 PM
I was also trying to get the latest version. I have the.60 version. Anyone have the link? The one included with weathercat app is very different.
Title: Re: Ajaxeline AJAX and PHP template. Beta release available.
Post by: Steve on February 09, 2013, 05:45:28 PM
Yep, that's a bad link. A little fiddling with the URL will get you to the previous directory. It has versions up to .61 available, but not the 1.00 version.

http://atkinsfamily.org/wp-content/uploads/2012/03/

Steve