cameroncros / OctoPrint-DiscordRemote

Discord plugin for OctoPrint
MIT License
66 stars 34 forks source link

Date & Time Mismatch #244

Closed Mscampbell7 closed 1 year ago

Mscampbell7 commented 1 year ago

Description I could be absolutely dense, but the date and time are mismatched for me. Possibly a Discord/OctoPrint setting issue?

Logs Attached

To Reproduce Steps to reproduce the behavior: Standard installation of the plugin, host computer, and receiving computer display correct date and time, automatic sync/timezone

Expected behavior Discord time matching message time

Screenshots image

Desktop:

Smartphone:

octoprint-logs.zip

cameroncros commented 1 year ago

Is the time and timezone on your octoprint server correct?

On Tue, 25 Apr 2023, 10:37 am Mscampbell7, @.***> wrote:

Description I could be absolutely dense, but the date and time are mismatched for me. Possibly a Discord/OctoPrint setting issue?

Logs Attached

To Reproduce Steps to reproduce the behavior: Standard installation of the plugin, host computer, and receiving computer display correct date and time, automatic sync/timezone

Expected behavior Discord time matching message time

Screenshots [image: image] https://user-images.githubusercontent.com/65406015/234145970-20638bdf-39ec-4aec-9d61-40902deb1770.png

Desktop:

  • OS: Windows 10
  • Browser Chrome

Smartphone:

  • Device: N/A

octoprint-logs.zip https://github.com/cameroncros/OctoPrint-DiscordRemote/files/11315477/octoprint-logs.zip

— Reply to this email directly, view it on GitHub https://github.com/cameroncros/OctoPrint-DiscordRemote/issues/244, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAK7FL5HZLMUIH7GFTIOL7TXC4MFBANCNFSM6AAAAAAXKJBKMU . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Mscampbell7 commented 1 year ago

The time and timezone on the physical computer running octoprint are correct, is there a separate setting to set the time and timezone of octoprint itself?

cameroncros commented 1 year ago

No, I dont think so. I just noticed I can replicate as well, my messages are 1 hour out.

Will try switch from datetime.utcnow() to datetime.now() and see if that helps.

cameroncros commented 1 year ago

v4.4 should fix the timestamps

Mscampbell7 commented 1 year ago

I updated to 4.4, and now the bot is stuck as "offline", despite having the right channel ID and a fresh token

cameroncros commented 1 year ago

😱 There is no way that v4.4 could have broken the connection:

https://github.com/cameroncros/OctoPrint-DiscordRemote/compare/v4.3.0...v4.4.0

It is 3 lines that changed, none of them are critical to the bot functionality. Can you provide the logs from octoprint?

Mscampbell7 commented 1 year ago

plugin_discordremote.log

It looks like the Discord Remote is running fine; however, I am getting a separate error now I believe that is caused by octolapse.

"2023-04-24 18:51:03,002 - octolapse.camera - ERROR - Unable to connect to the provided snapshot URL of http://tako3.prefecture/webcam/?action=snapshot for the 'Webcam - Default OctoPi 0.16.0' camera profile."

Do you want the log for just DiscordRemote or all of octoprint?

Edit: I have corrected the issue related to OctoLapse, still can't figure it out yet.

cameroncros commented 1 year ago

I don't have anything to do with Octolapse, I suggest you open an issue with them.

https://github.com/FormerLurker/Octolapse

On Wed, 26 Apr 2023, 10:41 am Mscampbell7, @.***> wrote:

plugin_discordremote.log https://github.com/cameroncros/OctoPrint-DiscordRemote/files/11327830/plugin_discordremote.log

It looks like the Discord Remote is running fine; however, I am getting a separate error now I believe that is caused by octolapse.

"2023-04-24 18:51:03,002 - octolapse.camera - ERROR - Unable to connect to the provided snapshot URL of http://tako3.prefecture/webcam/?action=snapshot for the 'Webcam - Default OctoPi 0.16.0' camera profile."

Do you want the log for just DiscordRemote or all of octolapse?

— Reply to this email directly, view it on GitHub https://github.com/cameroncros/OctoPrint-DiscordRemote/issues/244#issuecomment-1522599258, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAK7FL2FIL5DESHHCCWVYKTXDBVMVANCNFSM6AAAAAAXKJBKMU . You are receiving this because you commented.Message ID: @.***>

Mscampbell7 commented 1 year ago

I've fixed the problem with octolapse, looking at the changes I agree there is absolutely no reason the change from 4.3 to 4.4 should have cause this to not work anymore. I'm going to try going back to 4.3 just to double check.