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 ?
I would suggest ask in the rule machine topic, it’s just an attribute against the device so it’s possible, but it’s a RM question.
However if you are doing print complete then null might be valid, as on completion there is no active filename, it would likely need a code change if that’s what you are trying to do.