Please read the posts in the Announcements section about the current status of Cumulus development now that I have retired

Please read this post before posting

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3043 Jan 20 2017. See this post for download

Auto-refresh Website Index Page Without Using Meta Refresh

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

Moderators: daj, TNETWeather

Nevizio
Posts: 36
Joined: Wed Feb 10, 2016 8:43 pm
Weather Station: Oregon Scientific wmr-200
Operating System: Windows 10 - Android
Location: Cerratina frazione di Pianella (PE) Abruzzo-Italy

Re: Auto-refresh Website Index Page Without Using Meta Refresh

Postby Nevizio » Sun Jun 10, 2018 11:04 pm

dazza1223 wrote:i use <span class="ajax" id="LastRainTipISO"></span>


but what script you use to up date your tags?


link to your website be good!


Hi,I use this script below:

<script src="jquery.js" type="text/javascript"></script>
<script src="realtimereader.js" type="text/javascript"></script>

this script updates everything automatically except for the date and time of the last rain and the time of the maximum daily temperature
I can not understand why :roll:
how could I solve the problem? :oops:

dazza1223
Posts: 371
Joined: Sun Jan 25, 2015 8:41 pm
Weather Station: Davis Vantage Vue
Operating System: raspberry pi 3
Location: worthing
Contact:

Re: Auto-refresh Website Index Page Without Using Meta Refresh

Postby dazza1223 » Mon Jun 11, 2018 11:07 am

ok send me the realtimereader.js and ur reltime.txt and i will have a look later

Nevizio
Posts: 36
Joined: Wed Feb 10, 2016 8:43 pm
Weather Station: Oregon Scientific wmr-200
Operating System: Windows 10 - Android
Location: Cerratina frazione di Pianella (PE) Abruzzo-Italy

Re: Auto-refresh Website Index Page Without Using Meta Refresh

Postby Nevizio » Mon Jun 11, 2018 12:14 pm

Here are the 2 files
You do not have the required permissions to view the files attached to this post.

dazza1223
Posts: 371
Joined: Sun Jan 25, 2015 8:41 pm
Weather Station: Davis Vantage Vue
Operating System: raspberry pi 3
Location: worthing
Contact:

Re: Auto-refresh Website Index Page Without Using Meta Refresh

Postby dazza1223 » Mon Jun 11, 2018 12:40 pm

ok i take a look later when im at home what your website?

Nevizio
Posts: 36
Joined: Wed Feb 10, 2016 8:43 pm
Weather Station: Oregon Scientific wmr-200
Operating System: Windows 10 - Android
Location: Cerratina frazione di Pianella (PE) Abruzzo-Italy

Re: Auto-refresh Website Index Page Without Using Meta Refresh

Postby Nevizio » Mon Jun 11, 2018 1:30 pm

