Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 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

steelseries clock adding

Discussion of Mark Crossley's HTML5/Javascript gauges

Moderator: mcrossley

Post Reply
User avatar
dimitris vichos
Posts: 94
Joined: Fri 21 Oct 2011 5:29 pm
Weather Station: wh 1080
Operating System: linux mint 19
Location: nea moudania chalkidiki grecce
Contact:

steelseries clock adding

Post by dimitris vichos »

i like to ad the steelseseies clock in my page. this clock its simple but beautyfull

Image

reading the wiki i dont understand very well how to do this. need to cange gauge.js? steelseries.js?

i try to make my own, byt i need little help..
Meteostation of Nea Moudania Chalkidiki Greece
https://kairos.moudania.com/index.php
User avatar
dimitris vichos
Posts: 94
Joined: Fri 21 Oct 2011 5:29 pm
Weather Station: wh 1080
Operating System: linux mint 19
Location: nea moudania chalkidiki grecce
Contact:

Re: steelseries clock adding

Post by dimitris vichos »

i make a demo page with clock and works good

http://metfm.esy.es/clock.htm

byt when transfer the code in my page clock dont show.....

http://metfm.esy.es/liveweather.htm
Meteostation of Nea Moudania Chalkidiki Greece
https://kairos.moudania.com/index.php
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: steelseries clock adding

Post by steve »

You don't seem to be calling your init() function anywhere.
Steve
User avatar
mcrossley
Posts: 12756
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: steelseries clock adding

Post by mcrossley »

You also need to think if you want the clock to show your station time, or the users time.
User avatar
dimitris vichos
Posts: 94
Joined: Fri 21 Oct 2011 5:29 pm
Weather Station: wh 1080
Operating System: linux mint 19
Location: nea moudania chalkidiki grecce
Contact:

Re: steelseries clock adding

Post by dimitris vichos »

the clock works good, but i dont know how to change the frame the pointer etc.
Meteostation of Nea Moudania Chalkidiki Greece
https://kairos.moudania.com/index.php
User avatar
dimitris vichos
Posts: 94
Joined: Fri 21 Oct 2011 5:29 pm
Weather Station: wh 1080
Operating System: linux mint 19
Location: nea moudania chalkidiki grecce
Contact:

Re: steelseries clock adding

Post by dimitris vichos »

this is html code for clock

Code: Select all

    <title>Canvas Steel clock</title>
</head>
<body onload="init()">

                <canvas id="canvasClock1" width="250" height="250"></canvas>


    


<script>
    var radial1;
     function init() {
        new steelseries.Clock('canvasClock1', {
                           
                            })
}
 </script>
<script src=scripts/jquery.js></script>
<script src="scripts/clock.js"></script>
<script src="scripts/clock-min.js"></script>


</body></html>

i tries to change the background with this code but not working good

Code: Select all

   <title>Canvas Steel clock</title>
</head>
<body onload="init()">

                <canvas id="canvasClock1" width="250" height="250"></canvas>


    


<script>
    var radial1;
     function init() {
        new steelseries.Clock('canvasClock1', { frameDesign            : steelseries.FrameDesign.CHROME,
            background             : steelseries.PointerType.TYPE2
                           
                            })
}
 </script>
<script src=scripts/jquery.js></script>
<script src="scripts/clock.js"></script>
<script src="scripts/clock-min.js"></script>


</body></html>

changing only the frame.
Meteostation of Nea Moudania Chalkidiki Greece
https://kairos.moudania.com/index.php
User avatar
mcrossley
Posts: 12756
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: steelseries clock adding

Post by mcrossley »

If you look at the SS script for "clock", you will see all the initialisation parameters listed and their default values...

Code: Select all

            frameDesign = (undefined === parameters.frameDesign ? steelseries.FrameDesign.METAL : parameters.frameDesign),
            frameVisible = (undefined === parameters.frameVisible ? true : parameters.frameVisible),
            pointerType = (undefined === parameters.pointerType ? steelseries.PointerType.TYPE1 : parameters.pointerType),
            pointerColor = (undefined === parameters.pointerColor ? (pointerType === steelseries.PointerType.TYPE1 ? steelseries.ColorDef.GRAY : steelseries.ColorDef.BLACK) : parameters.pointerColor),
            backgroundColor = (undefined === parameters.backgroundColor ? (pointerType === steelseries.PointerType.TYPE1 ? steelseries.BackgroundColor.ANTHRACITE : steelseries.BackgroundColor.LIGHT_GRAY) : parameters.backgroundColor),
            backgroundVisible = (undefined === parameters.backgroundVisible ? true : parameters.backgroundVisible),
            foregroundType = (undefined === parameters.foregroundType ? steelseries.ForegroundType.TYPE1 : parameters.foregroundType),
            foregroundVisible = (undefined === parameters.foregroundVisible ? true : parameters.foregroundVisible),
            customLayer = (undefined === parameters.customLayer ? null : parameters.customLayer),
            isAutomatic = (undefined === parameters.isAutomatic ? true : parameters.isAutomatic),
            hour = (undefined === parameters.hour ? 11 : parameters.hour),
            minute = (undefined === parameters.minute ? 5 : parameters.minute),
            second = (undefined === parameters.second ? 0 : parameters.second),
            secondMovesContinuous = (undefined === parameters.secondMovesContinuous ? false : parameters.secondMovesContinuous),
            timeZoneOffsetHour = (undefined === parameters.timeZoneOffsetHour ? 0 : parameters.timeZoneOffsetHour),
            timeZoneOffsetMinute = (undefined === parameters.timeZoneOffsetMinute ? 0 : parameters.timeZoneOffsetMinute),
            secondPointerVisible = (undefined === parameters.secondPointerVisible ? true : parameters.secondPointerVisible);
