SunTracker - with moving ghost

Questions and comments specific to a particular plugin should go here.

Re: SunTracker - with moving ghost

Postby Tomkun » Tue Sep 20, 2011 5:07 am

Thanks for the answers, I have now got it set up just as I like.

One final thing...

Can this work in tandem with S3 sleep?

Ideally, I would like the PC to wake up in order to process events at sunrise and sunset rather than have to leave it on 24 hours a day, but I am not sure how to set that up. Windows task scheduler allows tasks to wake the PC, but I don't see that option in EventGhost...

[edit]
Just one more thing... (I hope!)
If I use sunstate with weather compensation and it is set to 60 and it's currently raining, then the bool should be set to 'false' 60 minutes before sunset, is this correct? Unfortunately it isn't the behaviour I'm seeing, in fact it is only triggering about 30 minutes before sunset. Have I misunderstood how it works?
[/edit]
Tomkun
 
Posts: 10
Joined: Wed Sep 14, 2011 4:40 am

Re: SunTracker - with moving ghost

Postby krambriw » Tue Sep 20, 2011 10:18 am

Can this work in tandem with S3 sleep?

I have no know-how of this and how this works. Only thing is that the SunTracker tries to synchronise (provided you select the option "synchronise") to the correct state whenever you start the plugin.

If I use sunstate with weather compensation and it is set to 60 and it's currently raining, then the bool should be set to 'false' 60 minutes before sunset, is this correct?


Yes, this should be correct. But I only use the weather info from Goggle weather and it is important that it reports "rain" then. Another thing that can have an impact is if you have used the "offset" setting. Then they work in combination. Lets say you have the weather compensation set to 60 min and the offset set to 30. When "rain" it would be 30 min in total as you experience. The rules are in the code and as follows:

Code: Select all
            "Cloudy",
            "Fog",
            "Overcast",
            "Light Rain",
            "Rain",
            "Rain Showers",
            "Freezing Rain",
            "Freezing Drizzle",
            "Drizzle",
            "Flurries",
            "Rain and Snow",
            "Showers",
            "Isolated Thunderstorms",
            "Thunderstorm",
            "Chance of Showers",
            "Chance of Snow",
            "Chance of Storm",
            "Scattered Showers",
            "Mist",
            "Dust",
            "Icy",
            "Smoke",
            "Sleet"
- iWeather + iOffset

Code: Select all
            "Snow",
            "Light snow",
            "Snow Showers",
            "Mostly Cloudy",
            "Ice/Snow",
            "Haze",
            "Partly Cloudy"
- iWeather/2 + iOffset

Code: Select all
            "Clear",
            "Sunny",
            "Mostly Sunny",
            "Partly Sunny"
during summer season iWeather + iOffset otherwise iWeather/2 + iOffset

Code: Select all
            "Unavailable"
iOffset


Best regards, Walter

PS Did the logging work ok for you now?
krambriw
Plugin Developer
 
Posts: 1144
Joined: Sat Jun 30, 2007 2:51 pm

Re: SunTracker - with moving ghost

Postby Tomkun » Tue Sep 20, 2011 11:40 am

Yes, logging works perfectly and I think the timing issue was down to the offset issue you mentioned. Thank you so much for your help and patience!
Tomkun
 
Posts: 10
Joined: Wed Sep 14, 2011 4:40 am

Re: SunTracker - with moving ghost

Postby DaBIGOne » Thu Nov 24, 2011 8:07 pm

I've found a variable tZ (TimeZone) where the timezone was ajusted in de soucre (__init___.py) I calculated the timezone difference (GMT-6, and I'm GMT +1 so I changed the calculation of the correction to 5) and now I get the values of sunrise and sunset to the right values in the string being displayed (Today is Thursday. Sunrise will be at........).

I'll have to wait until the actual sunrise to see if it's also timing correctly.

Maybe it would be a nice feature to implement for pet owners though. (mainly reptile owners that is)

