Closed mapausch closed 1 year ago
-s, --source <filename|host|url>
source used for the Tasmota configuration (default: None). Specify source type, path, file, user,
password, hostname, port and topic at once as an URL. The URL must be in the form
'scheme://[username[:password]@]host[:port][/topic]|pathfile'where scheme is 'file' for a tasmota binary
config file, 'http' for a Tasmota HTTP web connection and 'mqtt(s)' for Tasmota MQTT transport ('mqtts'
uses a TLS connection to MQTT server)
the point is the sentence part "'file' for a tasmota binary config file", see also left side "Source" in overview diagram on README - you can't use a json as source.
I do not see the benefit converting a json into a dmp.
For full explanation:
-s http://newtasmota -i Config_newdev_12.5.0.json
Config_kaffee_12.5.0.dmp
to Config_newdev_12.5.0.dmp
and use this as source: -s Config_newdev_12.5.0.dmp -i Config_newdev_12.5.0.json
- finally use your GUI and restore Config_newdev_12.5.0.dmp
first is the prefered way
Thanks a lot for your efforts and clarifications, @curzon01 Somehow I didn't realize, that it's possible to restore the json file straight to the Tasmota device :-/ Works like a charm :-)
Describe the bug
Trying to convert a json file to dmp file does not work.
Having this files/directories:
Config_kaffee_12.5.0.dmp is a configuration backup made via Tasmota WebUI. Config_kaffee_12.5.0.json is the converted/decoded dmp file
Config_newdev_12.5.0.json is a copy of Config_kaffee_12.5.0.json, but with other hostname.
Now I try to convert the Config_newdev_12.5.0.json to a dmp file that I could import/restore to a new Tasmota device. But none of the tested methods works:
To Reproduce
Expected behavior
json file should be converted to a dmp file
Version Information
Please complete the following information
use
decode-config.py -V
to retrieve the infoSystem' information of your Tasmota data
Append
-g System
to your decode-config parameter, e. g.decode-config.py -s myconfig.dmp -g System
Additional context
N/A