Summer Clock

Started by dgd, September 27, 2014, 10:55:20 PM

Previous topic - Next topic

dgd

Clocks went forward an hour today at 2am. Long days and summertime begins  ;D
Computers, laptops, Ipad, digital wall clock, Iphone all adjusted time automatically.
The only clocks I could find that did not update were the Classics.
Now, once upon a lot of firmware revisions ago there was a timezone setup option. Now gone, but that would have been nice to help some firmware auto summertime clock updates.
Any possibility of getting something done with the Classic's clock? No rush, next change is six months away  :)

dgd

Classic 250, 150,  20 140w, 6 250w PVs, 2Kw turbine, MN ac Clipper, Epanel/MNdc, Trace SW3024E (1997), Century 1050Ah 24V FLA (1999). Arduino power monitoring and web server.  Off grid since 4/2000
West Auckland, New Zealand

Westbranch

Probably because:

the switch to Standard time does not change here till the first Saturday night/Sunday AM in NOVEMBER this year,  more than a week  late this year...???
KID FW1811 560W >C&D 24V 900Ah AGM
CL150 29032 FW V.2126-NW2097-GP2133 175A E-Panel WBjr, 3Px4s 140W > 24V 900Ah AGM,
2 Cisco WRT54GL i/c DD-WRT Rtr, NetGr DS104Hub
Cotek ST1500 Inv  want a 24V  ROSIE Inverter
OmniCharge3024  Eu1/2/3000iGens
West Chilcotin 1680+W to come

zoneblue

Its actually pretty tricky to do, because idiot feather picking mop heads keep messing with the damned daylight time dates. The only way you could do it long term is to via a network, and theres no guaranteed net connection for classics. I suspect it would also be a fair bit of code.  I dont think the classics time really does all that much. Midnight tasks. Logging timestamps, etc.

Maybe a better idea is just to leave it in std time time year round.

What does mymidnite do with the graphing? Blackbox messes with the x axis and keeps the curve going. Spot the 0,1,3,4...
6x300W CSUN, ground mount, CL150Lite, 2V/400AhToyo AGM,  Outback VFX3024E, Steca Solarix PL1100
http://www.zoneblue.org/cms/page.php?view=off-grid-solar

dgd

I'm not sure it is actually tricky or difficult to do. Ipad, Win8 and my LG tv only need setup of timezone and they get the changes spot on. Ok, they are all internet connected but so is my Classics.
I just noticed the clock/date on my Electrolux steam oven has also changed. Its internet connected too to allow remote oven activation. And of course the Porsche 911 clock had updated
The Classics are making yellow boxes on local app...

dgd
Classic 250, 150,  20 140w, 6 250w PVs, 2Kw turbine, MN ac Clipper, Epanel/MNdc, Trace SW3024E (1997), Century 1050Ah 24V FLA (1999). Arduino power monitoring and web server.  Off grid since 4/2000
West Auckland, New Zealand

zoneblue

Yeah but those devices all are microprocessor class devices rather then microcontrollers. With an internet connection plus a half gig of ram, you can do all sorts of things.

Local app yellow? What local app was that again....
6x300W CSUN, ground mount, CL150Lite, 2V/400AhToyo AGM,  Outback VFX3024E, Steca Solarix PL1100
http://www.zoneblue.org/cms/page.php?view=off-grid-solar

TomW

Quote from: zoneblue on September 28, 2014, 06:34:11 PM
Local app yellow? What local app was that again....

Midnite's Local App for PC (at least) shows a yellow background when the PC and controller disagree on time / date.

Tom
Do NOT mistake me for any kind of "expert".

( ͡° ͜ʖ ͡°)


24 Trina 310 watt modules, SMA SunnyBoy 7.7 KW Grid Tie inverter.

I thought that they were angels, but much to my surprise, We climbed aboard their starship and headed for the skies

atop8918

