dtgbot - Domoticz TeleGram BOT

Client tools or tools that can connect with Domoticz. Tools for Windows, iOS, Android, Linux etc.

Moderator: leecollings

Valiran
Posts: 13
Joined: Thursday 17 February 2022 0:48
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: dtgbot - Domoticz TeleGram BOT

Post by Valiran »

great!

Thanks, I'm gonna study it :)
skom
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

Post by skom »

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?
User avatar
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

Post by jvdz »

skom wrote: Tuesday 15 November 2022 9:18 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?
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
mojso
Posts: 86
Joined: Friday 08 November 2019 23:07
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: dtgbot - Domoticz TeleGram BOT

Post by mojso »

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
User avatar
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

Post by jvdz »

dtgmenuinline.lua ?
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
mojso
Posts: 86
Joined: Friday 08 November 2019 23:07
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: dtgbot - Domoticz TeleGram BOT

Post by mojso »

jvdz wrote: Tuesday 22 November 2022 17:35 dtgmenuinline.lua ?
Which current branch are you running as none of them have that file as far as I know?

Stability-and-new-install
User avatar
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

Post by jvdz »

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
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
mojso
Posts: 86
Joined: Friday 08 November 2019 23:07
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: dtgbot - Domoticz TeleGram BOT

Post by mojso »

jvdz wrote: Tuesday 22 November 2022 22:39 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
I sent you in messages, the last lines where the error appears
dawid04
Posts: 2
Joined: Friday 20 January 2023 20:44
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: dtgbot - Domoticz TeleGram BOT

Post by dawid04 »

Hello,

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
User avatar
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

Post by jvdz »

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.
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
phenix56
Posts: 31
Joined: Sunday 10 October 2021 18:01
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Netherlands
Contact:

Re: dtgbot - Domoticz TeleGram BOT

Post by phenix56 »

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?
User avatar
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

Post by jvdz »

Did you use the correct branch as I indicated in my previous post?
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
phenix56
Posts: 31
Joined: Sunday 10 October 2021 18:01
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Netherlands
Contact:

Re: dtgbot - Domoticz TeleGram BOT

Post by phenix56 »

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?
phenix56
Posts: 31
Joined: Sunday 10 October 2021 18:01
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Netherlands
Contact:

Re: dtgbot - Domoticz TeleGram BOT

Post by phenix56 »

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?
User avatar
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

Post by jvdz »

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
phenix56
Posts: 31
Joined: Sunday 10 October 2021 18:01
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Netherlands
Contact:

Re: dtgbot - Domoticz TeleGram BOT

Post by phenix56 »

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.
User avatar
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

Post by jvdz »

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
dawid04
Posts: 2
Joined: Friday 20 January 2023 20:44
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: dtgbot - Domoticz TeleGram BOT

Post by dawid04 »

Could you please send this instruction, I would like to make sure that I am doing it correctly
jvdz wrote: Saturday 21 January 2023 7:39 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.
User avatar
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

Post by jvdz »

They are on GitHub when you select the proper branch.
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
User avatar
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

Post by jvdz »

They are on GitHub when you select the proper branch.
https://github.com/steps39/dtgbot/tree/ ... ew-install
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest