Skip to content

Instantly share code, notes, and snippets.

@javiromero
Created January 26, 2022 09:27
Show Gist options
  • Save javiromero/b53ecf995b96ff461a1e130d2124270e to your computer and use it in GitHub Desktop.
Save javiromero/b53ecf995b96ff461a1e130d2124270e to your computer and use it in GitHub Desktop.
KDE 5 Plasma "command output" widget PV configs
## 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