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 plugin

Do you have questions about writing plugins or scripts in Python? Meet the coders here.
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: SunTracker plugin

Post by krambriw »

To riksvag:

Yes, I see that this is a bug (you can easily fix it yourself)

Open the SunTrackerplugin file
"C:\Program Files\EventGhost\plugins\SunTracker\__init__.py"
with the notepad

Goto line 446

Change iMinOnPeriod to self.iMinOnPeriod

Save, restart EG

Sorry!

This bug is fixed in the version with the moving ghost function

Best regards, Walter


PS I have now also uploaded a fixed version for you (and others)
__init__.zip
(11.96 KiB) Downloaded 257 times
Last edited by krambriw on Fri Sep 12, 2008 7:08 am, edited 1 time in total.
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: SunTracker plugin

Post by krambriw »

To fatboy,

I can guess, but it would be easier if you could make a screenshot of your setting.

Think about the following when you are defining the settings

If its Monday and you like the lamps to be turned off 02.00 the following night, you have to insert 0200 on Tuesday, And so on,,,

Best regards, Walter
riksvag
Posts: 7
Joined: Mon Aug 18, 2008 7:06 pm

Re: SunTracker plugin

Post by riksvag »

krambriw wrote:
Change iMinOnPeriod to self.iMinOnPeriod
Walter, you're the man!

I'll try it out tonight.

Thanks alot!
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: SunTracker plugin

Post by krambriw »

Hi,

Also this version is now updated with
- Bugfix in string conversion

I plan to stop supporting this version, instead try to use the one with "moving ghost"

BestR Walter
17.09.2008__init__.zip
(11.97 KiB) Downloaded 269 times
riksvag
Posts: 7
Joined: Mon Aug 18, 2008 7:06 pm

Re: SunTracker plugin

Post by riksvag »

Great job.

OK, I'll see if I can work up the nerv to follow your instructions to switch to the moving ghost version. Great name by the way.

Again thanks.
User avatar
jinxdone
Plugin Developer
Posts: 443
Joined: Tue Jan 02, 2007 4:08 pm

Re: SunTracker plugin

Post by jinxdone »

I made one variable name which has changed since the last version. Works with 0.3.7.
Attachments
14.03.2009__init__.zip
(11.63 KiB) Downloaded 239 times
manjh
Posts: 41
Joined: Thu Mar 12, 2009 11:14 am

Re: SunTracker plugin

Post by manjh »

this plugin looks like just the one I am looking for, but I can't get it to work.
I'm sure this is something I am doing wrong.....
I downloaded the first ZIP fil, copied the content SunTracker folder into my EG plugins folder.
When I try to add the plugin in EG, it complains that it cannot read __init__.py for SunTracker.
Am I missing something?
User avatar
jinxdone
Plugin Developer
Posts: 443
Joined: Tue Jan 02, 2007 4:08 pm

Re: SunTracker plugin

Post by jinxdone »

It's probably complaining about missing suntracker.png and suntracker_plugin.png (they are in the zip file in the first post of this thread).

The file included in this post should be all that's needed. The .pyc file is compiled python code, EG will create that automatically if its missing, don't worry about those..
Attachments
14.3.2009_suntracker_complete.zip
(61.07 KiB) Downloaded 230 times
manjh
Posts: 41
Joined: Thu Mar 12, 2009 11:14 am

Re: SunTracker plugin

Post by manjh »

jinxdone wrote:It's probably complaining about missing suntracker.png and suntracker_plugin.png (they are in the zip file in the first post of this thread).

The file included in this post should be all that's needed. The .pyc file is compiled python code, EG will create that automatically if its missing, don't worry about those..
hmmm... doesn't help. I unzipped the containing SunTracker folder, copied that over to my EventGhost\plugins folder, and tried to add the plugin.
I can see the SunTracker in the list, but when I select it EG says "no information" available, and in the event window comes back with "can't read... etcetera".
What am I doing wrong?
User avatar
jinxdone
Plugin Developer
Posts: 443
Joined: Tue Jan 02, 2007 4:08 pm

Re: SunTracker plugin

Post by jinxdone »

Hmm.. What version of EventGhost are you using? It works fine for me on 0.3.7.r851
manjh
Posts: 41
Joined: Thu Mar 12, 2009 11:14 am

Re: SunTracker plugin

Post by manjh »

jinxdone wrote:Hmm.. What version of EventGhost are you using? It works fine for me on 0.3.7.r851
0.3.5.7 build 908.
But I'm sure this is something I'm doing wrong. What exactly are the steps I should take to implement this plugin into EG?
User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: SunTracker plugin

Post by Pako »

manjh
Posts: 41
Joined: Thu Mar 12, 2009 11:14 am

Re: SunTracker plugin

Post by manjh »

Did that, and it upgraded me to a newer version.
I was now able to add SunTracker as a plugin, but then when I try anyhing it gives me a bunch of red lines... doesn't look good!
User avatar
jinxdone
Plugin Developer
Posts: 443
Joined: Tue Jan 02, 2007 4:08 pm

Re: SunTracker plugin

Post by jinxdone »

So.. Let me get this right. You updated to 0.3.7 and extracted that last .zip file so that the the __init__.py and the two pictures are in the plugins\SunTracker dir. correct?

Could you then Copy & Paste the errors you are getting, and what exactly you do that causes them. Perhaps then we can get it debugged. Kinda hard to say what is wrong with the 'bunch of red lines' only. It works fine here though.
manjh
Posts: 41
Joined: Thu Mar 12, 2009 11:14 am

Re: SunTracker plugin

Post by manjh »

jinxdone wrote:So.. Let me get this right. You updated to 0.3.7 and extracted that last .zip file so that the the __init__.py and the two pictures are in the plugins\SunTracker dir. correct?

Could you then Copy & Paste the errors you are getting, and what exactly you do that causes them. Perhaps then we can get it debugged. Kinda hard to say what is wrong with the 'bunch of red lines' only. It works fine here though.
I can add the plugin, but it then shows an empty screen. Nothing there to configure-.
When I try to add a macros using SunTracker, I get the errors. See attached.
Post Reply