Coder Social home page Coder Social logo

octoprint-pushbullet's Introduction

HEADS-UP: Needs OctoPrint 1.2.4 or later!

OctoPrint Pushbullet Plugin

This is an OctoPrint Plugin that adds support for Pushbullet notifications to OctoPrint.

At the current state OctoPrint will send a notification when a print job finishes. If a webcam is available, an image of the print result will be captured and included in the notification.

Configuration Dialog

Example Push Notification

Installation

Install via the bundled Plugin Manager or manually using this URL:

https://github.com/OctoPrint/OctoPrint-Pushbullet/archive/master.zip

Configuration

The only thing that absolutely needs to be configured is the Access Token necessary to access Pushbullet's API. You can find this in you Pushbullet Account Settings under "Access Token". Copy and paste the value there into the "Access Token" input field in the configuration dialog of the Pushbullet plugin.

All other settings can also be edited via the included configuration dialog. If you want to edit config.yaml manually, this is the expected structure:

plugins:
  octobullet:
    # Pushbullet Access Token for your account
    access_token: your_access_token

    # Pushbullet Channel Tag to use for messages, may be left empty/null
    push_channel: some_tag
    
    # message to send when a print is done
    # available placeholders:
    # - file: name of the file that was printed
    # - elapsed_time: duration of the print, format "[{days}d ]{hours}h {minutes}min"
    printDone:
      # title of the notification
      title: 'Print job finished'
      
      # body of the notification
      body: '{file} finished printing in {elapsed_time}'

    # message to send for regular progress messages
    # available placeholders:
    # - progress: current progress in percent
    # - file: name of the file that is being printed
    # - elapsed_time: duration of the print so far, format "[{days}d ]{hours}h {minutes}min"
    # - remaining_time: expected remaining duration of the print, format "[{days}d ]{hours}h {minutes}min"
    # - eta: expected finish time of the print, format "[{year}-{month}-{day} ]{hour}:{minute}"
    printProgress:
      # title of the notification
      title: 'Print job {progress}% complete'

      # body of the notification
      body: '{progress}% on {file}

        Time elapsed: {elapsed_time}

        Time left: {remaining_time}

        ETA: {eta}'

Known Issues

The test message fails but my access token definitely is correct

Check your octoprint.log. If it contains an error that looks like this:

2017-04-12 09:59:35,161 - octoprint.plugins.octobullet - ERROR - Error while instantiating PushBullet
Traceback (most recent call last):
  File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_octobullet/__init__.py", line 214, in _create_sender
    bullet = pushbullet.PushBullet(token)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/pushbullet/pushbullet.py", line 29, in __init__
    self.refresh()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/pushbullet/pushbullet.py", line 288, in refresh
    self._load_devices()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/pushbullet/pushbullet.py", line 42, in _load_devices
    resp_dict = self._get_data(self.DEVICES_URL)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/pushbullet/pushbullet.py", line 32, in _get_data
    resp = self._session.get(url)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/requests-2.7.0-py2.7.egg/requests/sessions.py", line 477, in get
    return self.request('GET', url, **kwargs)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/requests-2.7.0-py2.7.egg/requests/sessions.py", line 465, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/requests-2.7.0-py2.7.egg/requests/sessions.py", line 573, in send
    r = adapter.send(request, **kwargs)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/requests-2.7.0-py2.7.egg/requests/adapters.py", line 431, in send
    raise SSLError(e, request=request)
SSLError: [Errno 8] _ssl.c:504: EOF occurred in violation of protocol

your version of Python and hence its built-in SSL support is too old to work together with the Pushbullet API. This affects Python versions less than 2.7.9. If you are still running OctoPi 0.12 which was based on Raspbian Wheezy, you only have Python 2.7.3 and this is the likely cause.

This can be fixed though. The following steps assume you are indeed running OctoPi - if not please substitute your virtual environment path (~/oprint here) accordingly or better yet, update your Python version to at least 2.7.9.

SSH into OctoPi. Then execute the following:

sudo apt-get update
sudo apt-get install libffi-dev
source ~/oprint/bin/activate
pip install requests[security]
sudo service octoprint restart

This might take a bit since a bunch of security libraries have to be installed, at least one of which also needs compilation. On a Pi2 it takes a couple of minutes. After the restart of OctoPrint your problems should vanish.

What are those commands doing? They basically update the SSL support for the library the Pushbullet plugin is using to talk to the Pushbullet API. And why can't Pushbullet detect this and solve on its own? The problem is that bit with libffi-dev up there - that's a dependency needed for the updated library to successfully build on your system, and the plugin can't install that for you.

octoprint-pushbullet's People

Contributors

crazyquark avatar foosel avatar scottrini avatar tsh-xx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

octoprint-pushbullet's Issues

Image on complete is upside down

I have to flip my camera image because my camera is mounted upside down. When pushbullet sends the photo it is sent upside down. I'm sure it's just snapping an image from the camera but it seems like the plugin just needs to know the settings that were selected in the webcam to take the photo correctly.

No notifications coming through, even though the test works

