PaulRowntree wrote:A Gauge that had safe, warning and danger zones. From Google charts
Yess please add these for computer monitoring projects
Moderators: adafruit_support_bill, adafruit
PaulRowntree wrote:A Gauge that had safe, warning and danger zones. From Google charts
They are the "Icon" block types. You can find them when creating a new block for your dashboard.trackseven wrote:How in this tutorial did they get these symbols
https://learn.adafruit.com/adafruit-io- ... ython-code
How about the ability to create blocks where you can use simple Python code, take a feed value as an input argument and provide a single value output that can be represented on the dash board. So in this case you provide the code for the block that determines the dominant colour.cstanke wrote:Service Block Idea:
"Get Dominant Image Color"
This could be a service block where the work happens on the server-side and the result is provided by the block. For instance, a program (Arduino or CircuitPython) could hand off an image URL to the service and the service will return a color (or a few color choices) in your choice of format (RGB, HSL, HEX, etc...).
It could work well for something like the PyPortal where you're showing an image on the TFT display and want the NeoPixel to shine in a dominant color from the image—such as with the NASA Image of the Day example.
There are several examples of getting dominant colors from images online. A couple of them are Vibrant.js and Color Thief.
The block could allow for some preference configs like "avoid all black or all white" or a palette choice (like with Vibrant.js). Or, as stated above, it could return a small selection of colors (Like the Vibrant.js example).
This is a good service block idea because the work of getting dominant colors from an image might be a little tough for an IoT device but should be easy work for a service.