Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

iPhone Webpage Question

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

gemini06720
Posts: 1700
Joined: Mon 10 Aug 2009 10:16 pm
Weather Station: No weather station
Operating System: No operating system
Location: World...

Re: iPhone Webpage Question

Post by gemini06720 »

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... :(
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.
User avatar
SJG1976
Posts: 367
Joined: Wed 21 Dec 2011 11:04 am
Weather Station: Davis WLL, with Airlink
Operating System: Raspberry Pi3 MX on USB Drive
Location: Glemsford, Suffolk
Contact:

Re: iPhone Webpage Question

Post by SJG1976 »

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
gemini06720
Posts: 1700
Joined: Mon 10 Aug 2009 10:16 pm
Weather Station: No weather station
Operating System: No operating system
Location: World...

Re: iPhone Webpage Question

Post by gemini06720 »

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.
User avatar
saratogaWX
Posts: 1238
Joined: Wed 06 May 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows 10 Professional
Location: Saratoga, CA, USA
Contact:

Re: iPhone Webpage Question

Post by saratogaWX »

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: Select all

var realtimeFile = '/realtime.txt'; //  URL location of realtime.txt relative to document root of website
to

Code: Select all

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
User avatar
SJG1976
Posts: 367
Joined: Wed 21 Dec 2011 11:04 am
Weather Station: Davis WLL, with Airlink
Operating System: Raspberry Pi3 MX on USB Drive
Location: Glemsford, Suffolk
Contact:

Re: iPhone Webpage Question

Post by SJG1976 »

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
User avatar
SJG1976
Posts: 367
Joined: Wed 21 Dec 2011 11:04 am
Weather Station: Davis WLL, with Airlink
Operating System: Raspberry Pi3 MX on USB Drive
Location: Glemsford, Suffolk
Contact:

Re: iPhone Webpage Question

Post by SJG1976 »

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.
duke

Re: iPhone Webpage Question

Post by duke »

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? :? :? :?
User avatar
SJG1976
Posts: 367
Joined: Wed 21 Dec 2011 11:04 am
Weather Station: Davis WLL, with Airlink
Operating System: Raspberry Pi3 MX on USB Drive
Location: Glemsford, Suffolk
Contact:

Re: iPhone Webpage Question

Post by SJG1976 »

Bigger Buttons, for Fat Fingers on small screens....?

:lol:



Steve
User avatar
SJG1976
Posts: 367
Joined: Wed 21 Dec 2011 11:04 am
Weather Station: Davis WLL, with Airlink
Operating System: Raspberry Pi3 MX on USB Drive
Location: Glemsford, Suffolk
Contact:

Re: iPhone Webpage Question

Post by SJG1976 »

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
Post Reply