Created
January 26, 2022 09:27
-
-
Save javiromero/b53ecf995b96ff461a1e130d2124270e to your computer and use it in GitHub Desktop.
KDE 5 Plasma "command output" widget PV configs
This file contains hidden or 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
## Configuration stored in ~/.config/plasma-org.kde.plasma.desktop-appletsrc | |
## requires curl and jq available in the system | |
[Containments][2][Applets][68] | |
immutability=1 | |
plugin=com.github.zren.commandoutput | |
[Containments][2][Applets][68][Configuration] | |
PreloadWeight=42 | |
[Containments][2][Applets][68][Configuration][ConfigDialog] | |
DialogHeight=662 | |
DialogWidth=2101 | |
[Containments][2][Applets][68][Configuration][General] | |
clickCommand=firefox --new-tab https://192.168.1.201 | |
command=printf "๐%d%%" `curl --location --request POST 'http://192.168.1.201/inverter/properties/read/1' --header 'Authorization: Basic REDACTED' --header 'Content-Type: application/json' --data-raw '{\n "readdb": true\n}' | jq '.Data[7].value'` | |
fontSize=20 | |
interval=10000 | |
replaceAllNewlines=true | |
[Containments][2][Applets][69] | |
immutability=1 | |
plugin=com.github.zren.commandoutput | |
[Containments][2][Applets][69][Configuration] | |
PreloadWeight=42 | |
[Containments][2][Applets][69][Configuration][ConfigDialog] | |
DialogHeight=540 | |
DialogWidth=720 | |
[Containments][2][Applets][69][Configuration][General] | |
command=printf "๐%dW" `curl --location --request POST 'http://192.168.1.201/inverter/properties/read/1' --header 'Authorization: Basic REDACTED' --header 'Content-Type: application/json' --data-raw '{\n "readdb": true\n}' | jq '.Data[15].value'` | |
fontSize=20 | |
interval=10000 | |
replaceAllNewlines=true | |
[Containments][2][Applets][70] | |
immutability=1 | |
plugin=com.github.zren.commandoutput | |
[Containments][2][Applets][70][Configuration] | |
PreloadWeight=42 | |
[Containments][2][Applets][70][Configuration][ConfigDialog] | |
DialogHeight=540 | |
DialogWidth=720 | |
[Containments][2][Applets][70][Configuration][General] | |
command=printf "โ๏ธ%dW" `curl --location --request POST 'http://192.168.1.201/inverter/properties/read/1' --header 'Authorization: Basic REDACTED' --header 'Content-Type: application/json' --data-raw '{\n "readdb": true\n}' | jq '.Data[11].value'` | |
fontSize=20 | |
interval=10000 | |
replaceAllNewlines=true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment