steps39 / dtgbot

Telegram Bot for Domoticz
19 stars 18 forks source link

Raw CURL reply #18

Closed Welsyntoffie closed 2 years ago

Welsyntoffie commented 2 years ago

I think this a dtgbot problem. When I send the command "systemstatus" I get the responses I im looking for, but then I get another reply that I do not want to see. How do I stop Recieved Message 3...

Send Command... Pieter, [27.07.21 15:49] systemstatus

Recieved Message 1 Arduino_Home, [27.07.21 15:49] Please wait, gathering data...

Recieved Message 2 Arduino_Home, [27.07.21 15:49] -CPU temperature: 36.9°C -CPU Usage: 9.09 % -Memory Usage: 39.03 % -UpTime: 15.24 h -Domoticz update available! (version 13191)

(Don't want this) Recieved Message 3 Arduino_Home, [27.07.21 15:49] [In reply to Pieter] t_name":"Pieter","type":"private"},"date":1627393779,"text":"-CPU temperature: 36.9\u00b0C\n-CPU Usage: 9.09 %\n-Memory Usage: 39.03 %\n-UpTime: 15.24 h\n-Domoticz update available! (version 13191)"}}

jvanderzande commented 2 years ago

I have already provided an answer in the Domoticz thread we have going. :) https://www.domoticz.com/forum/viewtopic.php?p=277632#p277632

Lets finish this issue there and I will commit the proposed change after you tested it. It also means that all other provided bash script need to be reviewed and likely updated. Pull requests are welcome. :)