- changed component to Business Logic
Notification System
I've got a home server set up that could listen for requests on the LAN. After a listener in a program receives a piece of data sent from SGP (to a specific IP/port/domain), the program could then evaluate how to handle the data. A program like this would have to be user-written, but it could potentially play a sound to wake you up, activate floodlights outside, or pretty much anything else that can be controlled by your computer.
Actually sending the data to the arbitrary endpoint is a really simple task that can be accomplished by using some library. For the user input, they could either type an actual URL or just specify the IP/domain and port. This would allow users to send data to something like http://192.168.1.45:8000/nina/notifications
or even just http://192.168.1.45:8000/
Just make a post request to that address and have the payload be some JSON data that has details about the notification. Constructing a JSON object like that shouldn't be difficult at all.
Some of the parameters might be the type of notification, time of trigger on the NINA machine, any details, the exact equipment affected, and urgency level (just numbers like 0, 1, 2, etc; users might be able to define and/or change these values in settings?). It would just be a JSON object like {type: 'guider', time: unixtime, urgency: 2, equipment: [list, of, things], details: somedetails}
I think adding a feature like this could only take a small amount of time to get it running and it would provide a great bit of flexibility to the notification system.
Comments (4)
-
repo owner -
repo owner - marked as proposal
-
repo owner Issue
#333was marked as a duplicate of this issue. -
repo owner - changed status to resolved
With the addition of the groundstation plugin, notifications can be sent. If you want to build a home server notification you can also build a custom plugin for yourself. Implementation example: https://bitbucket.org/Isbeorn/nina.plugin.template/src/master/
- Log in to comment