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

HTM Help Regarding webtags

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

Moderator: daj

Post Reply
User avatar
Darknstormy
Posts: 168
Joined: Wed 28 Apr 2010 1:01 pm
Weather Station: Davis Vantage Pro 2 Plus
Operating System: Windows 11
Location: Australia

HTM Help Regarding webtags

Post by Darknstormy »

Hi guys,

just wondering if I can get help with some code in regards to web tags like this "<#IsSunUp> gives 1 between sunrise and sunset, otherwise 0"

Im planning to have a sun picture on my webpage when its sunny

I just don't where to start with the code or even what to google to find it..

Hope you can help

Cheers Lyle :D
Last edited by Darknstormy on Sat 03 Dec 2011 10:22 pm, edited 1 time in total.
ImageImage
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: HTM Helo Regarding webtags

Post by steve »

Bear in mind that <#IsSunUp> just tells you whether it's between dawn and dusk, not whether it's actually sunny.

The easiest way to display an image using <#IsSunUp>, or <#IsSunny> etc, is to have two images, one with a '1' at the end of the file name, and the other with a '0' at the end of the filename. Then put an image link into a file processed by Cumulus, and refer to the file name using the web tag, e.g. <img src="myfile<#IsSunUp.jpg>"> and have the files called myfile1.jpg and myfile0.jpg.
Steve
User avatar
nitrx
Posts: 1297
Joined: Sun 13 Dec 2009 1:21 pm
Weather Station: WH1080
Operating System: Windows 10
Location: Apeldoorn The Netherlands
Contact:

Re: HTM Helo Regarding webtags

Post by nitrx »

something like

Code: Select all

<img src="./myimages/sun<#issunup>.png">
you have to make an image sun0.png and sun1.png and figure out what image you want to see when there is no sun up or a complete tranperant image.

Edit I think the code Steve gave is more secure ;)
Last edited by nitrx on Wed 30 Nov 2011 10:33 pm, edited 1 time in total.
User avatar
Darknstormy
Posts: 168
Joined: Wed 28 Apr 2010 1:01 pm
Weather Station: Davis Vantage Pro 2 Plus
Operating System: Windows 11
Location: Australia

Re: HTM Helo Regarding webtags

Post by Darknstormy »

Excellent, thanks heaps for that Steve,

Yeah I kinda noticed after I posted, that your web tag only shows sun between dawn and dusk.. doesn't matter I still want to do it :D

thanks again :D
ImageImage
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: HTM Helo Regarding webtags

Post by steve »

Darknstormy wrote:Yeah I kinda noticed after I posted, that your web tag only shows sun between dawn and dusk.. doesn't matter I still want to do it :DD
<#IsSunUp> is actually between sunrise and sunset, as you said (i.e. sun above horizon), nor dawn and dusk as I said (that's the old one, <#isdaylight>).
Steve
User avatar
Darknstormy
Posts: 168
Joined: Wed 28 Apr 2010 1:01 pm
Weather Station: Davis Vantage Pro 2 Plus
Operating System: Windows 11
Location: Australia

Re: HTM Helo Regarding webtags

Post by Darknstormy »

ohh cheers thanks

I'm dumb when it comes to this :p
ImageImage
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: HTM Helo Regarding webtags

Post by steve »

Darknstormy wrote:ohh cheers thanks

I'm dumb when it comes to this :p
It's my fault for confusing things. To summarise the available tags:

<#IsSunny> The sun is actually shining (requires your station to have a solar sensor, or a Blake-Larsen sun recorder)
<#IsSunUp> The sun is above the horizon
<#isdaylight> It's between dawn and dusk (i.e. includes Civil Twilight)
Steve
User avatar
Darknstormy
Posts: 168
Joined: Wed 28 Apr 2010 1:01 pm
Weather Station: Davis Vantage Pro 2 Plus
Operating System: Windows 11
Location: Australia

Re: HTM Helo Regarding webtags

Post by Darknstormy »

Perfect... so now I know the one I need to use

Thanks for that

woohooo I finally get to add something to my page :D
ImageImage
gemini06720
Posts: 1700
Joined: Mon 10 Aug 2009 10:16 pm
Weather Station: No weather station
Operating System: No operating system
Location: World...

Re: HTM Helo Regarding webtags

Post by gemini06720 »

Lyle, it might be time you start studying PHP and eventually convert your pages to that format ... page design can become addictive you know ... probably as stimulating as making beer in your house, well almost... :mrgreen:
User avatar
Darknstormy
Posts: 168
Joined: Wed 28 Apr 2010 1:01 pm
Weather Station: Davis Vantage Pro 2 Plus
Operating System: Windows 11
Location: Australia

Re: HTM Helo Regarding webtags

Post by Darknstormy »

gemini06720 wrote:Lyle, it might be time you start studying PHP and eventually convert your pages to that format ... page design can become addictive you know ... probably as stimulating as making beer in your house, well almost... :mrgreen:

Can't my host does not support PHP... so sadly nope... :(

haha yeah making beer is pretty addictive... sadly I cant drink it fast enough :p
ImageImage
serowe
Posts: 484
Joined: Tue 03 Aug 2010 6:23 am
Weather Station: WM918
Operating System: Win Server 2008 R2
Location: Ferntree Gully, VIC, Oz
Contact:

Re: HTM Helo Regarding webtags

Post by serowe »

Darknstormy wrote: Can't my host does not support PHP... so sadly nope... :(

haha yeah making beer is pretty addictive... sadly I cant drink it fast enough :p
Looking at the packages available from adam.com.au I am hoping that you are only using them as an ISP and your web site is part of the personal ISP package they provide because, if not, they are VERY expensive ( http://adam.com.au/business/hosting_standard/ - $200 a year for only 25 Mb od HDD space is, well, probably a hangover from the 1990's!)

If you do want your own web site suggest you look around - I am in the process of changing my host after 5 years - although $18 AUD doesn't sound much, it is when you have no income! So - current host is $130 pa over 2 years and ups my storage from 1.5Gb and 60 Gb per month to >5Gb storage and > 100 Gb per month plus additional benefits.

If you want details PM me.
Punctuation is the difference between 'Let's eat, grandma' and 'Let's eat grandma'
User avatar
Darknstormy
Posts: 168
Joined: Wed 28 Apr 2010 1:01 pm
Weather Station: Davis Vantage Pro 2 Plus
Operating System: Windows 11
Location: Australia

Re: HTM Help Regarding webtags

Post by Darknstormy »

Hey,

Thanks but no thanks, yeah I'm currently using the web space provided by my isp.. Its free for me to use and every upload to it cost me nothing in data charges.. I really not that committed to paying for a web page that not many people would view.. I really only know 3 people including my self that use my page.

Thanks again :D
ImageImage
Post Reply