C’est un logiciel permettant d’afficher des informations de Jeedom dans la barre de status sous MacOs
Ressources
Pour écrire des plugins : GitHub - matryer/xbar: Put the output from any script or program into your macOS Menu Bar (the BitBar reboot)
Mon fichier s’appelle : Jeedom.5m.sh
5m étant le temps d’actualisation.
Exemple de fichier Plugins :
#!/bin/bash
# <bitbar.title>website-status</bitbar.title>
# <bitbar.author>Marc Oehler</bitbar.author>
# <bitbar.author.github>kemar220</bitbar.author.github>
# <bitbar.desc>Gets the status of your website</bitbar.desc>
# <bitbar.version>1.0</bitbar.version>
url='https://exemple.dns3.jeedom.com/core/api/jeeApi.php?apikey=apiclef&type=cmd&id=284'
code=$(curl --silent -H "Accept: application/json" GET $url)
echo Ext $code°c