Jump to content

Search the Community

Showing results for tags 'notifications'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • TeamFDM
    • Site Updates and Announcements
    • Frequently Asked Questions
    • General Discussion
    • Voron User Mods
    • Filaments
    • Build Diaries
    • Introductions
    • Tutorials
  • Voron Build Support
    • Voron 0
    • Voron Trident
    • Voron 2
    • Voron Legacy
    • Voron Extruders
    • Voron Electronics
    • Slicers and Print Troubleshooting
  • Other FDM Printers
    • Ender 3 / Ender 3 Pro
    • Anet A8 / AM8
    • Prusa
    • Generic / Other
  • Marketplace
    • The Bazaar
  • Vendors
    • KB-3D
    • Voron Printed Parts Co.
    • Fabreeko
  • Off-Topic
    • Random
    • TeamFDM Member's Creative Collection

Categories

  • Non Printable Files
  • Printable Voron User Mods
  • Manuals and PDF Guides
  • Creative Collection
  • Tools and Calibration
  • Official Voron Releases

Categories

  • User Mod Installs
  • Build Techniques
  • Programming
  • Team FDM Site Tutorials
  • CAD / Fusion 360 Tutorials

Blogs

  • Voron General
  • Why we are the best digital marketing services in Chennai

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me


Voron Serial #1


Voron Serial #2


Voron Serial #3


Voron Serial #4


Voron Serial #5


Voron Serial #6


Voron Serial #7

Found 1 result

  1. UPDATE: I feel like geekandi's moonraker integration is much simpler and more versatile that my solution, so I recommend scrolling down and trying that method first. I'm going to do the same myself Hello! I thought I'd write up how I got pushover notifications working to my iPhone so I'd know when the Voron was finishing printing. You can, of course, expand this out even more to notify you of all sorts of things including when the printer is paused (for a filament change) or if some other condition requires it you to know about it. I just wanted to know when it was done so I could work on the next project, and I didn't always want to watch the klipper web UI for the job status. It might seem like a lot of steps but bear with me, it's worth it once it's set up! Configure pushover account/device/application token you'll need to set up a free pushover account (I think it's free, if not it's a one-time charge per device or something like that) at pushover.net if you are NEW to pushover you'll need to set up at least one device, which will include installing an APP on your phone and linking it to your account make note of the device name when you are done setting up the device you want to use generate a new application key and call it something useful. I used "Voron2.4" for my application name and left my description blank you can leave the "URL" part of the app key generation blank, but I recommend uploading a Voron logo (see my phone screenshot) copy down the API token, and from the main page also copy down your USER TOKEN somewhere Set up some scripts for klipper you'll need to install the gcode_shell_command.py script from this site. I just copied it all, then from a shell to my Rpi on the Voron I pasted it into a new file. in case you need help on how to do that, follow these steps: ssh into your pi (pi/raspberry) then cd /home/pi/klipper/scripts to get into the correct directory using your favorite editor make the file (i.e. "vi gcode_shell_command.py", then "i", then paste in the text (in putty: right click), then esc, ZZ to save) you might be able to create a local gcode_shell_command.py file and upload it via klipper's web UI but I'm not sure if you can navigate to the right directory in mainsail or fluidd make it executable: chmod a+x gcode_shell_command.py Warning: The gcode_shell_command.py script could potentially cause issues if exploited since it can run arbitrary shell commands on the host controller. Be careful if you happen to have an internet-connected printer! I didn't write the script and don't take any responsibility for it, I just use it here. next, create a shell script that does the actual pushover notification in the same directory as above call this one pushover.sh and update the <> bracketed parts with your keys and device name. #!/bin/bash TITLE="Voron 2.4 Print Completed" MESSAGE=$1 DEVICE="<device name>" APP_TOKEN="<app token>" USER_TOKEN="<user token>" curl -s \ --form-string "token=$APP_TOKEN" \ --form-string "user=$USER_TOKEN" \ --form-string "message=$MESSAGE" \ --form-string "device=$DEVICE" \ --form-string "title=$TITLE" \ https://api.pushover.net/1/messages.json Make it executable as well "chmod a+x pushover.sh", then test it right now with "./pushover.sh "Test message" and see if you get a notification on your phone. My setup has about a 3-5 second delay but I do get the message on my phone. If you don't get it, then there's some work that needs to be done here before you can continue. This part needs to work, so double check your keys and device name (all from the pushover.net web UI). Set up the gcode macros In your printer.cfg or macros.cfg (if you have that) add these lines: ##################################################################### ## Pushover notifications for completed print jobs ##################################################################### [gcode_shell_command pushover_notify] command: sh /home/pi/klipper/scripts/pushover.sh timeout: 10. verbose: True [gcode_macro NOTIFY_PRINT_DONE] gcode: {% if printer.print_stats.filename %} {% set fname = printer.print_stats.filename %} {% endif %} RUN_SHELL_COMMAND CMD=pushover_notify PARAMS={fname} Finally, add this to your PRINT_END macro. Here's a snippet of mine: ...snip TURN_OFF_HEATERS RESTORE_GCODE_STATE NAME=STATE_PRINT_END ## Oct 2022 -- Pushover notification of print complete NOTIFY_PRINT_DONE That's about it! Note that the NOTIFY_PRINT_DONE will crash klipper if there is no filename being processed, so I check for the existence of a filename before actually retrieving it from "printer.print_stats.filename". So if you call NOTIFY_PRINT_DONE somewhere or manually when no printing is happening, it will not have a filename. Here's the link to the klipper printer variables available to use in your gcode macros. Also, here's where I saw an example of how to pass information to the shell script: this page Good luck! Dennis P.S. Please tell me if there is an easier way to get notifications on your phone from the Voron. I looked around and some something about using a messenger service (via moonraker) and maybe even a discord server option, but I was looking for something more in line with how pushover works. I use it for smarthome notifications anyway so it was an easy push to add this for the Voron setup.
×
×
  • Create New...