Clon1998 / mobileraker

A Flutter mobile app for Klipper/Moonraker
Other
483 stars 53 forks source link

Time remaining in notifications is wrong #350

Closed spitfire closed 6 months ago

spitfire commented 7 months ago

image The time in notifications is wrong. Live activities and mainsail show the correct one, printer's timezone is set up correctly.

Clon1998 commented 7 months ago

image The time in notifications is wrong. Live activities and mainsail show the correct one, printer's timezone is set up correctly.

Is the timezone also correct in the mobileraker.conf file?

spitfire commented 7 months ago

It is not, but to make it stranger it is set to CST, which is 6 hours behind (the CET time zone I'm in), and the notification's time is only 1 hour behind. I'll try to adjust it once the print is over, cause changing it would probably restart something and interrupt it;)

spitfire commented 7 months ago

Adjusted it to CET, restarted Mobileraker companion (through mainsail) and it's still showing the same offset/timezone on the next print.

root@K1-AD93 /root [#] tail -n 5 /usr/data/printer_data/logs/mobileraker.log
2024-03-29 13:27:56,833 mobileraker.fcm INFO - Submitting 1 notifications to mobileraker server
2024-03-29 13:27:56,857 mobileraker.fcm INFO - Submitting 1 notifications to mobileraker server
2024-03-29 13:27:58,007 mobileraker.default INFO - ---- Completed Evaluations Task! ----
2024-03-29 13:27:58,032 mobileraker.default INFO - ---- Completed Evaluations Task! ----
2024-03-29 13:27:58,125 mobileraker.default INFO - ---- Completed Evaluations Task! ----
root@K1-AD93 /root [#] tail -n 5 /usr/data/printer_data/logs/moonraker.log
2024-03-29 13:26:41,145 [shell_command.py:_check_proc_success()] - Command (wget http://localhost:4408/webcam/?action=snapshot -O /usr/data/printer_data/frames/frame000199.jpg) successfully finished
2024-03-29 13:27:26,640 [websockets.py:write_to_socket()] - Websocket closed while writing: 1700357552
2024-03-29 13:27:31,649 [websockets.py:on_close()] - Websocket Closed: ID: 1700357552 Close Code: None, Close Reason: None, Pong Time Elapsed: 45.07
2024-03-29 13:27:52,937 [shell_command.py:_check_proc_success()] - Command (wget http://localhost:4408/webcam/?action=snapshot -O /usr/data/printer_data/frames/frame000200.jpg) successfully finished
2024-03-29 13:29:12,848 [shell_command.py:_check_proc_success()] - Command (wget http://localhost:4408/webcam/?action=snapshot -O /usr/data/printer_data/frames/frame000201.jpg) successfully finished
root@K1-AD93 /root [#] date
Fri Mar 29 13:30:34 CET 2024

the notification says it should finish at 13:14 (in the past), live activity says 14:14

spitfire commented 7 months ago

image Now it is correct ¯_(ツ)_/¯