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

Version 2.0 Beta

Discussion of Mark Crossley's HTML5/Javascript gauges

Moderator: mcrossley

Post Reply
User avatar
mcrossley
Posts: 14384
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Version 2.0 Beta

Post by mcrossley »

It's about time I finally put out the next version of the SteelSeries web page. There are lots of changes - mainly under the covers - so I think it would be best if a few kind souls were willing to beta test this before I make a formal release. Also some of the translations are incomplete (German, Swedish, Finnish, Spanish, and Catalan) and ideally I'd like these completed as well before release.

As it will be a test version I'd advise that you run this in parallel with your existing pages.

Any takers?

Here are the main changes:

Code: Select all

2.0.0
    * Much of the code rewritten and/or reformatted
      - Most things now contained in a 'gauges' object to avoid polluting the global namespace with
        numerous variables etc.
      - Load orders changed to speed up initial page load/display
    * Updated gauges.js
      - Added ability to select the display units:
          Temp: °C, °F
          Rain: mm, inch
          Wind: km/h, m/s, mph, knots
          Baro: hPa, mb, inHg, kPa
      - Added (optional) cookie handling to preserve end user unit preferences across sessions
      - Added variables to set the default min/max values for gauges
      - Changed the temperature gauge scaling logic so both gauges always use the same range (except
        for the indoor temperature)
      - Default units are now 'metric': °C, mm, hPa, km/h
      - Fixed bug in getord() routine
      - Added config.dewDisplayType setting to control initial 'dew' gauge display
      - Added smaller gauge size option for 'mobile' devices
    * Updated Language handling, all languages now use a single (English by default) template HTML file,
      calling changeLang(LANG.newLanguage) now updates the HTML as well as the gauges.
    * Updated realtimeGaugesT.txt & customclientrawlocal.txt
      - Added todays dominant wind direction
    * Added Danish, Norwegian, and Italian translations
    * Changed gauges-ssT.html to use <div>'s for the layout rather than tables.
    * Removed ddimgtooltip.css - now incorporated into gauges-ss.css
    * Removed ddimgtooltip.js  - now incorporated into gauges.js
    * Removed tween.min.js     - now incorporated into steelseries.min.js
    * Updated realtimeGaugesT.txt and ccrT.txt files to ver8 - added dominant wind direction
    * Updated steelseries.js
      - Updated to v0.11.13
mspec

Re: Version 2.0 Beta

Post by mspec »

I am always up for a test drive
water01
Posts: 3669
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10/11 64bit Synology NAS
Location: Burnham-on-Sea
Contact:

Re: Version 2.0 Beta

Post by water01 »

I will test it if you wish.
David
Image
Matt.j5b
Posts: 512
Joined: Mon 28 Nov 2011 2:13 am
Weather Station: Davis VP2/ WLL with DFARS
Operating System: RPi Raspbian (Buster)
Location: Ferny Grove, Brisbane, Australia
Contact:

Re: Version 2.0 Beta

Post by Matt.j5b »

If it is of help I am willing to give it a test (note that my site is not updated all the time).
Regards, Matt of Brisbane, Australia
Ferny Grove Weather
Image
User avatar
gwheelo
Posts: 453
Joined: Wed 11 Jun 2008 7:36 pm
Weather Station: WMR-88
Operating System: Windows 8.1
Location: L'Estartit, Spain
Contact:

Re: Version 2.0 Beta

Post by gwheelo »

Count me in - I am a glutten for punishment.

gwheelo
Image
tobyspond
Posts: 252
Joined: Fri 24 Jun 2011 5:57 pm
Weather Station: Davis Vantage Pro2
Operating System: Windows 10
Location: Lamoine, Maine, USA

Re: Version 2.0 Beta

Post by tobyspond »

I'm up for it!

Kerry
User avatar
mcrossley
Posts: 14384
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Version 2.0 Beta

Post by mcrossley »

OK, I'll get a zip uploaded some time tomorrow.
User avatar
KarlS
Posts: 140
Joined: Tue 30 Nov 2010 3:01 pm
Weather Station: Ecowitt GW1003 / WH32 / WH41
Operating System: 64bit Bookworm on Pi4
Location: Bridge Lake, BC, Canada
Contact:

Re: Version 2.0 Beta

Post by KarlS »

I don't use the gauges.js on my website, but I would definitly like to look at the changes in steelseries.js that you made.

I'm rather busy at the moment with my Raspberry. It's reading the data from my FO weather station, generates the same webtags that Cumulus uses and FTPs the data every 10 minutes to my ISP. A 24h test run went without a hitch, but now I'm back to Cumulus while fine-tuning the Raspi program (loosely based on Jim Easterbrook's pywws, a big "thank you" to Jim for this fine program, I learned a lot from it!).

Anyway, I've got a few moments left to check out the v2.0, so let's have it ...
User avatar
mcrossley
Posts: 14384
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Version 2.0 Beta

Post by mcrossley »

OK, here is beta 1. I'll be out this evening so have fun - on your own!

for reference, I have it running (unprocessed) here:
http://weather.wilmslowastro.com/gauges ... s-ssT.html
Running on an old laptop in my shed - so be kind!

Edit: File superseded by beta 2
water01
Posts: 3669
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10/11 64bit Synology NAS
Location: Burnham-on-Sea
Contact:

Re: Version 2.0 Beta

Post by water01 »

OK, I have got mine up and running fine http://dmjsystems.co.uk/weather/gauges-ss.htm

I notice in the release notes it says "Added (optional) cookie handling to preserve end user unit preferences across sessions". I changed mine but when I came back to the page it reverted to the standard, have I missed a setting in the script to create the cookie? EDIT Ignore this the cookie is working, didn't seem to the first time but is on subsequent loads.

Also rather than your defaults (C, mm, hPa, mph) can I set my defaults for my site in the script i.e. C, Inch, mb, mph?

Thank you for the new version, very nice. :clap: :clap: :clap:
David
Image
User avatar
mcrossley
Posts: 14384
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Version 2.0 Beta

Post by mcrossley »

water01 wrote:Also rather than your defaults (C, mm, hPa, mph) can I set my defaults for my site in the script i.e. C, Inch, mb, mph?
Good point, I guess the page should default to the native station units, the gauges always used to, so I must have changed this with selectable units code. I'll take a look and see what I can do...
User avatar
KarlS
Posts: 140
Joined: Tue 30 Nov 2010 3:01 pm
Weather Station: Ecowitt GW1003 / WH32 / WH41
Operating System: 64bit Bookworm on Pi4
Location: Bridge Lake, BC, Canada
Contact:

Re: Version 2.0 Beta

Post by KarlS »

Mark:

Is it possible to include the un-minified version of steelseries.js in your zip?
User avatar
mcrossley
Posts: 14384
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Version 2.0 Beta

Post by mcrossley »

KarlS wrote:Is it possible to include the un-minified version of steelseries.js in your zip?
yep, I'll include in the next test version.
water01
Posts: 3669
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10/11 64bit Synology NAS
Location: Burnham-on-Sea
Contact:

Re: Version 2.0 Beta

Post by water01 »

Thought you were out tonight!! :roll: :roll: :roll:
David
Image
User avatar
mcrossley
Posts: 14384
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Version 2.0 Beta

Post by mcrossley »

I was, but I'm back and the tablet was just lying there all lonely. :lol: Off to bed now though..
Post Reply