Git Product home page Git Product logo

controller-http-api's People

Contributors

ajemoskowitz avatar ekristoffe avatar hanh-aj avatar hanhdt avatar quangctkm9207 avatar trungchubao avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

controller-http-api's Issues

API not up to date.

It seem the API have changed for the Firmware version 2.x.x
here is the valid request:

Request body:

{
    "channels": [number, ...], // The cartridge number. Range: 1 ~ 6
    "intensities": [number, ...], // The cartridge intensity as a percentage. Range: 0 ~ 100
    "durations": [number, ...], // Diffusion time in milliseconds. Range: 0 ~ 10000
    "booster": boolean // Set to true to activate the Aroma Shooter's booster fan. Default value is false.
}

For example:

{
    "channels": [1,3,5],
    "intensities": [100,50,25],
    "durations": [1000,2000,3000],
    "booster": true
}

Aroma Shooter response improvement

Hello,
At the moment only the command "/as2/stop_all" return the serial number.
I think it could be a good idea to have the serial number returned by every command.
The command "/as2/diffuse" would return

{
    "serial":"ASN2A00001",
    "status":"done"
}

The command "/as2/firmware" would return

{
    "serial":"ASN2A00001",
    "current": "1.0.0",
    "latest": "1.0.1",
    "internet": "true"
}

Also for the Post command i think a return like this would be helpful in case of bad body:

{
    "serial":"ASN2A00001",
    "status":"failed",
    "reason":"[the failure reason]"
}

Get firmware information unsafe value

Hello,
Get firmware information will return unsafe value when there is no internet connection available.
In that case, a random value is assigned to the "latest" key.
If possible an empty string or a predefined value should be returned.
(Json parser may crash depending on the returned value)

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.