OctoPrint-Telegram
OctoPrint-Telegram copied to clipboard
Multicam support not working
I have properly setup the multicam support (and that works well in my sidebar etc) and has worked once in Telegram but now it does not anymore (for months already).
Is there anything I can do/review so we can get it working again? Or is it simply broken in the plugin?
Hello, I have the same issue.
do you have full url define for the webcam link?
Yes for me. I've removed the multicam plugin for now. It's seems buggy. Octoprint crashed and I think it's related to multicam plugin. I will debug later.
Regarding Telegram plugin, is it possible to log in a different log file than octoprint.log ?
Thanks
Here are some logs:
2021-09-29 15:45:12,446 - octoprint.plugins.telegram.TMSG - DEBUG - Sending Notification: Not printing.
2021-09-29 15:45:12,446 - octoprint.plugins.telegram - DEBUG - start _send_msg
2021-09-29 15:45:12,447 - octoprint.plugins.telegram - DEBUG - PreImgMethod None
2021-09-29 15:45:12,447 - octoprint.plugins.telegram - DEBUG - log instead log sending message
2021-09-29 15:45:12,448 - octoprint.plugins.telegram - DEBUG - data so far: {'disable_web_page_preview': True, 'chat_id': '372664005', 'disable_notification': False}
2021-09-29 15:45:12,448 - octoprint.plugins.telegram - DEBUG - Snapshot URL: http://admin:[email protected]/tmpfs/auto.jpg
2021-09-29 15:45:12,591 - octoprint.plugins.telegram - DEBUG - Image transformations [H:False, V:False, R:False]
2021-09-29 15:45:12,593 - octoprint.plugins.telegram - DEBUG - message so far: Not printing.
2021-09-29 15:45:12,594 - octoprint.plugins.telegram - DEBUG - multicam_profiles : [{'URL': 'http://192.168.1.11:1111', 'flipH': False, 'flipV': False, 'isButtonEnabled': False, 'name': 'Default', 'rotate90': False, 'snapshot': 'http://admin:[email protected]/tmpfs/auto.jpg', 'streamRatio': '11:1'}, {'URL': 'http://192.168.1.11:1111/', 'flipH': False, 'flipV': False, 'isButtonEnabled': True, 'name': 'Webcam 1', 'rotate90': False, 'snapshot': 'http://', 'streamRatio': '11:1'}]
2021-09-29 15:45:12,594 - octoprint.plugins.telegram - DEBUG - multicam profile: {'URL': 'http://192.168.1.11:1111', 'flipH': False, 'flipV': False, 'isButtonEnabled': False, 'name': 'Default', 'rotate90': False, 'snapshot': 'http://admin:[email protected]/tmpfs/auto.jpg', 'streamRatio': '11:1'}
2021-09-29 15:45:12,594 - octoprint.plugins.telegram - DEBUG - multicam url : http://192.168.1.11:1111
2021-09-29 15:45:12,595 - octoprint.plugins.telegram - DEBUG - 192.168.1.11:1111 found so should be replaced by auto.jpg
2021-09-29 15:45:12,595 - octoprint.plugins.telegram - DEBUG - Snapshot URL: http://auto.jpg
2021-09-29 15:45:12,595 - octoprint.plugins.telegram - DEBUG - Snapshot URL: http://auto.jpg
2021-09-29 15:45:12,658 - octoprint.plugins.telegram - ERROR - TimeOut Exception: HTTPConnectionPool(host='auto.jpg', port=80): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fbe353a1be0>: Failed to establish a new connection: [Errno -2] Name or service not known'))
2021-09-29 15:45:12,658 - octoprint.plugins.telegram - DEBUG - Image for Default
2021-09-29 15:45:12,804 - octoprint.plugins.telegram - DEBUG - multicam profile: {'URL': 'http://192.168.1.11:1111/', 'flipH': False, 'flipV': False, 'isButtonEnabled': True, 'name': 'Webcam 1', 'rotate90': False, 'snapshot': 'http://', 'streamRatio': '11:1'}
2021-09-29 15:45:12,805 - octoprint.plugins.telegram - DEBUG - multicam url : http://192.168.1.11:1111/
2021-09-29 15:45:12,805 - octoprint.plugins.telegram - DEBUG - Snapshot URL: http://192.168.1.11:1111/
2021-09-29 15:45:12,806 - octoprint.plugins.telegram - DEBUG - Snapshot URL: http://192.168.1.11:1111/
2021-09-29 15:48:14,190 - octoprint.plugins.telegram - DEBUG - Testing token 111111111:AAAa1-a1AA1aaAAAaAaaAaAA1AaAAaAAaAa
2021-09-29 15:48:20,579 - octoprint.plugins.telegram - DEBUG - Saving data: {'multicam': False}
2021-09-29 15:48:23,387 - octoprint.plugins.telegram - DEBUG - self.tmsg = <octoprint_telegram.telegramNotifications.TMSG object at 0x7fbe0827d780>
2021-09-29 15:48:25,187 - octoprint.plugins.telegram - DEBUG - Testing token 111111111:AAAa1-a1AA1aaAAAaAaaAaAA1AaAAaAAaAa
2021-09-29 15:48:32,899 - octoprint.plugins.telegram - DEBUG - Saving data: {'multicam': True}
2021-09-29 15:48:35,659 - octoprint.plugins.telegram - DEBUG - self.tmsg = <octoprint_telegram.telegramNotifications.TMSG object at 0x7fbe0827d780>
I don't know what is 192.168.1.11:1111 and the token is wrong maybe normal for security reason.
Here is my multicam conf:
ok thanks.
can you also show how is defined the default webcam in octoprint?
thanks
Here is the default webcam:
Are you using the stream or snapshot url ?
well I think that it's because there is nothing after the port. Like we still don't have the porposal from fabian on the multicam to get the a snapshot url, we still try to create it and in your case it's not going very well. I'll try to made some change and will send you a link for a test version.
Is it possible to use ffmpeg to make a snapshot from a stream ? Because I have a snapshot URL only on one camera. Thanks
well I'm not sure about that. you will have to check that and also I'll adapt the code to get the snapshot from the option of the multicam plugin. The problem is we still have not access to this options on the graphic options of multicam. So you are gonna have to change if in the config file by hand.
config.yaml¶ If not specified via the command line, the main configuration file config.yaml for OctoPrint is expected in its settings folder, which unless defined differently via the command line is located at ~/.octoprint on Linux, at %APPDATA%/OctoPrint on Windows and at ~/Library/Application Support/OctoPrint on macOS. If the file is not there, you can just create it - it will only get created by OctoPrint once you save settings that deviate from the default settings.
please try to install that version and test https://github.com/giloser/OctoPrint-Telegram/archive/refs/heads/master.zip
I still have the same issue with this version. Here are the logs:
2021-10-04 22:44:30,123 - octoprint.plugins.telegram - ERROR - Exception on_startup: 'NewTelegramPlugin' object has no attribute 'main'
2021-10-04 22:44:33,023 - octoprint.plugins.telegram - DEBUG - Starting listener.
2021-10-04 22:44:33,029 - octoprint.plugins.telegram.listener - DEBUG - Try first connect.
2021-10-04 22:44:33,180 - octoprint.plugins.telegram - DEBUG - getMe returned: {'ok': True, 'result': {'id': xxxxxxxxx, 'is_bot': True, 'first_name': 'PrinterBot', 'username': 'BotName', 'can_join_groups': True, 'can_read_all_group_messages': False, 'supports_inline_queries': False}}
2021-10-04 22:44:33,180 - octoprint.plugins.telegram - DEBUG - getMe status code: 200
2021-10-04 22:44:33,180 - octoprint.plugins.telegram.listener - DEBUG - Setting status: Connected as @BotName.
2021-10-04 22:44:33,180 - octoprint.plugins.telegram.listener - DEBUG - Listener is running.
2021-10-04 22:44:33,180 - octoprint.plugins.telegram.listener - DEBUG - listener: sending request with offset 0...
2021-10-04 22:44:33,237 - octoprint.plugins.telegram - DEBUG - Testing Pic ID xxxxxxxxx
2021-10-04 22:44:33,238 - octoprint.plugins.telegram - DEBUG - Requesting Profile Photo for chat_id: xxxxxxxxx
2021-10-04 22:44:33,238 - octoprint.plugins.telegram - DEBUG - requests.get(https://api.telegram.org/bot111111111:AAAa1-a1AA1aaAAAaAaaAaAA1AaAAaAAaAa/getUserProfilePhotos
2021-10-04 22:44:33,318 - octoprint.plugins.telegram.listener - DEBUG - Updating update_offset from 0 to 967404590
2021-10-04 22:44:33,373 - octoprint.plugins.telegram - DEBUG - Requesting file with id AgACAgQAAxUAAWFbRa0GydXtCct52jZeNibNssmEAAKqpzEbxWY2Fm8p3VNl0iS-AQADAgADYQADIQQ.
2021-10-04 22:44:33,453 - octoprint.plugins.telegram.listener - DEBUG - Updating update_offset from 967404590 to 967404591
2021-10-04 22:44:33,573 - octoprint.plugins.telegram.listener - DEBUG - Ignoring message because first_contact is True.
2021-10-04 22:44:33,574 - octoprint.plugins.telegram - DEBUG - self.tmsg = <octoprint_telegram.telegramNotifications.TMSG object at 0x7ffab03226a0>
2021-10-04 22:44:33,574 - octoprint.plugins.telegram - DEBUG - Got an event: PrinterStart Payload: {}
2021-10-04 22:44:33,575 - octoprint.plugins.telegram.TMSG - DEBUG - event :PrinterStart
2021-10-04 22:44:33,577 - octoprint.plugins.telegram.TMSG - DEBUG - send_gif = True and this message would send gif = False
2021-10-04 22:44:33,578 - octoprint.plugins.telegram.TMSG - DEBUG - Printer Status{'state': {'text': 'Operational', 'flags': {'operational': True, 'printing': False, 'cancelling': False, 'pausing': False, 'resuming': False, 'finishing': False, 'closedOrError': False, 'error': False, 'paused': False, 'ready': True, 'sdReady': False}, 'error': ''}, 'job': {'file': {'name': None, 'path': None, 'size': None, 'origin': None, 'date': None}, 'estimatedPrintTime': None, 'lastPrintTime': None, 'filament': {'length': None, 'volume': None}, 'user': None}, 'currentZ': None, 'progress': {'completion': None, 'filepos': None, 'printTime': None, 'printTimeLeft': None, 'printTimeOrigin': None}, 'offsets': {'tool0': 0}, 'resends': {'count': 0, 'transmitted': 3, 'ratio': 0}}
2021-10-04 22:44:33,578 - octoprint.plugins.telegram.TMSG - DEBUG - TEMPS - {}
2021-10-04 22:44:33,578 - octoprint.plugins.telegram - DEBUG - get_current_layers api key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2021-10-04 22:44:33,597 - octoprint.plugins.telegram - DEBUG - get_current_layers : r=<Response [200]>
2021-10-04 22:44:33,597 - octoprint.plugins.telegram.TMSG - DEBUG - Layers - {'currentFilename': '', 'fanSpeed': '-', 'feedrate': '-', 'feedrateG0': '-', 'feedrateG1': '-', 'height': {'current': '-', 'currentFormatted': '-', 'total': '-', 'totalFormatted': '-'}, 'layer': {'averageLayerDuration': '-', 'averageLayerDurationInSeconds': '-', 'current': '-', 'lastLayerDuration': '-', 'lastLayerDurationInSeconds': '-', 'total': '-'}, 'print': {'changeFilamentCount': 0, 'changeFilamentTimeLeft': '-', 'changeFilamentTimeLeftInSeconds': 0, 'estimatedChangedFilamentTime': '-', 'estimatedEndTime': '-', 'm73progress': '', 'printerState': 'operational', 'progress': '0', 'timeLeft': '-', 'timeLeftInSeconds': '-'}}
2021-10-04 22:44:33,598 - octoprint.plugins.telegram.TMSG - DEBUG - VARS - {'self': <octoprint_telegram.telegramNotifications.TMSG object at 0x7ffab03226a0>, 'payload': {}, 'kwargs': {'event': 'PrinterStart', 'with_image': False, 'with_gif': False, 'silent': False, 'thumbnail': None}, 'status': {'state': {'text': 'Operational', 'flags': {'operational': True, 'printing': False, 'cancelling': False, 'pausing': False, 'resuming': False, 'finishing': False, 'closedOrError': False, 'error': False, 'paused': False, 'ready': True, 'sdReady': False}, 'error': ''}, 'job': {'file': {'name': None, 'path': None, 'size': None, 'origin': None, 'date': None}, 'estimatedPrintTime': None, 'lastPrintTime': None, 'filament': {'length': None, 'volume': None}, 'user': None}, 'currentZ': None, 'progress': {'completion': None, 'filepos': None, 'printTime': None, 'printTimeLeft': None, 'printTimeOrigin': None}, 'offsets': {'tool0': 0}, 'resends': {'count': 0, 'transmitted': 3, 'ratio': 0}}, 'event': 'PrinterStart', 'z': 0.0, 'temps': {}, 'bed_temp': 0.0, 'bed_target': 0.0, 'e1_temp': 0.0, 'e1_target': 0.0, 'e2_temp': 0.0, 'e2_target': 0.0, 'percent': 0, 'Layers': {'currentFilename': '', 'fanSpeed': '-', 'feedrate': '-', 'feedrateG0': '-', 'feedrateG1': '-', 'height': {'current': '-', 'currentFormatted': '-', 'total': '-', 'totalFormatted': '-'}, 'layer': {'averageLayerDuration': '-', 'averageLayerDurationInSeconds': '-', 'current': '-', 'lastLayerDuration': '-', 'lastLayerDurationInSeconds': '-', 'total': '-'}, 'print': {'changeFilamentCount': 0, 'changeFilamentTimeLeft': '-', 'changeFilamentTimeLeftInSeconds': 0, 'estimatedChangedFilamentTime': '-', 'estimatedEndTime': '-', 'm73progress': '', 'printerState': 'operational', 'progress': '0', 'timeLeft': '-', 'timeLeftInSeconds': '-'}}, 'currentLayer': '-', 'totalLayer': '-', 'time_done': '00:00:00', 'time_left': '[Unknown]', 'time_finish': '[Unknown]', 'file': None, 'path': None}
2021-10-04 22:44:33,598 - octoprint.plugins.telegram - DEBUG - Formatting emoticon: `rocket`
2021-10-04 22:44:33,599 - octoprint.plugins.telegram.TMSG - DEBUG - Sending Notification: 🚀 Hello. I'm online and ready to receive your commands.
2021-10-04 22:44:33,599 - octoprint.plugins.telegram - DEBUG - Send_msg() found event: PrinterStart | chats list={'xxxxxxxxx': {'accept_commands': True, 'allow_users': False, 'commands': {'/abort': True, '/con': True, '/ctrl': True, '/dontshutup': True, '/filament': True, '/files': True, '/gif': True, '/on': True, '/print': True, '/settings': True, '/shutup': True, '/status': True, '/supergif': True, '/sys': True, '/togglepause': True, '/tune': True, '/upload': True, '/user': True, 'SwitchOn': True}, 'id': 'xxxxxxxxx', 'image': '/plugin/telegram/img/user/picxxxxxxxxx.jpg', 'new': False, 'newUsr': False, 'notifications': {'Error': True, 'PrintDone': True, 'PrintFailed': True, 'PrintPaused': True, 'PrintResumed': True, 'PrintStarted': True, 'PrinterShutdown': True, 'PrinterStart': True, 'StatusNotPrinting': False, 'StatusPrinting': False, 'ZChange': True, 'plugin_pause_for_user_event_notify': True}, 'private': True, 'send_notifications': True, 'title': 'Nomis - @Nomis38', 'type': 'PRIVATE'}}
2021-10-04 22:44:33,600 - octoprint.plugins.telegram - DEBUG - send_msg loop key=xxxxxxxxx
2021-10-04 22:44:33,600 - octoprint.plugins.telegram - DEBUG - self.chats[key]['notifications']={'Error': True, 'PrintDone': True, 'PrintFailed': True, 'PrintPaused': True, 'PrintResumed': True, 'PrintStarted': True, 'PrinterShutdown': True, 'PrinterStart': True, 'StatusNotPrinting': False, 'StatusPrinting': False, 'ZChange': True, 'plugin_pause_for_user_event_notify': True}
2021-10-04 22:44:33,600 - octoprint.plugins.telegram - DEBUG - start _send_msg
2021-10-04 22:44:33,600 - octoprint.plugins.telegram - DEBUG - log instead log sending message
2021-10-04 22:44:33,601 - octoprint.plugins.telegram - DEBUG - data so far: {'disable_web_page_preview': True, 'chat_id': 'xxxxxxxxx', 'disable_notification': False}
2021-10-04 22:44:33,601 - octoprint.plugins.telegram - DEBUG - Sending without image.. xxxxxxxxx
2021-10-04 22:44:34,676 - octoprint.plugins.telegram - DEBUG - Sending finished. 200
2021-10-04 22:44:34,881 - octoprint.plugins.telegram.listener - DEBUG - listener: sending request with offset 967404591...
2021-10-04 22:44:35,953 - octoprint.plugins.telegram - DEBUG - self.tmsg = <octoprint_telegram.telegramNotifications.TMSG object at 0x7ffab03226a0>
2021-10-04 22:44:35,973 - octoprint.plugins.telegram - DEBUG - self.tmsg = <octoprint_telegram.telegramNotifications.TMSG object at 0x7ffab03226a0>
2021-10-04 22:44:44,383 - octoprint.plugins.telegram - DEBUG - self.tmsg = <octoprint_telegram.telegramNotifications.TMSG object at 0x7ffab03226a0>
2021-10-04 22:44:50,064 - octoprint.plugins.telegram - DEBUG - self.tmsg = <octoprint_telegram.telegramNotifications.TMSG object at 0x7ffab03226a0>
2021-10-04 22:44:51,966 - octoprint.plugins.telegram - DEBUG - self.tmsg = <octoprint_telegram.telegramNotifications.TMSG object at 0x7ffab03226a0>
2021-10-04 22:44:52,038 - octoprint.plugins.telegram - DEBUG - self.tmsg = <octoprint_telegram.telegramNotifications.TMSG object at 0x7ffab03226a0>
2021-10-04 22:44:52,072 - octoprint.plugins.telegram - DEBUG - self.tmsg = <octoprint_telegram.telegramNotifications.TMSG object at 0x7ffab03226a0>
2021-10-04 22:44:57,971 - octoprint.plugins.telegram - DEBUG - self.tmsg = <octoprint_telegram.telegramNotifications.TMSG object at 0x7ffab03226a0>
2021-10-04 22:45:04,280 - octoprint.plugins.telegram - DEBUG - self.tmsg = <octoprint_telegram.telegramNotifications.TMSG object at 0x7ffab03226a0>
2021-10-04 22:45:04,537 - octoprint.plugins.telegram - ERROR - Can't load UserImage: 400 Client Error: Bad Request for url: https://api.telegram.org/bot111111111:AAAa1-a1AA1aaAAAaAaaAaAA1AaAAaAAaAa/getFile
Traceback (most recent call last):
File "/opt/octoprint/venv/lib/python3.7/site-packages/octoprint_telegram/__init__.py", line 1625, in get_usrPic
r = self.get_file(data['result']['photos'][0][0]['file_id'])
File "/opt/octoprint/venv/lib/python3.7/site-packages/octoprint/util/__init__.py", line 1941, in wrapper
return f(*args, **kwargs)
File "/opt/octoprint/venv/lib/python3.7/site-packages/octoprint_telegram/__init__.py", line 1596, in get_file
r.raise_for_status()
File "/opt/octoprint/venv/lib/python3.7/site-packages/requests/models.py", line 943, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://api.telegram.org/botxxxxxxxxx:xxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxx/getFile
2021-10-04 22:45:05,127 - octoprint.plugins.telegram.listener - DEBUG - listener: sending request with offset 967404591...
2021-10-04 22:45:07,038 - octoprint.plugins.telegram - DEBUG - self.tmsg = <octoprint_telegram.telegramNotifications.TMSG object at 0x7ffab03226a0>
2021-10-04 22:45:07,082 - octoprint.plugins.telegram - DEBUG - self.tmsg = <octoprint_telegram.telegramNotifications.TMSG object at 0x7ffab03226a0>
2021-10-04 22:45:07,107 - octoprint.plugins.telegram - DEBUG - self.tmsg = <octoprint_telegram.telegramNotifications.TMSG object at 0x7ffab03226a0>
2021-10-04 22:45:12,453 - octoprint.plugins.telegram - DEBUG - self.tmsg = <octoprint_telegram.telegramNotifications.TMSG object at 0x7ffab03226a0>
2021-10-04 22:45:17,507 - octoprint.plugins.telegram - DEBUG - self.tmsg = <octoprint_telegram.telegramNotifications.TMSG object at 0x7ffab03226a0>
2021-10-04 22:45:22,566 - octoprint.plugins.telegram - DEBUG - self.tmsg = <octoprint_telegram.telegramNotifications.TMSG object at 0x7ffab03226a0>
2021-10-04 22:45:22,596 - octoprint.plugins.telegram - DEBUG - self.tmsg = <octoprint_telegram.telegramNotifications.TMSG object at 0x7ffab03226a0>
2021-10-04 22:45:22,614 - octoprint.plugins.telegram - DEBUG - self.tmsg = <octoprint_telegram.telegramNotifications.TMSG object at 0x7ffab03226a0>
2021-10-04 22:45:24,374 - octoprint.plugins.telegram - DEBUG - self.tmsg = <octoprint_telegram.telegramNotifications.TMSG object at 0x7ffab03226a0>
2021-10-04 22:45:24,387 - octoprint.plugins.telegram - DEBUG - self.tmsg = <octoprint_telegram.telegramNotifications.TMSG object at 0x7ffab03226a0>
2021-10-04 22:45:24,400 - octoprint.plugins.telegram - DEBUG - self.tmsg = <octoprint_telegram.telegramNotifications.TMSG object at 0x7ffab03226a0>
2021-10-04 22:45:24,432 - octoprint.plugins.telegram - DEBUG - self.tmsg = <octoprint_telegram.telegramNotifications.TMSG object at 0x7ffab03226a0>
2021-10-04 22:45:24,446 - octoprint.plugins.telegram - DEBUG - self.tmsg = <octoprint_telegram.telegramNotifications.TMSG object at 0x7ffab03226a0>
2021-10-04 22:45:24,459 - octoprint.plugins.telegram - DEBUG - self.tmsg = <octoprint_telegram.telegramNotifications.TMSG object at 0x7ffab03226a0>
2021-10-04 22:45:24,473 - octoprint.plugins.telegram - DEBUG - self.tmsg = <octoprint_telegram.telegramNotifications.TMSG object at 0x7ffab03226a0>
2021-10-04 22:45:24,504 - octoprint.plugins.telegram - DEBUG - self.tmsg = <octoprint_telegram.telegramNotifications.TMSG object at 0x7ffab03226a0>
2021-10-04 22:45:29,598 - octoprint.plugins.telegram - DEBUG - self.tmsg = <octoprint_telegram.telegramNotifications.TMSG object at 0x7ffab03226a0>
2021-10-04 22:45:29,613 - octoprint.plugins.telegram - DEBUG - self.tmsg = <octoprint_telegram.telegramNotifications.TMSG object at 0x7ffab03226a0>
2021-10-04 22:45:29,630 - octoprint.plugins.telegram - DEBUG - self.tmsg = <octoprint_telegram.telegramNotifications.TMSG object at 0x7ffab03226a0>
2021-10-04 22:45:29,646 - octoprint.plugins.telegram - DEBUG - self.tmsg = <octoprint_telegram.telegramNotifications.TMSG object at 0x7ffab03226a0>
2021-10-04 22:45:34,719 - octoprint.plugins.telegram - DEBUG - self.tmsg = <octoprint_telegram.telegramNotifications.TMSG object at 0x7ffab03226a0>
2021-10-04 22:45:34,733 - octoprint.plugins.telegram - DEBUG - self.tmsg = <octoprint_telegram.telegramNotifications.TMSG object at 0x7ffab03226a0>
2021-10-04 22:45:34,747 - octoprint.plugins.telegram - DEBUG - self.tmsg = <octoprint_telegram.telegramNotifications.TMSG object at 0x7ffab03226a0>
2021-10-04 22:45:35,383 - octoprint.plugins.telegram.listener - DEBUG - listener: sending request with offset 967404591...
2021-10-04 22:45:36,772 - octoprint.plugins.telegram - DEBUG - self.tmsg = <octoprint_telegram.telegramNotifications.TMSG object at 0x7ffab03226a0>
2021-10-04 22:46:05,547 - octoprint.plugins.telegram.listener - DEBUG - listener: sending request with offset 967404591...
2021-10-04 22:46:35,704 - octoprint.plugins.telegram.listener - DEBUG - listener: sending request with offset 967404591...
2021-10-04 22:47:05,838 - octoprint.plugins.telegram.listener - DEBUG - listener: sending request with offset 967404591...
2021-10-04 22:47:35,983 - octoprint.plugins.telegram.listener - DEBUG - listener: sending request with offset 967404591...
2021-10-04 22:48:06,120 - octoprint.plugins.telegram.listener - DEBUG - listener: sending request with offset 967404591...
2021-10-04 22:48:36,291 - octoprint.plugins.telegram.listener - DEBUG - listener: sending request with offset 967404591...
2021-10-04 22:49:06,450 - octoprint.plugins.telegram.listener - DEBUG - listener: sending request with offset 967404591...
2021-10-04 22:49:36,641 - octoprint.plugins.telegram.listener - DEBUG - listener: sending request with offset 967404591...
2021-10-04 22:50:06,795 - octoprint.plugins.telegram.listener - DEBUG - listener: sending request with offset 967404591...
2021-10-04 22:50:36,975 - octoprint.plugins.telegram.listener - DEBUG - listener: sending request with offset 967404591...
2021-10-04 22:51:07,134 - octoprint.plugins.telegram.listener - DEBUG - listener: sending request with offset 967404591...
2021-10-04 22:51:37,368 - octoprint.plugins.telegram.listener - DEBUG - listener: sending request with offset 967404591...
2021-10-04 22:52:07,546 - octoprint.plugins.telegram.listener - DEBUG - listener: sending request with offset 967404591...
2021-10-04 22:52:37,746 - octoprint.plugins.telegram.listener - DEBUG - listener: sending request with offset 967404591...
2021-10-04 22:53:07,911 - octoprint.plugins.telegram.listener - DEBUG - listener: sending request with offset 967404591...
2021-10-04 22:53:38,105 - octoprint.plugins.telegram.listener - DEBUG - listener: sending request with offset 967404591...
2021-10-04 22:54:08,288 - octoprint.plugins.telegram.listener - DEBUG - listener: sending request with offset 967404591...
2021-10-04 22:54:38,458 - octoprint.plugins.telegram.listener - DEBUG - listener: sending request with offset 967404591...
2021-10-04 22:55:08,609 - octoprint.plugins.telegram.listener - DEBUG - listener: sending request with offset 967404591...
2021-10-04 22:55:21,418 - octoprint.plugins.telegram - DEBUG - self.tmsg = <octoprint_telegram.telegramNotifications.TMSG object at 0x7ffab03226a0>
2021-10-04 22:55:38,811 - octoprint.plugins.telegram.listener - DEBUG - listener: sending request with offset 967404591...
2021-10-04 22:56:05,737 - octoprint.plugins.telegram - DEBUG - self.tmsg = <octoprint_telegram.telegramNotifications.TMSG object at 0x7ffab03226a0>
2021-10-04 22:56:05,818 - octoprint.plugins.telegram - DEBUG - self.tmsg = <octoprint_telegram.telegramNotifications.TMSG object at 0x7ffab03226a0>
2021-10-04 22:56:05,841 - octoprint.plugins.telegram - DEBUG - self.tmsg = <octoprint_telegram.telegramNotifications.TMSG object at 0x7ffab03226a0>
2021-10-04 22:56:09,044 - octoprint.plugins.telegram.listener - DEBUG - listener: sending request with offset 967404591...
2021-10-04 22:56:13,004 - octoprint.plugins.telegram - DEBUG - self.tmsg = <octoprint_telegram.telegramNotifications.TMSG object at 0x7ffab03226a0>
2021-10-04 22:56:19,782 - octoprint.plugins.telegram - DEBUG - self.tmsg = <octoprint_telegram.telegramNotifications.TMSG object at 0x7ffab03226a0>
2021-10-04 22:56:22,816 - octoprint.plugins.telegram - DEBUG - self.tmsg = <octoprint_telegram.telegramNotifications.TMSG object at 0x7ffab03226a0>
2021-10-04 22:56:22,855 - octoprint.plugins.telegram - DEBUG - self.tmsg = <octoprint_telegram.telegramNotifications.TMSG object at 0x7ffab03226a0>
2021-10-04 22:56:22,865 - octoprint.plugins.telegram - DEBUG - self.tmsg = <octoprint_telegram.telegramNotifications.TMSG object at 0x7ffab03226a0>
2021-10-04 22:56:23,208 - octoprint.plugins.telegram - DEBUG - Testing token 111111111:AAAa1-a1AA1aaAAAaAaaAaAA1AaAAaAAaAa
2021-10-04 22:56:23,356 - octoprint.plugins.telegram - DEBUG - Saving data: {'chats': {'xxxxxxxxx': {'accept_commands': True, 'allow_users': False, 'commands': {'/abort': True, '/con': True, '/ctrl': True, '/dontshutup': True, '/filament': True, '/files': True, '/gif': True, '/on': True, '/print': True, '/settings': True, '/shutup': True, '/status': True, '/supergif': True, '/sys': True, '/togglepause': True, '/tune': True, '/upload': True, '/user': True, 'SwitchOn': True}, 'id': 'xxxxxxxxx', 'image': '/plugin/telegram/img/user/picxxxxxxxxx.jpg', 'new': False, 'newUsr': False, 'notifications': {'Error': True, 'PrintDone': True, 'PrintFailed': True, 'PrintPaused': True, 'PrintResumed': True, 'PrintStarted': True, 'PrinterShutdown': True, 'PrinterStart': True, 'StatusNotPrinting': False, 'StatusPrinting': False, 'ZChange': True, 'plugin_pause_for_user_event_notify': True}, 'private': True, 'send_notifications': True, 'title': 'Nomis - @Nomis38', 'type': 'PRIVATE'}}}
2021-10-04 22:56:24,151 - octoprint.plugins.telegram - DEBUG - self.tmsg = <octoprint_telegram.telegramNotifications.TMSG object at 0x7ffab03226a0>
2021-10-04 22:56:24,179 - octoprint.plugins.telegram - DEBUG - self.tmsg = <octoprint_telegram.telegramNotifications.TMSG object at 0x7ffab03226a0>
2021-10-04 22:56:24,205 - octoprint.plugins.telegram - DEBUG - self.tmsg = <octoprint_telegram.telegramNotifications.TMSG object at 0x7ffab03226a0>
2021-10-04 22:56:32,945 - octoprint.plugins.telegram - DEBUG - Saving data: {'multicam': True}
2021-10-04 22:56:35,893 - octoprint.plugins.telegram - DEBUG - self.tmsg = <octoprint_telegram.telegramNotifications.TMSG object at 0x7ffab03226a0>
2021-10-04 22:56:39,544 - octoprint.plugins.telegram.listener - DEBUG - listener: sending request with offset 967404591...
2021-10-04 22:56:44,692 - octoprint.plugins.telegram.listener - DEBUG - Updating update_offset from 967404591 to 967404592
2021-10-04 22:56:44,693 - octoprint.plugins.telegram.listener - DEBUG - MESSAGE: {'update_id': 967404591, 'message': {'message_id': 14158, 'from': {'id': xxxxxxxxx, 'is_bot': False, 'first_name': 'Nomis', 'username': 'Nomis38', 'language_code': 'fr'}, 'chat': {'id': xxxxxxxxx, 'first_name': 'Nomis', 'username': 'Nomis38', 'type': 'private'}, 'date': 1633381004, 'text': '/status', 'entities': [{'offset': 0, 'length': 7, 'type': 'bot_command'}]}}
2021-10-04 22:56:44,693 - octoprint.plugins.telegram.listener - DEBUG - Not changing update_offset - otherwise would reduce it from 967404592 to 967404592
2021-10-04 22:56:44,694 - octoprint.plugins.telegram.listener - INFO - Got a command: '/status' with parameter: '' in chat xxxxxxxxx
2021-10-04 22:56:44,979 - octoprint.plugins.telegram - DEBUG - self.tmsg = <octoprint_telegram.telegramNotifications.TMSG object at 0x7ffab03226a0>
2021-10-04 22:56:44,980 - octoprint.plugins.telegram - DEBUG - Got an event: StatusNotPrinting Payload: {}
2021-10-04 22:56:44,981 - octoprint.plugins.telegram.TMSG - DEBUG - event :StatusNotPrinting
2021-10-04 22:56:44,983 - octoprint.plugins.telegram.TMSG - DEBUG - send_gif = True and this message would send gif = False
2021-10-04 22:56:44,983 - octoprint.plugins.telegram.TMSG - DEBUG - Printer Status{'state': {'text': 'Operational', 'flags': {'operational': True, 'printing': False, 'cancelling': False, 'pausing': False, 'resuming': False, 'finishing': False, 'closedOrError': False, 'error': False, 'paused': False, 'ready': True, 'sdReady': False}, 'error': ''}, 'job': {'file': {'name': None, 'path': None, 'size': None, 'origin': None, 'date': None}, 'estimatedPrintTime': None, 'lastPrintTime': None, 'filament': {'length': None, 'volume': None}, 'user': None}, 'currentZ': None, 'progress': {'completion': None, 'filepos': None, 'printTime': None, 'printTimeLeft': None, 'printTimeOrigin': None}, 'offsets': {'tool0': 0}, 'resends': {'count': 0, 'transmitted': 6, 'ratio': 0}}
2021-10-04 22:56:44,984 - octoprint.plugins.telegram.TMSG - DEBUG - TEMPS - {'tool0': {'actual': 24.37, 'target': 0.0, 'offset': 0}, 'bed': {'actual': 19.96, 'target': 0.0, 'offset': 0}, 'chamber': {'actual': None, 'target': None, 'offset': 0}}
2021-10-04 22:56:44,984 - octoprint.plugins.telegram - DEBUG - get_current_layers api key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2021-10-04 22:56:45,005 - octoprint.plugins.telegram - DEBUG - get_current_layers : r=<Response [200]>
2021-10-04 22:56:45,006 - octoprint.plugins.telegram.TMSG - DEBUG - Layers - {'currentFilename': '', 'fanSpeed': '-', 'feedrate': '-', 'feedrateG0': '-', 'feedrateG1': '-', 'height': {'current': '-', 'currentFormatted': '-', 'total': '-', 'totalFormatted': '-'}, 'layer': {'averageLayerDuration': '-', 'averageLayerDurationInSeconds': '-', 'current': '-', 'lastLayerDuration': '-', 'lastLayerDurationInSeconds': '-', 'total': '-'}, 'print': {'changeFilamentCount': 0, 'changeFilamentTimeLeft': '-', 'changeFilamentTimeLeftInSeconds': 0, 'estimatedChangedFilamentTime': '-', 'estimatedEndTime': '-', 'm73progress': '', 'printerState': 'operational', 'progress': '0', 'timeLeft': '-', 'timeLeftInSeconds': '-'}}
2021-10-04 22:56:45,007 - octoprint.plugins.telegram.TMSG - DEBUG - VARS - {'self': <octoprint_telegram.telegramNotifications.TMSG object at 0x7ffab03226a0>, 'payload': {}, 'kwargs': {'chatID': 'xxxxxxxxx', 'event': 'StatusNotPrinting', 'with_image': True, 'with_gif': False, 'silent': False, 'thumbnail': None}, 'status': {'state': {'text': 'Operational', 'flags': {'operational': True, 'printing': False, 'cancelling': False, 'pausing': False, 'resuming': False, 'finishing': False, 'closedOrError': False, 'error': False, 'paused': False, 'ready': True, 'sdReady': False}, 'error': ''}, 'job': {'file': {'name': None, 'path': None, 'size': None, 'origin': None, 'date': None}, 'estimatedPrintTime': None, 'lastPrintTime': None, 'filament': {'length': None, 'volume': None}, 'user': None}, 'currentZ': None, 'progress': {'completion': None, 'filepos': None, 'printTime': None, 'printTimeLeft': None, 'printTimeOrigin': None}, 'offsets': {'tool0': 0}, 'resends': {'count': 0, 'transmitted': 6, 'ratio': 0}}, 'event': 'StatusNotPrinting', 'z': 0.0, 'temps': {'tool0': {'actual': 24.37, 'target': 0.0, 'offset': 0}, 'bed': {'actual': 19.96, 'target': 0.0, 'offset': 0}, 'chamber': {'actual': None, 'target': None, 'offset': 0}}, 'bed_temp': 19.96, 'bed_target': 0.0, 'e1_temp': 24.37, 'e1_target': 0.0, 'e2_temp': 0.0, 'e2_target': 0.0, 'percent': 0, 'Layers': {'currentFilename': '', 'fanSpeed': '-', 'feedrate': '-', 'feedrateG0': '-', 'feedrateG1': '-', 'height': {'current': '-', 'currentFormatted': '-', 'total': '-', 'totalFormatted': '-'}, 'layer': {'averageLayerDuration': '-', 'averageLayerDurationInSeconds': '-', 'current': '-', 'lastLayerDuration': '-', 'lastLayerDurationInSeconds': '-', 'total': '-'}, 'print': {'changeFilamentCount': 0, 'changeFilamentTimeLeft': '-', 'changeFilamentTimeLeftInSeconds': 0, 'estimatedChangedFilamentTime': '-', 'estimatedEndTime': '-', 'm73progress': '', 'printerState': 'operational', 'progress': '0', 'timeLeft': '-', 'timeLeftInSeconds': '-'}}, 'currentLayer': '-', 'totalLayer': '-', 'time_done': '00:00:00', 'time_left': '[Unknown]', 'time_finish': '[Unknown]', 'file': None, 'path': None}
2021-10-04 22:56:45,007 - octoprint.plugins.telegram.TMSG - DEBUG - Sending Notification: Not printing.
Bed 19.96/0.0, Extruder 24.37/0.0.
2021-10-04 22:56:45,009 - octoprint.plugins.telegram - DEBUG - start _send_msg
2021-10-04 22:56:45,009 - octoprint.plugins.telegram - DEBUG - PreImgMethod None
2021-10-04 22:56:45,014 - octoprint.plugins.telegram - DEBUG - log instead log sending message
2021-10-04 22:56:45,014 - octoprint.plugins.telegram - DEBUG - data so far: {'disable_web_page_preview': True, 'chat_id': 'xxxxxxxxx', 'disable_notification': False}
2021-10-04 22:56:45,015 - octoprint.plugins.telegram - DEBUG - Snapshot URL: http://admin:[email protected]/tmpfs/auto.jpg
2021-10-04 22:56:45,184 - octoprint.plugins.telegram - DEBUG - Image transformations [H:False, V:False, R:False]
2021-10-04 22:56:45,186 - octoprint.plugins.telegram - DEBUG - message so far: Not printing.
Bed 19.96/0.0, Extruder 24.37/0.0.
2021-10-04 22:56:45,187 - octoprint.plugins.telegram - DEBUG - multicam_profiles : [{'URL': 'http://192.168.1.11:1111', 'flipH': False, 'flipV': False, 'isButtonEnabled': False, 'name': 'Default', 'rotate90': False, 'snapshot': 'http://admin:[email protected]/tmpfs/auto.jpg', 'streamRatio': '11:1'}, {'URL': 'http://192.168.1.11:1111/', 'flipH': False, 'flipV': False, 'isButtonEnabled': True, 'name': 'Webcam 1', 'rotate90': False, 'snapshot': 'http://', 'streamRatio': '11:1'}]
2021-10-04 22:56:45,187 - octoprint.plugins.telegram - DEBUG - multicam profile: {'URL': 'http://192.168.1.11:1111', 'flipH': False, 'flipV': False, 'isButtonEnabled': False, 'name': 'Default', 'rotate90': False, 'snapshot': 'http://admin:[email protected]/tmpfs/auto.jpg', 'streamRatio': '11:1'}
2021-10-04 22:56:45,187 - octoprint.plugins.telegram - DEBUG - multicam snapshot : http://admin:[email protected]/tmpfs/auto.jpg
2021-10-04 22:56:45,187 - octoprint.plugins.telegram - DEBUG - Snapshot URL: http://admin:[email protected]/tmpfs/auto.jpg
2021-10-04 22:56:45,187 - octoprint.plugins.telegram - DEBUG - url is the same as the one from octoprint
2021-10-04 22:56:45,187 - octoprint.plugins.telegram - DEBUG - multicam profile: {'URL': 'http://192.168.1.11:1111/', 'flipH': False, 'flipV': False, 'isButtonEnabled': True, 'name': 'Webcam 1', 'rotate90': False, 'snapshot': 'http://', 'streamRatio': '11:1'}
2021-10-04 22:56:45,188 - octoprint.plugins.telegram - DEBUG - multicam snapshot : http://
2021-10-04 22:56:45,188 - octoprint.plugins.telegram - DEBUG - multicam url : http://192.168.1.11:1111/
2021-10-04 22:56:45,188 - octoprint.plugins.telegram - DEBUG - Snapshot URL: http://192.168.1.11:1111/
2021-10-04 22:56:45,188 - octoprint.plugins.telegram - DEBUG - Snapshot URL: http://192.168.1.11:1111/
2021-10-04 22:56:59,153 - octoprint.plugins.telegram - DEBUG - Testing token 111111111:AAAa1-a1AA1aaAAAaAaaAaAA1AaAAaAAaAa
2021-10-04 22:57:07,595 - octoprint.plugins.telegram - DEBUG - Saving data: {'debug': False, 'multicam': False}
did you also change the snapshot url for the second camera and set it in the config.yaml?
I have not. Because I don't have a snapshot url for the second webcam.
Edit: I will try something tomorrow. keep you in touch. Thanks
If it can be of any help here are my OctoPrint settings for the built-in camera settings and for the multicam settings.
when you test the snapshot in the timelapse is it working? why is the this a local ip and all the other not? are they something you can reach from the outside? can you give me a log file? did you try the test version I provided? thanks
No I need to fine a moment when not printing to test this new version.
My OctoPrint is configured with ngrok to be reachable from the outside indeed, for the stream url and the multicam I needed to provide the public accessible URL in order for my mobile apps to be able to give me a stream of my prints. The timelapse recording url works (however I disabled it since I don't use it actually but I did test is a week ago). Don't know why that needs to be the local address, but if I provide there my ngrok address it does not work when pressing the test button.
I will give a try to the update you provided hopefully somewhere this evening
well I didn't do the snapshot part but as far as I understand we work like the timelapse part so if it doesn't work for the timelapse it will probably not also in the telegram snapshot. Maybe by adding a snapshot url in the config.yaml for the multicam plugin (I'll try to get an update to have access to the snaphsot url in the plugin configuration) that is local it could work.
Ah ok, I could indeed set local IP's, let me know when you have an update ready, I'll be happy to test :-)
well I send a pull request on the multicam plugin. if you want to try you could already change it by hand in the config.yaml and update to the test version I send earlier. or also install this test version of the multicam plugin :) https://github.com/giloser/OctoPrint_MultiCam/archive/refs/heads/master.zip
@giloser This test version of the multicam plugin contains your PR changes already, right? So I don't have to manually edit something?
yes this version should give you access on those option in the graphical options
@giloser Awesome! Setting the multicam snapshot urls together with your updated Telegram plugin version works! Multicam images in my Telegram feed again! Thanks a lot!
Hello, I found a way to grab snapshot from the stream and now Im able to make the multicam/Telegram combo working. Thank you!