It's Moonraker so the front end doesn't matter, is your generated GCode in a folder by any chance rather than in the main directory? I suspect that's the problem looking at the API docs, but can't remember if my code accounts for paths..
Here's my trigger BTW, much simpler and just passes on the variables rather than coding all the scenarios
Checkout the "Get Printer Status" section and the flags listed, I think these are all of them returned to the "text" field as "state", however I have added an additional change state of "Complete" which only exists for 1 cycle when it changes from Printing to Operational, which should only apply when there is a successful completion..
EDIT: I can fix the errors (or at least get them to fail gracefully), there is also a bug that means the error can stop the device checking for updates, I will need to take a look at the filename issue though and see if I can extract the path from the API to append to the call
I did have something similar, however my 1 min poll time missed the transition from "Complete" to "Operational". I also wanted to customise my notifications and found this worked well:
The gcode question was more about where you save them to, are they in the root directory or have you created sub folders to put in your gcode? I expect folders are the problem.
I didn’t get time to sort this evening, so will be over the weekend now, your other issue is related to not being able to resolve the gcode location, as it’s looking up info on the gcode not the printer
It’s more about what’s in that folder, but based on what you are saying it’s likely in the root of that folder. Likely something SS related, I’m using cura so it give that a go and see if I can replicate
It should always go through this status as it's the one I've added it's actually a detection of a change from printing to operational, so will show as complete for 1 minute if that is your poll time..
I can't figure out your filename issue right now, but have uploaded V0.9 fixing the other issues, will need to look in to it a bit later..
I expect the issue is the + in the file name, as needs to be converted to %2B if in a path.. V0.10 uploaded give it a go otherwise I'll need to replicate later
Glad it worked, yeah this one wasn't my best work, I initially just threw it together to get a print completion alert, but then added a few more calls on request and didn't really sort out the error handling properly, so was all a bit of a bodge..
I'll take a look at WU if I need to get the weather side setup again, I'm sure I used to run it but that might have even been in the old SmartThings days, whatever I was running last closed down the API might have been Dark Sky maybe.
EDIT: Just to say, the option to pull extra information will increase the load and spam the logs as you'll get time updates every refresh etc.. so only enable that option if you really need it..
Like I said it doesn't come from Moonraker, it's not a polled state so can't be "missed", it just checks previous and current status and if they match then updated to Complete for 1 cycle..
Can you please check your logs and tell me what statuses are being reported, before and after including capitalisation and I'll re-check the transition code, if it's not working it's likely a gap in the code I hasn't considered..
Just wanted to say THANK YOU for this driver...just amazing to have my printer connected in about two minutes! Thanks for providing this, just great stuff.
I do have one question - where does "Print File Name" pull from? I assume it allows you to print existing files on Klipper that have already been uploaded, but can't pull from anywhere else, or ?