prusa3d / Prusa-Link-Web

Prusa Web interface resources
GNU General Public License v3.0
114 stars 50 forks source link

Browser notifications of change in printer status #477

Open MisterGlass opened 5 months ago

MisterGlass commented 5 months ago

This uses native browser notifications to alert the user to any printer status changes.

There is probably a better place in the code to do this but it works on my machine ;)

ddx32 commented 5 months ago

Hi, thanks for the contribution!

I like the idea of using native notifications as long as the web interface runs in the background. However instead of generating the notifications ad-hoc, we could build some sort of system-wide solution, perhaps a listener for CustomEvents somewhere that would be able to handle the low-level new Notification() logic and trigger any kind of notification just by firing an event anywhere on the page? What do you think, @Lowentwickler ?