I haven't been using my printer a lot, but I started again this weekend, and updated to the latest versions.

But I haven't been getting pushbullet notifications. I tried a test, and it worked fine. Maybe whatever triggers the notification is broken?

PB Plugin v0.1.6
OctoPrint v 1.2.16

I dont see the plugin

I istalled the zip version, but i dont see the plug on the left windows under plugin list. It's impossible for me to configure the plugin with token. Same thing with Yamlpatcher.
Are correctly istalled in plugin manager.
some idea?
thanks
python version 2.7.10 octoprint version 1.3.4

Error on sending notification to channels

Hello,

I try to send notifications to a channel, but I always get this exception:

2017-04-24 10:58:20,235 - octoprint.plugins.octobullet - ERROR - Error while instantiating PushBullet
Traceback (most recent call last):
  File "/home/user/OctoPrint/venv/local/lib/python2.7/site-packages/octoprint_octobullet/__init__.py", line 219, in _create_sender
    for channel_obj in self._bullet.channels:
AttributeError: 'NoneType' object has no attribute 'channels'

Any ideas?

Thx,
Alexander

cant install plugin

Hi, I wanted to install plugin pushbullet from manager but cant do it. this is what I get.

Installing plugin from https://github.com/OctoPrint/OctoPrint-Pushbullet/archive/master.zip...
/home/pi/oprint/bin/python -m pip install https://github.com/OctoPrint/OctoPrint-Pushbullet/archive/master.zip
Collecting https://github.com/OctoPrint/OctoPrint-Pushbullet/archive/master.zip
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0xb5ea1390>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /OctoPrint/OctoPrint-Pushbullet/archive/master.zip
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0xb5ea1fd0>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /OctoPrint/OctoPrint-Pushbullet/archive/master.zip
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0xb5ea1ff0>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /OctoPrint/OctoPrint-Pushbullet/archive/master.zip
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0xb5ea1530>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /OctoPrint/OctoPrint-Pushbullet/archive/master.zip
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0xb5e80d10>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /OctoPrint/OctoPrint-Pushbullet/archive/master.zip
Exception:
Traceback (most recent call last):
File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/basecommand.py", line 209, in main
status = self.run(options, args)
File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/commands/install.py", line 299, in run
requirement_set.prepare_files(finder)
File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/req/req_set.py", line 360, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/req/req_set.py", line 577, in _prepare_file
session=self.session, hashes=hashes)
File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/download.py", line 810, in unpack_url
hashes=hashes
File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/download.py", line 649, in unpack_http_url
hashes)
File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/download.py", line 842, in _download_http_url
stream=True,
File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/_vendor/requests/sessions.py", line 480, in get
return self.request('GET', url, **kwargs)
File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/download.py", line 378, in request
return super(PipSession, self).request(method, url, *args, **kwargs)
File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/_vendor/requests/sessions.py", line 468, in request
resp = self.send(prep, **send_kwargs)
File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/_vendor/requests/sessions.py", line 576, in send
r = adapter.send(request, **kwargs)
File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/_vendor/cachecontrol/adapter.py", line 46, in send
resp = super(CacheControlAdapter, self).send(request, **kw)
File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/_vendor/requests/adapters.py", line 437, in send
raise ConnectionError(e, request=request)
ConnectionError: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /OctoPrint/OctoPrint-Pushbullet/archive/master.zip (Caused by NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0xb5e380f0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Done!

[Request] Notification Image Make Optional

Can the notification image be optional even if a webcam is running?
I would like to have my webcam running to monitor the prints but I do not want an image included with the Pushbullet completed notification. Generally the reason is to save network bandwidth on my phone and also storage.
Possibly add an option in the settings to enable/disable the image functionality.

[Request] Add support for sending to a specific device

It'd be nice to be able to send pushes to a specific device (either using the device's name or "device_iden" string), similar to how you can configure a channel to push to.

I tried to do this myself and submit a PR, but I could never get my local plugin to send a test message. I tried only setting the access token and sending the test message, but it would just spin indefinitely. If someone would be willing to help me get my local plugin working properly, then I may be able to add this myself.

Add notification on state change from Operational to Paused

Print jobs can include pause code for inserting embedded parts, changing filament, etc. Octoprint parses the pause and goes into Paused state correctly; the plugin should send an alert so the user can respond promptly (allowing the print to cool causes print issues.)

competing PrintDone events

So, this isn't really an issue from the pushbullet plugin, but I made an event in the config to turn the light off at the end of a print.

Pushbullet is also taking a pic at the end of the print, but it's losing the race, so I get images of a dark basement (no ghosts, yet, I'll let you know).

Any way to make my event happen after pushbullet takes a pic?

Should I add a 5 second sleep to the light off call?

[Request] Image rotation

I have horizontal flip and 90 degree image rotation setup in OctoPrint (my webcam is rotated 90 degrees), but I'm receiving images upside down in Pushbullet. Could you add those options?

No notifications, but the test message is okay

Test message works fine from the settings. But I'm not getting any other pushbullet notifications.

Probably, something in octoprint updates got awry, before it was working prefectly fine.

