-
-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to trigger mic of headless client remotely? #75
Comments
Hi, there are a couple of options, I've been using a BLE beacon via MicroBit for a while, but HTTP remote actions are probably easier and can be sent directly to the SEPIA server or to the specific DIY client CLEXI server. The server version is the safest but requires authentication. Here is an example for user ID 'uid1007' and target device ID 'o1':
Its probably not a good idea to store the password in clear-text ^^ so it would be better to get a 'KEY' token before or read the password from a safe place somehow. |
Hi, |
I have an additional question: |
Hi, actually I was thinking about the same issue yesterday inspired by another question I read. I'll come up with a better solution and report back soon ;-) |
I just remembered something 😁 |
Thanks for your reply. After updating server and client to the latest version , I was trying to play an MP3 like this:
It doesn't work, I am pretty sure there is a syntax error, unfortunately I am not an expert here... Generally, I think having an easy way to make a Sepia client say a certain string would be a very common usecase for a smarthome setup. One way to do it might be to have an openhab String item that is monitored by Sepia and if an update is posted to that item (a new string), this string will be spoken. Something like that... Or maybe just an easy endpoint that can be giving a string argument to be spoken. |
The 'action' has to be URL-encoded because of the content-type, this should work:
I've put this on the top of the to-do list :-) and I'll think about the more specific issue of "observing" a value. |
Great, that works! Thanks a lot! |
Right now this is necessary to avoid conflicts between user-interaction and remote-action, but you can change the text if you have access to |
Almost there :-) |
Oh I totally forgot about that 😅 |
Ok, great! Looking forward to testing the new version. |
@fquirin could you post me this example below for the DIY Sepia-Client for Raspberry, please? (Clexi example)
AS you mentioned in your first post on the top |
@fquirin thanks for the answer, i will give that a try thease days, maybe you can check before, would be great, if my code will work. Here will be my actual code which i generated with your help.
Could you check if this is correct, pelase? Maybe i have a few mistakes with the '' |
Hi @gu3nter, assuming your CLEXI IP would be
|
oh nice thanks a lot, i will give that a try thease days, and let you know if it is working Edit: works great, thanks |
After some struggle (mostly due to my lack of knowledge...) I was able to setup a headless client on my raspberry pi 4. It is connected to my SEPIA server running on my Synology via Docker and is working nicely.
As discussed before, I also am not totally happy with the wake-word performance. I would like to remotely trigger the mic (e.g. by using a remote control that is already integrated into my openhab installation). I had a look at the API, but unfortunately I don't have any experience with Javascript, JSON, etc.
What I would like:
option a) Open an URL that triggers the mic on the client
option b) Use a script with "curl" to triggr the mic
From what I saw I think this is possible, I am just lacking the skills to create the right url / curl.
The text was updated successfully, but these errors were encountered: