Skip to content
/ MrSans Public

🤖 Mr. Sans is a bot reporter for BlueSense. Part of the BlueSense project.

License

Notifications You must be signed in to change notification settings

skyzh/MrSans

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

🤖 Mr. Sans is a bot reporter for BlueSense. Part of the BlueSense project.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published