Fix bad hue_keys bug / update readme

eed1ee4 · gmorell · 2023-01-07 22:41

6 files +15 -14

Files changed

modified README.md
+9 −14
@@ -6,23 +6,24 @@ A Reimplementation of Lambent Aether 4, in Elixir
6 6
7 7 ### New Features
8 8
9 −- Device implementation is 100x more robust in device discovery on-net
9 +- 8266ws2812i2s device implementation is 100x more robust in device discovery on-net ~avoids booming current ones too often~
10 10 - ~Devices can be virtually grouped~
11 11 - Individual Machine Brightness Controls
12 12 - Machine Persistence / ~TODO Link Persistence~
13 13 - ~Links can target groups~
14 +- ~Machine Previews~
14 15
15 16 ### Device Support
16 17
17 18 - ESP8266-WS2812-I2S
18 19 - ##### TODO
19 −- Home-Assistant Singles/Strips
20 +- Home-Assistant `Light` Entities
20 21
21 22 ### Built-in Machines
22 23
23 −- Solid (RGB/HSV)
24 +- Solid (~RGB~/HSV)
24 25 - Rainbow (Cycling/Solid)
25 −- Chaser (Single, Multi)
26 +- Chaser (Single, ~Multi~)
26 27 - Rocker
27 28 - Scapes
28 29 - ##### TODO
@@ -32,10 +33,10 @@ A Reimplementation of Lambent Aether 4, in Elixir
32 33 - GSI Receiver
33 34 - FFT Receiver
34 35 - Hyperion Receiver
35 −- Apollo Receiver
36 −
36 +- ApollosCrib Receiver
37 37
38 38 ## Running
39 +
39 40 ```
40 41 docker pull lambentri/lambentex
41 42 docker run --net=host -d --restart always --mount type=bind,source="$(pwd)"/meta,target=/opt/app/meta lambentri/lambentex
@@ -52,12 +53,6 @@ To start your Phoenix server:
52 53
53 54 Now you can visit [`localhost:4000`](http://localhost:4000) from your browser.
54 55
55 −Ready to run in production? Please [check our deployment guides](https://hexdocs.pm/phoenix/deployment.html).
56 −
57 −## Learn more
56 +## Production
58 57
59 − * Official website: https://www.phoenixframework.org/
60 − * Guides: https://hexdocs.pm/phoenix/overview.html
61 − * Docs: https://hexdocs.pm/phoenix
62 − * Forum: https://elixirforum.com/c/phoenix-forum
63 − * Source: https://github.com/phoenixframework/phoenix
58 +`docker build -t "lambentri/lambentex:latest" .`
modified lib/lambent_ex_web/live/machines/form_component.ex
+6 −0
@@ -122,6 +122,12 @@ defmodule LambentEx.MachinesLive.FormComponent do
122 122
123 123 defp hue_keys(nil), do: []
124 124
125 + defp hue_keys(%{h: h, s: s, v: v}) do
126 + [r, g, b] = LambentEx.Utils.Color.hsv2rgb([h, s, v])
127 + [r: r, g: g, b: b, h: h]
128 + end
129 +
130 +
125 131 defp hue_keys(%{h: h, s: s, v: v, h_sel: h_sel}) do
126 132 [r, g, b] = LambentEx.Utils.Color.hsv2rgb([h, s, v])
127 133 [r: r, g: g, b: b, h: h]

Parents: 06e6808