Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RE 0.8.2 / telegram bot #232

Open
jcplu opened this issue May 9, 2020 · 25 comments
Open

RE 0.8.2 / telegram bot #232

jcplu opened this issue May 9, 2020 · 25 comments

Comments

@jcplu
Copy link

jcplu commented May 9, 2020

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.

@rand256
Copy link
Owner

rand256 commented May 9, 2020

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

@jcplu
Copy link
Author

jcplu commented May 10, 2020

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 ?

@rand256
Copy link
Owner

rand256 commented May 10, 2020

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.

@jcplu
Copy link
Author

jcplu commented May 10, 2020

reboot command didn't solve the problem.

@jcplu
Copy link
Author

jcplu commented May 10, 2020

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

@p4f456
Copy link

p4f456 commented May 12, 2020

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?

@pidator
Copy link
Contributor

pidator commented May 12, 2020

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?

@p4f456
Copy link

p4f456 commented May 12, 2020

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

@pidator
Copy link
Contributor

pidator commented May 12, 2020

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
Copy link
Contributor

pidator commented May 12, 2020

after a reboot, time has two minutes more

Do you use an NTP Server?

@jcplu
Copy link
Author

jcplu commented May 14, 2020

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.

@tchleb
Copy link

tchleb commented May 18, 2020

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

@jcplu
Copy link
Author

jcplu commented Oct 30, 2020

You can use winscp with root and rsa private key file

@bmwm69
Copy link

bmwm69 commented Aug 31, 2021

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 .

@pidator
Copy link
Contributor

pidator commented Aug 31, 2021

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

@bmwm69
Copy link

bmwm69 commented Aug 31, 2021

Status notifications enabled - Check

Configuration page:

Which status changes to notify about - All - Check

Version : Gen1

@pidator
Copy link
Contributor

pidator commented Aug 31, 2021

Which status changes to notify about - All - Check

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

@jcplu
Copy link
Author

jcplu commented Aug 31, 2021

robot's internal time is out of sync

  1. run the command
    hwclock --show

  2. run the command
    date

send the results here

@bmwm69
Copy link

bmwm69 commented Aug 31, 2021

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

@jcplu
Copy link
Author

jcplu commented Aug 31, 2021

try
hwclock -w
and test telegram bot

@bmwm69
Copy link

bmwm69 commented Aug 31, 2021

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

@jcplu
Copy link
Author

jcplu commented Aug 31, 2021

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

@bmwm69
Copy link

bmwm69 commented Aug 31, 2021

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
Copy link

bmwm69 commented Aug 31, 2021

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

@jcplu
Copy link
Author

jcplu commented Aug 31, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants