[FIXED] Sunrise and Sunset Calculation

Forum to discuss Lightswitch/ZWave Commander iPhone/iPod/iPad/Android home automation application

[FIXED] Sunrise and Sunset Calculation

Postby Melloware » Mon May 11, 2009 7:19 am

I found and fixed a bug in the Sunrise and Sunset calculation. You can download the latest EXE from the Downloads area.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Melloware Inc.
http://www.melloware.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
User avatar
Melloware
Site Admin
 
Posts: 11103
Joined: Thu Dec 01, 2005 10:24 pm
Location: Philadelphia, Pennsylvania USA

Re: [FIXED] Sunrise and Sunset Calculation

Postby garman » Wed Jul 29, 2009 8:33 am

Thanks for your efforts, however a search for my location gives me :
from google latitude longitude
decimal 34.087054 -84.2661111
deg-min-sec 34° 5' 13.3944" -84° 15' 58"

If I enter those results in ZwaveCommander my times are off, I have to use 84° 15' 58" instead of -84° 15' 58"
garman
 
Posts: 8
Joined: Tue Jul 21, 2009 7:29 am

Re: [FIXED] Sunrise and Sunset Calculation

Postby Melloware » Wed Jul 29, 2009 9:13 am

I forgot to mention, always use postive numbers in Zwave Commander. It calculates correctly. So make...

Code: Select all
decimal 34.087054 -84.2661111


into

Code: Select all
decimal 34.087054 84.2661111


If you go into your ZWaveCommander.exe.log4net file and change any INFO to ALL and restart ZWave Commander you will see DEBUG for when it thinks the current time is and what time your sunrise and sunset are being calculated and you can look in the LOG file for somethign like....


Code: Select all
2009-07-28 10:29:48,636 Melloware.ZWaveCommander.NotificationIcon [DEBUG] - Current Minutes After Midnight = 629
2009-07-28 10:29:48,636 Melloware.ZWaveCommander.NotificationIcon [DEBUG] - Local Sunrise = 356, Sunset = 1219
2009-07-28 10:30:48,649 Melloware.ZWaveCommander.NotificationIcon [DEBUG] - Current Minutes After Midnight = 630
2009-07-28 10:30:48,649 Melloware.ZWaveCommander.NotificationIcon [DEBUG] - Local Sunrise = 356, Sunset = 1219
2009-07-28 10:30:48,649 Melloware.ZWaveCommander.NotificationIcon [DEBUG] - Polling all devices for levels
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Melloware Inc.
http://www.melloware.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-
User avatar
Melloware
Site Admin
 
Posts: 11103
Joined: Thu Dec 01, 2005 10:24 pm
Location: Philadelphia, Pennsylvania USA

Re: [FIXED] Sunrise and Sunset Calculation

Postby stbluesrul » Thu Mar 11, 2010 5:27 pm

Can another check box be added to the server side to reverse the current action of the Sunrise and Sunset checkbox? So devices could be set to turn on at sunrise and off at sunset.
stbluesrul
 
Posts: 116
Joined: Thu Dec 17, 2009 8:53 pm
Location: Las Vegas, NV


Return to Lightswitch/ZWave Commander

Who is online

Users browsing this forum: No registered users and 1 guest

cron