Page 1 of 1

how to change a webtag

Posted: Tue 10 Dec 2019 4:31 pm
by Thunderstorm
Hi, :?
I would like to change the time- and date formats for the records and monthly records or translate from English to German. http://odenwald-wetter.de/cumulus/record.htm
e.g. at 15:02 on 25 July 2019 change um 15:02 Uhr am 25 Juli 2019;
id = "TempHT"> <# ByMonthTempHT mon = 7 or <#TtempH>
Who can help me please?
Many greetings
thunderstorm

Re: how to change a webtag

Posted: Tue 10 Dec 2019 6:01 pm
by mcrossley
You would use something like...

Code: Select all

<#ByMonthTempHT mon=7 format="'um' hh:mm 'Uhr am' dd MMMM yyyy">

Re: how to change a webtag

Posted: Tue 10 Dec 2019 6:45 pm
by HansR
I learned something today: the Wiki has pages ;)

Re: how to change a webtag

Posted: Fri 13 Dec 2019 4:14 pm
by Thunderstorm
Hi,
yes reading on the WIKI pages is one thing, but understanding and implementing the other. I'm sorry, but despite reading and trying a lot, I still have a question about the monthly records. I edited monthlyrecordT.htm for December. When I call up the monthly records, the time and date values ​​are displayed correctly, only the temperature values ​​are missing. If I click again on December, the English formats appear again.
http://odenwald-wetter.de/cumulus/monthlyrecord.htm
The same is true for the other months. I have already tried a few variants, but all without success. On the localhost platform, the date and time formats are displayed as they should be. Maybe someone can help me again.

Many greetings
thunderstorm

Re: how to change a webtag

Posted: Fri 13 Dec 2019 4:51 pm
by mcrossley
It looks like you changed the tags in teh HTML (which displays when the page first loads) - lines 28 - 170.
But you haven't changed all the tags in the script block (which displays when you change the month) - lines 179 - 229