Edit: Administrator didn't approve my first note, it was about having Turtles for pets and it would be nice if they would get their basking lights on for the normal places they live in (I found a wildlife management facility at the Mississippi, USA where my Red Eared Sliders are originally from), but then not on the same timezone, but my european timezone... so sunset would be at 8:00 my local time and not at 14:00, which is converted timezone.
Without this information the other remark wasn't very usefull.
User avatar
DaBIGOne
 
Posts: 8
Joined: Thu Nov 24, 2011 7:22 pm

Re: SunTracker - with moving ghost

Postby krambriw » Fri Nov 25, 2011 1:37 pm

What is this?

I really don't get what is wrong.

Are you talking about having a function where you could offset the timezone?

Like if you are hosting the software in one timezone but actually controlling something in another timezone?
krambriw
Plugin Developer
 
Posts: 1144
Joined: Sat Jun 30, 2007 2:51 pm

Re: SunTracker - with moving ghost

Postby DaBIGOne » Fri Nov 25, 2011 4:03 pm

Well, it's hard to explain, I'll try my best.

I have Turtles and I would like to replicate their habitat as close as possible.
They are originally from the USA (timezone GMT -6) so I set SunTracker to coordinates for a nice wildlife park in the area.
but my server has timezone GMT+1, so the sunrise and sunset times are the actual times in the US, for this week it was something like 14:00 - 00:00 (let's say in the local time in timezone GMT-6 would be 08:00-18:00).
Well that's not the time we are living on, but I would like to have their "sun" go up and down as if they were in the USA. But then on my local timezone, roughly about 08:00 - 18:00.

So I would like to have sunrise and sunset events at 8:00-18:00 depending on the other timezone, but in my local timezone time.

I have this fixed right now by changing the tZ variable calculation where it was calculating the timezone difference to my timezone, and I changed it to -5 (-6 + 1).
But maybe some other users would like to use this feature for their (mainly reptile) pets, It would be nice if an alternate timezone could be selected in the plugin.

Thanks,

Da BIG One.
User avatar
DaBIGOne
 
Posts: 8
Joined: Thu Nov 24, 2011 7:22 pm

Re: SunTracker - with moving ghost

Postby krambriw » Sat Nov 26, 2011 6:57 am

Ok, I understand now, actually you are correct, when setting the geographical location, the corresponding time zone should also be used. I have to think about this and how I can find it. Today I'm just reading local settings in the computer and that is why it works like it does. If I instead could get the timezone information related to the geo position in some way, it would work as expected.

In the mean time, I hope your Turtles are doing fine!

Best regards, Walter

PS I guess you could also run EG in a virtual machine and there you could set the local time zone and geographical position to be used
krambriw
Plugin Developer
 
Posts: 1144
Joined: Sat Jun 30, 2007 2:51 pm

Re: SunTracker - with moving ghost

Postby krambriw » Wed Nov 30, 2011 10:39 am

New version uploaded, you can now change your time zone as you preferre. This is not affecting your operating system, only the functions of the plugin.

# 2011-11-29 Timezone is now selectable to allow you to setup an environment
# that is different from your (computers) actual location
# 2011-10-06 Added a (selectable) function that generates an event every
# minute bringing information about the current weather condition
# 2011-10-01 Added a getter action to retrieve the weather condition
# 2011-09-18 New location for logfiles: eg.configDir/plugins/SunTracker
krambriw
Plugin Developer
 
Posts: 1144
Joined: Sat Jun 30, 2007 2:51 pm

Re: SunTracker - with moving ghost

Postby DaBIGOne » Thu Dec 01, 2011 8:09 pm

You are the best ! :)

And my turtles think so too :)
User avatar
DaBIGOne
 
Posts: 8
Joined: Thu Nov 24, 2011 7:22 pm

Re: SunTracker - with moving ghost

Postby krambriw » Fri Dec 02, 2011 6:52 am

Thanks, please let me know if it works as expected. In my own tests I did before the release, everything looked ok but you never know...

Best regards, Walter
krambriw
Plugin Developer
 
Posts: 1144
Joined: Sat Jun 30, 2007 2:51 pm

Re: SunTracker - with moving ghost

Postby DaBIGOne » Sun Dec 04, 2011 8:36 am