Print stutters on circles when offline

I have really wonky connection near my printer - so when it drops the printer stutters while printing circles. No problems with this plugin disabled,

2018-04-26 14:58:48,300 - octoprint.plugins.octobullet - ERROR - Error while instantiating PushBullet
Traceback (most recent call last):
File "/home/octo/OctoPrint/venv/local/lib/python2.7/site-packages/octoprint_octobullet/init.py", line 394, in _create_sender
bullet = pushbullet.PushBullet(token)
File "/home/octo/OctoPrint/venv/local/lib/python2.7/site-packages/pushbullet/pushbullet.py", line 29, in init
self.refresh()
File "/home/octo/OctoPrint/venv/local/lib/python2.7/site-packages/pushbullet/pushbullet.py", line 288, in refresh
self._load_devices()
File "/home/octo/OctoPrint/venv/local/lib/python2.7/site-packages/pushbullet/pushbullet.py", line 42, in _load_devices
resp_dict = self._get_data(self.DEVICES_URL)
File "/home/octo/OctoPrint/venv/local/lib/python2.7/site-packages/pushbullet/pushbullet.py", line 32, in _get_data
resp = self._session.get(url)
File "/home/octo/OctoPrint/venv/local/lib/python2.7/site-packages/requests-2.18.4-py2.7.egg/requests/sessions.py", line 521, in get
return self.request('GET', url, **kwargs)
File "/home/octo/OctoPrint/venv/local/lib/python2.7/site-packages/requests-2.18.4-py2.7.egg/requests/sessions.py", line 508, in request
resp = self.send(prep, **send_kwargs)
File "/home/octo/OctoPrint/venv/local/lib/python2.7/site-packages/requests-2.18.4-py2.7.egg/requests/sessions.py", line 618, in send
r = adapter.send(request, **kwargs)
File "/home/octo/OctoPrint/venv/local/lib/python2.7/site-packages/requests-2.18.4-py2.7.egg/requests/adapters.py", line 508, in send
raise ConnectionError(e, request=request)
ConnectionError: HTTPSConnectionPool(host='api.pushbullet.com', port=443): Max retries exceeded with url: /v2/devices (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0xb3b0db70>: Failed to establish a new connection: [Errno -2] Name or service not known',))
2018-04-26 14:58:48,591 - octoprint.plugins.anywhere - WARNING - Not connected to server ws or connection lost
2018-04-26 14:58:48,827 - octoprint.plugins.pluginmanager - INFO - Loaded plugin repository data from disk, was still valid
2018-04-26 14:58:49,008 - octoprint.plugins.anywhere - WARNING - Not connected to server ws or connection lost
2018-04-26 14:58:49,087 - backoff - ERROR - Backing off stream_up(...) for 1.6s (NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb15cbc90>: Failed to establish a new connection: [Errno -2] Name or service not known)
2018-04-26 14:58:49,134 - octoprint.server.preemptive_cache - INFO - Preemptively caching / (ui _default) for {'query_string': 'l10n=en', 'path': '/', 'base_url': 'http://10.10.0.15:5000/'}
2018-04-26 14:58:49,195 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0
2018-04-26 14:58:49,719 - octoprint.plugins.pluginmanager - INFO - Loaded notice data from disk, was still valid
2018-04-26 14:58:50,488 - octoprint.plugins.anywhere - WARNING - Not connected to server ws or connection lost
2018-04-26 14:58:50,716 - backoff - ERROR - Backing off stream_up(...) for 2.4s (NewConnectionError: <urllib3.connection.HTTPConnection object at 0xb1584a30>: Failed to establish a new connection: [Errno -2] Name or service not known)
2018-04-26 14:58:52,007 - octoprint.plugins.anywhere - WARNING - Not connected to server ws or connection lost
2018-04-26 14:58:52,969 - octoprint.util.comm - INFO - Changing monitoring state from "Connecting" to "Operational"
2018-04-26 14:58:53,163 - backoff - ERROR - Backing off stream_up(...) for 2.8s (NewConnectionError: <urllib3.connection.HTTPConnection object at 0xa7a60fd0>: Failed to establish a new connection: [Errno -2] Name or service not known)
2018-04-26 14:58:55,000 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0

Webcam rotate/flip issue - TypeError: sequence item 3: expected string, instance found

Latest install of Raspbian - apt update, apt upgrade.
Latest version of OctoPrint 1.5.1
Python 2.7.16

Error sending Pushbullet messages:

2020-12-07 19:48:35,690 - octoprint.server.api - ERROR - Error while executing SimpleApiPlugin octobullet
Traceback (most recent call last):
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/server/api/init.py", line 146, in pluginCommand
response = api_plugin.on_api_command(command, data)
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/util/init.py", line 1890, in wrapper
return f(*args, **kwargs)
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_octobullet/init.py", line 234, in on_api_command
result = self._send_message_with_webcam_image("Test from the OctoPrint PushBullet Plugin", message, sender=sender)
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_octobullet/init.py", line 365, in _send_message_with_webcam_image
self._process_snapshot(tempFile)
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_octobullet/init.py", line 447, in _process_snapshot
self._logger.info("Running: {}".format(" ".join(ffmpeg_command)))
TypeError: sequence item 3: expected string, instance found

Notifications not being sent - logging?

Hi,

I added the Pushbullet plugin to my OctoPrint setup (Version: 1.2.10 )a few days ago using Plugin Manager, but have not been receiving any notifications. I did generate an access token, and the token appears in the settings as well as my config.yaml.

I don't see a pushbullet log under my ~/.octoprint/logs directory, although I do see logs for my other plugins.

How can I best troubleshoot notifications not being sent?

Can't connect to pushbullet , access_token variable is filled in config.yaml and octoprint service has been restarted

2015-08-13 17:35:30,858 - octoprint.plugins.pluginmanager - INFO - Loaded plugin repository data from disk, was still valid
2015-08-13 17:35:31,167 - octoprint.server - INFO - Listening on http://0.0.0.0:5000
2015-08-13 17:35:31,484 - requests.packages.urllib3.connectionpool - INFO - Starting new HTTPS connection (1): api.pushbullet.com
2015-08-13 17:35:31,859 - octoprint.server.util.sockjs - INFO - New connection from client: 10.0.1.133
2015-08-13 17:35:34,523 - octoprint.plugins.octobullet - ERROR - Error while instantiating PushBullet
Traceback (most recent call last):
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_octobullet/init.py", line 26, in _connect_bullet
self._bullet = pushbullet.PushBullet(apikey)
File "/home/pi/oprint/local/lib/python2.7/site-packages/pushbullet/pushbullet.py", line 29, in init
self.refresh()
File "/home/pi/oprint/local/lib/python2.7/site-packages/pushbullet/pushbullet.py", line 267, in refresh
self._load_devices()
File "/home/pi/oprint/local/lib/python2.7/site-packages/pushbullet/pushbullet.py", line 42, in _load_devices
resp_dict = self._get_data(self.DEVICES_URL)
File "/home/pi/oprint/local/lib/python2.7/site-packages/pushbullet/pushbullet.py", line 35, in _get_data
raise InvalidKeyError()
InvalidKeyError

[Bug] Py3.7 Not sending images

Version 0.1.12 is not sending images as it should when running on Python 3.7.3. I checked the logs and found this:

2020-10-14 16:10:05,801 - octoprint.plugins.octobullet - ERROR - Exception while fetching snapshot from webcam, sending only a note: module 
'urllib' has no attribute 'urlretrieve'
Traceback (most recent call last):
  File "/home/pi/oprint/lib/python3.7/site-packages/octoprint_octobullet/__init__.py", line 346, in _send_message_with_webcam_image
    snapshot_path, headers = urllib.urlretrieve(snapshot_url)
AttributeError: module 'urllib' has no attribute 'urlretrieve'

Unable to install

I tried to install this plugin with the newest version of octoprint on octopi. (OctoPrint/OctoPrint@06fb249)

The following error occurs:

pi@octopi ~/OctoPrint $ ~/oprint/bin/pip install https://github.com/OctoPrint/OctoPrint-Pushbullet/archive/master.zip
Downloading/unpacking https://github.com/OctoPrint/OctoPrint-Pushbullet/archive/master.zip
  Downloading master.zip
  Running setup.py egg_info for package from https://github.com/OctoPrint/OctoPrint-Pushbullet/archive/master.zip
    Traceback (most recent call last):
      File "<string>", line 14, in <module>
      File "/tmp/pip-Pqvac6-build/setup.py", line 16, in <module>
        "pushbullet.py"
      File "/home/pi/oprint/local/lib/python2.7/site-packages/OctoPrint-1.2.0_dev_931_g06fb249-py2.7.egg/octoprint_setuptools/__init__.py", line 494, in create_plugin_setup_parameters
        packages = find_packages(where=source_folder, exclude=ignored_packages, include=[package, "{package}.*".format(**locals())] + additional_packages)
    TypeError: find_packages() got an unexpected keyword argument 'include'
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 14, in <module>

  File "/tmp/pip-Pqvac6-build/setup.py", line 16, in <module>

    "pushbullet.py"

  File "/home/pi/oprint/local/lib/python2.7/site-packages/OctoPrint-1.2.0_dev_931_g06fb249-py2.7.egg/octoprint_setuptools/__init__.py", line 494, in create_plugin_setup_parameters

    packages = find_packages(where=source_folder, exclude=ignored_packages, include=[package, "{package}.*".format(**locals())] + additional_packages)

TypeError: find_packages() got an unexpected keyword argument 'include'

----------------------------------------
Command python setup.py egg_info failed with error code 1 in /tmp/pip-Pqvac6-build
Storing complete log in /home/pi/.pip/pip.log

If it helps you, here is the content of /home/pi/.pip/pip.log:

------------------------------------------------------------
/home/pi/oprint/bin/pip run on Wed Jun 10 16:00:31 2015
Downloading/unpacking https://github.com/OctoPrint/OctoPrint-Pushbullet/archive/master.zip

  Downloading master.zip

  Downloading from URL https://github.com/OctoPrint/OctoPrint-Pushbullet/archive/master.zip
  Running setup.py egg_info for package from https://github.com/OctoPrint/OctoPrint-Pushbullet/archive/master.zip

    Traceback (most recent call last):

      File "<string>", line 14, in <module>

      File "/tmp/pip-Pqvac6-build/setup.py", line 16, in <module>

        "pushbullet.py"

      File "/home/pi/oprint/local/lib/python2.7/site-packages/OctoPrint-1.2.0_dev_931_g06fb249-py2.7.egg/octoprint_setuptools/__init__.py", line 494, in create_plugin_setup_parameters

        packages = find_packages(where=source_folder, exclude=ignored_packages, include=[package, "{package}.*".format(**locals())] + additional_packages)

    TypeError: find_packages() got an unexpected keyword argument 'include'

    Complete output from command python setup.py egg_info:

    Traceback (most recent call last):

  File "<string>", line 14, in <module>

  File "/tmp/pip-Pqvac6-build/setup.py", line 16, in <module>

    "pushbullet.py"

  File "/home/pi/oprint/local/lib/python2.7/site-packages/OctoPrint-1.2.0_dev_931_g06fb249-py2.7.egg/octoprint_setuptools/__init__.py", line 494, in create_plugin_setup_parameters

    packages = find_packages(where=source_folder, exclude=ignored_packages, include=[package, "{package}.*".format(**locals())] + additional_packages)

TypeError: find_packages() got an unexpected keyword argument 'include'

----------------------------------------

Command python setup.py egg_info failed with error code 1 in /tmp/pip-Pqvac6-build

Exception information:
Traceback (most recent call last):
  File "/home/pi/oprint/local/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/basecommand.py", line 104, in main
    status = self.run(options, args)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/commands/install.py", line 245, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/req.py", line 1009, in prepare_files
    req_to_install.run_egg_info()
  File "/home/pi/oprint/local/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/req.py", line 225, in run_egg_info
    command_desc='python setup.py egg_info')
  File "/home/pi/oprint/local/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/__init__.py", line 256, in call_subprocess
    % (command_desc, proc.returncode, cwd))
