Skip to content

Commit

Permalink
V0.73
Browse files Browse the repository at this point in the history
- **AWTRIX App Launch**: Introducing the first-ever AWTRIX App – a seamless way to configure your clock. Support our development by purchasing the app. An iOS version is underway!
- **FPS Adjustment**: Reduced FPS offers a more visually appealing, slower scrolling speed. This also provides AWTRIX more time to handle incoming API requests between scrolling.
- **Serial Output**: Serial output has been removed for a cleaner experience. It can be re-enabled through `dev.json`.
- **Stats Reporting Interval**: Customize the frequency of AWTRIX stats reporting to HA and MQTT via `dev.json`.
- **Global Text Color Update**: Altering the global text color through the API will also adjust the custom app text color unless a specific color is set.
- **Enhanced Stats**: Additional statistics fields have been added.
- **New API Command**: Added the "erase" command to the API.

---

I've tried to make the changelog concise while emphasizing the importance of each update.
  • Loading branch information
Blueforcer committed Aug 9, 2023
1 parent 6d570fc commit 8470f08
Show file tree
Hide file tree
Showing 15 changed files with 501 additions and 372 deletions.
14 changes: 14 additions & 0 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,11 @@ Each property is optional; you do not need to send all.
| `HUM_COL` | string / array of ints| Sets the textcolor of the humidity app. Set 0 for global textcolor | an array of RGB values hexadecimal color value | N/A |
| `BAT_COL` | string / array of ints| Sets the textcolor of the battery app. Set 0 for global textcolor | an array of RGB values hexadecimal color value | N/A |
| `SSPEED` | integer | Modifies the scrollspeed | percentage value of the original scrollspeed | 100 |
| `TIM` | boolean | Enable or disable the native time app (needs a reboot) | true/false | true |
| `DAT` | boolean | Enable or disable the native date app (needs a reboot) | true/false | true |
| `HUM` | boolean | Enable or disable the native humidity app (needs a reboot) | true/false | true |
| `TEMP` | boolean | Enable or disable the native temperature app (needs a reboot) | true/false | true |
| `BAT` | boolean | Enable or disable the native battery app (needs a reboot) | true/false | true |

**Transision effects:**
```bash
Expand Down Expand Up @@ -342,3 +347,12 @@ You can start the firmware update with update button in HA or:
| Topic | URL | Payload/Body | HTTP method |
| --- | --- | --- | --- |
| `[PREFIX]/reboot` | `http://[IP]/api/reboot` | - | POST |


## Erase Awtrix
WARNING: this will format the flashmemory and EEPROM but dont touches the Wifi Settings.
This is kind of a factoryreset!

| Topic | URL | Payload/Body | HTTP method |
| --- | --- | --- | --- |
| `N/A` | `http://[IP]/api/erase` | - | POST |
4 changes: 3 additions & 1 deletion docs/dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,6 @@ The JSON object has the following properties:
| `min_brightness` | integer | Sets minimum brightness level for the Autobrightness control | `2` |
| `max_brightness` | integer | Sets maximum brightness level for the Autobrightness control. On high levels, this could result in overheating! | `180` |
| `ha_prefix` | string | Sets the prefix for Homassistant discovery | `homeassistant` |
| `background_effect` | string | Sets an [effect](https://blueforcer.github.io/awtrix-light/#/effects) as global background layer | |
| `background_effect` | string | Sets an [effect](https://blueforcer.github.io/awtrix-light/#/effects) as global background layer | - |
| `stats_interval` | integer | Sets the interval in milliseconds when awtrix should send its stats to HA and MQTT | 10000 |
| `debug_mode` | boolean | Enables serial debug outputs. | false |
11 changes: 10 additions & 1 deletion src/Apps.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,14 @@ const char *getTimeFormat()
}
else
{
return TIME_FORMAT[2] == ' ' ? "%H %M" : "%H:%M";
if (TIME_FORMAT.length() > 5)
{
return TIME_FORMAT[2] == ' ' ? "%H %M" : "%H:%M";
}
else
{
return TIME_FORMAT.c_str();
}
}
}

Expand Down Expand Up @@ -452,6 +459,8 @@ void ShowCustomApp(String name, FastLED_NeoMatrix *matrix, MatrixDisplayUiState
}
}

matrix->fillRect(x, y, 32, 8, ca->background);

if (ca->effect > -1)
{
callEffect(matrix, x, y, ca->effect);
Expand Down
2 changes: 1 addition & 1 deletion src/Dictionary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const char HAbriOptions[] PROGMEM = {"Manual;Auto"};
const char HAeffectID[] PROGMEM = {"%s_eff"};
const char HAeffectIcon[] PROGMEM = {"mdi:auto-fix"};
const char HAeffectName[] PROGMEM = {"Transition effect"};
const char HAeffectOptions[] PROGMEM = {"Slide;Dim;Zoom;Rotate;Pixelate;Curtain;Ripple;Blink;Reload;Fade"};
const char HAeffectOptions[] PROGMEM = {"Random;Slide;Dim;Zoom;Rotate;Pixelate;Curtain;Ripple;Blink;Reload;Fade"};

const char HAbtnaID[] PROGMEM = {"%s_btna"};
const char HAbtnaIcon[] PROGMEM = {"mdi:bell-off"};
Expand Down
Loading

0 comments on commit 8470f08

Please sign in to comment.