-
Notifications
You must be signed in to change notification settings - Fork 114
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
webcam image not sending even when requested #39
Comments
It seems like the plugin can't take a picture. Is the snapshot-URL the one you get on fresh installs? Or did you change it? Both should work. Without the full address the path is only useable from within the browser. |
Memo
|
that worked to get a photo. however, wouldn't that fail for remote use as it would be relative to the browser. If so, this is a partial solution. and yes, installed from the [INSTALL] button after finding it from the repo. thanks! |
Octoprint uses the stream url. For me there is nothing broken in octoprint web ui. Does octoprint, or any component of it, even use the snapshot url? |
yes, at least the timelapse feature - however, that is local and still works (just tested). from my phone's browser, I've used the snapshot to check on my prints as the stream doesn't work in any way. Arguably - this plugin replaces it - so I'm good with it (just hoping that before I find another use, an update would interpret a relative url locally). |
When you checked your print by snapshot, how did you doch that? Typing a url to your browser? Custom button in Octoprint? |
http://(my home ip address):(my forwarded port)/webcam?action=snapshot |
I'm glad that it works for you now. So i close this issue now. |
I have the same problem... I can take snapshot on my local url: http://192.168.1.12/webcam/?action=snapshot But I don't receive the message from the boot Telegram with the photo, only text... Could someone help? Thanks in advance |
As i worte before: open settings in octoprint and select webcam. For snapshot url type in |
I have an IP Cam (Model: skytronic 351.149), which is not directly wired to the computer (Beaglebone Black) and it works perfectly directly in Octoprint, but it doesn't work in Telegram. I always get the notification "[ERR GET IMAGE]". The webcam-link that I use in Octoprint has this style: "http://1.1.1.1:11/snapshot.cgi?user=USER&pwd=PWD" I think I am already in snapshot-mode (because a "snapshot.cgi" is part of the URL), and adding "/webcam/?action=snapshot" doesn't work here. I tried adding this to the end of the URL but this changes nothing - it still works directly in Octoprint, but doesn't work in Telegram. Do you have any idea what to do? |
I'm having the same issue @superJT1 using IP Cam software for ios and using an iphone camera. The camera works for octoprint but not on octoprint-telegram plugin. |
not getting images (which work thru octoprint just fine, both video and snapshot). settings request images for /status, (start/stop/etc). none of them produce images.
here's the relevant debug info for the /status request:
(odd that there's a with_image=True, and a snapshot url followed by a Sending without image):
2016-09-25 07:14:33,698 - octoprint.plugins.telegram.listener - INFO - Got a command: '/help' with parameter: '' in chat 295263708
2016-09-25 07:14:40,625 - octoprint.plugins.telegram.listener - INFO - Got a command: '/status' with parameter: '' in chat 295263708
2016-09-25 07:15:08,029 - octoprint.plugins.telegram.listener - INFO - Got a command: '/list' with parameter: '' in chat 295263708
2016-09-25 07:16:16,278 - octoprint.plugins.telegram.listener - INFO - Got a command: '/status' with parameter: '' in chat 295263708
2016-09-25 07:17:28,620 - octoprint.plugins.telegram.listener - INFO - Got a command: '/status' with parameter: '' in chat 295263708
2016-09-25 07:17:55,001 - octoprint.plugins.telegram.listener - INFO - Got a command: '/status' with parameter: '' in chat 295263708
2016-09-25 07:24:37,374 - octoprint.plugins.telegram.listener - INFO - Got a command: '/status' with parameter: '' in chat 295263708
2016-09-25 07:33:29,551 - octoprint.filemanager.analysis - INFO - Starting analysis of local:testblock.gcode
2016-09-25 07:38:37,489 - octoprint.plugins.telegram.listener - INFO - Got a command: '/status' with parameter: '' in chat 295263708
2016-09-25 07:44:39,310 - octoprint.plugins.telegram.listener - DEBUG - MESSAGE: {u'message': {u'from': {u'first_name': u'Jim', u'last_name': u'Gale', u'id': 295263708}, u'text': u'/status', u'entities': [{u'length': 7, u'type': u'bot_command', u'offset': 0}], u'chat': {u'first_name': u'Jim', u'last_name': u'Gale', u'type': u'private', u'id': 295263708}, u'date': 1474789479, u'message_id': 21}, u'update_id': 785575775}
2016-09-25 07:44:39,312 - octoprint.plugins.telegram.listener - INFO - Got a command: '/status' with parameter: '' in chat 295263708
2016-09-25 07:44:39,314 - octoprint.plugins.telegram - DEBUG - Got an event: StatusNotPrinting Payload: {}
2016-09-25 07:44:39,319 - octoprint.plugins.telegram.TMSG - DEBUG - Printer Status{'progress': {'completion': 100, 'printTime': 273, 'filepos': 7856L, 'printTimeLeft': 0}, 'state': {'text': 'Operational', 'flags': {'operational': True, 'paused': False, 'printing': False, 'sdReady': False, 'error': False, 'ready': True, 'closedOrError': False}}, 'offsets': {}, 'job': {'estimatedPrintTime': 32.14438007491633, 'filament': {'tool0': {'volume': 0.0, 'length': 1.5529000000000004}}, 'averagePrintTime': 273.83736085891724, 'file': {'origin': 'local', 'date': 1474788809, 'name': u'testblock.gcode', 'size': 7856L}, 'lastPrintTime': 273.83736085891724}, 'currentZ': 10.0}
2016-09-25 07:44:39,320 - octoprint.plugins.telegram.TMSG - DEBUG - TEMPS - {'bed': {'actual': 41.2, 'target': 0.0, 'offset': 0}, 'tool2': {'actual': 58.5, 'target': 0.0, 'offset': 0}, 'tool1': {'actual': 50.9, 'target': 0.0, 'offset': 0}, 'tool0': {'actual': 84.7, 'target': 0.0, 'offset': 0}}
2016-09-25 07:44:39,322 - octoprint.plugins.telegram.TMSG - DEBUG - Sending Notification: Not printing.
Bed 41.2/0.0, Extruder 84.7/0.0.
2016-09-25 07:44:39,324 - octoprint.plugins.telegram - DEBUG - Sending a message: Not printing.\nBed 41.2/0.0, Extruder 84.7/0.0. with_image=True chatID= 295263708
2016-09-25 07:44:39,326 - octoprint.plugins.telegram - DEBUG - Snapshot URL: /webcam/?action=snapshot
2016-09-25 07:44:39,331 - octoprint.plugins.telegram - DEBUG - data so far: {'disable_web_page_preview': True, 'reply_markup': '{"hide_keyboard": true}'}
2016-09-25 07:44:39,332 - octoprint.plugins.telegram - DEBUG - Sending without image.. 295263708
2016-09-25 07:44:40,346 - octoprint.plugins.telegram - DEBUG - Sending finished. 200
2016-09-25 07:44:40,352 - octoprint.plugins.telegram.listener - DEBUG - listener: sending request with offset 785575776...
2016-09-25 07:44:51,850 - octoprint.plugins.telegram - DEBUG - Testing token 111111111:AAAa1aAAAaA1AA-AAaAAaAAAaA1aAAAA1A1
2016-09-25 07:45:11,217 - octoprint.plugins.telegram.listener - DEBUG - listener: sending request with offset 785575776...
2016-09-25 07:45:42,125 - octoprint.plugins.telegram.listener - DEBUG - listener: sending request with offset 785575776...
The text was updated successfully, but these errors were encountered: