I can’t wait to try it… !! Well Done You Two !
@teonebello - please can you past exactly what you code used as mine below fails, also did you address the delay issue that was mentioned by guessed?
local DEVICE_NO = 5 -- the official Sonos device number local LS_SID = "urn:micasaverde-com:serviceId:Sonos1" local MN_SID = "urn:micasaverde-com:serviceId:MediaNavigation1" local lul_temp = luup.variable_get("urn:upnp-org:serviceId:TemperatureSensor1","CurrentTemperature", 42)luup.call_action(LS_SID, “SetURIToPlay”, {URIToPlay = “x-rincon-mp3radio://translate.google.com/translate_tts?tl=it&q=today+there+are+”…tostring( lul_temp )…“+Gradi”}, DEVICE_NO)
luup.call_action(MN_SID, “Play”, {}, DEVICE_NO)
@guessed, while we have your expertise on this post, one thing I’ve been trying to do is work out how to convert/encode the Device’s name (device params, name) so it can be placed within the TTS URL.
Ben’s Room Temperature = Ben%27s+Room+Temperature
Is there a Lua URL command/encoder or something that could be used for this?
Allowing us to achieve something like this - http://translate.google.com/translate_tts?tl=en&q=Ben's+Room+Temperature+Is+At+21+degrees+Celcius