valetudo icon indicating copy to clipboard operation
valetudo copied to clipboard

RE 0.8.2 / telegram bot

Open jcplu opened this issue 4 years ago • 25 comments

Hello, Telegram bot was working ... but now, nothing happens when I send a command from my phone (working from my pc). Also, I receive the messages from the robot to my phone. Thx for your help.

jcplu avatar May 09 '20 09:05 jcplu

I'd guess that's because robot's internal time is out of sync. Anyway your valetudo version is out of date.

rand256 avatar May 09 '20 18:05 rand256

Thanks for your help, it was the internal time. I keep this version, because I prefer Telegram with command line. How can I add an automatic sync command to avoid this problem ?

jcplu avatar May 10 '20 06:05 jcplu

It should probably sync by default at every boot at least - if only the device has unrestricted internet access. I didn't look into that deeply, as that's not valetudo's duty, it should be done already by base firmware.

rand256 avatar May 10 '20 07:05 rand256

reboot command didn't solve the problem.

jcplu avatar May 10 '20 07:05 jcplu

the command hwclock -s solved partially the problem after a reboot, time has two minutes more

jcplu avatar May 10 '20 07:05 jcplu

Hello, I think I face a similar issue here. Created 2 different Telegram bots but when trying to add the Token in Valetudo I always receive Telegrambot connection failed. Anything I did miss?

p4f456 avatar May 12 '20 13:05 p4f456

You're also still on 0.8.2? Then the same advice @rand256 has given before: check the time of the linux system!

Btw: why two different bots?

pidator avatar May 12 '20 15:05 pidator

No actually I am on 0.9.4. I tried it with one bot and as it did not work I tried a second one as I thought I did a mistake during creation or with the token. But still I get this error

p4f456 avatar May 12 '20 16:05 p4f456

No actually I am on 0.9.4.

Then your issue isn't releated to this one. Please open a new issue and provide all the data/settings/versions/steps you've done and describe your error in detail. Otherwise these two issues get mixed and they definitely aren't related.

pidator avatar May 12 '20 16:05 pidator

after a reboot, time has two minutes more

Do you use an NTP Server?

pidator avatar May 12 '20 16:05 pidator

NTP server command works but doesn't fix the problem. I check many times : the hardware clock is OK but the system time is 2 minutes more. I finally added in crontab file the command hwclock -s : every 6 hours and it's now OK.

jcplu avatar May 14 '20 17:05 jcplu

NTP server command works but doesn't fix the problem. I check many times : the hardware clock is OK but the system time is 2 minutes more. I finally added in crontab file the command hwclock -s : every 6 hours and it's now OK.

How do add the crontab file? When i try crontab -e i got this error crontab: can't change directory to '/etc/crontabs': No such file or directory

tchleb avatar May 18 '20 22:05 tchleb

You can use winscp with root and rsa private key file

jcplu avatar Oct 30 '20 14:10 jcplu

Hello

I still with that issue with version 10.7 . Its possible check status and other things with telegram but dont receive any waring or complete cleanup , consumables .

bmwm69 avatar Aug 31 '21 12:08 bmwm69

You'll probably have to "activate" the status messages using the speaker symbol of the bot-keyboard.

pidator avatar Aug 31 '21 14:08 pidator

Status notifications enabled - Check

Configuration page:

Which status changes to notify about - All - Check

Version : Gen1

bmwm69 avatar Aug 31 '21 15:08 bmwm69

Which status changes to notify about - All - Check

Do you tried setting an other value, save and set back to all and save again?

pidator avatar Aug 31 '21 18:08 pidator

robot's internal time is out of sync

  1. run the command hwclock --show

  2. run the command date

send the results here

jcplu avatar Aug 31 '21 19:08 jcplu

Which status changes to notify about - All - Check

Do you tried setting an other value, save and set back to all and save again?

Yes !

robot's internal time is out of sync

  1. run the command hwclock --show
  2. run the command date

send the results here

root@rockrobo:~# hwclock --show Tue Aug 31 21:31:56 2021 -1.254741 seconds

root@rockrobo:~# date Tue Aug 31 21:32:14 WEST 2021

Current time in my time zone GMT 0 ( Portugal )

21:32

bmwm69 avatar Aug 31 '21 20:08 bmwm69

try hwclock -w and test telegram bot

jcplu avatar Aug 31 '21 20:08 jcplu

try hwclock -w and test telegram bot

dont work :(

root@rockrobo:~# date Tue Aug 31 22:00:11 WEST 2021 root@rockrobo:~# hwclock -w root@rockrobo:~# date Tue Aug 31 22:01:27 WEST 2021

bmwm69 avatar Aug 31 '21 21:08 bmwm69

send results of the three commands : roborock > date roborock > hwclock -r computer > date

jcplu avatar Aug 31 '21 21:08 jcplu

root@rockrobo:~# hwclock -r Tue Aug 31 22:14:54 2021 -1.990040 seconds root@rockrobo:~# date Tue Aug 31 22:14:56 WEST 2021

bmwm69 avatar Aug 31 '21 21:08 bmwm69

Solved ! Removed all configuration HTTP API token , disabled telegram and reconfigured !

bmwm69 avatar Aug 31 '21 21:08 bmwm69

Strange, because telegram bot worked from telegram to robot... Can you check the three commands above ?

jcplu avatar Aug 31 '21 21:08 jcplu