did some more testing and I’ll post this here for future users testing php
I created a test php file named soundtest.php just to test if php and mpg were working
I actually had a play with a random idea that popped into my head during the week last night to make an old android device play audio alerts using a similar concept to the OP but a little bit simpler. I found that installing Kodi on my girlfriends old Moto X play and enabling the kodi web interface i could tell it to play media via the API.
I could make a call using the vera to the Kodi device using:
And it would start playing the alert. I had a bit of a look for a TTS plugin or TTS API but at this point i gave up on the idea, i proved my point it was possible just have no idea what i would use it for personally that would be all that useful. I guess if i had people leaving doors open lights on it would be good. My only other thought was i could plug the phone into my alarm clock / dock thing and have it do something if one of the door sensors picked something up in night mode instead of an alarm going crazy.
VERA Alarm clock maybe?
I’m already using something similar to the above to make use of the Kodi Notification/pop up’s when things happen around the house on my kodi devices which are connected to my TV’s.
[quote=“RV, post:12, topic:197796”]not working for me
I can play the sound using
mpg321 /var/www/html/audio/lgo.mp3
I get a web page when I go to the web address
I think php isn’t working for me[/quote]
I have the exact same problem, my PHP is working as I made a test with some writing to display on the webpage, has anyone solved this?
I still use the vera for all automation.
I only use this speaker thing and HA for sound like “upper gate open” when it’s opened.
I also use HA to scan all sensors for open/tripped states @ 11pm and announce “the west garage door is open” for example.
I was a huge pain in the @$$ to set up but basicly…
set up HA on a raspberry Pi
set it to use the Vera
vera:
vera_controller_url: http://192.168.0.200:3480/
lights: [6, 7, 16, 29, 32, 40, 43, 45, 99, 122]
exclude: [ 90, 91, 92]
setup automatons
id: ‘1535144973178’
alias: Laundyroom Door Open
trigger:
entity_id: binary_sensor.laundyroomdoor_113 ← there a file that gets created that has all the Vera device names.
from: ‘off’
platform: state
to: ‘on’
condition: []
action:
there’s probably an easier way to do this but the helpful people @ the HA forums suggested “rest” so that’s the route I took.
I think it could be done by using the same HA pi as a media player for HA and call the mp3 directly a folder on it and play on a speaker attached to the HA rPI.
yeah, keep in mind, when this thread started, he was probably two version back of the Pi OS compared to what is available now.
when I did it. I started with 1 version newer and had some “issues”.