User avatar
dimitris vichos
Posts: 94
Joined: Fri 21 Oct 2011 5:29 pm
Weather Station: wh 1080
Operating System: linux mint 19
Location: nea moudania chalkidiki grecce
Contact:

Re: steelseries clock adding

Post by dimitris vichos »

for example

frameDesign = (undefined === parameters.frameDesign ? steelseries.FrameDesign.METAL : parameters.frameDesign)

what need to change to this? give me a simple example if you want. thank you.
Meteostation of Nea Moudania Chalkidiki Greece
https://kairos.moudania.com/index.php
nossis
Posts: 89
Joined: Wed 28 Nov 2012 6:12 am
Weather Station: Davis Vantage Pro 2
Operating System: Win 10
Location: Perth AU
Contact:

Re: steelseries clock adding

Post by nossis »

I wanted to show the local time on the gauges page also
This is what I did up near the ticker
http://members.iinet.net.au/~nossis/wea ... ges-ss.htm

I used this site
http://www.timeanddate.com/clocks/free.html
to create it and just inserted on my web page

(just finished implementing the new 2.5 gauges and I am tickled pink! :D :D :D :D :D
Brilliant work from Mark as always :clap: :clap: :clap: )
User avatar
mcrossley
Posts: 12756
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: steelseries clock adding

Post by mcrossley »

dimitris vichos wrote:for example

frameDesign = (undefined === parameters.frameDesign ? steelseries.FrameDesign.METAL : parameters.frameDesign)

what need to change to this? give me a simple example if you want. thank you.

Try starting with this...

Code: Select all

new steelseries.Clock('canvasClock1', {
		frameDesign: steelseries.FrameDesign.CHROME,
		pointerType: steelseries.PointerType.TYPE2,
		backgroundColor: steelseries.BackgroundColor.LIGHT_GRAY
	});
User avatar
mcrossley
Posts: 12756
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: steelseries clock adding

Post by mcrossley »

nossis wrote:(just finished implementing the new 2.5 gauges and I am tickled pink! :D :D :D :D :D
Brilliant work from Mark as always :clap: :clap: :clap: )
Thanks Barry, glad you like them.
User avatar
dimitris vichos
Posts: 94
Joined: Fri 21 Oct 2011 5:29 pm
Weather Station: wh 1080
Operating System: linux mint 19
Location: nea moudania chalkidiki grecce
Contact:

Re: steelseries clock adding

Post by dimitris vichos »

mcrossley wrote:
dimitris vichos wrote:for example

frameDesign = (undefined === parameters.frameDesign ? steelseries.FrameDesign.METAL : parameters.frameDesign)

what need to change to this? give me a simple example if you want. thank you.

Try starting with this...

Code: Select all

new steelseries.Clock('canvasClock1', {
		frameDesign: steelseries.FrameDesign.CHROME,
		pointerType: steelseries.PointerType.TYPE2,
		backgroundColor: steelseries.BackgroundColor.LIGHT_GRAY
	});
thats it!! thank you very much again.
Meteostation of Nea Moudania Chalkidiki Greece
https://kairos.moudania.com/index.php
User avatar
ace2
Posts: 679
Joined: Tue 14 Jan 2014 12:38 pm
Weather Station: maxkon ws-1081pc
Operating System: windows 7 & 8
Location: Adelaide, south Australia, Australia
Contact:

Re: steelseries clock adding

Post by ace2 »

nossis wrote:I wanted to show the local time on the gauges page also
This is what I did up near the ticker
http://members.iinet.net.au/~nossis/wea ... ges-ss.htm

I used this site
http://www.timeanddate.com/clocks/free.html
to create it and just inserted on my web page

(just finished implementing the new 2.5 gauges and I am tickled pink! :D :D :D :D :D
Brilliant work from Mark as always :clap: :clap: :clap: )
And as I do, I stole this and did the same with the clock thingy(some time ago). :shock:
And agreed, brilliant work on gauges........ :clap: :clap: :clap:
CHRIS
Image
web site
http://www.ace2weather.com
Follow me on Twitter
http://tinyurl.com/kwlr9re
YouTube channel
http://tinyurl.com/lehwpgp
Facebook page
http://tinyurl.com/k3sap4s
Tiny URL links used
Post Reply