Giter VIP home page Giter VIP logo

Comments (4)

mcmadhatter avatar mcmadhatter commented on June 1, 2024 3

JSON on an spiffs is a great idea.
If wifi is working then the calibration json file can also be written via a webpage running on the esp32, with a nice interface for setting the values. Here is an example of where i’ve done something similar in the past https://github.com/mcmadhatter/LocoNet2/tree/development/examples/esp-locoio-web

from smartknob.

leofidus avatar leofidus commented on June 1, 2024 1

If an actual file is desired an INI file might be much better than JSON: easier to parse in code, easier to read for humans.

I tend to agree though that a file might be overkill, dumping a C struct to non-volatile storage might be enough

from smartknob.

mcmadhatter avatar mcmadhatter commented on June 1, 2024

I have started work on this on my fork , currently just the knob configurations are supported. Next steps is to add support for information that can be gathered via auto calibration.

https://github.com/mcmadhatter/smartknob/tree/JSON

from smartknob.

septatrix avatar septatrix commented on June 1, 2024

Adding a JSON library would add significant code size. If setting the values is exposed by the firmware (custom menu, webpage etc.) it is probably more convenient to just dump a C struct into a file. Also the ESP32 provides some pseudo-EEPROM which is ideal for calibration values etc without the overhead of a whole filesystem given that I expect no one to manually flash those setting on a SD card or similar.

from smartknob.

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.