Giter Site home page Giter Site logo

Comments (11)

xbmcnut avatar xbmcnut commented on May 31, 2024

Furthermore, if I try to restore the constructed json file by renaming it, I get the following error.

c:\Python\Python37>decode-config.py -d 10.0.1.176 --restore-file Config-Washing_Machine.json
WARNING 9: file '.\Config-Washing_Machine.json' - {'adc_param_type': 51} (valid range exceeding)

from decode-config.

curzon01 avatar curzon01 commented on May 31, 2024

When using decode-config.py -f Config_washer_7021_8.1.0.dmp --backup-file Config-@f --backup-type json, the created file is name Config-Washing_Machine.json instead of Config_Washing_Machine.json (replaces underscore with hyphen).

not a bug, as designed
if you want to have Config_Washing_Machine.json the correct parameter is --backup-file Config_@f (hyphen are not replaced)

from decode-config.

curzon01 avatar curzon01 commented on May 31, 2024

Furthermore, if I try to restore the constructed json file by renaming it, I get the following error.

c:\Python\Python37>decode-config.py -d 10.0.1.176 --restore-file Config-Washing_Machine.json
WARNING 9: file '.\Config-Washing_Machine.json' - {'adc_param_type': 51} (valid range exceeding)

AdcParam is limited to 2-7.
Correct your JSON or ignore the warning during restore by using --ignore-warnings

Reason might be garbadge in your Tasmota device config after an upgrade
Suggestion: Backup config, use Tasmota Reset (e.g. param 5) and then restore config. Then it's clean.

from decode-config.

xbmcnut avatar xbmcnut commented on May 31, 2024

Thanks for the prompt reply and feedback. Much appreciated. I'm slowly getting my head around it.

from decode-config.

curzon01 avatar curzon01 commented on May 31, 2024

your are welcome - add. note regarding suggestion:

Suggestion: Backup config using JSON format...

(it does not work when you use one of the binary format)

from decode-config.

xbmcnut avatar xbmcnut commented on May 31, 2024

So if I'm upgrading from older versions to 8.1, always use your tool to create a JSON file first rather than downloading a .dmp file from the GUI?

from decode-config.

xbmcnut avatar xbmcnut commented on May 31, 2024

Sorry to be a pain, but before I used your suggested migration method (thank you for that), I saved a dmp file (6.6.0) and have now converted that to a JSON file using your tool. If I upload the dmp file directly to the freshly reset device now running 8.1.0, everything is restored. If however I use this tool to upload the JSON version, I always get WARNING 9: file '.\Config_Washing_Machine.json' - {'adc_param_type': 51} (valid range exceeding)

Am I missing something? Sorry, but want to make a help video for my tubers but struggling a bit.

from decode-config.

xbmcnut avatar xbmcnut commented on May 31, 2024

Are, here we go. A bit more context. Used --ignore-warnings and got:
WARNING 9: Restore file '.\Config_Washing_Machine.json' contains obsolete name 'novasds_period', skipped

from decode-config.

curzon01 avatar curzon01 commented on May 31, 2024

Are, here we go. A bit more context. Used --ignore-warnings and got:
WARNING 9: Restore file '.\Config_Washing_Machine.json' contains obsolete name 'novasds_period', skipped

novasds_period does not exist anymore in 8.1, delete this line from json. I will change decode-config so obsolete names will not stop restore anymore.

anyway: the safest way ugrading from 6.x to 8.x is using the Tasmota migration path (decode-config ist just for fail this procedure having a json backup). I used this on 25+ device with OTA (6.x->7.2->8.1), only one failed

from decode-config.

curzon01 avatar curzon01 commented on May 31, 2024

sorry, ignore obsolete names is already in - it does what it says when using --ignore-warnings - skipped

in general: a WARNING will stop restore unless you use the command line parameter --ignore-warnings. In that case, warnings are still displayed but restore will be done.

use the -v parameter to get more verbose info, you will see what the program does and what not using -v

from decode-config.

xbmcnut avatar xbmcnut commented on May 31, 2024

Thanks! All very helpful.

from decode-config.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.