#6
Unfortunately DST is a major PITA for programmers. There are libraries and libraries and algorithms and online services, but they are all out of the range of capabilities for our little CC. We elected to make the time changeable on the Classic so the user can adjust it as necessary. We toyed with the idea of putting in a NIST lookup, but it ended up being more algorithmically intensive than almost anything else the Classic does.
MyMidNite uses Unix timestamps for everything using the actual server time that data is received from the Classic and not the time on the Classic itself. I will probably add a DST feature to MyMidNite since we have access to all the libraries up on the server.
I did the time feature for a digital TV ASIC a few lifetimes ago. The code for world DST auto adjust ended up being more than the code for parsing the MPEG streams to obtain actual TV show data and schedules. In the end they dropped it since it was around the time the US was talking to moving to the new DST scheme.

Here is a much more qualified gentlemen than I discussing the joys of Timezones:

https://www.youtube.com/watch?v=-5wpm-gesOY&list=TLQGLcdBlFqCBGGCFtH3HiPtW3p4HqLx5w



dgd

Unfortunately the config in LocalApp for Classic time and date adjustment does not work. I can adjust time and use the return arrow to save it - and the info box changes from yellow to its normal blue. Looks good.
However, close the App then reopen it and the time has gone back to its previous setting with yellow box again.
Tried this on six Classics and the same happens
So is the only solution a 200Km round drive and a day's time to visit these six Classics (at different locations) to use the MNGP to correct the time?    :o
Or am I missing something obvious?

So automated daylight savings time adjustment is complicated.
Perhaps a config MISC option in mngp for dates when clock goes forward/back and something similar in App?

dgd
Classic 250, 150,  20 140w, 6 250w PVs, 2Kw turbine, MN ac Clipper, Epanel/MNdc, Trace SW3024E (1997), Century 1050Ah 24V FLA (1999). Arduino power monitoring and web server.  Off grid since 4/2000
West Auckland, New Zealand

Halfcrazy

DGD
Yes if you want to use the Local App to set the time you need to turn off TimeSync in the tweaks menu. Otherwise the Classic reads the MNGP and over writes what you set. We should have the commit button right it to both the classic and MNGP. (Andrew??)
Changing the way wind turbines operate one smoke filled box at a time

atop8918

No can do, unfortunately. The local app can't get to the MNGP. MNGP is a bus master only. Oh the joys of modbus.

dgd

that lost in time design decision to put the rtc with the mngp instead of on the Classic's main processor board.   :P
20/20 hindsight is just wonderful  ::)

dgd
Classic 250, 150,  20 140w, 6 250w PVs, 2Kw turbine, MN ac Clipper, Epanel/MNdc, Trace SW3024E (1997), Century 1050Ah 24V FLA (1999). Arduino power monitoring and web server.  Off grid since 4/2000
West Auckland, New Zealand

Halfcrazy

Quote from: dgd on September 30, 2014, 04:22:16 AM
that lost in time design decision to put the rtc with the mngp instead of on the Classic's main processor board.   :P
20/20 hindsight is just wonderful  ::)

dgd
Can not disagree with that. In the future we need to try to put things like RTC's on the main unit so we can get to it  :o
Changing the way wind turbines operate one smoke filled box at a time

atop8918

Yup, I am of the same mind.

Halfcrazy

So working with Andrew this AM we are going to give you a tick box to disable timesync. Then we will grey out the time adjustment on the Local App when time sync is enabled. This will make it as useable as possible I think.

We will then have the time and date on the MNGP go away when time sync is off. Replaced with a message saying "TimeSync Disabled see Tweaks"

Ryan
Changing the way wind turbines operate one smoke filled box at a time

dgd

Quote from: Halfcrazy on September 30, 2014, 06:18:31 AM
So working with Andrew this AM we are going to give you a tick box to disable timesync. Then we will grey out the time adjustment on the Local App when time sync is enabled. This will make it as useable as possible I think.

Thats an excellent idea, and will make remote time adjustment via app possible.
Thanks for this.

dgd
Classic 250, 150,  20 140w, 6 250w PVs, 2Kw turbine, MN ac Clipper, Epanel/MNdc, Trace SW3024E (1997), Century 1050Ah 24V FLA (1999). Arduino power monitoring and web server.  Off grid since 4/2000
West Auckland, New Zealand