Giter Site home page Giter Site logo

Comments (5)

gregorschulte-uni avatar gregorschulte-uni commented on July 29, 2024 1

I thing I never ran into that specific problem. Data recognition always worked fine.

Right now I am busy setting up a local grafana instance to see what I can do do fix the "string" issue. When assuming everything coming in is a number this works already:
image

image

I guess I will have to add some kind of conversion / format checking to make it more robust.

from grafana-json-datasource.

marcusolsson avatar marcusolsson commented on July 29, 2024

The graph panel requires a time field and a number field. It looks like like field1 is a string property in the response you linked to. We'd have to add some basic text-to-number transformation to support this. Is there a reason why field1 is of type string?

from grafana-json-datasource.

gregorschulte-uni avatar gregorschulte-uni commented on July 29, 2024

Thank you Marcus. After looking at detectFileType and my data it might be the missing data represented as null in the json from thingspeak resulting in a definition as string.

from grafana-json-datasource.

marcusolsson avatar marcusolsson commented on July 29, 2024

Just wanted to let you know there's a bug that incorrectly sets a time field when all values are strings of 4 integers (because it's a valid ISO8601). For more information, check out #10.

I've published a new version (0.6.0) with a fix in case you run into this. If not, please let me know if we can close this issue.

from grafana-json-datasource.

marcusolsson avatar marcusolsson commented on July 29, 2024

Looks awesome! :) I'm going ahead and closing this issue for now, but feel free to open another one if you run into trouble!

from grafana-json-datasource.

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.