Giter Club home page Giter Club logo

Comments (5)

fryarludwig avatar fryarludwig commented on June 19, 2024

We'll be basing the snippet generator off this .ino file:
https://github.com/EnviroDIY/ModularSensors/blob/master/examples/logging_to_EnviroDIY/logging_to_EnviroDIY.ino

from odm2datasharingportal.

SRGDamia1 avatar SRGDamia1 commented on June 19, 2024

@fryarludwig, please let me know if there's anything in that .ino that you don't understand!

from odm2datasharingportal.

fryarludwig avatar fryarludwig commented on June 19, 2024

As of my latest push, the devices page creates code that has each of the device's and sensors' UUIDs (see screenshot below). This is far from a full .ino file generator, but there are enough challenges (pins used, calibration values, header includes, and sensor initialization) that reliably generating full files would optimistically take about a week.

To generate the full .ino file, we would need to gather all of the sensor class names and constructors from the sensor repository, know which sensors require which pins and which calibration values (we could leave these blank for the user to fill in), and assume serial port details. We would also need a way to handle new sensors that are added after the release of this tool. There would still be a lot of values for the user to fill in, but it may save enough time to be useful. What's the group consensus on this? (We could also wait on the full .ino file generator for a later release, if there are higher priorities right now)

image
Edit: The UUIDs in the screenshot are not the actual values and won't work.

from odm2datasharingportal.

horsburgh avatar horsburgh commented on June 19, 2024

@fryarludwig - rather than displaying the code on the page, let's add a button that opens a modal window.

@SRGDamia1 and @aufdenkampe - I think we probably need some feedback from you guys on this.

from odm2datasharingportal.

aufdenkampe avatar aufdenkampe commented on June 19, 2024

@fryarludwig, thanks for all this hard work! What you just showed looks like a great help, and I'm leaning toward releasing the next version based on just generating the code snippets with the UUIDs and leaving the full .ino generation for a later release, because, as you point out, @SRGDamia1 and I will need to do some work to provide additional information about the pin configurations for each sensor, etc.

I also agree that there may be some higher priority issues to work on, which you could do in parallel to the our work.

Let's meet this week to discuss next steps.

from odm2datasharingportal.

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.