todbot / blink1-tool

Command-line tools and C library for blink(1) USB RGB LED
https://blink1.thingm.com/
Other
84 stars 15 forks source link

blink1-tiny-server is the status supposed to return current rgb/brightness? #49

Closed DennisGaida closed 2 years ago

DennisGaida commented 2 years ago

I'm running the blink1-tiny-server as described in the docs. Everything works (setting colors/fadeToRGB etc.). However the status page at the root / or at /blink1 always returns:


{
"version": "v2.2.0-linux-armv7l",
"uri": "/blink1/",
"millis": 0,
"rgb": "#000000",
"ledn": 0,
"bright": 0,
"count": 0,
"status":  "blink1 status"
}

When running blink1-tool --rgbread, I receive the correct values such as: reading led 0 rgb: 0xff,0x00,0x00.

Am I missing something? Can I change something to get the server to return the current RGB values in the status page?

todbot commented 2 years ago

Thanks! That is a good point.