aromajoin / controller-http-api Goto Github PK
View Code? Open in Web Editor NEWThe documentation for HTTP API interacting with Aroma Shooter (second generation)
The documentation for HTTP API interacting with Aroma Shooter (second generation)
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
}
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]"
}
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)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.