Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order
    1. Home
    2. Torin
    • Profile
    • Following 0
    • Followers 1
    • Topics 3
    • Posts 32
    • Best 5
    • Controversial 0
    • Groups 0

    Torin

    @Torin

    7
    Reputation
    5
    Profile views
    32
    Posts
    1
    Followers
    0
    Following
    Joined Last Online

    Torin Unfollow Follow

    Best posts made by Torin

    • notifications upon start/pause/finish of print

      Hiya,
      Just wanted to share with you my solution for missing notifications/actions for Duet upon change of print status.

      I've builtin pushbullet/pushover/email support into it. You can also define some system commands/scripts to execute after status change.

      Please have a look and feel free to use it, grab the code do whatever you want.
      I've precompiled sources for Linux/OSX/Windows.

      https://gitlab.com/Toriniasty/reprap_notify
      Latest version: https://gitlab.com/Toriniasty/reprap_notify/-/releases

      posted in Third-party software
      Torin
      Torin
    • RE: notifications upon start/pause/finish of print

      Merged 🙂 Cheers dude!

      posted in Third-party software
      Torin
      Torin
    • RE: notifications upon start/pause/finish of print

      @LB If you're talking about renotification then it is already there 😉

      posted in Third-party software
      Torin
      Torin
    • RE: notifications upon start/pause/finish of print

      @LB said in notifications upon start/pause/finish of print:

      Do I have to download something and import it or how would it work?

      Ah. Okey. To be fair, I haven't seen plugins functionality and I'm not sure how it is supposed to work. Maybe one day I will have a look and see if there's any possibility.... Anyhow, to make the notifier work just download one file from release page matching your system that's running, configure it via example yaml file and start it.

      posted in Third-party software
      Torin
      Torin
    • RE: notifications upon start/pause/finish of print

      So I finally found some time and resurfaced my duet enabled printer so I have started updating the app.... So hopefully soon there will be something to show 😉

      @chrishamm How do I currently identify finished print? Previously it was in rr_status marked as 'I'(capital I), now I can see see only in rr_model?key=state status: idle, pause, printing.

      posted in Third-party software
      Torin
      Torin

    Latest posts made by Torin

    • RE: notifications upon start/pause/finish of print

      @nxt-1 Interesting, can you provide me full curl of:

      curl -v 'http://localhost:8080/rr_status?type=3'
      curl -v http://localhost:8080/rr_fileinfo
      
      (those two below probably will not work)
      curl -v 'http://localhost:8080/rr_model?key=job'
      curl -v 'http://localhost:8080/rr_model?key=state'
      
      posted in Third-party software
      Torin
      Torin
    • RE: notifications upon start/pause/finish of print

      @chrishamm Awesome, thanks for the great spot, not sure how I missed it.

      @Nxt-1 would you mind giving it another go please? also api_version not needed anymore, software will try to detect it automatically.

      posted in Third-party software
      Torin
      Torin
    • RE: notifications upon start/pause/finish of print

      @nxt-1 That's bit odd according to the previous post it should be either one of those two URLs.

      @stuartofmt / @chrishamm any idea why either doesn't work?

      posted in Third-party software
      Torin
      Torin
    • RE: notifications upon start/pause/finish of print

      @nxt-1 Right, so the second paste is wrong and missing URI 🙂 and I had a thought as well, since there's '?' in URI bash might be screwing around with it try again with:

      curl -v http://localhost:8080/machine/system
      curl -v "http://localhost:8080/rr_model?key=boards"
      
      posted in Third-party software
      Torin
      Torin
    • RE: notifications upon start/pause/finish of print

      @nxt-1 hiya, would you be able to provide me output from these two commands(run from the nano itself):

      curl -v http://localhost:8080/machine/system
      curl -v http://localhost:8080/rr_model?key=boards
      

      ?

      posted in Third-party software
      Torin
      Torin
    • RE: notifications upon start/pause/finish of print

      @stuartofmt Ah that's quite cool. I've already put that in, however I stripped in my case and just checked for the appropriate content-type header on each URL, in both cases it should be app/json, otherwise it's just wrong.
      I'm doing it all in golang, since it's quite nice for such nice things and portability and lack of dependencies.
      I have notifications for any email service assuming it can do smtp so should in theory work everywhere. Can you point me to this duetmonitor? First time I'm hearing about this and haven't seen it.

      If you want to poke around code and see what's there, that's the current that will go to master soon.
      https://gitlab.com/Toriniasty/reprap_notify/-/tree/feature/apiV3/

      posted in Third-party software
      Torin
      Torin
    • RE: notifications upon start/pause/finish of print

      @stuartofmt Cool. I'll have a look tomorrow (that is if I will survive tomorrow heatwave...). Cheers buddy.

      posted in Third-party software
      Torin
      Torin
    • RE: notifications upon start/pause/finish of print

      Hey folks,
      I want to share a download link with the version that should now work with v2 and v3 API.
      If you could test it and let me know if it's all good that we'd be great and I will release it officially.

      Only change you need to make is additional entry in your configuration file adding api_version in the connection section(v2 or v3) e.g.:

      connection:
        host: 192.168.0.11
        polling_time: 30
        error_count: 5
        api_version: v3
      

      Without further ado:
      https://1drv.ms/u/s!Aq3gq6mIQqpsisE-e3Adz3wsP6dAJw

      Link is going to expire in 2 weeks, after that I will just merge it 🙂

      posted in Third-party software
      Torin
      Torin
    • RE: notifications upon start/pause/finish of print

      @chrishamm Many thanks for that, it definitely extends what I've seen.
      However I am missing a 'final status' if that makes sense e.g. there's the status for cancelling yet there's no cancelled status or processing and no processed which makes it hard to understand and put the proper function in place to determine final status without hammering the API and making a request every let say 100ms which could still lead to some false positives.

      posted in Third-party software
      Torin
      Torin
    • RE: notifications upon start/pause/finish of print

      So I finally found some time and resurfaced my duet enabled printer so I have started updating the app.... So hopefully soon there will be something to show 😉

      @chrishamm How do I currently identify finished print? Previously it was in rr_status marked as 'I'(capital I), now I can see see only in rr_model?key=state status: idle, pause, printing.

      posted in Third-party software
      Torin
      Torin