Skip to content
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

Add "HTTP GET $url" query along with trigger #41

Open
maltfield opened this issue Oct 17, 2022 · 3 comments
Open

Add "HTTP GET $url" query along with trigger #41

maltfield opened this issue Oct 17, 2022 · 3 comments

Comments

@maltfield
Copy link
Member

A user just requested that we add a feature to the BusKill app to query some webpage on trigger.

This could be useful, for example, to trigger remote shutdown of other devices.

@maltfield
Copy link
Member Author

I think the idea of this would be to execute in addition to the other trigger. For lockscreen, I see no issue.

However, for a shutdown trigger, I see an issue with the possibility that shutdown happens too fast before the query finishes. I'm not sure if the user would want to prioritize the URL query before the shutdown.

In the event that the usual trigger may prevent the HTTP query from finishing, I suppose the best thing to do is to:

  1. Execute the lockscreen trigger immediately
  2. Execute an asynchronous http query in the background
  3. Wait a user-configurable timeout for the http query to finish. If it does not finish by the timeout, go ahead and trigger the shutdown trigger

@maltfield
Copy link
Member Author

maltfield commented Oct 17, 2022

@maltfield
Copy link
Member Author

This is currently blocked by

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant