Sandaysoft

Support forum for Cumulus weather station software
It is currently Sat May 25, 2013 3:46 am
Please click here before posting. Help me to help you!
Useful Links: Cumulus FAQ • Enhancement requests • Wiki (documentation)
Please put your approximate location into your profile
Add your web site to the Cumulus user map
Vantage Pro2 users with firmware 3.00 should upgrade to fw 3.12 and Cumulus 1.9.4

All times are UTC




Post new topic Reply to topic  [ 39 posts ]  Go to page Previous  1, 2, 3
Author Message
 Post subject: Re: iPhone Webpage Question
PostPosted: Thu Jul 19, 2012 11:42 pm 
Offline

Joined: Mon Aug 10, 2009 10:16 pm
Posts: 1770
Location: World...
Weather Station: No weather station
Operating System: No operating system
Steve, all of my 1&1 accounts are using the Linux Web Hosting package - I would not go any other way - for me, there are too many things (facilities/options) missing with the Windows Web Hosting package... :(

Quote:
I'm hvaing problems getting AJAX Scripts to work.
Steve, you have to remember that an AJAX (or Asynchronous JavaScript and XML) script is a 'user side' programming language, meaning that the script does not run on the hosting server (such as a PHP script, which is a 'server-side' programming language) but is first downloaded to the user's browser cache before it can be run on the user's computer.

I have not had problem getting AJAX scripts with the Linux Web Hosting package.

I am also running XAMPP for Windows (Apache server software, MySQL, PHP, Perl) on both my home/office server computer and my development computer - I use the server software to test and post the Cumulus/Weather Display web pages - the AJAX script is also running fine from those server.


Top
 Profile  
 
 Post subject: Re: iPhone Webpage Question
PostPosted: Fri Jul 20, 2012 12:16 am 
Offline
User avatar

Joined: Wed Dec 21, 2011 11:04 am
Posts: 155
Location: Essex
Weather Station: Oregon WRM200 and Davis VP1
Operating System: W7
Thanks Ray,

If you get time, could you have a look at my http://www.cm2weather.co.uk/Davis/index.php page please.
To see if you can spot anything obvious in the code that making the AJAX Fail to update the variables of the weather please?

I just seem to get a next update in (10mins for the time page was loaded) and then it just sits there....?



Steve

_________________
Image


Top
 Profile  
 
 Post subject: Re: iPhone Webpage Question
PostPosted: Fri Jul 20, 2012 12:34 am 
Offline

Joined: Mon Aug 10, 2009 10:16 pm
Posts: 1770
Location: World...
Weather Station: No weather station
Operating System: No operating system
Steve, as I wrote before and will write again, it is my belief (feelings) that one should install and make sure the templates are behaving (running/working) as designed before attempting to include any additional stuff...

Any of the additions to your page (such as Google Add, social networking links/scripts, Twitter feeds, PayPal, Flag Counter and Top Sites code/links) can/could prevent the AJAX script to operate/run normally.


Top
 Profile  
 
 Post subject: Re: iPhone Webpage Question
PostPosted: Fri Jul 20, 2012 1:23 am 
Offline
User avatar

Joined: Wed May 06, 2009 5:02 am
Posts: 428
Location: Saratoga, CA, USA
Weather Station: Davis Vantage Pro Plus
Operating System: Windows XP SP3
SJG1976 wrote:
Thanks Ray,

If you get time, could you have a look at my http://www.cm2weather.co.uk/Davis/index.php page please.
To see if you can spot anything obvious in the code that making the AJAX Fail to update the variables of the weather please?

I just seem to get a next update in (10mins for the time page was loaded) and then it just sits there....?



Steve

Hi Steve,

The ajaxCUwx.js script is looking for your realtime.txt file in the document root of your website. Since you installed the template set in the /Davis/ subdirectory, you just need to change ajaxCUwx.js from
Code:
var realtimeFile = '/realtime.txt'; //  URL location of realtime.txt relative to document root of website
to
Code:
var realtimeFile = '/Davis/realtime.txt'; //  URL location of realtime.txt relative to document root of website
to have it find the file and do the update to the page.

Best regards,
Ken


Top
 Profile  
 
 Post subject: Re: iPhone Webpage Question
PostPosted: Fri Jul 20, 2012 6:09 am 
Offline
User avatar

Joined: Wed Dec 21, 2011 11:04 am
Posts: 155
Location: Essex
Weather Station: Oregon WRM200 and Davis VP1
Operating System: W7
Thanks Ray, appreciate the feedback.

Will bear that in mind in the future, but I didn't think I was that far out.

Ken,

Thankyou, that worked a treat.

Now to make some more changes and break it all again, and come crying for help.




Steve

_________________
Image


Top
 Profile  
 
 Post subject: Re: iPhone Webpage Question
PostPosted: Mon Jul 23, 2012 12:58 pm 
Offline
User avatar

Joined: Wed Dec 21, 2011 11:04 am
Posts: 155
Location: Essex
Weather Station: Oregon WRM200 and Davis VP1
Operating System: W7
Well all seems to be working as expected now.
Have created some Additional monthly record files, probably not the best way to do it as I have but they seem to work anyway on what data is avaialble.

Now trying to play about with the JpGraphs, and get that to pull data out of a SQL Database which I have now got working and updating.

As I say, Steep Learning Curve for me.

_________________
Image


Top
 Profile  
 
 Post subject: Re: iPhone Webpage Question
PostPosted: Mon Jul 23, 2012 6:34 pm 
Offline
User avatar

Joined: Sun Jul 03, 2011 6:23 pm
Posts: 324
Location: Eastleigh, Hampshire, UK
Weather Station: Davis VP2 - 24hr FARS
Operating System: Windows 7 - 64 bit
This might be a really, really stupid question, but, I'm going to ask any way - why do people need an iphone page when the majority of phones can view a standard page in their browser? :? :? :?

_________________
Duke

Nightingale Weather PHP
Eastleigh, Hampshire, UK


Top
 Profile  
 
 Post subject: Re: iPhone Webpage Question
PostPosted: Mon Jul 23, 2012 9:17 pm 
Offline
User avatar

Joined: Wed Dec 21, 2011 11:04 am
Posts: 155
Location: Essex
Weather Station: Oregon WRM200 and Davis VP1
Operating System: W7
Bigger Buttons, for Fat Fingers on small screens....?

:lol:



Steve

_________________
Image


Top
 Profile  
 
 Post subject: Re: iPhone Webpage Question
PostPosted: Mon Jul 30, 2012 1:13 pm 
Offline
User avatar

Joined: Wed Dec 21, 2011 11:04 am
Posts: 155
Location: Essex
Weather Station: Oregon WRM200 and Davis VP1
Operating System: W7
Well I've now updated my iPhone Pages.

Still not getting an AJAX Refresh in there (something else to work on in the future)
And they are still plain HTML.

Some of the Record Data doesn't look quiet right, but I think it's moving in the right direction now.

http://www.cm2weather.co.uk/Davis/iPhone

Any comments or suggestions welcome as ever.

Steve

_________________
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 39 posts ]  Go to page Previous  1, 2, 3

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group