Git Product home page Git Product logo

Comments (5)

MattJeanes avatar MattJeanes commented on July 19, 2024

Hello! Looking at your first example there I plugged those exact same dates into my query and ran it and it seemed to return 4 as expected on my end:

image

I am however using their demo token. It's possible maybe you have an incorrect / expired Tibber API token or that they were having issues at this time.

If you go to the Tibber API explorer and put in the following query you can try it yourself with your own token: https://developer.tibber.com/explorer

{
  viewer {
    homes {
      id
      currentSubscription {
        priceInfo {
          range(
            resolution: HOURLY
            after: "MjAyNC0wNS0yMFQxMDowNzowMC4wMDAwMDAwKzAwOjAw"
            first: 4
          ) {
            nodes {
              total
              startsAt
            }
          }
          current {
            total
            startsAt
            level
          }
        }
      }
    }
  }
}

You can see here at least with the demo token it is working as expected:

image

Hope this helps 🙂

from teslamateagile.

Check834 avatar Check834 commented on July 19, 2024

Hi Matt,

I used your query and got only one entry with my token but 4 with the demo token.
IMG_0259

I will now inquire about the error with Tibber support, as instead of the 4 values, only one value is being output with the personal token.

from teslamateagile.

MattJeanes avatar MattJeanes commented on July 19, 2024

Weird! I'm very curious to see what Tibber's support say about this, keep me posted!

from teslamateagile.

Check834 avatar Check834 commented on July 19, 2024

I've got an answer from Tibber support. The API returns only one key because the contract is not started yet. They said as soon as the contract starts it should return the whole data. I will have a look then again.

Maybe they can return charging cost soon because they changed to smart charging 2.0 feature.

from teslamateagile.

MattJeanes avatar MattJeanes commented on July 19, 2024

Interesting, good to know thanks for the update!

from teslamateagile.

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.