weashadow / UltraFirmwareToolkit

Saturn 3 Ultra and Uniformation GKTwo firmware mod toolkit
25 stars 2 forks source link

Notifications webhooks (ntfy.sh) #4

Open Auroch opened 8 months ago

Auroch commented 8 months ago

Hello there, Fantastic work, I'm very impressed ! I can see that you have lots of plans for future versions. Do you think it would be possible to add a small webhook to send a notification to an ntfy.sh server (ideally self-hosted, so url not hard coded but as parameters) to know when a print is finished? Best regards (If this is not the right place, please apologise and tell me where I can ask or make a suggestion)

arsi-apli commented 8 months ago

Analyzing the firmware format and modifying it is one thing, but since we can't get to the source code of the application itself, it's rather unrealistic. Even if I could make some modifications via gHidra, it would have to be done from scratch for every new release. Perhaps a modified version of the MQTT library, which would provide some REST API to access, might be the way to go. Then all that would be needed would be to remove the test in the application itself if mqtt is connected, so that the library would constantly receive data about the current state of the printer.

The second option is to continuously analyze the log file and perform actions based on that.

And the third, @yukihiratype2 started working on preparing an opensource application. I've had a break for a few months now, I've had to work on commercial projects and now after the year-end craziness I'm having a bout of laziness..😉