Hello everyone,
I have a complex probleem in my eyes and can’t seem to figure it out. I want to open my electric gate with a SwitchBot. This device runs on bluetooth. So I wrote a script to open the gate with a Android emulator. This works but now I want to be able to activate this script with my phone (out of WiFi range). Maybe I can visit a link on my website to activate this script? How can I do this?
Would be nice if you guys could help me out!
Get a script started by visiting a website from my phone
Re: Get a script started by visiting a website from my phone
A Telegram bot (via the official API interface) could be one possible solution, just send a specific message to the bot, like 'opensesame' - or smth more cryptic (but you should limit it to your own private chat ID, so that no one else can trigger it): Here is a bot example, but yours could be a lot simpler: viewtopic.php?f=76&t=42031#p192355
Yours only needs to listen for the (ideally secret) open-gate-message and has to check who send it -> if everything is okay, open the gate.
Well, perhaps some minimal feedback from the bot would be nice as well...
Yours only needs to listen for the (ideally secret) open-gate-message and has to check who send it -> if everything is okay, open the gate.
Well, perhaps some minimal feedback from the bot would be nice as well...
Re: Get a script started by visiting a website from my phone
Nice Idea. I tried by using my website now. But it's unsafe. Going to try out via telegram now. Thanks!