claabs / epicgames-freegames-node

Automatically login and find available free games the Epic Games Store. Sends you a prepopulated checkout link so you can complete the checkout after logging in. Supports multiple accounts, login sessions, and scheduled runs.
https://hub.docker.com/r/charlocharlie/epicgames-freegames
MIT License
1.39k stars 93 forks source link

Question: JSON Notification? #413

Closed A-Void-Me closed 2 weeks ago

A-Void-Me commented 2 weeks ago

Is it possible to adjust the "notifiers": [ ] section to send a JSON message to a URL, similar to how Apprise does it with json://hostname/a/path/to/post/to?

I've managed to set up a LocalNotifier, but I'm not able to get it to work as expected, or I may not fully understand its functionality. My goal is to send a JSON payload to a specified URL whenever a notification is triggered. Could you provide guidance on configuring this or suggest how to adapt the LocalNotifier (or another notifier) to achieve JSON-based notifications?

claabs commented 2 weeks ago

There's a webhook notifier which essentially just POSTs a JSON payload to an arbitrary URL.

A-Void-Me commented 2 weeks ago

Thank you for the response. I had tried the webhook before, but it didn’t work.

I’ve now identified the issue on my end—it looks like the port I was using was too high for it to function properly.