InstallationError: Command python setup.py egg_info failed with error code 1 in /tmp/pip-Pqvac6-build

Am I doing something wrong or is there a bug in the plugin (or octoprint)?

0.1.13 or 0.1.12? Infinite loop update plugin

After the update to 0.1.13 (that seems to be successfull from the console output) at next reboot the plugin wasn't updated.. and it says again to update..
See below the relevant log output
I am not so expert.. but it seems that even if the archive is 0.1.13.. it is really installing the same 0.1.12..
Nobody else found the same?
Let me know if there is enough information or not
Thanks

2020-10-17 09:26:51,909 /home/pi/oprint/bin/python2 -m pip --disable-pip-version-check install https://github.com/OctoPrint/OctoPrint-Pushbullet/archive/0.1.13.zip --no-cache-dir
2020-10-17 09:26:54,918 > Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
2020-10-17 09:26:54,919 > Collecting https://github.com/OctoPrint/OctoPrint-Pushbullet/archive/0.1.13.zip
2020-10-17 09:26:54,920 > Downloading https://github.com/OctoPrint/OctoPrint-Pushbullet/archive/0.1.13.zip
2020-10-17 09:26:57,792 > Requirement already satisfied (use --upgrade to upgrade): OctoPrint-Pushbullet==0.1.12 from https://github.com/OctoPrint/OctoPrint-Pushbullet/archive/0.1.13.zip in /home/pi/oprint/lib/python2.7/site-packages
2020-10-17 09:26:57,794 > Requirement already satisfied: OctoPrint in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint-Pushbullet==0.1.12) (1.4.2)
2020-10-17 09:26:57,796 > Requirement already satisfied: requests in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint-Pushbullet==0.1.12) (2.24.0)
2020-10-17 09:26:57,797 > Requirement already satisfied: pushbullet.py in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint-Pushbullet==0.1.12) (0.11.0)
2020-10-17 09:26:57,797 > Requirement already satisfied: Flask-Babel<2,>=1.0 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->OctoPrint-Pushbullet==0.1.12) (1.0.0)
2020-10-17 09:26:57,797 > Requirement already satisfied: psutil<6,>=5.7 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->OctoPrint-Pushbullet==0.1.12) (5.7.2)
2020-10-17 09:26:57,798 > Requirement already satisfied: emoji<1,>=0.5.4 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->OctoPrint-Pushbullet==0.1.12) (0.5.4)
2020-10-17 09:26:57,798 > Requirement already satisfied: monotonic<2,>=1.5; python_version < "3" in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->OctoPrint-Pushbullet==0.1.12) (1.5)
2020-10-17 09:26:57,798 > Requirement already satisfied: filetype<2,>=1.0.7 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->OctoPrint-Pushbullet==0.1.12) (1.0.7)
2020-10-17 09:26:57,799 > Requirement already satisfied: PyYAML<6,>=5.3.1 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->OctoPrint-Pushbullet==0.1.12) (5.3.1)
2020-10-17 09:26:57,799 > Requirement already satisfied: netifaces<1,>=0.10.9 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->OctoPrint-Pushbullet==0.1.12) (0.10.9)
2020-10-17 09:26:57,800 > Requirement already satisfied: future<1,>=0.18.2 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->OctoPrint-Pushbullet==0.1.12) (0.18.2)
2020-10-17 09:26:57,800 > Requirement already satisfied: feedparser<6,>=5.2.1 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->OctoPrint-Pushbullet==0.1.12) (5.2.1)
2020-10-17 09:26:57,800 > Requirement already satisfied: netaddr<1,>=0.7.19 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->OctoPrint-Pushbullet==0.1.12) (0.7.19)
2020-10-17 09:26:57,801 > Requirement already satisfied: Click<8,>=7.1.2 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->OctoPrint-Pushbullet==0.1.12) (7.1.2)
2020-10-17 09:26:57,801 > Requirement already satisfied: blinker<2,>=1.4 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->OctoPrint-Pushbullet==0.1.12) (1.4)
2020-10-17 09:26:57,802 > Requirement already satisfied: watchdog<1,>=0.10.2 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->OctoPrint-Pushbullet==0.1.12) (0.10.3)
2020-10-17 09:26:57,802 > Requirement already satisfied: itsdangerous<2,>=1.1.0 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->OctoPrint-Pushbullet==0.1.12) (1.1.0)
2020-10-17 09:26:57,803 > Requirement already satisfied: pkginfo<2,>=1.5.0.1 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->OctoPrint-Pushbullet==0.1.12) (1.5.0.1)
2020-10-17 09:26:57,803 > Requirement already satisfied: Jinja2<3,>=2.11.2 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->OctoPrint-Pushbullet==0.1.12) (2.11.2)
2020-10-17 09:26:57,804 > Requirement already satisfied: frozendict<2,>=1.2 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->OctoPrint-Pushbullet==0.1.12) (1.2)
2020-10-17 09:26:57,805 > Requirement already satisfied: Flask-Login<0.6,>=0.5 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->OctoPrint-Pushbullet==0.1.12) (0.5.0)
2020-10-17 09:26:57,805 > Requirement already satisfied: flask<2,>=1.1.2 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->OctoPrint-Pushbullet==0.1.12) (1.1.2)
2020-10-17 09:26:57,806 > Requirement already satisfied: rsa==4.0 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->OctoPrint-Pushbullet==0.1.12) (4.0)
2020-10-17 09:26:57,806 > Requirement already satisfied: semantic-version<3,>=2.8.5 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->OctoPrint-Pushbullet==0.1.12) (2.8.5)
2020-10-17 09:26:57,806 > Requirement already satisfied: unidecode<0.05,>=0.04.14 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->OctoPrint-Pushbullet==0.1.12) (0.4.21)
2020-10-17 09:26:57,807 > Requirement already satisfied: OctoPrint-FileCheck>=2020.07.06 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->OctoPrint-Pushbullet==0.1.12) (2020.8.7)
2020-10-17 09:26:57,807 > Requirement already satisfied: futures<4,>=3.3; python_version < "3" in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->OctoPrint-Pushbullet==0.1.12) (3.3.0)
2020-10-17 09:26:57,807 > Requirement already satisfied: websocket-client<1,>=0.57 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->OctoPrint-Pushbullet==0.1.12) (0.57.0)
2020-10-17 09:26:57,808 > Requirement already satisfied: scandir<2,>=1.10; python_version < "3" in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->OctoPrint-Pushbullet==0.1.12) (1.10.0)
2020-10-17 09:26:57,808 > Requirement already satisfied: tornado==5.1.1 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->OctoPrint-Pushbullet==0.1.12) (5.1.1)
2020-10-17 09:26:57,808 > Requirement already satisfied: pyserial<4,>=3.4 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->OctoPrint-Pushbullet==0.1.12) (3.4)
2020-10-17 09:26:57,809 > Requirement already satisfied: markupsafe<2.0,>=1.1 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->OctoPrint-Pushbullet==0.1.12) (1.1.1)
2020-10-17 09:26:57,809 > Requirement already satisfied: markdown<3.2,>=3.1 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->OctoPrint-Pushbullet==0.1.12) (3.1.1)
2020-10-17 09:26:57,810 > Requirement already satisfied: regex!=2018.11.6 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->OctoPrint-Pushbullet==0.1.12) (2019.8.19)
2020-10-17 09:26:57,810 > Requirement already satisfied: chainmap<2,>=1.0.3; python_version < "3" in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->OctoPrint-Pushbullet==0.1.12) (1.0.3)
2020-10-17 09:26:57,810 > Requirement already satisfied: typing<4,>=3.7.4.1; python_version < "3" in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->OctoPrint-Pushbullet==0.1.12) (3.7.4.1)
2020-10-17 09:26:57,811 > Requirement already satisfied: sarge==0.1.5post0 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->OctoPrint-Pushbullet==0.1.12) (0.1.5.post0)
2020-10-17 09:26:57,811 > Requirement already satisfied: sentry-sdk<1,>=0.15.1 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->OctoPrint-Pushbullet==0.1.12) (0.17.1)
2020-10-17 09:26:57,811 > Requirement already satisfied: OctoPrint-FirmwareCheck>=2020.06.22 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->OctoPrint-Pushbullet==0.1.12) (2020.9.23)
2020-10-17 09:26:57,812 > Requirement already satisfied: pylru<2,>=1.2 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->OctoPrint-Pushbullet==0.1.12) (1.2.0)
2020-10-17 09:26:57,812 > Requirement already satisfied: werkzeug<2,>=1.0.1 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->OctoPrint-Pushbullet==0.1.12) (1.0.1)
2020-10-17 09:26:57,813 > Requirement already satisfied: wrapt<2,>=1.12.1 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->OctoPrint-Pushbullet==0.1.12) (1.12.1)
2020-10-17 09:26:57,813 > Requirement already satisfied: Flask-Assets<3,>=2.0 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->OctoPrint-Pushbullet==0.1.12) (2.0)
2020-10-17 09:26:57,813 > Requirement already satisfied: cachelib<1,>=0.1 in /home/pi/oprint/lib/python2.7/site-packages (from OctoPrint->OctoPrint-Pushbullet==0.1.12) (0.1)
2020-10-17 09:26:57,814 > Requirement already satisfied: idna<3,>=2.5 in /home/pi/oprint/lib/python2.7/site-packages (from requests->OctoPrint-Pushbullet==0.1.12) (2.8)
2020-10-17 09:26:57,814 > Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /home/pi/oprint/lib/python2.7/site-packages (from requests->OctoPrint-Pushbullet==0.1.12) (1.25.6)
2020-10-17 09:26:57,814 > Requirement already satisfied: certifi>=2017.4.17 in /home/pi/oprint/lib/python2.7/site-packages (from requests->OctoPrint-Pushbullet==0.1.12) (2019.9.11)
2020-10-17 09:26:57,815 > Requirement already satisfied: chardet<4,>=3.0.2 in /home/pi/oprint/lib/python2.7/site-packages (from requests->OctoPrint-Pushbullet==0.1.12) (3.0.4)
2020-10-17 09:26:57,815 > Requirement already satisfied: python-magic in /home/pi/oprint/lib/python2.7/site-packages (from pushbullet.py->OctoPrint-Pushbullet==0.1.12) (0.4.18)
2020-10-17 09:26:57,815 > Requirement already satisfied: Babel>=2.3 in /home/pi/oprint/lib/python2.7/site-packages (from Flask-Babel<2,>=1.0->OctoPrint->OctoPrint-Pushbullet==0.1.12) (2.7.0)
2020-10-17 09:26:57,816 > Requirement already satisfied: pytz in /home/pi/oprint/lib/python2.7/site-packages (from Flask-Babel<2,>=1.0->OctoPrint->OctoPrint-Pushbullet==0.1.12) (2019.3)
2020-10-17 09:26:57,816 > Requirement already satisfied: pathtools>=0.1.1 in /home/pi/oprint/lib/python2.7/site-packages (from watchdog<1,>=0.10.2->OctoPrint->OctoPrint-Pushbullet==0.1.12) (0.1.2)
2020-10-17 09:26:57,816 > Requirement already satisfied: pyasn1>=0.1.3 in /home/pi/oprint/lib/python2.7/site-packages (from rsa==4.0->OctoPrint->OctoPrint-Pushbullet==0.1.12) (0.4.7)
2020-10-17 09:26:57,817 > Requirement already satisfied: six in /home/pi/oprint/lib/python2.7/site-packages (from websocket-client<1,>=0.57->OctoPrint->OctoPrint-Pushbullet==0.1.12) (1.12.0)
2020-10-17 09:26:57,817 > Requirement already satisfied: backports-abc>=0.4 in /home/pi/oprint/lib/python2.7/site-packages (from tornado==5.1.1->OctoPrint->OctoPrint-Pushbullet==0.1.12) (0.5)
2020-10-17 09:26:57,817 > Requirement already satisfied: singledispatch in /home/pi/oprint/lib/python2.7/site-packages (from tornado==5.1.1->OctoPrint->OctoPrint-Pushbullet==0.1.12) (3.4.0.3)
2020-10-17 09:26:57,818 > Requirement already satisfied: setuptools>=36 in /home/pi/oprint/lib/python2.7/site-packages (from markdown<3.2,>=3.1->OctoPrint->OctoPrint-Pushbullet==0.1.12) (41.5.1)
2020-10-17 09:26:57,818 > Requirement already satisfied: webassets>=2.0 in /home/pi/oprint/lib/python2.7/site-packages (from Flask-Assets<3,>=2.0->OctoPrint->OctoPrint-Pushbullet==0.1.12) (2.0)
2020-10-17 09:26:57,818 > Building wheels for collected packages: OctoPrint-Pushbullet
2020-10-17 09:26:57,819 > Building wheel for OctoPrint-Pushbullet (setup.py): started
2020-10-17 09:26:59,086 > Building wheel for OctoPrint-Pushbullet (setup.py): finished with status 'done'
2020-10-17 09:26:59,086 > Created wheel for OctoPrint-Pushbullet: filename=OctoPrint_Pushbullet-0.1.12-cp27-none-any.whl size=20443 sha256=ecca0ec15f5ab6b06dedd9473a7c80222606ac079e590d2c04858e50b1c0504d
2020-10-17 09:26:59,087 > Stored in directory: /tmp/pip-ephem-wheel-cache-BTMm7E/wheels/bf/00/07/2541400805cf7aa3f7e72dc7c0c27daae5c2510674638cde04
2020-10-17 09:26:59,087 > Successfully built OctoPrint-Pushbullet
2020-10-17 09:26:59,093 # Looks like we were already installed in this version. Forcing a reinstall.
2020-10-17 09:26:59,098 /home/pi/oprint/bin/python2 -m pip --disable-pip-version-check install https://github.com/OctoPrint/OctoPrint-Pushbullet/archive/0.1.13.zip --no-cache-dir --ignore-installed --force-reinstall --no-deps
2020-10-17 09:27:01,900 > Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
2020-10-17 09:27:01,902 > Collecting https://github.com/OctoPrint/OctoPrint-Pushbullet/archive/0.1.13.zip
2020-10-17 09:27:01,904 > Downloading https://github.com/OctoPrint/OctoPrint-Pushbullet/archive/0.1.13.zip
2020-10-17 09:27:03,122 > Building wheels for collected packages: OctoPrint-Pushbullet
2020-10-17 09:27:03,122 > Building wheel for OctoPrint-Pushbullet (setup.py): started
2020-10-17 09:27:04,557 > Building wheel for OctoPrint-Pushbullet (setup.py): finished with status 'done'
2020-10-17 09:27:04,557 > Created wheel for OctoPrint-Pushbullet: filename=OctoPrint_Pushbullet-0.1.12-cp27-none-any.whl size=20443 sha256=6a7bda06606d200b7d4bb72e75af3c0e0dd33c12ac9ead9a841b9152b144f9d6
2020-10-17 09:27:04,558 > Stored in directory: /tmp/pip-ephem-wheel-cache-efJihk/wheels/bf/00/07/2541400805cf7aa3f7e72dc7c0c27daae5c2510674638cde04
2020-10-17 09:27:04,558 > Successfully built OctoPrint-Pushbullet
2020-10-17 09:27:04,558 > Installing collected packages: OctoPrint-Pushbullet
2020-10-17 09:27:04,559 > Successfully installed OctoPrint-Pushbullet-0.1.12

