Code Monkey home page Code Monkey logo

aldiroof-ext's Introduction

aldiroof-ext

Extensions for indi-aldiroof to enable opening and closing roof outside of INDI.

Why is this needed

This is only useful if you use https://github.com/dokeeffe/indi-aldiroof to control an observatory roof and you want to add an HTTP api to control it.

This exists because indi-aldiroof depends on a USB connection between the arduino relay controller and a 'computer'. Since the distance was too great (>5M), USB became unreliable and this was born to run on a raspberry pi physically next to the arduino relay cotroller. Provides a simple http interface to open and close the observatory roof over HTTP.

Installing

  • Connect a raspberry pi to the arduino used to conrol the roof from https://github.com/dokeeffe/indi-aldiroof
  • Clone this repo on the pi into /home/pi/code
  • Create a venv in this repo's dir python -m venv ./venv
  • install requirements.txt pip install -r requirements.txt
  • Copy the bottle.service file to /lib/systemd/system/bottle.service
  • Run sudo systemctl daemon-reload
  • Run sudo systemctl enable bottle.service
  • Reboot and the service should startup sudo systemctl status bottle.service
  • Control the roof via HTTP (example: Get the roof status curl http://192.168.1.13:8080/roof)

aldiroof-ext's People

Contributors

dokeeffe avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.