Page 21 of 38
Re: SunTracker - with moving ghost
Posted: Tue Oct 23, 2012 2:07 pm
by krambriw
@User1306
Correct, you can try this script
Code: Select all
m = eg.plugins.Suntracker.GetForecasts()
today = m[0]
tomorrow = m[1]
weather_today = 'The forecast for today is '+today['text']+'. High temperature at '+today['high']+' and low at '+today['low']
weather_tomorrow = 'The forecast for tomorrow is '+tomorrow['text']+'. High temperature at '+tomorrow['high']+' and low at '+tomorrow['low']
eg.plugins.Speech.TextToSpeech(u'Microsoft Anna - English (United States)', 0, weather_today, 0, 100)
eg.plugins.Speech.TextToSpeech(u'Microsoft Anna - English (United States)', 0, weather_tomorrow, 0, 100)
Re: SunTracker - with moving ghost
Posted: Tue Oct 23, 2012 2:49 pm
by User1306
krambriw your the best! i cant thank you enough.
(i was doing a research for days on this, as my knowledge of python is zero)
Re: SunTracker - with moving ghost
Posted: Tue Oct 23, 2012 3:22 pm
by Samme
Thanks Walter, I managed to fix it by editing the xml, now I get no errors anymore, but I get a new trigger that got me a bit curious!
Code: Select all
17:13:00 Main.Weather Condition: 'Undefined'
Ohh, well, while I'm at it, also, I know I maybe shouldn't bring upp Tellstick issues, but anyhow it some what related. When I start EG, I get the following:
Code: Select all
17:10:05 Default Bedroom, window to "Off" on init
17:10:05 TellStickDuo: Turn off Bedroom, window
17:10:05 Retry nbr: 1
17:10:05 Retry nbr: 2
17:10:05 Retry nbr: 3
17:10:05 Retry nbr: 4
17:10:05 An error occurred while trying to transmit
And also, have you done any documentation or howto on the Suntracker, I'm thinking for the most part of Moving Ghost settings, which I have no idea how they're working!
Thanks a bunch for all your help and development of plugins! Soon, I will buy a RFXtrx433, then I'll get to use that plugin too

Re: SunTracker - with moving ghost
Posted: Tue Oct 23, 2012 3:48 pm
by krambriw
That is good to hear! The xml editing is a last resort but still very useful. Also if you want to combine parts from several configurations, this comes very handy.
I get a new trigger that got me a bit curious!
The idea is that you should get an event every minute with the current weather condition at your location. For this to work, you need to check the settings in the plugin, you have to find your Yahoo! location id. But you can also turn this feature off if you do not want it (there is a check box there for it). Also, if you use weather conditions, you may have to maintain the weather_conditions.py file in the plugin directory because sometimes a new condition suddenly appears from Yahoo!.
There is no real complete guide but the moving ghost feature is well described in this thread (you just have to search for the page).
The issue with the Duo is that the plugin is not able to communicate with it. Have you tried it with Telldus Center or SK?
Eventually, try to connect it to a different USB port
Best regards
Re: SunTracker - with moving ghost
Posted: Tue Oct 23, 2012 4:11 pm
by Samme
I've tried both SWXX0007 and also SWXX0007, Gothenburg but I still get 18:07:00 Main.Weather Condition: 'Undefined'-
Before I changed it was Gothenburg, Sweden or Goteborg, Sweden, but if I recall it must have been from the old version that used Google's API, right?
Ohh, and about the DUO, which in fact, in my case is a ordinary Tellstick, it just happens once in a while, for the most part it works flawless, and so far I have EG controlling seven devices.
Re: SunTracker - with moving ghost
Posted: Tue Oct 23, 2012 4:27 pm
by vuego
Use 20070562 for G├Âteborg, Sweden.
Re: SunTracker - with moving ghost
Posted: Tue Oct 23, 2012 4:30 pm
by Samme
Thanks Vuego! Now it works like a charm

Re: SunTracker - with moving ghost
Posted: Tue Oct 23, 2012 4:33 pm
by krambriw
Thats the wrong format, it has to be something like this: 24602928 (this is for my location)
Check this link:
http://weather.yahoo.com/sweden/vastra- ... -20070562/
For Gothenburg 20070562 should work.
BR Walter
Re: SunTracker - with moving ghost
Posted: Sun Oct 28, 2012 3:24 pm
by holle75
Hi Walter, quick one in the weather conditions list: "Light snow" should be "Light Snow". Maybe this is already changed but .....
best
H.
Re: SunTracker - with moving ghost
Posted: Sun Oct 28, 2012 4:16 pm
by krambriw
Yes, thanks, so you got snow now as well
Best regards, Walter
Re: SunTracker - with moving ghost
Posted: Sun Oct 28, 2012 4:25 pm
by holle75
Yup

Re: SunTracker - with moving ghost
Posted: Thu Dec 06, 2012 2:17 am
by mikeclueby4
A bit naughty to plug another plugin in this thread, I know, but if you want something lighter (and therefore easier to use),
https://sites.google.com/site/eventghos ... s/twilight is very friendly.
Re: SunTracker - with moving ghost
Posted: Thu Dec 06, 2012 2:52 am
by rdgerken
The latest EG update broke my SunTracker. Anyone else experience this? Something about needing 10 arguments, but 14 pass├®d or something like that.
Strange.
Re: SunTracker - with moving ghost
Posted: Thu Dec 06, 2012 5:56 am
by krambriw
Yes, when you updatet EG, you got an older version instead. You can fix it by downloading and replacing with the latest.
A good advice is always to take a backup copy of all plugin folders where you know you have done something yourself, like downloaded a never version of a plugin before updating EG.
Hope it works out for you
Re: SunTracker - with moving ghost
Posted: Thu Dec 06, 2012 9:33 am
by Pako
Oh, I'm sorry, that's probably my fault.
This topic does not relate to me, and so I can not remember at all,
that I should include the new version into the installation file.
We must devise a simple system to prevent it next time.
The same (of course) concerns more plugins.
Pako