-
Notifications
You must be signed in to change notification settings - Fork 42
Action API
Aaron W Morris edited this page Oct 21, 2024
·
5 revisions
The Action API allows you to control the behavior of indi-allsky via HTTP POST requests.
Most actions are asynchronous, therefore, when the HTTP request is finished, that does NOT mean the action has fully completed. The action may require 1-3 minutes to complete.
Data must be posted in JSON format with the username and password attributes
{
"username" : "foo",
"password" : "bar"
}
curl \
--insecure \
--include \
--header "Content-Type: application/json" \
--request POST \
--data '{"username": "foo", "password": "bar"}' \
https://localhost/indi-allsky/action/pause
Endpoint | Description |
---|---|
/indi-allsky/action/pause | Pauses image capture |
/indi-allsky/action/unpause | Unpauses image capture |