mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-08 06:38:46 +00:00
Added PiAlert widget [WIP] (#1493)
* Added PiAlert widget * pialert: comments clean * Syntax changes to piAlert widget --------- Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
parent
c8eccc71a4
commit
36eaaafd88
5 changed files with 60 additions and 0 deletions
14
src/widgets/pialert/widget.js
Normal file
14
src/widgets/pialert/widget.js
Normal file
|
@ -0,0 +1,14 @@
|
|||
import genericProxyHandler from "utils/proxy/handlers/generic";
|
||||
|
||||
const widget = {
|
||||
api: "{url}/php/server/devices.php?action=getDevicesTotals",
|
||||
proxyHandler: genericProxyHandler,
|
||||
|
||||
mappings: {
|
||||
"data": {
|
||||
endpoint: "data",
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export default widget;
|
Loading…
Add table
Add a link
Reference in a new issue