Page 1 of 1
Domoticz tells the temperature
Posted: Sunday 03 January 2016 16:51
by Sebbienl
i just started with my Domoticz project.
For sounds i user the TTS from voicerss.org. Works fine with the simple actions but now i'm looking for a script that tells me the temperature.
It will tell me the temperature every hour or.... just on evert or trigger.
maybe someone has seen or found it?
regards!
Re: Domoticz tells the temperature
Posted: Sunday 03 January 2016 18:23
by DutchHans
See my next message
Re: Domoticz tells the temperature
Posted: Sunday 03 January 2016 18:24
by DutchHans
Hi, i have domoticz sent all notifications to my android phone. There is a free app which speaks notifications out loud. Here's a little script i created. I use Utter! On my android to recognize voice commands and send them as json commands to Domoticz. I can ask Domoticz what the temperature of my beer is..it replies with the following script. I guess its what youre looking for. Beercheck is a virtual switch.
Happy Newyear...
Happy to share, Hans
Code: Select all
--script_device_sensorFridge.lua
local sensorBeer = 'Fridge Temp' --name of the sensor that gets created when you add the Cresta device (and that contains multiple values like temperature, humidity, barometer etc)
commandArray = {}
if otherdevices[sensorBeer] and otherdevices['BeerCheck'] == 'On' then
sBeerTemp, sBeerHumidity, sBeerPressure = otherdevices_svalues[sensorBeer]:match("([^;]+);([^;]+);([^;]+)")
sBeerTemp = tonumber(sBeerTemp)
print('Fridge Temperature is ' .. sBeerTemp)
BeerAlarmText = "Hans, The temperature of your beer is " .. sBeerTemp .." degrees Celcius. Cheers!!"
BeerAlarmURLtext = string.gsub( BeerAlarmText, " ", "%%20")
commandArray['OpenURL']='https://autoremotejoaomgcd.appspot.com/sendnotification?key=xxxxxxxxxx--OhaJQBEbHld-eG1DjwC-Srt9miElajPslmlvYTno7MlRfy12WkDPgeM0KpPycN2XNjBMv0PT3MIWcBWrAlmOsQUK3Og5H_ptGCl7v26zlDdIkSsNnc33HQeYb_D1GOrpoaNFj9xP-bR0XHD7Cn-5XcJtUIh8sw&title=Message%20of%20the%20house&text='..BeerAlarmURLtext..'&url=ysrbXxxx.myfritz.net:8080'
commandArray['BeerCheck']='Off'
print('-- ' .. BeerAlarmText )
--end
end
return commandArray