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 4017) - 17 March 2024

Legacy Cumulus 1 release v1.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

Scroller Text Forecast

Discussion of Mark Crossley's HTML5/Javascript gauges

Moderator: mcrossley

Post Reply
Edkop
Posts: 11
Joined: Wed 21 Oct 2015 1:41 am
Weather Station: Unsure
Operating System: Windows XP
Location: Trenton, nj

Scroller Text Forecast

Post by Edkop »

Hi All,
The forecast text in the display, how do you make it scroll instead of just appear? Is there a way to do that or is that a function of the weather station itself?
Also, I understand that on the main cumulus (console) page there is the white text box with the 'Current' label. The Wiki and help say to use that feature, turn it on in the display settings...I can't seem to find that anywhere;(

Thanks!
Ed
http://www.yardvilleweather.com
water01
Posts: 3215
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

Re: Scroller Text Forecast

Post by water01 »

This code

Code: Select all

        // Singleton for the Status Scroller
        //
        singleStatus = (function () {
            var instance;   // Stores a reference to the Singleton
            var scroller;   // Stores a reference to the SS scrolling display

            function init() {
                // create forecast display
                if ($('#canvas_status').length) {
                    scroller = new steelseries.DisplaySingle(
                        'canvas_status', {
                            width             : $('#canvas_status').width(),
                            height            : $('#canvas_status').height(),
                            lcdColor          : gaugeGlobals.lcdColour,
                            unitStringVisible : false,
                            value             : strings.statusStr,
                            digitalFont       : config.digitalForecast,
                            valuesNumeric     : false,
                            autoScroll        : true,
                            alwaysScroll      : true
                    });

                }
starts around line 585 in gauges,js.

Set autoScroll and alwaysScroll to true.
David
Image
User avatar
steve
Cumulus Author
Posts: 26702
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Scroller Text Forecast

Post by steve »

Also, I understand that on the main cumulus (console) page there is the white text box with the 'Current' label. The Wiki and help say to use that feature, turn it on in the display settings...I can't seem to find that anywhere;(
If you can see it, then you've presumably turned it on? If not, the display settings are on the configuration menu, and the checkbox has the label "Show current conditions box".
Steve
Edkop
Posts: 11
Joined: Wed 21 Oct 2015 1:41 am
Weather Station: Unsure
Operating System: Windows XP
Location: Trenton, nj

Re: Scroller Text Forecast

Post by Edkop »

water01 wrote:This code

Code: Select all

        // Singleton for the Status Scroller
        //
        singleStatus = (function () {
            var instance;   // Stores a reference to the Singleton
            var scroller;   // Stores a reference to the SS scrolling display

            function init() {
                // create forecast display
                if ($('#canvas_status').length) {
                    scroller = new steelseries.DisplaySingle(
                        'canvas_status', {
                            width             : $('#canvas_status').width(),
                            height            : $('#canvas_status').height(),
                            lcdColor          : gaugeGlobals.lcdColour,
                            unitStringVisible : false,
                            value             : strings.statusStr,
                            digitalFont       : config.digitalForecast,
                            valuesNumeric     : false,
                            autoScroll        : true,
                            alwaysScroll      : true
                    });

                }
starts around line 585 in gauges,js.

Set autoScroll and alwaysScroll to true.
Thank you David!
Edkop
Posts: 11
Joined: Wed 21 Oct 2015 1:41 am
Weather Station: Unsure
Operating System: Windows XP
Location: Trenton, nj

Re: Scroller Text Forecast

Post by Edkop »

steve wrote:
Also, I understand that on the main cumulus (console) page there is the white text box with the 'Current' label. The Wiki and help say to use that feature, turn it on in the display settings...I can't seem to find that anywhere;(
If you can see it, then you've presumably turned it on? If not, the display settings are on the configuration menu, and the checkbox has the label "Show current conditions box".
Steve,
Yes , I can see it, so it must be on. Some I types 'test' in there and can not find any output on the web pages. Is there a tag I need to add somewhere?
Thanks!
User avatar
steve
Cumulus Author
Posts: 26702
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Scroller Text Forecast

Post by steve »

Yes - <#currcond>
Steve
Edkop
Posts: 11
Joined: Wed 21 Oct 2015 1:41 am
Weather Station: Unsure
Operating System: Windows XP
Location: Trenton, nj

Re: Scroller Text Forecast

Post by Edkop »

I've made those modifications to the code...neither of them did anything :(
User avatar
steve
Cumulus Author
Posts: 26702
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Scroller Text Forecast

Post by steve »

The gauges.js on your web site still has alwaysScroll: false - http://www.yardvilleweather.com/scripts/gauges.js

Please zip up and attach the template to which you have added the <#currcond> web tag.
Steve
Edkop
Posts: 11
Joined: Wed 21 Oct 2015 1:41 am
Weather Station: Unsure
Operating System: Windows XP
Location: Trenton, nj

Re: Scroller Text Forecast

Post by Edkop »

Got the scroller to work :). Not sure what happened, maybe I didn't save it the first time :bash:
When I get a chance I will zip up and upload my indexT.htm file. I'm on the IPad right now.
Thanks!!
griffo42
Posts: 226
Joined: Thu 10 Dec 2015 6:41 am
Weather Station: Davis Vantage Pro2
Operating System: Win 11 Home
Location: Brisbane, Queensland, Australia
Contact:

Re: Scroller Text Forecast

Post by griffo42 »

Hi

Could someone please tell how the forecast which scrolls is generated and from where it comes in the template suite of programs.

Thanks

griffo42
Brisbane, Australia
Keith
Davis Vantage Pro2 Model #6152AU - CumulusMX - Win11 - Saratoga/CUMX Default Scripts
https://www.kstwx.net/index.php
https://www.kstwx.net/cumx/index.html
Image
Post Reply