Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

SunTracker - with moving ghost

Questions and comments specific to a particular plugin should go here.
vuego
Experienced User
Posts: 69
Joined: Wed Jan 17, 2007 9:22 pm
Location: Sweden

Re: SunTracker - with moving ghost

Post by vuego »

Walter, would it be possible to make SunTracker allow more than 60 minutes of weather compensation? I have it set to 60 but sometimes wish I could use more. Thanks :idea:
User avatar
Saxtus
Posts: 42
Joined: Wed Jan 02, 2013 3:37 am
Location: Athens, Greece
Contact:

Re: SunTracker - with moving ghost

Post by Saxtus »

I think I got it, I'll try and see how it goes.

BTW: Yay! It's snowing!!!

Code: Select all

08:38:02   Yahoo!Weather condition not in list: Light Snow
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: SunTracker - with moving ghost

Post by krambriw »

Really? Possible in Greece???
flopp
Posts: 17
Joined: Mon Dec 24, 2012 8:00 am

Re: SunTracker - with moving ghost

Post by flopp »

krambriw wrote:
I get "URL Error" every 2 minutes.
It might be that your location settings are incorrect...
I tried to choose Lund in the list for Sweden, but i get URL Error anyway.
I have changes the LAT and LONG, can that be the problem?
krambriw wrote:
If i want to power on when sunset is and turn off when sunrise is, power on during whole night, how do I set it up then.
Try to set '1100' on all days like below
Image2.png
Thanks, i will try
flopp
Posts: 17
Joined: Mon Dec 24, 2012 8:00 am

Re: SunTracker - with moving ghost

Post by flopp »

flopp wrote:
krambriw wrote:
flopp wrote:I get "URL Error" every 2 minutes.
It might be that your location settings are incorrect...
I tried to choose Lund in the list for Sweden, but i get URL Error anyway.
I have changes the LAT and LONG, can that be the problem?
I had a very old version of suntraker, now i have updated to 1.4.5.

Now i dont get any errors
User avatar
Saxtus
Posts: 42
Joined: Wed Jan 02, 2013 3:37 am
Location: Athens, Greece
Contact:

Re: SunTracker - with moving ghost

Post by Saxtus »

krambriw wrote:Really? Possible in Greece???
Yep, although usually doesn't snow before February, it did this morning!
In fact somebody shot a video of it and uploaded it on YouTube an hour ago! http://youtu.be/MVBjYARuyck

Aside that, I thought you should know about that state missing from your list.
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: SunTracker - with moving ghost

Post by krambriw »

Aside that, I thought you should know about that state missing from your list.
Actually, I have it already (snow is common here)

The idea with the separate list is to allow you to make local adaptation without editing inside the plugin itself :wink:
User avatar
Saxtus
Posts: 42
Joined: Wed Jan 02, 2013 3:37 am
Location: Athens, Greece
Contact:

Re: SunTracker - with moving ghost

Post by Saxtus »

I think I understood how it works now, so, time for new idea about the
"Check if time now is inside calculated virtual range including a weather compensated offset" function! :)

I've noticed that the offset is having the same number sign on both start and end period.
I was wondering if there can be a checkbox to make it have mirroring effect.

So, right now if I set:
Start = Sunrise
End = Sunset
Offset = -60

Then I get True, 60 minutes after sunrise
and False, 60 minutes after sunset.

With that option, I want to have the opposite effect with the same settings as above:
True, 60 minutes after sunrise
and False, 60 minutes before sunset

i.e. offset would have negative effect at the end of the period
(same should apply for weather compensation).

So, what you think about it?
Is it something that people can find useful? (apart from me of course that I am suggesting it)
User1306
Experienced User
Posts: 53
Joined: Sat Oct 13, 2012 4:37 pm

Re: SunTracker - with moving ghost

Post by User1306 »

Quick question and apologies if its been asked before

Would it be possible to have the sunTracker trigger an event if it was Couldy, Raining, or Clear for example.
I think it's possible to do it though an Python script but my knowledge is very basic to none.

Would it be possible to have a quick example of such script

Really appreciate it thanks
User avatar
Saxtus
Posts: 42
Joined: Wed Jan 02, 2013 3:37 am
Location: Athens, Greece
Contact:

Re: SunTracker - with moving ghost

Post by Saxtus »

Um, I am going to hijack some code from SunTracker plugin, as I am doing my baby steps in Python to help you (I take no responsibility if universe blows up if you read below this line!)
  • Create a new macro and add an event named "Main.Weather Condition:"
  • Add in your macro a Python Script action and paste the following:

    Code: Select all

    weather_conditions_that_will_trigger = [
        "Fair", 
        "Clear", 
        "Sunny",
        "Mostly Sunny",
        "Partly Sunny" 
    ]
    currCondition = str(eg.event.payload)
    
    if  currCondition in weather_conditions_that_will_trigger:
        eg.TriggerEvent('My happy trigger')
  • Edit the script as it suits you
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: SunTracker - with moving ghost

Post by krambriw »

So, what you think about it?
I tend to agree, attached is a version that should work the proposed way

BestR
__init__.py
(172.57 KiB) Downloaded 302 times
User1306
Experienced User
Posts: 53
Joined: Sat Oct 13, 2012 4:37 pm

Re: SunTracker - with moving ghost

Post by User1306 »

Amazing, thank you very much :)
User avatar
Saxtus
Posts: 42
Joined: Wed Jan 02, 2013 3:37 am
Location: Athens, Greece
Contact:

Re: SunTracker - with moving ghost

Post by Saxtus »

Yep, he is great!!! :D
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: SunTracker - with moving ghost

Post by krambriw »

So I have released this version now with the accumulated changes(see the first post).

PLEASE NOTE: Always take a copy of your local weather_conditions.py file before you upgrade if you have made any modifications to it and copy it back afterwards.

Best regards, Walter
vuego
Experienced User
Posts: 69
Joined: Wed Jan 17, 2007 9:22 pm
Location: Sweden

Re: SunTracker - with moving ghost

Post by vuego »

krambriw wrote:- Changed settings to allow 120 minutes instead of 60 for weather compensation settings.
Thanks :D
Post Reply