Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backup settings are not JSON-compliant #976

Closed
meyergru opened this issue Jun 23, 2018 · 2 comments
Closed

Backup settings are not JSON-compliant #976

meyergru opened this issue Jun 23, 2018 · 2 comments
Labels

Comments

@meyergru
Copy link

meyergru commented Jun 23, 2018

In reference to issue #896:

I just tried version 1.13.0 (the travis build), but a created backup file is still corrupted and cannot be imported again via the GUI.

My resulting backup file has 125 lines and is ~3000 bytes now (before with 1.12.6 it was ~1500 bytes) and each line looks complete, so it seems as if it is not truncated somewhere in the middle. It ends like so:

  "relayOnDisc5": "0",
  "relayOnDisc6": "0",
  "relayOnDisc7": "0",
  "adminPass": "XXXXX"

I think the problem is mainly because of a missing closing bracket which violates JSON syntax rules. Maybe that was forgotten in the new output scheme invented to fix #896?

BTW:

  1. I cannot re-open the old issue Backup settings are truncated #896 myself.
  2. The release binaries for 1.13.0 are not online yet...
@xoseperez
Copy link
Owner

I got it created correctly and restored correctly too:

{
  "app": "ESPURNA",
  "version": "1.13.0",
  "ssid0": "ssid",
  "pass0": "pass",
  "adminPass": "fibonacci",
  "hostname": "ESPURNA-B93C93",
  "boardName": "WEMOS_D1_MINI_RELAYSHIELD",
  "relayBoot0": "0",
  "relayPulse0": "0",
  "relayTime0": "0.00",
  "cfg": "3",
  "board": "3",
  "ledGPIO0": "2",
  "ledLogic0": "1",
  "btnGPIO0": "0",
  "btnRelay0": "0",
  "relayGPIO0": "5",
  "relayType0": "0",
  "mqttServer": "192.168.1.11",
  "mqttPort": "1883",
  "mqttEnabled": "1"
}

@meyergru
Copy link
Author

Sorry, my bad: The travis build I used was different from the now released binary version.

The official release 1.13.0 works. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants