This PR adds python3 compatibility for current versions of OctoPrint and transitions the backup writes to a file (powerfailure_recovery.json) in the plugin data directory, instead of continually writing to settings. From my observations this significantly decreases the OctoPrint processing overhead and also enables a more broad array of potential settings to be captured and used in the regenerated gcode.
This PR adds python3 compatibility for current versions of OctoPrint and transitions the backup writes to a file (powerfailure_recovery.json) in the plugin data directory, instead of continually writing to settings. From my observations this significantly decreases the OctoPrint processing overhead and also enables a more broad array of potential settings to be captured and used in the regenerated gcode.