tasmota / decode-config

Backup/restore and decode configuration tool for Tasmota
GNU Lesser General Public License v3.0
211 stars 32 forks source link

Allow to source non-dmp files for format conversions in one fell swoop #52

Closed TheChatty closed 1 year ago

TheChatty commented 1 year ago

Is your feature request related to a problem? Please describe

I want to edit a config.dmp to publish it.

Describe the solution you'd like

decode-config.py -s config.json --backup-file.dmp

Describe alternatives you've considered

Additional context

File conversion is the first marketed program feature.

TheChatty commented 1 year ago

It works if I do:

That was not obvious me. You might add this as an example.

curzon01 commented 1 year ago

use the following to edit it

  1. decode-config.py -s config.dmp --backup-file config.json
  2. nano config.json
  3. cp config.dmp edited.dmp
  4. decode-config.py -s edited.dmp --restore-file config.json

step 3 can be skipped if it is allowed to overwrite the original file config.dmp

  1. decode-config.py -s config.dmp --restore-file config.json

option -s for 'source' might be missleading:

see https://github.com/tasmota/decode-config/raw/master/media/pic/decode-config.png