Comments (19)
Yes, this is something I can look into adding a plugin for. Email notifications would probably be easiest, but I may look into mqtt as well as it seems straight forward to add a "client" and I suspect it would require less user configuration in Moonraker.
from moonraker.
Yes, this is something I can look into adding a plugin for. Email notifications would probably be easiest, but I may look into mqtt as well as it seems straight forward to add a "client" and I suspect it would require less user configuration in Moonraker.
MQTT would be great! Also for the "power shut down" this way you could use any smart plug or smart device.
I think if you would broadcast the state of a bunch of variables through MQTT, would make a world of difference. With this you don't have to support different brands/devices/plugins/etc.
I use home assistant and with this mqtt info, I could make so many things work: notifications (email, phone, brower, tv), auto power off, monitoring and so on.
Have a look at this: https://github.com/OctoPrint/OctoPrint-MQTT
from moonraker.
There is a contributor doing some work on a generic notification component. I believe that initially he plans on supporting configurable HTTP notifications. When that work is complete I plan to look into adding MQTT support.
from moonraker.
I'm still working on it, but haven't had much time lately. The benefit of a notification module will be granularity in notifications as well as other methods (email, discord, whatever else).
from moonraker.
#377 has been merged, which should add support for numerous notification backends. Thanks @pataar!
from moonraker.
It would end up being on the user side, sorting out what to do with the mqtt messages, but it's a more open standard. I would love to recommend something like pushover/pushbullet/telegram/slack..but I think those tend to add more complexity than warranted. We need you focused on moonraker code, not addressing constant issues from 3rd party api patches!
from moonraker.
Here would be a user script that add basic telegram support for moonraker
https://github.com/Raabi91/moonraker-telegram
from moonraker.
Here would be a user script that add basic telegram support for moonraker
https://github.com/Raabi91/moonraker-telegram
I will have to give this a try...
from moonraker.
Discord notifications would probably be easiest to implement
from moonraker.
Coming from stock marlin and octoprint here, about to jump into klipper land. I am going to miss my telegram and mqtt integrations, so I like the discussion above. I wouldn't use email, personally.
To @zervin point about plugins and clients -- yeah, definitely make it something extensible so others can build on top. I think best bang for the buck would be to do pub/sub to mqtt, and then this would give us home automation capabilities. I even see an mqtt client for telegram, so it might be trivial for others to do that as well.
Any active work going on in this area?
from moonraker.
Here's another vote for this! I'm happy to lend a hand. Where is the notification branch?
from moonraker.
@eecue I believe #184 might be it!
from moonraker.
Awesome! are there other notifications? I just see the MQTT but a generic web hook (or one that's slack flavored) would be awesome. For now I've written this and plan to add web sockets to it: https://github.com/eecue/klipper-slackbot
from moonraker.
That looks quite cool! My personal interest is to use the MQTT status messages to show the printer status on Home Assistant (thus replacing the need to use pulls via REST API as I currently do)
from moonraker.
from moonraker.
Actually, that branch was taking a different approach and I believe it is now stale (up to the maintainer if he wishes to refactor it as I do see value in that).
Having said that, I took a stab yesterday in adding print_status changes pushed to MQTT, and it seems to be working ok: #202
from moonraker.
Thanks @jordanruthe, looking forward for that then! 🙂
from moonraker.
I came here looking for notifications (to pushover), is there any news about this? It's been a while since any updates
from moonraker.
I started working on #377. This component utilizes the apprise library, which includes a ton of notification services.
So eventually you can add this to moonraker.conf
:
[notifier my_personal_discord]
events: started,completed
url: https://discord.com/api/webhooks/{id}/{secret}}
body: Printer update: '{event_name}'
[notifier print_start]
url: tgram://{bottoken}/{ChatID}
events: started
body: Your printer started printing '{event_args[1].filename}'
from moonraker.
Related Issues (20)
- Ensure time is synced before refreshing the update manager status. HOT 1
- Device Power on mqtt zigbee2mqtt payload HOT 7
- Power locked_while_printing: True asserting at startup when not printing HOT 5
- Cannot Retrieve File Metadata for Spoolman HOT 10
- Spoolman Proxy: Include total count header in response
- How to add Authenticator HOT 2
- unable get printer info from moonraker HOT 5
- Gcode-shell-command Error: Failed to restart KlipperScreen.service: Interactive authentication required. HOT 2
- Can the file manager API also return a hash? HOT 7
- Fluidd Moonraker connection to elegoo Neptune 4+ on MAC failed (Force Refresh) HOT 5
- Add Flatpack
- Apprise update. HOT 2
- Add option to power off a power device when operating system shutdown. HOT 2
- Non working links for ids.
- Power device: add option to run custom gcode on on/off action
- [database.py:insert_item()] - Error inserting key 'instance_id' in namespace 'moonraker' HOT 5
- Login fails after upgrade HOT 9
- Missing Documentation for altering the instance_uuid HOT 3
- Add filament I’d to print history
- Mainsail cannot connect to Moonraker (connection Failed) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moonraker.