gnmyt / myspeed

A speed test analysis software that shows your internet speed for up to 30 days
https://myspeed.dev
MIT License
234 stars 16 forks source link

ntfy or email notification #711

Open divemasterjm opened 1 month ago

divemasterjm commented 1 month ago

General

Your Idea

ntfy is wide used also mail, can you please add it? i've tried webhook to notify but no results.

Thanks

gnmyt commented 3 weeks ago

Thanks for your suggestion! ntfy sounds like a good integration to add.

Just out of curiosity: What wasn't working with the webhooks? Did you try to connect the webhook to ntfy, or did it just not send a request? You can use a webhook tester to see all the events that MySpeed sends via webhooks. However, you still need to check the boxes under the webhook URL.

divemasterjm commented 3 weeks ago

Thanks for your suggestion! ntfy sounds like a good integration to add.

Just out of curiosity: What wasn't working with the webhooks? Did you try to connect the webhook to ntfy, or did it just not send a request? You can use a webhook tester to see all the events that MySpeed sends via webhooks. However, you still need to check the boxes under the webhook URL.

i just put the url of ntfy for webhook http://ntfy.xxxx.xxx/publish but got error on you side

gnmyt commented 3 weeks ago

I'm going to implement a proper ntfy integration soon since the webhook just sends plain JSON to webhook, but that should work in the meantime.

When using webhooks, MySpeed just sends a POST request to the specified endpoint. If there is authentication enabled on that endpoint or the enpoint returns other codes than 200 OK, it will show as Failed in the UI.

If it says that it never executed it, you need to check some events in the webhook settings.

image

divemasterjm commented 3 weeks ago

thanks will be nice to have it, since now i only use ntfy, i got error when sending webhook, i saw the json but i think ntfy doens now how to use it, i will wait as im waiting for the homepage widget.

Thanks