Search found 6 matches
- Friday 11 June 2021 20:11
- Forum: Bash / PowerShell / Batch etc.
- Topic: Ad nauseam: script works in terminal but not Domoticz
- Replies: 5
- Views: 1764
Re: Ad nauseam: script works in terminal but not Domoticz
I save each script as a version in order to allow tracing back to see if any specific changes worked or failed and I found where I made my mistake. When calling the mp3 directly using os.execute along with runuser I entered the file name as cabinchime.mp3 rather than the correct form of cabin_chime ...
- Friday 11 June 2021 19:59
- Forum: Bash / PowerShell / Batch etc.
- Topic: Ad nauseam: script works in terminal but not Domoticz
- Replies: 5
- Views: 1764
Re: Ad nauseam: script works in terminal but not Domoticz
Well does it work now through dzVents or through the action scripts? And when testing did you see the bash scripts getting started in the Domoticz logging? If you did sudo /home/pi/domoticz/scripts/doorchime.sh to test the root route, did this work? Oh and I did attempt executing the script using ...
- Friday 11 June 2021 19:57
- Forum: Bash / PowerShell / Batch etc.
- Topic: Ad nauseam: script works in terminal but not Domoticz
- Replies: 5
- Views: 1764
Re: Ad nauseam: script works in terminal but not Domoticz
It now is working via the dzVents script. I changed the script over to work with the contact switch rather than the PIR and it is working perfectly return { on = { devices = { 'Front Door' } }, logging = { level = domoticz.LOG_INFO, marker = 'Switch activated', }, execute = function(domoticz, device ...
- Friday 11 June 2021 19:43
- Forum: Bash / PowerShell / Batch etc.
- Topic: Ad nauseam: script works in terminal but not Domoticz
- Replies: 5
- Views: 1764
Re: Ad nauseam: script works in terminal but not Domoticz
Errrrmmmmm ... seriously, three minutes after posting I walked into the kitchen which activated the PIR and "derrn donnn". It worked. I have no idea what has changed but I now have the chime working. Thanks again. Still, if anyone can think of anything I should have added to help with discovery ...
- Friday 11 June 2021 19:38
- Forum: Bash / PowerShell / Batch etc.
- Topic: Ad nauseam: script works in terminal but not Domoticz
- Replies: 5
- Views: 1764
Ad nauseam: script works in terminal but not Domoticz
Hi all ... first, please be gentle - I've been yelled at and put down quite a bit here for not understanding programming so ... I'm attempting to simply play a door chime mp3 when a contact switch opens. Took me a while but I finally figured out how to get the simple contact switch working. Resistor ...
- Friday 09 September 2016 16:18
- Forum: LUA
- Topic: Vocal announcement - Good Morning Script
- Replies: 73
- Views: 21883
Re: Vocal announcement - Good Morning Script
This script is fantastic - thank you! I have my Pi located behind a bookshelf with a computer speaker set attached to the audio-out port(2 speakers and the bass) as I also use it for streaming radio and making particular status announcements using izsynth therefore this script was the perfect ...