You are not logged in.
Pages: 1
Topic closed
Hi, is it possible to order rex output with the "ok google"?
If there is a possibility is it possible to have an example?
Thanks you in advance
Last edited by geocipo (2018-11-19 12:10:02)
Offline
Hi geocipo,
I'm not sure if I understand your question correctly. Please, can you describe your idea in more details? What exactly do you want to achieve?
Cheers, Tomas
Offline
I would like to drive the outputs of my Unipi with the function "Voice of google" via rexygen. Is it possible? example: https://youtu.be/X9inuvuyzHQ But in simplified function for rexcontrol?
Offline
Hi geocipo,
now I see the point In general: yes, it is possible. As far as I got to know Google Assistant SDK preferably uses Python, right? It is possible to read/write data from/to REXYGEN using REST API. See attached example on mastering REXYGEN REST API using Python.
Cheers, Tomas
Offline
Thank you for your answer. However, I am a newbie ...
I would like to use IFTTT with my smartphone.
Create a "New" applet: "If this then that"
this => Google assistant
That => Webhooks
In the configuration of webhooks I put:
POST
url is: http: //192.168.1.XX: 8008 / api / data / rest_api_task / CNB_IN: YCN
used with the example 0302-03_REST_API_Python_Bash_etc.zip
How can I directly send a 1 or a 0 directly via the url?
Is it possible?
The idea would be to create several applet on ifttt and incorporate it into my home automation.
If I say Turn on the kitchen => an applet sends the url "on" on the rex CNB
If I say Off the kitchen => an applet sends the url "off" on the rex CNB
It would allow me to have the google assistant easily on my home automation
Thanks for the help.
Last edited by geocipo (2018-11-25 13:29:28)
Offline
Hi geocipo,
have a look at the screenshot - it should answer all your questions regarding settings of IFTTT Webhook.
Note: the setting in this post works with REXYGEN login "admin" and blank password. If you use other authentication change the token parameter in URL (encoded in base64).
Let me know if you managed to control your kitchen
Cheers, Tomas
Offline
Woww! Great ! I will test that! However, how do I create the token in relation to my password?
Offline
Hi, I just tried but it does not work ... Does it work for you?
Here is my Printscreen:
Last edited by geocipo (2018-11-27 18:10:25)
Offline
Hi,
yes, it's working for me. Does your Raspberry Pi has public IP address? This could be the problem - local IP address is not enough. What does IFTTT Activity channel says? Which error?
Token:
you can generate your token by any of online tools to encode base64 in following format: login:password (default in REXYGEN: "admin:")
Cheers, Tomas
Offline
Yes that must be the problem. he sends me "Timeout" you do not have an idea for the local? Habridge? Philips Hue Emulator? Or a better idea? I have 3 RPI with Rex on it I prefer to stay in local.
thank you for your reply
Offline
Hi,
I'm not familiar with the services you mentioned. In local network you can use Google assistant on your RPi and communicate with REXYGEN via REST API.
Cheers, Tomas
Offline
Thank you for your reply! I opened my network to the internet, it works!
However, is it possible to send a "push button" command? "on" for 1 sec with JSON?
Because I would like to find the solution to combine "Push button, HMI, and ifttt" I can not send an "ON", it would have to be an impulse.
Offline
Hi,
try to pair IFTTT with MP function block in REXYGEN. Just specify the "pt" parameter as 1s and it should do the job.
Regards, Tomas
Offline
Great! I drive the whole of my house with the voice! thank you!
Offline
Awesome! Are you planning to publish some information about your home automation project? Or maybe shoot a short video showing your system in action?
I'm sure I'm not the only one who would love to hear more about your project.
Kind regards,
Jaroslav
Monarco HAT for Raspberry Pi - Lightweight I/O for monitoring, archiving and control.
Raspberry Pi in industrial automation!
Offline
Thank you for sharing your video! Well done, you did really good job
Offline
Pages: 1
Topic closed