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

Re: SunTracker - with moving ghost

Post by cheater »

Hallo,
sorry for answering so late.

K├Ânntest du mir eventuell mal hier eine vorkonfigurierte Datei hochladen. Ich habe leider immernoch Probleme.

Ich m├Âchte folgendes realisieren:
Mit Eventghost die Maus bewegen um, zum Sonnenaufgang einen Zeitraffer einer Canon A800 (mit CHDK) zu starten.
Eventghost muss also zu Sonnenaufgang in einer Software auf den Startknopf dr├╝cken.

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

This is off-topic. I will just help with Q's related to the SunTracker plugin itself. Your need to control various mouse movements, window and application control can be made with macros that are already available (see the list when you click "Add Macro...") but this is something I will not cover here.

Best regards, Walter
cheater
Posts: 11
Joined: Mon Nov 24, 2008 8:54 am

Re: SunTracker - with moving ghost

Post by cheater »

Sry,
da hast du mich falsch verstanden, ich m├Âchte keine komplett fertige Datei.

Es geht nur um eine Beispieldatei mit dem SunTracker Plugin, nicht mehr und nicht weniger.
Ich brauche eben nur ein Sunrise und ein Sunset Event.

Der Rest war eine Erklärung, das bekomme ich selbst hin.

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

ok, then try this simple sample:
Image3.jpg
Image3.jpg (11.77 KiB) Viewed 6221 times
cheater_test.xml
(1.86 KiB) Downloaded 201 times
At sunrise, notepad will be started and at sunset it will get closed. This example gives you an idea. You can add mouse and window controls, emulate keyboard etc to set it up as you need.

Best regards, Walter

PS I forgot one thing, disable the "Synchronization activated (Y/N)", then you will only get events at actual Sunrise/Sunset.
Last edited by krambriw on Thu Sep 06, 2012 4:14 am, edited 2 times in total.
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 »

Bug?
I run the latest version and fight the following problem. The events Main.sunset and Main.Sunrise appear 2 hours too early, while the announced times in the log are completely correct.
I will set this up myself a couple of days to check if I can reproduce, thanks
BR Walter
cheater
Posts: 11
Joined: Mon Nov 24, 2008 8:54 am

Re: SunTracker - with moving ghost

Post by cheater »

Guten Abend,
ich habe heute Nacht eine Testkonfiguration laufen lassen.
00:00:02 Today is Thursday. Sunrise will be at 0641 and Sunset at 1951
04:41:00 Main.Sunrise
06:41:01 Main.Sonnenaufgang
17:51:00 Main.Sunset
Main.Sunrise erscheint meiner Meinung nach 2 Stunden zu fr├╝h, Main.Sonnenaufgang ist dagegen korrekt. Fraglich ist auch, weshalb um 17:51 Main.Sunset geloggt wird. Ich werde noch updaten was im Laufe des Abends passiert.
PS I forgot one thing, disable the "Synchronization activated (Y/N)", then you will only get events at actual Sunrise/Sunset.
Habe ich bereits selbst herausgefunden, trotzdem Danke! :wink:

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

@cheater and Noelba,

It might very well be that there is a bug somewhere...but I have not found it yet

Can you try to change the time settings from 1159 to 1100 instead and see if it then runs ok for you?

In my test since yesterday, it looks ok (if I have the time set to 1100):

From the log file:

Code: Select all

>2012-09-07 00:00:01	Today is Friday. Sunrise will be at 0559 and Sunset at 1932<br
>2012-09-07 05:59:01	Sunrise, Weather Condition: Undefined, Total time compensation(negative is ON earlier and OFF later): 0<br
From EG log:
Image2.jpg
Image2.jpg (1.62 KiB) Viewed 6214 times
DoXer
Posts: 7
Joined: Mon Jul 02, 2012 8:27 am

Re: SunTracker - with moving ghost

Post by DoXer »

It might very well be that there is a bug somewhere...but I have not found it yet

Can you try to change the time settings from 1159 to 1100 instead and see if it then runs ok for you?

In my test since yesterday, it looks ok (if I have the time set to 1100):
Hi, I have the same problem, 2hours to early. Sorry, I use the plugin Twilight as workaround ;). Walter in which timezone are you? I have "UTC+1" located in Germany.
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 »

Walter in which timezone are you? I have "UTC+1" located in Germany.
I am in the same, in Stockholm, Sweden. Have you tried to set the time to 11.00? Or post a picture of your setting.

Best regards, Walter
DoXer
Posts: 7
Joined: Mon Jul 02, 2012 8:27 am

Re: SunTracker - with moving ghost

Post by DoXer »

I'll test this night, you'll get feedback tomorrow
cheater
Posts: 11
Joined: Mon Nov 24, 2008 8:54 am

Re: SunTracker - with moving ghost

Post by cheater »

Set the time to 11:00.

Let's test :wink:
DoXer
Posts: 7
Joined: Mon Jul 02, 2012 8:27 am

Re: SunTracker - with moving ghost

Post by DoXer »

Set the SunTracker to 11:00, same problem.

Code: Select all

2012-09-08 00:00:01  Today is Saturday. Sunrise will be at 0659 and Sunset at 2004
2012-09-08 04:59:00  EVENT: Main.Sunrise
piert
Experienced User
Posts: 321
Joined: Tue Jun 14, 2011 2:53 pm

Re: SunTracker - with moving ghost

Post by piert »

Hi Walter,

Sorry to mess up the bug tracking thread, but I currently use an old version of suntracker in my TV watching macro and I wonder if I can use the new suntracker with my EG script.

As it is working now in my case, the IR signal from my TV remote is received by the computer when I switch on the television when I watch TV; if it is light outside, as determined in a Python script using suntracker's command "eg.plugins.Suntracker.IsSunDown(-50, 60)" -note the offset that is used to compensate for the brightness inside my house compared to outside conditions- , the computer will not activate the lights inside the house. However, at the same time, by including in the python script the statement "eg.plugins.Suntracker.IsSunDown(-50, 60)", suntracker causes an event "Main.IsSunDown.False" with payload to be sent to the EG log. I use this to schedule an event to switch on the lights at a later time when it gets dark. For this, I use a command that calculates the time between the moment of switching on the TV and the time when it will get dark. This command uses the payload from the previous suntracker event and multiplies by 60 to get the number of seconds between the receipt of the event and sunset. This command is eg.wacht = 60*float(eg.event.payload.split("|")[8]). Then, the script will schedule a command to switch on the lights for TV watching during the night: eg.scheduler.AddTask(eg.wacht, eg.TriggerEvent, 'ON').

The above is just an explanation of what I am using, but basically I would like to know from you if the new Suntracker plugin still uses the same commands eg.plugins.Suntracker.IsSunDown(-50, 60), i.e. with offset feature and that Suntracker still reports back with events with payload, of which the 8th section is the time remaining until sunset, so that I can migrate safely.
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 »

The commands are still there of course with the same format as before. Running your example eg.plugins.Suntracker.IsSunDown(-50, 60) in the latest version returns 'False' right now and creates the following event in the eg log:

Code: Select all

15:08:29   Main.IsSunDown.False u"-50|60|Fair|Real Sunset expected:|1929|Virtual Sunset expected:|1839|Minutes to Virtual Sunset:|211|Minutes adjusted:|0|IsSunDown:|False"
However, depending on how old version you are using, there could be a general problem with migration. I recommend that you build up your SunTracker actions again in a separate computer.. Then you could do xml editing and copy & paste from the new to the old xml file and in this way migrate. Just replacing the old SunTracker plugin with the latest might cause error messages that can not be solved easily.

Best regards, Walter
cheater
Posts: 11
Joined: Mon Nov 24, 2008 8:54 am

Re: SunTracker - with moving ghost

Post by cheater »

DoXer wrote:Set the SunTracker to 11:00, same problem.

Code: Select all

2012-09-08 00:00:01  Today is Saturday. Sunrise will be at 0659 and Sunset at 2004
2012-09-08 04:59:00  EVENT: Main.Sunrise
Yup, same problem!
Post Reply