Ok thanks for the interest, I look forward :(

dazza1223
Posts: 371
Joined: Sun Jan 25, 2015 8:41 pm
Weather Station: Davis Vantage Vue
Operating System: raspberry pi 3
Location: worthing
Contact:

Re: Auto-refresh Website Index Page Without Using Meta Refresh

Postby dazza1223 » Mon Jun 11, 2018 1:37 pm

p:s i need the link to your website as i need to re do you reiltime.txt and i need to see what you got?

Nevizio
Posts: 36
Joined: Wed Feb 10, 2016 8:43 pm
Weather Station: Oregon Scientific wmr-200
Operating System: Windows 10 - Android
Location: Cerratina frazione di Pianella (PE) Abruzzo-Italy

Re: Auto-refresh Website Index Page Without Using Meta Refresh

Postby Nevizio » Mon Jun 11, 2018 3:21 pm

I think I have solved, the TtempTH tag has been modified badly by the author of the script in fact inserting <span id = "Ttemp TH"> </ span> nothing appears in the section, instead inserting <span id "tTempTH"> </ span> the script updates automatically, it was a syntax error from the author in fact in the file realtimereader.js the tag is modified as I wrote.
Instead for the time and date of the last rain on the file realtimereader.js does not appear on this tag, I think we should try to change this file what do you think? :?:
Another question:-I would like the image of the web cam to update itself automatically there is a script that performs this function?

dazza1223
Posts: 371
Joined: Sun Jan 25, 2015 8:41 pm
Weather Station: Davis Vantage Vue
Operating System: raspberry pi 3
Location: worthing
Contact:

Re: Auto-refresh Website Index Page Without Using Meta Refresh

Postby dazza1223 » Mon Jun 11, 2018 3:48 pm

well done... but im using cumulus.xml it more better layed out and i use it on my site as well i do use realtimereader.js but it ony for some over things but the main one i use is cumulus.xml .... and let sort this one out fist then i will try and help u wth the cam but if u do use this cumulus.xml you will have to replace the tags


and if you not geting the tag to work check if thay are in the realtime.txt

but i keek asking for the website you working on as then i can see more in to it



and i cant see the <#LastRainTipISO> in realtimereader.js or in the reiltime.txt

Nevizio
Posts: 36
Joined: Wed Feb 10, 2016 8:43 pm
Weather Station: Oregon Scientific wmr-200
Operating System: Windows 10 - Android
Location: Cerratina frazione di Pianella (PE) Abruzzo-Italy

Re: Auto-refresh Website Index Page Without Using Meta Refresh

Postby Nevizio » Mon Jun 11, 2018 4:48 pm

in fact I would like to insert the tag <#LastRainTipISO> in realtime.txt and then create the change in the file realtimereader.js, but I do not know how to do it :oops: to automatically update the web cam I will work in the future for now on my site to update it just update the page

dazza1223
Posts: 371
Joined: Sun Jan 25, 2015 8:41 pm
Weather Station: Davis Vantage Vue
Operating System: raspberry pi 3
Location: worthing
Contact:

Re: Auto-refresh Website Index Page Without Using Meta Refresh

Postby dazza1223 » Mon Jun 11, 2018 5:04 pm

ok i do it later to night ok but i will have to make a other reailtime.txt file as cumulus re right the file

Nevizio
Posts: 36
Joined: Wed Feb 10, 2016 8:43 pm
Weather Station: Oregon Scientific wmr-200
Operating System: Windows 10 - Android
Location: Cerratina frazione di Pianella (PE) Abruzzo-Italy

Re: Auto-refresh Website Index Page Without Using Meta Refresh

Postby Nevizio » Mon Jun 11, 2018 5:58 pm

Ok,thanks a lot :clap:

dazza1223
Posts: 371
Joined: Sun Jan 25, 2015 8:41 pm
Weather Station: Davis Vantage Vue
Operating System: raspberry pi 3
Location: worthing
Contact:

Re: Auto-refresh Website Index Page Without Using Meta Refresh

Postby dazza1223 » Mon Jun 11, 2018 6:08 pm

Can u send me your index page and I will mod that

As well

dazza1223
Posts: 371
Joined: Sun Jan 25, 2015 8:41 pm
Weather Station: Davis Vantage Vue
Operating System: raspberry pi 3
Location: worthing
Contact:

Re: Auto-refresh Website Index Page Without Using Meta Refresh

Postby dazza1223 » Tue Jun 12, 2018 10:57 pm

it all done and ive zip the new files up for you

Nevizio
Posts: 36
Joined: Wed Feb 10, 2016 8:43 pm
Weather Station: Oregon Scientific wmr-200
Operating System: Windows 10 - Android
Location: Cerratina frazione di Pianella (PE) Abruzzo-Italy

Re: Auto-refresh Website Index Page Without Using Meta Refresh

Postby Nevizio » Thu Jun 14, 2018 9:53 am

Ok thank you,send me the zip file (private message) ;)

dazza1223
Posts: 371
Joined: Sun Jan 25, 2015 8:41 pm
Weather Station: Davis Vantage Vue
Operating System: raspberry pi 3
Location: worthing
Contact:

Re: Auto-refresh Website Index Page Without Using Meta Refresh

Postby dazza1223 » Thu Jun 14, 2018 10:23 am

:D


Return to “Web site - General”

Who is online

Users browsing this forum: No registered users and 2 guests