Has anyone successfully setup PrusaConnect with Pushover notification via a webhook?
 
Notifications
Clear all

Has anyone successfully setup PrusaConnect with Pushover notification via a webhook?  

  RSS
Cranky Curmudgeon
(@cranky-curmudgeon)
Member
Has anyone successfully setup PrusaConnect with Pushover notification via a webhook?

I've been trying to do this all afternoon with no luck.

I know it's possible to do it with Curl and Python but the Slack labeled Webhook is our only choice for PrusaConnect.

Definitionally need better notification options with PrusaConnect and this would make it perfect.

Posted : 04/10/2024 9:26 pm
_KaszpiR_
(@_kaszpir_)
Prominent Member
RE: Has anyone successfully setup PrusaConnect with Pushover notification via a webhook?

Pushover does not support webhooks as Discord or Slack does it.

You would need a middleware for that to translate one incoming message from PrusaConnect  to a message pushed to PushOver.

For single user it may be easy to set up yourself, but for a massive amount of notifications it requires paid service agreement with PushOver to register new app.

See my GitHub and printables.com for some 3d stuff that you may like.

Posted : 05/10/2024 7:58 am
Cranky Curmudgeon
(@cranky-curmudgeon)
Member
Topic starter answered:
RE: Has anyone successfully setup PrusaConnect with Pushover notification via a webhook?

Thanks for confirming this.

I ended up using IFTTT as a bridge between PrusaConnect and my Hubitat home automation system.

The Webhook feature of IFTTT works great with PrusaConnect's Slack notification feature. From there, I can do most anything within Hubitat (SMS, Pushover, spoken messages, etc...).

 

Posted : 05/10/2024 3:23 pm
Larswa
(@larswa)
Active Member
RE: Has anyone successfully setup PrusaConnect with Pushover notification via a webhook?

Good idea with the middleware. I use Pushover for a ton of things and wanted them in there too.

Too bad there is not a more clean generic webhook where we can map what we want to send out, so I had to go with the Discord webhook.

I wrote a short Python function that receives a discord post messages and tries to fish out relevant content and send it on to Pushover

lmk if you want to see the code. I got blocked by some wordpress plugin when I post it here.

Posted : 16/01/2025 2:46 pm
_KaszpiR_
(@_kaszpir_)
Prominent Member
RE: Has anyone successfully setup PrusaConnect with Pushover notification via a webhook?

Try GitHub gist.

See my GitHub and printables.com for some 3d stuff that you may like.

Posted : 16/01/2025 3:42 pm
Larswa
(@larswa)
Active Member
RE: Has anyone successfully setup PrusaConnect with Pushover notification via a webhook?

Oh yeah ... good thinking

https://gist.github.com/Larswa/aed175d8eb3f9809df538efab5931ee1

Posted : 16/01/2025 4:02 pm
_KaszpiR_ liked
_KaszpiR_
(@_kaszpir_)
Prominent Member
RE: Has anyone successfully setup PrusaConnect with Pushover notification via a webhook?

so I guess the setup is like this:
- you host it somewhere like heroku app, that gives you a public endpoint
- in PrusaConnect set Discord as target for notifications but with custom url pointing to that public endpoint
- endpoint gets notifications as Discord format,  and processes them and thus sends them PushOver.

See my GitHub and printables.com for some 3d stuff that you may like.

Posted : 17/01/2025 1:35 pm
Larswa
(@larswa)
Active Member
RE: Has anyone successfully setup PrusaConnect with Pushover notification via a webhook?

Exactly. In my case I chose the free tier Google Cloud Functions as its dead easy to set up. A lot less steps than AWS lambda for instance (IMO).

You are probably at home in there, but for others its something like this 

Go here to enable google functions  https://console.cloud.google.com/functions

After clicking around to enable Google Functions on the account, create one and set it as a HTTP triggered function.  Select "Allow unauthenticated invocations" and go with default memory allocation.

Select Python 3.12 as the execution engine, and there is a main.py and a requirements.txt textbox where you paste in the code.

Then its possible to test the function, or just deploy it and test it with the endpoint that is created. 

Rough sketch of what to do, but Google have probably changed the UI of creation 3 times while I write this up. 😂

I really should go ahead and put it in a container so we can run it somewhere locally off the net, but I just couldnt be bothered as I only had half an hour to get it up and running.  ChatGPT gave a rough draft of the Python code, and I made only a few corrections to it. 

 

Posted : 17/01/2025 1:45 pm
_KaszpiR_ liked
Share: