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!
Domoticz tells the temperature
Moderators: leecollings, remb0
-
- Posts: 2
- Joined: Sunday 29 November 2015 8:02
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Domoticz tells the temperature
Raspberry Pi 2B
RFXtrx433E USB 433.92MHz Transceiver
Wi-FI 300 MBPS
RFXtrx433E USB 433.92MHz Transceiver
Wi-FI 300 MBPS
-
- Posts: 229
- Joined: Friday 03 April 2015 20:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Germany (near dutch border)
- Contact:
Re: Domoticz tells the temperature
See my next message
Last edited by DutchHans on Sunday 03 January 2016 18:26, edited 1 time in total.
-
- Posts: 229
- Joined: Friday 03 April 2015 20:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Germany (near dutch border)
- Contact:
Re: Domoticz tells the temperature
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
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
Who is online
Users browsing this forum: Google [Bot] and 1 guest