Skip to content

A server app for managing and showing the current space status.

License

Notifications You must be signed in to change notification settings

ktt-ol/spacestatus2

Repository files navigation

Status2

Shows the space status, stores the data in a mysql database for statistics and show some nice stats.

Requirements

To build local:

  • Go
  • dep

Or only Docker.

Install

# build binary
dep ensure
./build.sh

# create config
cp config.example.toml config.toml
vim config.toml 

Build with Docker

This script creates a docker image with proper Go build environment and uses this to build the binary. All dependencies and cache files are stored in the .docker-build folder.

./buildWithDocker.sh

Run

Use the systemd service file in the init/ folder.

./status2 

Error handling

For database errors, the application exists with an error. Mqtt errors terminate the application only on startup. If you use the provided service file, the application will be restarted.

About

A server app for managing and showing the current space status.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published