dtgbot - Domoticz TeleGram BOT
Moderator: leecollings
-
- Posts: 13
- Joined: Thursday 17 February 2022 0:48
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: dtgbot - Domoticz TeleGram BOT
great!
Thanks, I'm gonna study it
Thanks, I'm gonna study it
-
- Posts: 18
- Joined: Sunday 15 March 2020 9:32
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2022.2
- Location: Poland
- Contact:
Re: dtgbot - Domoticz TeleGram BOT
I was reading this thread and I did not find an answer to my question: is it possible to control the security panel by dtgbot (arming / disarming the alarm) with a pin?
- jvdz
- Posts: 2189
- Joined: Tuesday 30 December 2014 19:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.107
- Location: Netherlands
- Contact:
Re: dtgbot - Domoticz TeleGram BOT
No, this is not part of the standard implementation, but since the inline-reply option in Telegram, I guess you should be able to build that in a script.
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
-
- Posts: 86
- Joined: Friday 08 November 2019 23:07
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: dtgbot - Domoticz TeleGram BOT
when i select Misc/dtgmenu i get this error
Command caused error. check dtgbot log
Error:/home/pi/dtgbot/lua/dtgmenu/dtgmenuinline.lua:360: attempt to index field '?' (a nil value)
Dtgbot v9
Command caused error. check dtgbot log
Error:/home/pi/dtgbot/lua/dtgmenu/dtgmenuinline.lua:360: attempt to index field '?' (a nil value)
Dtgbot v9
- jvdz
- Posts: 2189
- Joined: Tuesday 30 December 2014 19:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.107
- Location: Netherlands
- Contact:
Re: dtgbot - Domoticz TeleGram BOT
dtgmenuinline.lua ?
Which current branch are you running as none of them have that file as far as I know?
Which current branch are you running as none of them have that file as far as I know?
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
- jvdz
- Posts: 2189
- Joined: Tuesday 30 December 2014 19:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.107
- Location: Netherlands
- Contact:
Re: dtgbot - Domoticz TeleGram BOT
Ah ... yes of course... sorry was looking at the wrong spot.
Could you enable the debugging by setting Domoticz variable "TelegramBotLoglevel' to 99 and Email me the generated log files so I can see what is happening?
Thanks
Could you enable the debugging by setting Domoticz variable "TelegramBotLoglevel' to 99 and Email me the generated log files so I can see what is happening?
Thanks
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
-
- Posts: 86
- Joined: Friday 08 November 2019 23:07
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: dtgbot - Domoticz TeleGram BOT
I sent you in messages, the last lines where the error appears
-
- Posts: 2
- Joined: Friday 20 January 2023 20:44
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: dtgbot - Domoticz TeleGram BOT
Hello,
Unfortunately, I ran into a problem when configuring domoticz with telegram
here is my dtg .log .errors file
I followed the instructions on the forum but when typing:
the following message occurs:
I also tried to install the libssl1 .0 .0 file but there is also a problem:
Unfortunately, I ran into a problem when configuring domoticz with telegram
here is my dtg .log .errors file
/usr/bin/lua5 .2: error loading module 'ssl .core' from file '/usr/local/lib/lua/5 .2/ssl .so':
libssl .so .1 .0 .0: cannot open shared object file: No such file or directory
stack traceback:
[C]: in ?
[C]: in function 'require'
/usr/local/share/lua/5 .2/ssl .lua:7: in main chunk
[C]: in function 'require'
/usr/local/share/lua/5 .2/ssl/https .lua:10: in main chunk
[C]: in function 'require'
/home/pi/dtgbot/dtgbot .lua:132: in main chunk
[C]: in ?
I followed the instructions on the forum but when typing:
Code: Select all
sudo dpkg -i libssl1 .0 .0_1 .0 .1t-1+deb8u8_armhf .deb
the following message occurs:
dpkg: regarding libssl1 .0 .0_1 .0 .1t-1+deb8u8_armhf .deb containing libssl1 .0 .0:armhf, pre-dependency issue:
libssl1 .0 .0 pre-depends on multiarch-support
multiarch-support is not installed.
dpkg: error processing archive libssl1 .0 .0_1 .0 .1t-1+deb8u8_armhf .deb (--install):
pre-dependency problem - not installing libssl1 .0 .0:armhf
Errors were encountered while processing:
libssl1 .0 .0_1 .0 .1t-1+deb8u8_armhf .deb
I also tried to install the libssl1 .0 .0 file but there is also a problem:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package libssl1 .0 .0 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'libssl1 .0 .0' has no installation candidate
- jvdz
- Posts: 2189
- Joined: Tuesday 30 December 2014 19:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.107
- Location: Netherlands
- Contact:
Re: dtgbot - Domoticz TeleGram BOT
Please use the install instructions and source files from the branch Stability-and-new-install .
This should work fine on all newer versions of raspberian.
This should work fine on all newer versions of raspberian.
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
-
- Posts: 31
- Joined: Sunday 10 October 2021 18:01
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Netherlands
- Contact:
Re: dtgbot - Domoticz TeleGram BOT
Hi all,
I am trying to install this bot on a Ubuntu Server 22.04 install. I installed lua-json and lua-socket, but it complains that '/usr/bin/lua is not found'. When installing lua.5.2 this error disappears, but I get another error: module 'ssl.https' not found'. This is the same error I got a few months back, when I was trying it on a 64-bit Pi.
Libssl.so.1.1 is already installed because Domoticz refuses to start without it.
How can I get this to work?
I am trying to install this bot on a Ubuntu Server 22.04 install. I installed lua-json and lua-socket, but it complains that '/usr/bin/lua is not found'. When installing lua.5.2 this error disappears, but I get another error: module 'ssl.https' not found'. This is the same error I got a few months back, when I was trying it on a 64-bit Pi.
Libssl.so.1.1 is already installed because Domoticz refuses to start without it.
How can I get this to work?
- jvdz
- Posts: 2189
- Joined: Tuesday 30 December 2014 19:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.107
- Location: Netherlands
- Contact:
Re: dtgbot - Domoticz TeleGram BOT
Did you use the correct branch as I indicated in my previous post?
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
-
- Posts: 31
- Joined: Sunday 10 October 2021 18:01
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Netherlands
- Contact:
Re: dtgbot - Domoticz TeleGram BOT
Yep, I did. I used the command you gave earlier, double checking if I got the correct branch.
The only things I changed (apart from the config variables) is the home dir, from 'pi' to my actual username.
Not sure if it is related, but can the libssl version I needed for Domoticz cause this error?
The only things I changed (apart from the config variables) is the home dir, from 'pi' to my actual username.
Not sure if it is related, but can the libssl version I needed for Domoticz cause this error?
-
- Posts: 31
- Joined: Sunday 10 October 2021 18:01
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Netherlands
- Contact:
Re: dtgbot - Domoticz TeleGram BOT
Update: I also tested this with a clean Ubuntu 20.04 install, and I have the same issues.
@jvdz do you mind if I send you a PM to troubleshoot this further?
@jvdz do you mind if I send you a PM to troubleshoot this further?
- jvdz
- Posts: 2189
- Joined: Tuesday 30 December 2014 19:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.107
- Location: Netherlands
- Contact:
Re: dtgbot - Domoticz TeleGram BOT
Sure ... no problem..... I will in the mean time check if I get an issue when testing in an Ubuntu 20.04 VM.
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
-
- Posts: 31
- Joined: Sunday 10 October 2021 18:01
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Netherlands
- Contact:
Re: dtgbot - Domoticz TeleGram BOT
For anyone also having the 'error loading module 'ssl .https' error, try installing the lua-sec package. This solved it for me on a fresh 64-bit Ubuntu Server 22.04 install.
- jvdz
- Posts: 2189
- Joined: Tuesday 30 December 2014 19:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.107
- Location: Netherlands
- Contact:
Re: dtgbot - Domoticz TeleGram BOT
I have updated the Github read.me to reflex these steps:
- sudo apt install lua5.2
- sudo apt install lua-json
- sudo apt install lua-socket
- sudo apt install lua-sec
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
- jvdz
- Posts: 2189
- Joined: Tuesday 30 December 2014 19:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.107
- Location: Netherlands
- Contact:
Re: dtgbot - Domoticz TeleGram BOT
They are on GitHub when you select the proper branch.
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
- jvdz
- Posts: 2189
- Joined: Tuesday 30 December 2014 19:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.107
- Location: Netherlands
- Contact:
Re: dtgbot - Domoticz TeleGram BOT
They are on GitHub when you select the proper branch.
https://github.com/steps39/dtgbot/tree/ ... ew-install
https://github.com/steps39/dtgbot/tree/ ... ew-install
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
Who is online
Users browsing this forum: No registered users and 0 guests