Giter VIP home page Giter VIP logo

Comments (2)

Spot-hinta-fi avatar Spot-hinta-fi commented on July 23, 2024

Yes, this API is not the easiest to undertand. But temperature forecast is next 24 hours average. And that can be naturally change every hour at least a bit. When these Shelly scripts call the API hourly, it makes the rank calculation "dynamic"

You can play with the API parameters, if you use Swagger to give the parameters, and then get the URL it generated. For example this:

https://api.spot-hinta.fi/JustNowRankDynamic?region=FI&rankAtZeroDegrees=5&rankAdjusterPercentage=10&minimumRank=5&priceAlwaysAllowed=3&postalCode=99800&debugMode=true

I usually test with some postal code in Lapland, to have minus temperatures... well at least during winter. And then you can modify for example that rankAdjusterPercentage to see how it affects the "Rank" calculation. With this parameter "debugMode" it prints out some info in response that how calculation happend and based on what values.

from shelly.

artoaaltonen avatar artoaaltonen commented on July 23, 2024

Awesome, thank you! Super helpful. Nice insights with debugMode. 👍

from shelly.

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.