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

What can you do with <canvas>

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

Moderator: daj

Post Reply
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

What can you do with <canvas>

Post by beteljuice »

Ye Olde beteljuice wondered if the this here new-fangled <canvas> thingy could manipulate images ?

The simple answer is yes !!

A few of you may remember some years ago when Cumulus was steam powered, that the beteljuice created a nautical theme 'dashboard' which relied on a huge library of needle images ?

Here is the beteljuices very first attempt at using canvas "Nautica" revisited

I was unsure whether to post this or not (It is by no means meant to be an empirical example !)
but I decided it may give hope / inspiration to others and perhaps start an entire rethink of how we display data content in web pages.
Last edited by beteljuice on Fri 23 May 2014 2:03 pm, edited 1 time in total.
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
PaulMy
Posts: 4355
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: What can you do with <canvas>

Post by PaulMy »

It sure looks like a precision instrument :clap:

Looked up <canvas> element in Google to get a better understanding.
Paul
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
Image
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: What can you do with <canvas>

Post by mcrossley »

I wondered if you would ever update that one :lol:

'course now you could eschew the canvas and just do it with CSS3 à la: Climatica
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: What can you do with <canvas>

Post by beteljuice »

... and just do it with CSS3
We need a "groan" smiley ....

I don't know what I'm doing with 'ordinary' CSS, JScript, JSON, HTML5, etc. etc. etc.
Image
......................Imagine, what you will KNOW tomorrow !
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: What can you do with <canvas>

Post by steve »

beteljuice wrote:We need a "groan" smiley ....
Happy to oblige... :groan:
Steve
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: What can you do with <canvas>

Post by mcrossley »

PaulMy wrote:Looked up <canvas> element in Google to get a better understanding.
Paul, the SteelSeries gauges are <canvas> based, they don't use images directly though, everything is 'drawn'.
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: What can you do with <canvas>

Post by mcrossley »

beteljuice, you may want to investigate 'requestAnimationFrame()', it is more efficient that than using timers (though you may have to provide a timer fallback) if you have multiple animations going on, you should be able to get 60 fps out of that page. I use the following shim in the SteelSeries library (I haven't checked it is up to date for some time though).

Code: Select all

    var requestAnimFrame = (function () {
        return  window.requestAnimationFrame   ||
            window.webkitRequestAnimationFrame ||
            window.mozRequestAnimationFrame    ||
            window.oRequestAnimationFrame      ||
            window.msRequestAnimationFrame     ||
            function (callback) {
                window.setTimeout(callback, 1000 / 16);
            };
    }());
Post Reply