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

Temperature coding for displaying on my main page

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

Moderator: daj

Post Reply
Manzara
Posts: 32
Joined: Thu 23 May 2013 8:50 am
Weather Station: WH1080
Operating System: XP
Location: Cyprus
Contact:

Temperature coding for displaying on my main page

Post 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
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: Temperature coding for displaying on my main page

Post 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 !!!!
Image
......................Imagine, what you will KNOW tomorrow !
water01
Posts: 3670
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10/11 64bit Synology NAS
Location: Burnham-on-Sea
Contact:

Re: Temperature coding for displaying on my main page

Post 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".
David
Image
Manzara
Posts: 32
Joined: Thu 23 May 2013 8:50 am
Weather Station: WH1080
Operating System: XP
Location: Cyprus
Contact:

Re: Temperature coding for displaying on my main page

Post 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
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: Temperature coding for displaying on my main page

Post 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.
Image
......................Imagine, what you will KNOW tomorrow !
Manzara
Posts: 32
Joined: Thu 23 May 2013 8:50 am
Weather Station: WH1080
Operating System: XP
Location: Cyprus
Contact:

Re: Temperature coding for displaying on my main page

Post 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!!!
uncle_bob
Posts: 505
Joined: Wed 17 Aug 2011 2:58 pm
Weather Station: WeatherDuino Pro2
Operating System: 2008
Location: Canberra

Re: Temperature coding for displaying on my main page

Post by uncle_bob »

How about uploading to weatherunderground and using a weatherunderground supplied sticker?
Interested in building your own Weather Station? Maybe check out the WeatherDuino Pro Project Here
Conder, Canberra Weather
Image
water01
Posts: 3670
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10/11 64bit Synology NAS
Location: Burnham-on-Sea
Contact:

Re: Temperature coding for displaying on my main page

Post 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.
David
Image
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: Temperature coding for displaying on my main page

Post by beteljuice »

David .........

realtime.txt has no association with <#webtags> :(
Image
......................Imagine, what you will KNOW tomorrow !
water01
Posts: 3670
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10/11 64bit Synology NAS
Location: Burnham-on-Sea
Contact:

Re: Temperature coding for displaying on my main page

Post 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!!
David
Image
Post Reply