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.
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
Re: SunTracker - with moving ghost
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 
Re: SunTracker - with moving ghost
I think I got it, I'll try and see how it goes.
BTW: Yay! It's snowing!!!
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
Really? Possible in Greece???
My released plugins
https://drive.google.com/drive/folders/ ... y01eVBKeHM
https://drive.google.com/drive/folders/ ... y01eVBKeHM
Re: SunTracker - with moving ghost
I tried to choose Lund in the list for Sweden, but i get URL Error anyway.krambriw wrote:It might be that your location settings are incorrect...I get "URL Error" every 2 minutes.
I have changes the LAT and LONG, can that be the problem?
Thanks, i will trykrambriw wrote:Try to set '1100' on all days like belowIf 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.
Re: SunTracker - with moving ghost
I had a very old version of suntraker, now i have updated to 1.4.5.flopp wrote:I tried to choose Lund in the list for Sweden, but i get URL Error anyway.krambriw wrote:It might be that your location settings are incorrect...flopp wrote:I get "URL Error" every 2 minutes.
I have changes the LAT and LONG, can that be the problem?
Now i dont get any errors
Re: SunTracker - with moving ghost
Yep, although usually doesn't snow before February, it did this morning!krambriw wrote:Really? Possible in Greece???
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
Actually, I have it already (snow is common here)Aside that, I thought you should know about that state missing from your list.
The idea with the separate list is to allow you to make local adaptation without editing inside the plugin itself
My released plugins
https://drive.google.com/drive/folders/ ... y01eVBKeHM
https://drive.google.com/drive/folders/ ... y01eVBKeHM
Re: SunTracker - with moving ghost
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)
"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)
Re: SunTracker - with moving ghost
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
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
Re: SunTracker - with moving ghost
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
I tend to agree, attached is a version that should work the proposed waySo, what you think about it?
BestR
My released plugins
https://drive.google.com/drive/folders/ ... y01eVBKeHM
https://drive.google.com/drive/folders/ ... y01eVBKeHM
Re: SunTracker - with moving ghost
Amazing, thank you very much 
Re: SunTracker - with moving ghost
Yep, he is great!!! 
-
krambriw
- Plugin Developer
- Posts: 2570
- Joined: Sat Jun 30, 2007 2:51 pm
- Location: Stockholm, Sweden
- Contact:
Re: SunTracker - with moving ghost
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
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
My released plugins
https://drive.google.com/drive/folders/ ... y01eVBKeHM
https://drive.google.com/drive/folders/ ... y01eVBKeHM
Re: SunTracker - with moving ghost
Thankskrambriw wrote:- Changed settings to allow 120 minutes instead of 60 for weather compensation settings.