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)