-
-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-Add update sensor to HA. AWL search for an update every hour. - Fixes duration in custom apps
- Loading branch information
1 parent
8808559
commit bc72069
Showing
9 changed files
with
38 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +0,0 @@ | ||
# Timer | ||
|
||
With AWTRIX Light, you can set a timer using MQTT. Simply send a JSON object to the topic **[PREFIX]/timer** to start a timer. | ||
|
||
When the timer goes off, the display will show a notification, and you can dismiss the timer by pressing the middle button. | ||
|
||
## JSON Properties | ||
|
||
The JSON object has the following properties: | ||
|
||
| Key | Type | Description | | ||
| --- | ---- | ----------- | | ||
| `hours` | number | The number of hours after midnight when the timer should be triggered. | | ||
| `minutes` | number | The number of minutes after the hour when the timer should be triggered. | | ||
| `seconds` | number | The number of seconds after the minute when the timer should be triggered. | | ||
| `sound` | string | The name of the sound file (without extension) to play when the timer is triggered. | | ||
|
||
Each value is optional, so you can set a timer for just minutes, or any combination of hours, minutes, and seconds. If you only want to start a timer in some minutes, just send the minutes. | ||
|
||
## Example | ||
|
||
Here's an example JSON object to start a timer for 1 hour, 30 minutes, and 10 seconds, with the sound "friends": | ||
|
||
```json | ||
{ | ||
"hours": 1, | ||
"minutes": 30, | ||
"seconds": 10, | ||
"sound": "friends" | ||
} | ||
``` | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#ifndef UpdateManager_h | ||
#define UpdateManager_h | ||
|
||
#include <Arduino.h> | ||
|
||
class UpdateManager_ | ||
{ | ||
private: | ||
UpdateManager_() = default; | ||
public: | ||
static UpdateManager_ &getInstance(); | ||
void setup(); | ||
bool checkUpdate(bool); | ||
void updateFirmware(); | ||
}; | ||
|
||
extern UpdateManager_ &UpdateManager; | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.