It seems there is something wrong, my turtles were very happily basking last night at about 01:00 :) (they still love you though)

I can't figure out what's going on exactly the time suntracker reports as sunrise and sunset is ok, but the time isn't.
It seems that the event for sunrise came between 0:00 and 1:00 while it should be at about 8:00 and there was another sunset event between 02:00 and 09:00 and that should be at 18:xx.

I can't figure out what's wrong, or what the bad behaviour is...

and I keep getting "Main.Weather Condition: 'Undefined'" pretty much in the log, and I have unchecked the "Create Weather Condition events".

Also there are no log entries in the suntracker.html file in the log folder since I installed the latest update so I can't see what time the events are triggered exactly.

And there is a strange selection... the timezone I want to have is -6, but if I select -6 It is an hour early, so I have set it to -5, I'm at timezone GMT +1 maybe it's not accounting for that ?
User avatar
DaBIGOne
 
Posts: 8
Joined: Thu Nov 24, 2011 7:22 pm

Re: SunTracker - with moving ghost

Postby krambriw » Sun Dec 04, 2011 4:52 pm

I'll be away for a week, I will look into this asap

BestR Walter
krambriw
Plugin Developer
 
Posts: 1144
Joined: Sat Jun 30, 2007 2:51 pm

Re: SunTracker - with moving ghost

Postby krambriw » Thu Dec 08, 2011 3:27 pm

Sorry, made some bugs, can you try this version, just replace existing file with this one
__init__.py
(140.02 KiB) Downloaded 63 times


Then copy & paste what is printed in the log (it is printed every minute) and it looks similar to this:

Code: Select all
16:25:00   strTz [u'-06', u'00']
16:25:00   iDLS 0
16:25:00   SR 0128
16:25:00   SS 0750
16:25:00   now 2011-12-08 16:25:00.437000
16:25:00   diff -1 day, 18:00:00
16:25:00   trigTime 1025
16:25:00   corr 2011-12-08 10:25:00.437000


I need to see how daylight saving, your local time etc is generated

Best regards, Walter
krambriw
Plugin Developer
 
Posts: 1144
Joined: Sat Jun 30, 2007 2:51 pm

Re: SunTracker - with moving ghost

Postby DaBIGOne » Fri Feb 10, 2012 2:05 pm

OMG, I'm such a dick...
I totally forgot about this thread, I just changed the old file and it was working for me, but you want to create a good working plugin (and I want that too).

this is what I got:
Code: Select all
strTz [u'+01', u'00']
iDLS 0
SR 1411
SS 0126
now 2012-02-10 14:58:00.649000
diff 1:00:00
trigTime 1558
corr 2012-02-10 15:58:00.649000
Main.Weather Condition: 'Undefined'
Today is Friday. Sunrise will be at 1411 and Sunset at 0126


The "Today is Friday"-line should be set to 0811 and 1926 for correct value.

I see it changes the timezone by +1 and it's not correcting to my +1 timezone.
I think I could get this to work bij changing it to -6 or something in that fasion...

Edit: changed it to -5 and now I get:
Code: Select all
strTz [u'-05', u'00']
iDLS 0
SR 0811
SS 1926
now 2012-02-10 15:07:00.097000
diff -1 day, 19:00:00
trigTime 1007
corr 2012-02-10 10:07:00.097000
Main.Weather Condition: 'Undefined'
Today is Friday. Sunrise will be at 0811 and Sunset at 1926


I think I made a mistake by selecting timezone +1, should have set to -6 where the location really is, but had to set to -5 to correct an error (I think it's an error).
User avatar
DaBIGOne
 
Posts: 8
Joined: Thu Nov 24, 2011 7:22 pm

Re: SunTracker - with moving ghost

Postby krambriw » Mon Apr 02, 2012 9:24 am

New version uploaded in first post

Best regards, Walter
krambriw
Plugin Developer
 
Posts: 1144
Joined: Sat Jun 30, 2007 2:51 pm

PreviousNext

Return to Plugin Support

Who is online

Users browsing this forum: No registered users and 1 guest