Skip to content

sdsobservatory/obspi

Repository files navigation

Obspi

Observatory command and control API and dashboard for Sonoran Desert Skies Observatory (SDSO).

We use the dashboard every clear night.

Dashboard

Features

  • Roof control and status
  • Automatic roof close at dawn
  • SMS notifications when roof is opened or closed, automatic roof close failure
  • Power cycle telescope pier power
  • Manual IO control
  • Multiple camera streams
  • Live allsky camera stream
  • Median guide error chart
  • Embedded grafana widgets showing temperature, humidity, etc.
  • Embedded GOES imagery
  • Raspi diagnostics

Hardware

This application runs in a container on a Raspberry Pi 4 4gb. The raspi has HATs from Sequent Microsystems

  • industrial automation controller
  • 2x 16-channel output relays
  • 1x 16-channel input

Architecture

ASP.NET Core backend with a React frontend dashboard.

Build

docker buildx build -t obspi -f Obspi/Dockerfile --platform linux/arm64 .

Run

docker compose up -d

or to run temporarily

docker run -d --restart=unless-stopped --pull=always -p 8080:80 --name obspi --privileged registry.local.sdso.space/obspi

Deploy

A github action is used to build the container image and it is hosted on ghcr.io. On the raspi in the observatory located in /home/pi/obspi is the docker-compose.yml file and variables.env required to run the container.

When a new container is needed, manually run the github action and wait for the build to complete.

SSH into the pi and run the following:

cd ~/obspi
docker compose down
docker compose up -d

About

Raspberry Pi observatory control and web client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages