Skip to content
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

Not Sending Push Notifications #22

Closed
shmorgan opened this issue Apr 26, 2018 · 5 comments
Closed

Not Sending Push Notifications #22

shmorgan opened this issue Apr 26, 2018 · 5 comments
Assignees

Comments

@shmorgan
Copy link

As of yesterday, all push notification are no longer being delivered from any of my Octoprint Devices. I tested with the test option and watched the console on the pushover website and the Messages Delivered/Pending did not change.

@shmorgan
Copy link
Author

I am seeing this entry in the logs...

octoprint.log:2018-04-26 10:17:33,482 - octoprint.plugins.pushover - INFO - error while instantiating Pushover: HTTPSConnectionPool(host='api.pushover.net', port=443): Max retries exceeded with url: /1/users/validate.json (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x76cc2870>: Failed to establish a new connection: [Errno -2] Name or service not known',))
octoprint.log:| Pushover (0.2.1) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_pushover

@shmorgan
Copy link
Author

shmorgan commented Apr 26, 2018

Tested with there pyton test code and our keys, got this

send: 'POST /1/messages.json HTTP/1.1\r\nHost: api.pushover.net\r\nAccept-Encoding: identity\r\nContent-Length: 92\r\nContent-type: application/x-www-form-urlencoded\r\n\r\ntoken=xxxxxxxxxxxxxxxxxx&message=hello+world&user=xxxxxxxxxxxxxxxxxxxx'
reply: 'HTTP/1.1 429 Too Many Requests\r\n'

@thijsbekke thijsbekke self-assigned this Apr 26, 2018
@thijsbekke
Copy link
Owner

Hi,

Thanks for contacting, I did not noticed it. This plugin uses an api key that can send 12,500 messages each month. And this plugin keeps getting more populair (which is a good thing) and therefore more messages are being sent. The reason why you can't send anymore messages is because the limit is reached.

You can do 2 things,

  1. You wait, next month the counter is reset
  2. Add your own api key (it is under advanced options)

Also I recommend you remove your user key from the comment above (spam and stuff)

I will contact Pushover and hope they are kind enough the raise the limit (again).

See the image below for a graph of the usage.

image

@jcs
Copy link

jcs commented Apr 26, 2018

Hi, Pushover developer here. I've raised the limit to 25,000 but this application should stop hard-coding an API token.

I've enabled cloning for the application so you can direct users to https://pushover.net/apps/clone/octoprint where they can easily register their own API token and get their own monthly quota. This way one user won't affect all others.

@shmorgan
Copy link
Author

BTW, Love the Plugin and Pushover Service, seems to work great!! Now have it installed on 5 printers!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants