Jump to content

Use cases


sjenkins

Recommended Posts

@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

  • Like 2
Link to comment
Share on other sites

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

  • Like 2
Link to comment
Share on other sites

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 by paulbates
  • Like 1
Link to comment
Share on other sites

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

  • Like 1
Link to comment
Share on other sites

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 by garybixler
Link to comment
Share on other sites

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'

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

@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 by garybixler
Link to comment
Share on other sites

@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.

Link to comment
Share on other sites

@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. 

Link to comment
Share on other sites

@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!

  • Like 1
Link to comment
Share on other sites

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!

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

×
×
  • Create New...