Up for adoption

I have my hands way too full with OctoPrint's maintenance to give this plugin the attention it needs. Hence I'm looking for a new maintainer to adopt it.

Can't send notification

Hi there,

Since the 0.1.7 release, the plugin can't send notification to my devices.
Even if I try the test message, I've got the popup

Test message could not be sent
Test message could not be sent to Pushbullet, check settings.

I tried to clean-up my delivered token and regenerate a new one (that I used on other app and which works on it) but I've got the same issue.

Today I upgrade the plugin to 0.1.8 but it's exactly the same case.

I'm on Octoprint 1.3.2 and the log file return that :

2017-04-12 18:17:42,958 - octoprint.plugins.octobullet - ERROR - Error while instantiating PushBullet
Traceback (most recent call last):
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_octobullet/init.py", line 214, in _create_sender
bullet = pushbullet.PushBullet(token)
File "/home/pi/oprint/local/lib/python2.7/site-packages/pushbullet/pushbullet.py", line 29, in init
self.refresh()
File "/home/pi/oprint/local/lib/python2.7/site-packages/pushbullet/pushbullet.py", line 288, in refresh
self._load_devices()
File "/home/pi/oprint/local/lib/python2.7/site-packages/pushbullet/pushbullet.py", line 42, in _load_devices
resp_dict = self._get_data(self.DEVICES_URL)
File "/home/pi/oprint/local/lib/python2.7/site-packages/pushbullet/pushbullet.py", line 32, in _get_data
resp = self._session.get(url)
File "/home/pi/oprint/local/lib/python2.7/site-packages/requests-2.7.0-py2.7.egg/requests/sessions.py", line 477, in get
return self.request('GET', url, **kwargs)
File "/home/pi/oprint/local/lib/python2.7/site-packages/requests-2.7.0-py2.7.egg/requests/sessions.py", line 465, in request
resp = self.send(prep, **send_kwargs)
File "/home/pi/oprint/local/lib/python2.7/site-packages/requests-2.7.0-py2.7.egg/requests/sessions.py", line 573, in send
r = adapter.send(request, **kwargs)
File "/home/pi/oprint/local/lib/python2.7/site-packages/requests-2.7.0-py2.7.egg/requests/adapters.py", line 431, in send
raise SSLError(e, request=request)
SSLError: [Errno 8] _ssl.c:504: EOF occurred in violation of protocol

I already checked my config file and the write token is fill in it.

Any way to resolve it ?

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.