Skip to content

Latest commit

 

History

History
57 lines (34 loc) · 2 KB

README.md

File metadata and controls

57 lines (34 loc) · 2 KB

MrSans

Build Status

Mr. Sans is part of the BlueSense project. He is the climate reporter of BlueSense.

He does hourly report in Telegram channel Sans loves Monitoring.

Configuration

Create config.toml. Refer to config.example.toml for more information.

Add these environment variables:

# Set Firebase credentials
GOOGLE_APPLICATION_CREDENTIALS=/opt/bluesense-9e31b-firebase-adminsdk-5vv96-31ac2e637a.json
# If you're using Mr. Sans behind a proxy, set HTTP proxy
http_proxy=http://127.0.0.1:8118
https_proxy=http://127.0.0.1:8118
no_proxy="127.0.0.1,localhost"

Features

Reporter in Telegram

Mr. Sans reports hourly and daily to the Telegram channel.

Report Incident

Mr. Sans will report incident in Telegram Channel (refer to config telegram.log_chat_id).

Checkpoint in Firebase

Mr. Sans will periodically checkpoint data from prometheus to firebase for achieve use.

Maintain BlueSense services

With the help of Grafana webhook, Mr. Sans will help restart BlueSense service when there's something wrong with Bluetooth connection. Attach tag mrsans-do in Grafana alert with these values: restart-systemctl or reboot.

Related Projects

BlueSense is the web frontend.

BlueMarine runs on Raspberry Pi. It collects data via Bluetooth from Arduino.

BlueSensor runs on Arduino. It collects data from sensors.