Page 19 of 38
Re: SunTracker - with moving ghost
Posted: Sun Sep 09, 2012 1:18 pm
by krambriw
Yup, same problem!
This is very strange, in my system it works just as before and expected. Two things that might go wrong could be that the plugin fails to detect from the operating system if daylight savings are on or not and that something goes wrong in the time zone calculation.
I still need some time to figure out where in the code to insert some useful debug information to help track down the cause.
I am running Vista and XP, all 32 bit systems. What OS systems are you using?
Best regards, Walter
Could you try this simple python script and tell me what value is printed?
Code: Select all
import time
iDLS = time.localtime()[-1]
print iDLS
Re: SunTracker - with moving ghost
Posted: Sun Sep 09, 2012 2:45 pm
by cheater
Hi,
ich habe auf 2 Systemen getestet. Windows 7 64bit und Windows Server 2003 32bit. Auf beiden dasselbe Problem.
Grüße
Re: SunTracker - with moving ghost
Posted: Sun Sep 09, 2012 5:42 pm
by krambriw
Could you post screen shots of your SunTracker and the SunTracker actions?
BR
Re: SunTracker - with moving ghost
Posted: Sun Sep 09, 2012 5:56 pm
by cheater
Here we go,
hope thats all you need!
Re: SunTracker - with moving ghost
Posted: Sun Sep 09, 2012 6:13 pm
by krambriw
Thanks a lot, exactly what I needed, now I see the problem, just need to find how to fix it.
Actually, the action is doing everything correct, it is the Sunrise/Sunset events generated by the plugin itself that are wrong.
BR Walter
Re: SunTracker - with moving ghost
Posted: Mon Sep 10, 2012 5:55 am
by krambriw
ich habe auf 2 Systemen getestet. Windows 7 64bit und Windows Server 2003 32bit. Auf beiden dasselbe Problem.
Hi, I think I fixed the problem, it seems to be ok here. Coulkd you try it? Just replace the file with the one below.
Best regards & thanks both of you for notifying me about the bug,
Walter
Re: SunTracker - with moving ghost
Posted: Tue Sep 11, 2012 5:27 am
by DoXer
Looks like your fix did it.
Code: Select all
07:03:00 Main.Sunrise
07:03:29 Twilight.sunrise
Thank for your effort.
Re: SunTracker - with moving ghost
Posted: Fri Sep 14, 2012 12:24 am
by Livin
Walter,
Using the posted 8/30 version, with and without the most recent PY you posted - I'm getting an error...
17:19:58 Error starting plugin: SunTracker
17:19:58 Traceback (most recent call last) (1572):
17:19:58 File "C:\Users\ha\Documents\EventGhost\eg\Classes\PluginInstanceInfo.py", line 177, in Start
17:19:58 self.instance.__start__(*self.args)
17:19:58 TypeError: __start__() takes exactly 14 arguments (12 given)
Re: SunTracker - with moving ghost
Posted: Fri Sep 14, 2012 4:14 am
by krambriw
Livin,
Did you do it like this...?
To upgrade, it is very important to follow the steps below in the specified order.
1) When EG is running current version, disable the SunTracker plugin and all SunTracker actions so that they all stops
2) Unzip or copy the content of the new zip file
3) Now configure the SunTracker plugin, as example look at the picture below.
- enter your location id: A five digit US zip code or location ID. To find your location ID, browse or search for your city from the Yahoo! Weather home page(
http://weather.yahoo.com/) The weather ID is in the URL for the forecast page for that city. You can also get the location ID by entering your zip code on the home page. For example, if you search for Berlin in Germany on the Yahoo! Weather home page, the forecast page for that city is
http://weather.yahoo.com/germany/berlin/berlin-638242/. The location ID is 638242.
- select your units: type of units. 'metric' for metric or 'non-metric' (currently planned for future functions)
- select how often you want weather data updates (default is every 5 minutes)
When finished, click ok, then enable the plugin so that it starts.
4) Now for each action, configure each of them by opening them and clicking ok
5) Enable each of the actions
6) Open the settings for the plugin again and check that they are all running
7) You are done!
Re: SunTracker - with moving ghost
Posted: Sat Sep 22, 2012 10:00 am
by piert
Walter,
I followed your steps and upgraded suntracker successfully.
I have an older action that performs a check if sun is up. It makes use of the command:
if eg.plugins.Suntracker.GetContentsOfVariable():
Each time the action runs an error is produced:
12:33:52 Traceback (most recent call last):
12:33:52 Python script "115", line 1, in <module>
12:33:52 if eg.plugins.Suntracker.GetContentsOfVariable():
12:33:52 File "C:\Program Files\EventGhost\eg\Classes\PluginInstanceInfo.py", line 33, in __getattr__
12:33:52 return self.actions[name]()
12:33:52 KeyError: 'GetContentsOfVariable'
Is this command no longer available in Suntracker and should I replace with another?
Thanks,
Perry
Re: SunTracker - with moving ghost
Posted: Sat Sep 22, 2012 3:15 pm
by krambriw
Sorry, yes, renamed quite long ago, please use this instead:
eg.plugins.Suntracker.GetSunState()
BestR Walter
Re: SunTracker - with moving ghost
Posted: Sat Sep 22, 2012 7:53 pm
by piert
OK thanks. That works.
Re: SunTracker - with moving ghost
Posted: Thu Oct 18, 2012 2:29 pm
by zaptorrent
Is it possible to also get the current temperature from the yahoo weather feed? The plugin is only getting the "text" part of the condition statement as far as I can see, what do you need to change to get the "temp" part?
I used the Weather plugin for this before but it's not working anymore since google canceled their weather service.
What I need to do is to turn the heat on in my house at a specific time IF the temperature is below a certain level. I'd appreciate any suggestions on how to do this now that the weather plugin has stopped working?
/ Zap
Re: SunTracker - with moving ghost
Posted: Thu Oct 18, 2012 5:53 pm
by krambriw
The temperature is there in the data but currently I do not use it, it is thrown away. I could look into that and add an additional action that could be used to get the current temperature and humidity I think (maybe need to make it possible to select Fahrenheit/Celsius as well).
Anyway, would it not be of higher interest what temperature is inside the house? What type of stuff do you have today to control and monitor?
Best regards, Walter
Re: SunTracker - with moving ghost
Posted: Fri Oct 19, 2012 6:35 am
by zaptorrent
That's what I thought, since the data is already in the xml, might as well show it. I use the tellstick to control lights and radiators in the house. As you say it would be even better to know the temperature inside but then Id need additional hardware and a way for the new hardware to communicate with EG... The outside temperature is enough to make an educated guess. It's also perfect for turning on the engine heater in the car only if its cold enough.
I'm also thinking of controling marquees. If it's sunny and warm I want them out to shade the house but if it's sunny and cold I want to use the sun to help heat the house.