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.
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 »

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
cheater
Posts: 11
Joined: Mon Nov 24, 2008 8:54 am

Re: SunTracker - with moving ghost

Post by cheater »

Hi,

ich habe auf 2 Systemen getestet. Windows 7 64bit und Windows Server 2003 32bit. Auf beiden dasselbe Problem.

Grüße
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 »

Could you post screen shots of your SunTracker and the SunTracker actions?

BR
cheater
Posts: 11
Joined: Mon Nov 24, 2008 8:54 am

Re: SunTracker - with moving ghost

Post by cheater »

Here we go,

hope thats all you need!
Attachments
Picture 3.JPG
Picture 2.JPG
Picture 1.JPG
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 »

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
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 »

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
__init__.py
(157.95 KiB) Downloaded 261 times
DoXer
Posts: 7
Joined: Mon Jul 02, 2012 8:27 am

Re: SunTracker - with moving ghost

Post 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.
User avatar
Livin
Experienced User
Posts: 792
Joined: Wed Oct 08, 2008 4:56 am

Re: SunTracker - with moving ghost

Post 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)
setup... XBMC, W7MC for DVR & Live OTA TV, JRMC for multi-zone audio, EG, MiCasaVerde Vera3, USB-UIRT IR receiver, Harmony remote, 5.2 home theater system
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 »

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!
piert
Experienced User
Posts: 321
Joined: Tue Jun 14, 2011 2:53 pm

Re: SunTracker - with moving ghost

Post 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
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 »

Sorry, yes, renamed quite long ago, please use this instead:

eg.plugins.Suntracker.GetSunState()

BestR Walter
piert
Experienced User
Posts: 321
Joined: Tue Jun 14, 2011 2:53 pm

Re: SunTracker - with moving ghost

Post by piert »

OK thanks. That works.
zaptorrent
Posts: 5
Joined: Thu Oct 18, 2012 2:17 pm

Re: SunTracker - with moving ghost

Post 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
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 »

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
zaptorrent
Posts: 5
Joined: Thu Oct 18, 2012 2:17 pm

Re: SunTracker - with moving ghost

Post 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.
Post Reply