dtgbot - Domoticz TeleGram BOT

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

Moderator: leecollings

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 »

Yes, I ran both the apt install commands listed on the github page. I also tried rebooting, also did not 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 »

The local paths are still searched as they are still added in dtgbot file in the service definition, but that should interfere when they are removed.
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 »

Okay, so how can I proceed installing this? I think I've tried pretty much everything I can?
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 »

phenix56 wrote: Saturday 02 April 2022 12:12 Yes, I ran both the apt install commands listed on the github page. I also tried rebooting, also did not work...
Strange .... I haven't tested on bullseye so maybe there is an issue there. hope that @simonrg know this....
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 »

OK... Seems like it is set to require those files instead of being optional, judging by the last part of the dtb.log file. Do you know of other things I can try? Already tried removing those packages with apt purge and re-installing them, that also did not 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 »

The packages are not optional as they are required to connect to Telegram!
@simonrg changed the scripts to use this standard packages now in the provided release to avoid the need for own compiled libraries.
I am not in position to test bullseye on a RPI with an 64 version so have no idea what to try next and hope somebody with that setup can help.
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 »

I know. I just tried re-installing them to see if that changes anything.

So this is the case: I was running Buster 32-bit. Decided I wanted to upgrade to a newer release, and wy not also get the 64-bit version, for a bit of future proofing, since I have a PI4. Before upgrading, I had the bot running fine, but that was on a 32-bit system.

Seems that simonrg is not verry effective, right? The github repo has not many changes over the last couple of years...
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 »

phenix56 wrote: Saturday 02 April 2022 12:27 Seems that simonrg is not verry effective, right? The github repo has not many changes over the last couple of years...
mmm... I wouldn't say "effective" as that really feels like a wrong word to use here. ;)
He updated the libraries in this simple install last year and I did the stability changes and many other changes in this separate branch.
We just haven't worked on getting all documentation updated and maybe this is a new trigger to complete this. :)
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 »

I meant to use the word 'active' ;)

Is it even worth upgrading to Buster, since I already have a working install? I mean sooner or later I will need to, but are most of the bugs worked out?

I'll just place back me old SD card for now. One question that I do ave, however, is how power sensors can be displayed using the bot. I saw some possibilities for temperature sensors, but this doesn't work for power sensors (solar panels).
mkampstra
Posts: 4
Joined: Tuesday 28 May 2019 14:56
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: dtgbot - Domoticz TeleGram BOT

Post by mkampstra »

I had to make a fresh install of my raspberry and so needed to fix domoticz and telegram bot again.

I got these errors in dtb.log.errors

Code: Select all

/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 tried to install the missing lib ssl 1.0.0 by trying:

Code: Select all

Edit the sources.list
CODE: SELECT ALL

sudo nano /etc/apt/sources.list
add the next line:
CODE: SELECT ALL

deb http://archive.raspbian.org/raspbian/ jessie main contrib non-free rpi
Save it with CTRL + X , Y
and then:
CODE: SELECT ALL

sudo apt-get update
sudo apt-get install libssl1.0.0
But unfortunatly that archive website is down and not allowed anymore by security reasons.

Does anyone know how to install dtgbot on Raspbian Buster? Maybe the wiki can be updated by the latest info?
hoeby
Posts: 528
Joined: Saturday 02 June 2018 11:05
Target OS: Raspberry Pi / ODroid
Domoticz version: V2022.1
Location: Echt, Netherlands
Contact:

Re: dtgbot - Domoticz TeleGram BOT

Post by hoeby »

Did you try this option to install libssl 1.0.0?
I used it the last time i reinstalled dtgbot

Code: Select all

wget http://ftp.nl.debian.org/debian/pool/main/o/openssl/libssl1.0.0_1.0.1t-1+deb8u8_armhf.deb 
sudo dpkg -i libssl1.0.0_1.0.1t-1+deb8u8_armhf.deb 
sudo reboot
Thin-client --> Docker Domoticz main environment
Pi3A+ --> Google home (GAssistPi)
Pi3B+ --> Docker (P1monitor, Domoticz test environment, Ubiquity controller)
mkampstra
Posts: 4
Joined: Tuesday 28 May 2019 14:56
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: dtgbot - Domoticz TeleGram BOT

Post by mkampstra »

@hoeby! Thanks, this solved the job. I tried everything to install bij apt-get but could not find the package to install on buster.
This is how to fix a fresh install on buster!

Thanks thank thanks!
mkampstra
Posts: 4
Joined: Tuesday 28 May 2019 14:56
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: dtgbot - Domoticz TeleGram BOT

Post by mkampstra »

On buster the fix to install by apt-get is not working anymore:
Fix by:
hoeby wrote: Tuesday 19 July 2022 22:21 Did you try this option to install libssl 1.0.0?
I used it the last time i reinstalled dtgbot

Code: Select all

wget http://ftp.nl.debian.org/debian/pool/main/o/openssl/libssl1.0.0_1.0.1t-1+deb8u8_armhf.deb 
sudo dpkg -i libssl1.0.0_1.0.1t-1+deb8u8_armhf.deb 
sudo reboot
thanks to hoeby!
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 »

how to limit the dtgmenu by rooms. For example: the living room should appear to all users, the bedroom to only two users, etc
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 »

It should show the same as what each user sees when going to the Domoticz Web frontend, right?
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 »

That's right, to be able to see only what is set for each user in Domotiz
jvdz wrote: Sunday 07 August 2022 23:29 It should show the same as what each user sees when going to the Domoticz Web frontend, right?
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 »

mojso wrote: Monday 08 August 2022 0:43 That's right, to be able to see only what is set for each user in Domotiz
jvdz wrote: Sunday 07 August 2022 23:29 It should show the same as what each user sees when going to the Domoticz Web frontend, right?
any idea how to limit devices by users or rooms in dtgmenu
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 »

The current DTGBOT uses one way to connect to Domoticz and doesn't have the ability to link an Telegram UserID to a Domoticz UserID as I guess you are looking for?
The DTGMENU part is build on top of DTGBOT, and doesn't have the option to limit rooms per user, but rather shows all available in Domoticz, as all devices are also available in the commands from DTGBOT.
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 »

yes i use domoticz with users but domoticz and dtg bot communicate via 127.0.0.1 localhost is open and shows all devices
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 »

So how do you think the room selection should be done from a logic point of view, as I can't see a simple and flexible way of doing this?
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest