Try this line:
- Code: Select all
textToSpeak = u"The weather is currently %s and the temperature is %s degrees." % (indigo.devices[DEV_ID].states["currentWeather"], indigo.devices[DEV_ID].states["temp"])
You're using WUnderground for the data, yes? This line links the string to speak directly to the WUnderground device states. No need to use a variable at all. Be sure to replace DEV_ID (both of them) with the ID number of your WUnderground Weather device. You might also have a look at the WUnderground How To on speaking the weather: http://forums.indigodomo.com/viewtopic.php?f=149&t=12818
I don't think you need to use the %%v:########%% substitution method here.
Dave