akloeckner

Results 156 comments of akloeckner

I have tried to implement the change mentioned above into the pyhafas library and created a branch to see, if it changes anything: https://github.com/akloeckner/hacs-hafas/tree/fix/rtMode I am a bit hesitant to...

Validated: https://github.com/kalkih/mini-graph-card/issues/1129#issuecomment-2332476413

Wow! Very impressive. I will need some time to dive into this. And I will most likely need a few iterations until I understand everything. If you appreciate some early...

TL;DR We should try to substitute `inState` by `state` here: https://github.com/kalkih/mini-graph-card/blob/49ca1cd8627381e2981f57906014f615f08301c9/src/main.js#L659 --------- I did some digging and I think: We're sorting the thresholds in descending order here: https://github.com/kalkih/mini-graph-card/blob/49ca1cd8627381e2981f57906014f615f08301c9/src/buildConfig.js#L91 We then...

> We should try to substitute `inState` by `state` Nope, that didn't help...

Ok... Next guess: the `interpolateColor` is weird. 😉 It only works on hexadecimal colours, such as `'#00ff00'`: https://github.com/kalkih/mini-graph-card/blob/49ca1cd8627381e2981f57906014f615f08301c9/src/utils.js#L16-L30 Try converting your colours to that notation. This works well for me....

I also wondered... Since 2023 we can even directly use CSS's `color-mix`. But that would break compatibility with lots of older devices. Then, I found [`d3.interpolate`](https://d3js.org/d3-interpolate), which seems to do...

d3 seems to work well. See #1118 . I'll migrate `computeColor`, too. Maybe you can then do some checks...

😄 I also found the canvas method and decided to remember this as a fun creative way of doing things. But never to do this myself. 😝 Sorry for calling...

The issue was fixed in #1118. However, I introduced a dependency for it. Which is against the original spirit of the project. If we were to follow the spirit, we'd...