Hackerspace door Telegram bot.
- ESP8266 2.4.2
- UniversalTelegramBot 1.1.0
- ArduinoJson 5.13.3
Select "Generic ESP8266 module" board in the "Tools" menu and build the sources.
The bot configuration is stored in CONF.TXT
file on SD card. The
format of the configuration file is the following:
ssid:<the-ssid-of-your-wifi-ap>
password:<your-wifi-password>
token:<your-telegram-token>
The list of the people who authorized to manage bot and open the
hackerspace door is stored in WL.TXT
file on the SD card. The
format is following:
<telegram-user-id-1>:<nickname-or-real-name>
<telegram-user-id-2>:<nickname-or-real-name>
...
<telegram-user-id-n>:<nickname-or-real-name>
The 1st record in the file describes the superadmin. The bot protects the this line from the file from deletion so it cannot be removed by anyone using the Telegram commands.
The bot logs every event of authorized access to its functions to the
file named LOG.TXT
on the SD card.