Page 1 of 1
Temperature coding for displaying on my main page
Posted: Tue 28 May 2013 8:44 am
by Manzara
Can any one help with what coding I should use to diplsy "present temperaure on my main page website. The weather staion files are hyperlinked from the main page but can't figure out how to point to the temperature data from the station files. But a novice at html snippet coding so if you how I need a blow by blow account. my weather staion files ect are in a folder
www.meteor.org.uk/weather on the server
Re: Temperature coding for displaying on my main page
Posted: Tue 28 May 2013 2:53 pm
by beteljuice
ATM all your weather data is zeros !
There are three ways to achieve what you want:
Make your 'normal' index page a Cumulus template and process it / upload at whatever interval.
(Not recommended)
Use the data in realtime.txt either by:
An ajax call (JavaScript) in your index page
OR
Use .php to create your index page on-the-fly and again parse any required data from the realtime.txt.
Get your 'normal' Cumulus pages working first !!!!
Re: Temperature coding for displaying on my main page
Posted: Tue 28 May 2013 3:12 pm
by water01
But a novice at html snippet coding
If this is the case I would just follow the instuctions here
http://wiki.sandaysoft.com/a/Simple_Website_setup to get the data uploaded to your site automatically by Cumulus.
Once you have achieved that you can follow the other instructions in the Wiki on how to "Customise your Templates".
Re: Temperature coding for displaying on my main page
Posted: Tue 28 May 2013 3:51 pm
by Manzara
Yes I realise all my data is 0's that will change this weekend when I I set up the station (not arrived yet) so what I am looking for is the html snippet to go on my home page that will show the current temperature.. At the moment the weather staion data is in a separate folder on my server i.e.
www.meteor.org.uk/weather what I want to do is retieve the temp data from that folder as a hyperlink from my home page
www.meteor.org.uk
Re: Temperature coding for displaying on my main page
Posted: Tue 28 May 2013 7:07 pm
by beteljuice
With all the jumble of code in your current home page, dropping in another snippet would not do you any favours !
Time to learn how to code, or think about about some kind of (php) template system.
Re: Temperature coding for displaying on my main page
Posted: Thu 30 May 2013 11:50 am
by Manzara
That hasn't exactly answered my question. It's a busy site all I asked was any one know a coding snippet so I can put the daily temperature on my home page!!!
Re: Temperature coding for displaying on my main page
Posted: Thu 30 May 2013 12:23 pm
by uncle_bob
How about uploading to weatherunderground and using a weatherunderground supplied sticker?
Re: Temperature coding for displaying on my main page
Posted: Thu 30 May 2013 3:52 pm
by water01
You will only be able to do this once temperatures are being uploaded from your Console to Cumulus and thence to your web site via ftp using realtime.txt.
Once that is working using the <#temp> tag in a piece of HTML code will display the current data in the realtime.txt every time the page is refreshed.
Re: Temperature coding for displaying on my main page
Posted: Thu 30 May 2013 9:56 pm
by beteljuice
David .........
realtime.txt has no association with <#webtags>

Re: Temperature coding for displaying on my main page
Posted: Thu 30 May 2013 11:43 pm
by water01
Sorry that is correct, tooo early in the moring Vancouver time and brain wasn't in gear, get Cumulus to process the web tag or use te field from realtime.txt!!