-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix display error and sleep timer enable/disable
- Loading branch information
Showing
4 changed files
with
84 additions
and
4 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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
const mediaCard = require("../cards/MediaCard"); | ||
const cType = require("../cards/CardType"); | ||
const util = require('util'); | ||
const axios = require("axios"); | ||
const { CardTypeEnum } = require("../cards/CardType"); | ||
var playing = null; | ||
|
||
/** | ||
* @desc Used to get a list of custom pictures | ||
*/ | ||
class Awtrix { | ||
constructor() { } | ||
|
||
/** | ||
* @desc Custom link slide array | ||
*/ | ||
async post(ip,payload) { | ||
|
||
await axios.post( | ||
ip + "/api/custom?name=posterr", null | ||
) | ||
|
||
await axios.post( | ||
ip + "/api/custom?name=posterr", payload | ||
) | ||
|
||
return 0; | ||
} | ||
|
||
|
||
|
||
} | ||
|
||
module.exports = Awtrix; |
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