spacestatus2

module
v0.0.0-...-1f1d11f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2023 License: MIT

README

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.

Directories

Path Synopsis
cmd
internal
db
web

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL