sjenkins Posted January 15 Posted January 15 I can see this being a plugin/node server with many uses. Can the author give their use cases? And perhaps others chime “haha” in as they play with it?
Michel Kohanim Posted January 15 Posted January 15 @sjenkins, It's mostly for notification purposes of certain events (either scheduled or based on other events). You can also use it as a very rudimentary media player either connected directly to your amplifier or you can get a cheap headphone to Bluetooth converter (about $15 on Amazon) and stream to Bluetooth speakers. We plan to support native Bluetooth shortly so that you can stream directly to Bluetooth speakers. With kind regards, Michel 2
sjenkins Posted January 15 Author Posted January 15 Kind of thought this might be use case. Not to belabour, but as this is local notification what kind of things make sense in your situation?
Michel Kohanim Posted January 15 Posted January 15 @sjenkins, For me, it's mostly to help an elderly person with specific tasks such as: take the pills by hh:mm. If not within 30 minutes, remind again with a different prompt (spoken words). If the door to the pills cabinet is not opened, remind again, etc. ... With kind regards, Michel 1
sjenkins Posted January 15 Author Posted January 15 @Michel Kohanim, You caught me cutting onions ; my mum passed with Alzheimer's , this is tremendous use of home automation. 2
TJF1960 Posted January 15 Posted January 15 I moved over all of my message mp3's from a pi4 to eisy. An amp is connected to the eisy which drives small speakers in each room of the house. Reminders such as to put the garbage cans out or there is someone at the front door or the garage door is still open and more important ones such as a water leak detected. I love that with the addition of this plug in, my pi4 that was used for PG2 and Nodelink and audio spokens is almost decommissioned. The plug in is simple to setup and executes quickly and painlessly. Thanks Michel!!! -Tim 2
paulbates Posted January 15 Posted January 15 (edited) I didn't have this plugin at the time, but there are other HA use cases in general that helps someone whose health brings mobility challenges. Voice control of lights and thermostat. Remotelincs for things like attic fan motors and attic louvers. Also automated lighting premise and inside for convenience and making the house look actively lived in For me, a 100% traveler at the time, it offered passive support through notifications; did the Simiplisafe alarm get turned off?, implying letting the dog out or leaving the house. Did the garage door go up at the right time to go to known appointments? I wish this one would have existed at that time as audio prompts for medications would have been great. It offers them support, with dignity Edited January 15 by paulbates 1
xlurkr Posted January 16 Posted January 16 9 hours ago, TJF1960 said: Reminders such as to put the garbage cans out or there is someone at the front door or the garage door is still open and more important ones such as a water leak detected. History repeats itself. The pioneers used to do this on Stargate, HAI, Elk... The Stargate could make announcements over Panasonic business phones that were once commonly installed in high-end homes. Even (or especially) in bathrooms. -Tom 1
Michel Kohanim Posted January 16 Posted January 16 11 hours ago, xlurkr said: History repeats itself. 100% of the time! With kind regards, Michel
garybixler Posted January 19 Posted January 19 (edited) Can an example of how to set this up be provided. Also is there any collection of audio files available. Really would like to replace ELK and Alexa as the voice source. Any such capability of text to voice? Thanks. Great addition to the eisy. Gary Edited January 19 by garybixler
garybixler Posted January 19 Posted January 19 Found sites where TTV can be created. Should they be in mp3 or wav format or does it matter? Thanks
garybixler Posted January 19 Posted January 19 Thanks Michel. Just need to know how to set it up on the eisy. Thanks So much. Gary
garybixler Posted January 19 Posted January 19 There seems to be something missing according to the log. Do I need to do a package upgrade? Thanks. 2024-01-19 17:39:58,567 MainThread udi_interface INFO polylogger:set_basic_config: set_basic_config: enable=True level=30 2024-01-19 17:39:58,567 MainThread udi_interface INFO __init__:<module>: UDI interface initializing 2024-01-19 17:39:58,568 MainThread udi_interface INFO __init__:<module>: User=0021b9026038_18 2024-01-19 17:39:58,568 MainThread udi_interface INFO __init__:<module>: Home=/var/polyglot/pg3/ns/0021b9026038_18 2024-01-19 17:39:58,568 MainThread udi_interface INFO __init__:<module>: Node Server Path=/var/polyglot/pg3/ns/0021b9026038_18 2024-01-19 17:39:58,568 MainThread udi_interface INFO __init__:<module>: PG3INIT=eyJ1dWlkIjoiMDA6MjE6Yjk6MDI6NjA6MzgiLCJwcm9maWxlTnVtIjoxOCwibG9nTGV2ZWwiOiJJTkZPIiwidG9rZW4iOiJNJnYycmNlM3RXOXJjJShyIiwibXF0dEhvc3QiOiJsb2NhbGhvc3QiLCJtcXR0UG9ydCI6ODg4Mywic2VjdXJlIjoxLCJpc1BHM3giOnRydWUsInBnM1ZlcnNpb24iOiIzLjIuMTciLCJpc3lWZXJzaW9uIjoiNS44LjAiLCJlZGl0aW9uIjoiRnJlZSJ9 2024-01-19 17:39:58,568 MainThread udi_interface INFO __init__:<module>: Loading interface module 2024-01-19 17:39:58,620 MainThread udi_interface INFO interface:<module>: Loading MQTT module 2024-01-19 17:39:59,140 MainThread udi_interface INFO interface:<module>: MQTT module loaded 2024-01-19 17:39:59,379 MainThread udi_interface INFO __init__:<module>: Loading udi_interface module 2024-01-19 17:39:59,380 MainThread udi_interface INFO __init__:<module>: Loading node module 2024-01-19 17:39:59,380 MainThread udi_interface INFO __init__:<module>: Loading custom module 2024-01-19 17:39:59,380 MainThread udi_interface INFO __init__:<module>: Loading isy module 2024-01-19 17:39:59,380 MainThread udi_interface INFO __init__:<module>: UDI interface initialized 2024-01-19 17:39:59,381 MainThread udi_interface INFO __init__:<module>: UDI Python Interface for Polyglot version 3 3.2.6 Starting... 2024-01-19 17:39:59,382 MainThread udi_interface ERROR udi_interface:write: Traceback (most recent call last): File "/var/polyglot/pg3/ns/0021b9026038_18/audio-player.py", line 18, in <module> import pyaudio ModuleNotFoundError: No module named 'pyaudio'
Michel Kohanim Posted January 19 Posted January 19 @garybixler, You need to upgrade your packages. Also, this only works on eisy. With kind regards, Michel
wrj0 Posted January 20 Posted January 20 Your new plug-in works great! Nice job, Michel. Took me a bit of head scratching to get the mp3 files moved to the right place on the newly installed NVMe SSD - but they are working fine now. Thanks for this very useful addition.
garybixler Posted January 21 Posted January 21 (edited) @wrjo hi. I am lost as what I need to do in order to load mp3 files for the audio player. Could you provide some instructions on how this is done or are there instructions posted elsewhere. I would greatly apricate any info. Thanks Gary Edited January 21 by garybixler
wrj0 Posted January 21 Posted January 21 @garybixler I added an NVMe SSD to my eisy, per the instructions Michel provided here a few days ago. Setup the new file storage system as /storage. And created a directory to store the MP3 files, /storage/sounds The MP3 files I wanted to push to eisy were on a windows 11 PC, so I used the scp command to push those files to the new storage on eisy. From the windows directory with the desired mp3 files, D:\IoX\Sounds, used scp in a windows command prompt to push the files. Something like this for a single file: scp ./alert.mp3 admin@eisy.local:/storage/sounds Use your own eisy admin username here. Per Michel's info on the plugin, "For custom sounds, for now, you are in charge of creating a directory, uploading your music files, and giving read permission either to the plugin user or everyone." Indeed, I had to play a bit within eisy with chown, chmod, and chgrp to get permissions set for the directory and the files in /storage/sounds. (Lot's of info available on these linux commands with a quick web search). Once the files are in your desired directory in eisy, you'll need to add that directory in the path Custom Configuration parameter in the PG3x AudioPlayer plugin (for me it's /storage/sounds). I then restarted the plugin, and restarted the IoX Admin Console, and was able to select and play the files placed in the new eisy directory. Hope this helps a little. It was a fun challenge for me to get it to work, and did take a bit of time.
garybixler Posted January 21 Posted January 21 @wrj0Thanks so much for all the info. i would have a problem with setting up the directory and permissions. Pretty clueless when it comes to linux commands. The file transfer looks pretty straight forward after the NVMe SSD storage is installed and permissions configured. Maybe I will need to wait until an integrated system is available for uploading mp3 files. Per Michel's info on the plugin, "For custom sounds, for now, you are in charge of creating a directory, uploading your music files, and giving read permission either to the plugin user or everyone." I am hoping "for now" means that there will be a system for loading the files forthcoming. Could you recommend the type of NVMe SSD that the eisy requires. I was looking at a 1tb 2280. I don't know if there are specific requirements for the eisy or not. Again thanks for your time and information.
wrj0 Posted January 21 Posted January 21 @garybixler Give it a try - it just takes a little digging into the linux commands and there's a ton on info available on line. I chose to install the NVMe SSD as I plan to install HA and try to learn about that system AND I really didn't want to take a chance that I might mess up something in the eisy file structure that UDI developed. For the installation instructions on the SSD, great instructions from UDI are available here: https://developer.isy.io/blog/NVMe Once installed per those instructions, the new /storage directory will be created with the permissions set for admin. Then ssh into your eisy (follow the UDI instructions), and issue 'cd /storage' to get to your new directory. To create a new sounds directory there for your MP3 files, issue: sudo mkdir sounds To set admin permissions for /storage/sounds: sudo chown admin /storage/sounds sudo chgrp admin /storage/sounds sudo chmod 755 /storage/sounds Then move your mp3 files to /storage/sounds as outlined previously. Regarding the NVMe SSD to use, the UDI installation instructions say: "You can get pretty much any M.2 NVMe SSD with the limitation that the capacity cannot be more than 1TB." I chose a WB Black 1TB M.2 2280 for capacity and for its good reviews. Don't wait for that integrated system to upload MP3 files - give it a try like I did. I certainly learned a lot during the process about the eisy file structure that I'm sure will serve well going forward with other projects, like HA. Good luck! 1
garybixler Posted January 21 Posted January 21 @wrj0Thanks, excellent information. Defiantly looks like a project I will be able to accomplish. Looking forward for the eisy to make announcements. Ordering the NVMe today. Again thanks for all the great detailed info.
wrj0 Posted January 21 Posted January 21 @garybixler Great. So, around Tuesday or so, we'll look forward to seeing your success story. 😀
garybixler Posted January 21 Posted January 21 @wrj0 Looks like I wont get the SSD drive until Friday but I will let you know how I make out. In the mean time I will be creating mp3 files. Thanks
dbuss Posted January 21 Posted January 21 I've added an SSD to my eisy. When I attempt to create a partitioning scheme on the SSD I get this. [admin@eisy ~]$ sudo gpart create -s gpt nvd0 gpart: geom 'nvd0': Operation not permitted Any ideas on how I can get past this? Thansk!
Recommended Posts