Page 1 of 1

Add clock gauges 2.5.5

Posted: Wed 18 Mar 2015 11:41 am
by MeteoBisignano
Hi friends
I wanted to install the clock in the page header of the gauges but I did not understand if I have to add a new parameter file "Clock" or enter new variables in the gauges.js. Could you help me on this?
I apologize to everyone for my bad English
http://stazionemeteobisignano.it

Re: Add clock gauges 2.5.5

Posted: Wed 18 Mar 2015 11:49 am
by MeteoBisignano
MeteoBisignano wrote:Hi friends
I wanted to install the clock in the page header of the gauges but I did not understand if I have to add a new parameter file "Clock" or enter new variables in the gauges.js. Could you help me on this?
I apologize to everyone for my bad English
http://stazionemeteobisignano.it
This is an example although it should be translated into my language

Re: Add clock gauges 2.5.5

Posted: Wed 18 Mar 2015 12:25 pm
by mcrossley
That is just displaying whatever is in the 'forecast' field in realtimegaugesT.txt. Edit that file and put whatever text and/or Cumulus web tags you want in there...

Code: Select all

"forecast":"<#forecastenc>",

Re: Add clock gauges 2.5.5

Posted: Thu 19 Mar 2015 1:53 am
by ace2
MeteoBisignano wrote:
MeteoBisignano wrote:Hi friends
I wanted to install the clock in the page header of the gauges but I did not understand if I have to add a new parameter file "Clock" or enter new variables in the gauges.js. Could you help me on this?
I apologize to everyone for my bad English
http://stazionemeteobisignano.it
This is an example although it should be translated into my language
I use that one by adding into my gauges as

Code: Select all

<iframe style="border:none;" src="http://free.timeanddate.com/clock/i3gooncf/n5/tlau/fn2/fs18/fc444/tca9b29f/ftbi/blc111/brc111/btc111/bbc111/pa0/tt0/td1/th2/tb1" width="405" height="25"></iframe>&nbsp;&nbsp;&nbsp;
From this page
http://www.timeanddate.com/clocks/free.html
But not sure about different languages..

Re: Add clock gauges 2.5.5

Posted: Sat 19 Mar 2016 9:49 am
by richard_newberry
Can someone tell me where to put the code for the clock into gauges.js please.

Thanks

Re: Add clock gauges 2.5.5

Posted: Sat 06 Mar 2021 6:58 pm
by imballinger
Sorry to bring up a old post, but I would like to put the clock on, Where exactly in the js file would I put the code?

Re: Add clock gauges 2.5.5

Posted: Sat 06 Mar 2021 7:55 pm
by ConligWX
Not sure why you want a clock. The gauges page reads the realtimegauges.txt

Word being real-time.

Re: Add clock gauges 2.5.5

Posted: Sat 06 Mar 2021 11:30 pm
by nossis
Yes... Here is what I did.
There was not addition modification to the java script. For me it was all in the HTML code

Code: Select all

				<div class="row">
						<canvas id="canvas_led" width="25" height="25"></canvas>&nbsp;&nbsp;&nbsp;
							<!-- jave time applet  http://www.timeanddate.com/clocks/free.html -->
						<iframe src="http://free.timeanddate.com/clock/i3gooncf/n196/tlau/fn13/fs17/tca9b29f/bac2b323a/pa0/tt0/td1/th2/tb1" frameborder="0" width="380" height="25"></iframe>&nbsp;&nbsp;&nbsp;
							<!-- END jave time applet -->
						<canvas id="canvas_timer" width="75" height="25"></canvas>&nbsp;&nbsp;&nbsp;
				</div>
To explain...
The bit that your interested in is this
<iframe src="http://free.timeanddate.com/clock/i3goo ... d1/th2/tb1" frameborder="0" width="380" height="25"></iframe>&nbsp;&nbsp;&nbsp;
I put that chunk of code here so one can see the context of how it fits with other things.
When one goes to create a time and date thing it produces the various output that then tells time and date this is the clock that you are using "i3gooncf/n196/tlau/fn13/fs17/tca9b29f/bac2b323a/pa0/tt0/td1/th2/tb1"
this is one I played around with a bit to get it doing what I wanted "width="380" height="25""
Happy playing :D

Re: Add clock gauges 2.5.5

Posted: Sun 07 Mar 2021 4:14 pm
by imballinger
ConligWX wrote: Sat 06 Mar 2021 7:55 pm Not sure why you want a clock. The gauges page reads the realtimegauges.txt

Word being real-time.
Perhaps because I want to ;)