-
Notifications
You must be signed in to change notification settings - Fork 18
Home
Jos van der Zande edited this page Jun 11, 2023
·
8 revisions
This is the Wiki for the new v2.0 version which will be released soon. Information about the current Master can be found on the main github page.
The new v2 version of DTGBOT has much more errorchecking with increased stability and logging:
- modules can be reloaded without service restart
- service restart immediately, not waiting for the long-poll anymore
- Hard errors in LUA modules won't cause hardcrash, but are captured to log file and the process will continue.
The sender of the command will get an Telegram message indicating the Hardcrash of the module. - Added MenuMessagesMaxShown=[x] to dtgbot[_user].cfg, when set, will clean all older messages than the last x commands and their reply.
- Added internal commands:
- "_reloadconfig" will reload all settings from dgtbot.cfg and domoticz tables & LUA Modules without restarting service. So this allows you to set eg: TelegramBotLoglevel in domoticz and do this command to make it active.
- "_reloadmodules" Will reload all LUA modules without restarting the service.
- "_cleanall" Remove all DTGBOT messages, only when MenuMessagesMaxShown is set greater than 0 in dtgbot[_user].cfg
- It combines the Telegram Menus versions at the Bottom and the Inline which can be switched between dynamically.
- It now uses standard ssl and LUA install packages in stead of the previous compiled usr versions.
- The service now runs from systemd as well.
- LUA: sudo apt install lua5.2
- JSON: sudo apt install lua-json
- HTTP: sudo apt install lua-socket
- HTTPS: sudo apt install lua-sec
- JSON: download dkjson.lua from http://dkolf.de/src/dkjson-lua.fsl/home and rename it to json.lua
- HTTPS: ??
- Edit systemd-dtgbot.sh:
- Fill the proper info in the different fields
- copy dtgbot.service to /etc/systemd/system/dtgbot.service
- enable the service:sudo systemctl enable dtgbot
- start the service: sudo systemctl start dtgbot