FireWizard wrote: ↑Monday 02 January 2023 14:23
2. Use CATT (Cast all the things)
If you define a text (and you can create as many as you wish) and convert these to a mp3 or something similar, you can try to send that to your Google device with e.g. a Domoticz script.
So, as CATT as relative easy to set up, I've come a long way already.
When I'm in my Pi Terminal, I can execute the script:
Code: Select all
catt -d, --device Kantoor cast /home/pi/Music/file.mp3
First a little blink from my home mini, and than the soundfile, which I'll change to a spoken txt mp3 later on.
But when I'm trying to run it from Domoticz I get an error:
Code: Select all
2023-01-02 21:58:04.153 Error: Error executing script command (/home/pi/domoticz/scripts/file.sh). returned: 32512
I have this scipt as an 'on-action' of my test devices in Domoticz.
Code: Select all
#!/bin/bash
catt -d, --device Kantoor cast /home/pi/Music/file.mp3
stop
I've made it an executable (chmod +x file.sh
I've granted all the rights (chmod 777 file.sh)
But the error persist. I've searched already for solutions, but haven't found one clear answer yet.
Shouldn't I use '.py' instead of '.sh' ? Asking this because the founder of CATT has an example where the script ends with '.py'.
Girlfriend is mad because she wants me to go to sleep, so tomorrow is anonther day!