×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

Astroberry + macOS Shortcuts + Siri PoC

  • Posts: 9
  • Thank you received: 0
Hi all. Not sure where I'll take this, but I just completed a proof of concept to control INDI devices via Siri & macOS shortcuts.

What I did.
Created a Python script to get the RA + DEC of a target in the sky from the catalog name like "M31".
Send this using iface.sendProperty.
Created a REST endpoint on the RPi4 to receive what target to trigger and then route this request to the above Python script.
Finally, call the REST endpoint via Siri Shortcut

I do have an issue right now where there is an exception thrown on the 3rd or 4th image capture.

I'm thinking of other ideas such as:
Sub duration
Total target time
Trigger a schedule

Takeaways:
On device target to RA/DEC library instead of external API call
Best way to get "best for tonight" list?
What safety checks work out of the box? (below horizon, Sun, etc...)

Original post
www.cloudynights.com/topic/850540-astrob...-shortcuts-siri-poc/
1 year 5 months ago #88140
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 9
  • Thank you received: 0
Successfully started a schedule.
Last edit: 1 year 5 months ago by Kevin.
1 year 5 months ago #88238

Please Log in or Create an account to join the conversation.

  • Posts: 9
  • Thank you received: 0
Placeholder for added REST endpoints on astroberry.

POST /api/indi/schedulers/start (Trigger a schedule)
GET /api/indi/schedulers (array of schedule names to choose from)
GET /api/indi/schedulers/{scheduleName} (returns the schedule in JSON)
1 year 5 months ago #88299

Please Log in or Create an account to join the conversation.

Time to create page: 0.418 seconds