Setup
To set up a comprehensive water monitoring system, you need to configure a server entity and at least one measurement point to send data to the server.
In this chapter, we will guide you through setting up the server and dashboard using two methods:
Using Docker
Installing from Source
We strongly recommend using the Docker method for its simplicity and reliability.
Setup of the server
Docker
From source
Configure Warningbot
Telegram
- Contact Botfather
- Open the telegram app on your smartphone and search for user
botfather: New Chat –> Search for Botfather
- Open the telegram app on your smartphone and search for user
type
/startto start a new conversation and/newbotto create a new botName the new bot
Give the bot a new username
Now you can go to the website
http://t.me/<your_bot_username>and add a description for the bot. Your will get a token to access the telegram HTTP API.
Create a group for your users to be warned
Add your bot to the group.
Copy
creds.json.templatefile to a json and add your telegram configurationEnter API token, group_name and username to
/Server/Warningbot/telegram/creds.jsonStart the
find_group_id.py-script in the telegram-directory. It will automatically add the group id to your telegram-creds.json and enables messaging via telegram.
Email
Copy
creds.json.templatefile to a json and add your mail server configurationcd Server/Warningbot/email cp creds.json.tmpl creds.json
Enable mail notification in the server config file
Server/config.cfgin the warning-section-