# ASCOM Alpaca & NodeRed for Open Astronomy

**URL:** <https://discourse.nodered.org/t/ascom-alpaca-nodered-for-open-astronomy/54931>\
**Category:** General\
**Created:** [9 December 2021 13:44 UTC](https://discourse.nodered.org/t/ascom-alpaca-nodered-for-open-astronomy/54931 "2021-12-09T13:44:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![widobsono](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/widobsono/32/52336_2.png) [@widobsono](https://discourse.nodered.org/u/widobsono)\
**Post date:** [9 December 2021 13:44 UTC](https://discourse.nodered.org/t/ascom-alpaca-nodered-for-open-astronomy/54931/1 "2021-12-09T13:44:32Z")

</div>

Hello good people,

I hope all of you are doing great and healthy, mentally and physically.

I am an amateur astronomer and now working in an backyard Observatory and Planetarium called [ImahNoong](https://imahnoong.com/), located in Lembang, Indonesia. So I have been working with astro instruments and integrating it with ASCOM Protocol, only as a user. But I also used NodeRed for some of the automation around the observatory such as the sliding roof.

ASCOM released a new protocol using HTTP and JSON to send and receive commands, called ASCOM Alpaca, I really like NodeRed because of it's flexibility and robustness, but I don't know how to connect them together, below are some resources that I've been reading to understand how ASCOM Alpaca works, but I still don't get it.

- [ASCOM Alpaca API](https://ascom-standards.org/api/)
- [GitHub - msproul/AlpacaPi: Astronomy control software using Alpaca protocol on the Raspberry Pi](https://github.com/msproul/AlpacaPi)
- [GitHub - T0T4R4/pylpaca: ASCOM Alpaca API micro-framework for Python](https://github.com/T0T4R4/pylpaca)

I am planning to use Raspberry pi to control the hardware (Sliding Roof) using the GPIO, so that's why NodeRed came to my mind as the go to solution.

I hope this post will spark a discussion and some suggestions on how I can better understand the system.

Thank you,

Best Regards,  
Arifin

---

<div class="post-metadata">

**Author:** ![krambriw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/krambriw/32/5429_2.png) [@krambriw](https://discourse.nodered.org/u/krambriw)\
**Post date:** [9 December 2021 15:24 UTC](https://discourse.nodered.org/t/ascom-alpaca-nodered-for-open-astronomy/54931/2 "2021-12-09T15:24:11Z")

</div>

Hi, the ASCOM Alpaca API is said to be a REST interface. You could most likely just use the "http request" node to send commands. The documentation is full of examples for various url's and methods. What have you tried so far?

---

<div class="post-metadata">

**Author:** ![widobsono](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/widobsono/32/52336_2.png) [@widobsono](https://discourse.nodered.org/u/widobsono)\
**Post date:** [12 December 2021 09:59 UTC](https://discourse.nodered.org/t/ascom-alpaca-nodered-for-open-astronomy/54931/3 "2021-12-12T09:59:23Z")

</div>

Hello, thank you for answering. The main problem is my inability of making the first step, because I still don't understand REST Interface. I still can't draw the whole concept in my mind on how the instrument and the protocol working together.

---

<div class="post-metadata">

**Author:** ![Bobo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bobo/32/8401_2.png) [@Bobo](https://discourse.nodered.org/u/Bobo)\
**Post date:** [12 December 2021 10:39 UTC](https://discourse.nodered.org/t/ascom-alpaca-nodered-for-open-astronomy/54931/4 "2021-12-12T10:39:18Z")

</div>

> [@widobsono](#):
>
> because I still don't understand REST Interface

There are many good resources out there, plenty on utube for example. Have you looked?

I've not tried Alpaca yet but run ASCOM as the interface for cameras, mount etc. But no connection with NR yet.

---

<div class="post-metadata">

**Author:** ![krambriw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/krambriw/32/5429_2.png) [@krambriw](https://discourse.nodered.org/u/krambriw)\
**Post date:** [13 December 2021 06:22 UTC](https://discourse.nodered.org/t/ascom-alpaca-nodered-for-open-astronomy/54931/5 "2021-12-13T06:22:37Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/d/1db91b58f1e40f448ae8185bde28e4f5270dc54a.png)

The first example above is checking the connection status. The second is an example checking the "Interface version". The api documentation provides you with many more examples but this should get you going. I'm not going to share the flows, learning by typing is much better

Here are the configurations for the http nodes respectively:

In this one, using the test server

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/3/7342c4e4a7c26297ed55643e90c4c9a71c73997e.png)

For this one, you have to modify the ip and eventually the port nbr according to your local settings

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/5/d51702d602c1590fe8e255e86d4a23eca486603f.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [11 February 2022 06:22 UTC](https://discourse.nodered.org/t/ascom-alpaca-nodered-for-open-astronomy/54931/6 "2022-02-11T06:22:58Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
