HTTP request, Trigger and Action

Post your questions and help other users.

Moderator: Martin

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: HTTP request, Trigger and Action

Post by Desmanto » 18 Feb 2019 16:00

I have solved it for long and never use Autoremote anymore since then. Autoremote wifi server tends to be killed, but I almost never have problem with Automagic HTTP request trigger (except when it is being disabled by other flow, but that's different story).

Yes, we can implement the feedback to confirm that the data is sent properly. I can simply put a generic website index.htm at the eventghost base folder or automagic HTTP write request. But I don't use the confirmation, because I use it when I am in front of PC and have access to both, I have direct visual confirmation if something goes wrong.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

hmast
Posts: 26
Joined: 17 Jan 2019 14:50

Re: HTTP request, Trigger and Action

Post by hmast » 20 Feb 2019 22:50

Umn, if error is due very infrequent sensitivity to any number of unusual time/condition, only not confirmation but as I said it solves the problem too.

Have you done something to ensure security assuming the webserver is connected to the internet?
Possible=ISeeAWay, Impossible=IDontSeeNow, ImpossibleButImportant=WeNeedToFindAWay

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: HTTP request, Trigger and Action

Post by Desmanto » 21 Feb 2019 18:40

A feedback is of course much better to ensure the message get across properly. For my yeelight, I parse the response to get the confirmation, as sometimes I can't see the light directly.

My PC is connected to internet and I have firewall to block incoming connection. I only whitelist some of my device static IP and for event ghost. The samba share is password protected. While for the phone I only enable the HTTP trigger when it is connected to my own wifi and disable it when got outside; using my wifi geofencing flow. The other method I am too lazy to implement is to add my own SSL certificate to both server/client. So the whole communication is encrypted and secure with SSL.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

Post Reply