Adds a complex (but working) configuration example in README (#backup)
This commit is contained in:
parent
c536f5e772
commit
7d40338b4f
23
README.md
23
README.md
@ -364,6 +364,29 @@ Same as above.
|
||||
At the moment, **SimpleConkyScript** is not open to public contributions.
|
||||
However, you may send patches to [dev+conky@samuel.domains](mailto:dev+conky@samuel.domains), I'll personally take the time to review them.
|
||||
|
||||
### What could I achieve from with complex configuration file ?
|
||||
|
||||
Well, the only limit is your imagination.
|
||||
Wanna ping and show the number of current players on a Minecraft server ?
|
||||
|
||||
Sure, first run :
|
||||
|
||||
```bash
|
||||
pip3 install mcstatus
|
||||
```
|
||||
|
||||
... and then add a new entry block containing :
|
||||
|
||||
```json
|
||||
{
|
||||
"type": "command",
|
||||
"exec": "python3 -c 'from mcstatus import MinecraftServer; server = MinecraftServer(\"your.minecraft.server\"); print(\"{} playing ({} ms)\".format(server.status().players.online, server.ping()))'",
|
||||
"name": "Minecraft Server",
|
||||
"interval": 300,
|
||||
"on_error": "Can't be reached"
|
||||
}
|
||||
```
|
||||
|
||||
## Acknowledgments
|
||||
|
||||
* To [NAERNON](https://github.com/NAERNON) for the code structure, design and ideas
|
||||
|
Loading…
x
Reference in New Issue
Block a user