Is there a problem with the CountDown Block?

Post Reply
BlueBear
Forecaster
Forecaster
Posts: 101
Joined: Sun Aug 20, 2017 1:04 pm
Location: Sanford, Manitoba, Canada
Station model: Davis VP2
Software: WeeWx
Contact:

Is there a problem with the CountDown Block?

Post by BlueBear » Thu Dec 21, 2017 9:04 pm

I edited the setup for this block and see that the Spring and Summer dates I entered show as counting up not down?

See right column about half way down at http://www.sanfordweather.com

:?:

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: Is there a problem with the CountDown Block?

Post by Jachym » Thu Dec 21, 2017 10:22 pm

If the gauges count up it means you entered a date in the past

BlueBear
Forecaster
Forecaster
Posts: 101
Joined: Sun Aug 20, 2017 1:04 pm
Location: Sanford, Manitoba, Canada
Station model: Davis VP2
Software: WeeWx
Contact:

Re: Is there a problem with the CountDown Block?

Post by BlueBear » Thu Dec 21, 2017 10:46 pm

Here's what I entered

2017-12-25 00:00;2018-01-01 00:00;2018-03-20 11.16;2018-06-21 05.08

The first two count down, the second 2 count up??? Am I blind or what?

User avatar
Gus
Observer
Observer
Posts: 10
Joined: Sun Aug 20, 2017 11:17 pm
Location: Halethorpe, Maryland
Station model: Davis Vantage Pro 2+
Software: Weather Display
Contact:

Re: Is there a problem with the CountDown Block?

Post by Gus » Thu Dec 21, 2017 11:33 pm

Try replacing the periods . in the time with colons :
2018-03-20 11.16;2018-06-21 05.08
Davis VP2+, LabJack w/temp sensors & 1-Wire lightning counter on Trigkey G4 Mini PC, 12th Gen Intel Alder Lake N95 Processor, 16GB SDRAM, and 500GB SSD, Windows11
Image

BlueBear
Forecaster
Forecaster
Posts: 101
Joined: Sun Aug 20, 2017 1:04 pm
Location: Sanford, Manitoba, Canada
Station model: Davis VP2
Software: WeeWx
Contact:

Re: Is there a problem with the CountDown Block?

Post by BlueBear » Thu Dec 21, 2017 11:41 pm

Thanks Gus, these old eyes of mine sometimes have problems seeing stuff like that on the screeen!
Fixed

Bill

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: Is there a problem with the CountDown Block?

Post by Jachym » Fri Dec 22, 2017 1:36 pm

Hi,
thanks Gus, yes in PHP you must use a colon, not a period.

Post Reply