×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

RazberryPI ZWay roll off roof driver

  • Posts: 6
  • Thank you received: 0
Hello,

my name is Frank and I'm new here. I like to write a indi driver for my observatory roof using a Raspberry PI with the Razberry Z-Wave Module which has an Restful API.
I use two Z-Wave door sensors as limit switch and a Z-Wave relay to pulse my modified garage door opener. I have already an configured test setup on my table and i can simulate all steps manually by the browser.

I plan to make the api calls with curl but i need to parse the response from json.
My current issue is to find a common license compatible c/c++ library.

Can you give me some recommendations?
5 years 10 months ago #25702

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

Hello Frank, welcome to INDI!

It should be fairly straight forward to develop an INDI roof driver for your setup:

1. Start by taking a look at the Roll Off simulator driver: github.com/indilib/indi/blob/master/libi...rs/dome/roll_off.cpp
2. Use curl to make the API requests. You can see it being used here along with JSON parsing: github.com/indilib/indi/blob/master/libi...her/wunderground.cpp
3. Customize rolloff to your needs

Let us know if it works out for you!
5 years 10 months ago #25704

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

  • Posts: 6
  • Thank you received: 0
Thanks for your help!

I take the roll_off driver as template and use the gson source and header directly from weather folder.

Clear Skies!
Frank
5 years 10 months ago #25732

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

Time to create page: 0.680 seconds