Get a script started by visiting a website from my phone

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Gushou
Posts: 8
Joined: 22 Sep 2020, 14:48

Get a script started by visiting a website from my phone

Post by Gushou » 29 Jun 2022, 06:59

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! :D

gregster
Posts: 9055
Joined: 30 Sep 2013, 06:48

Re: Get a script started by visiting a website from my phone

Post by gregster » 29 Jun 2022, 08:01

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

Gushou
Posts: 8
Joined: 22 Sep 2020, 14:48

Re: Get a script started by visiting a website from my phone

Post by Gushou » 29 Jun 2022, 08:53

Nice Idea. I tried by using my website now. But it's unsafe. Going to try out via telegram now. Thanks!

Post Reply

Return to “Ask for Help (v1)”