Qui connait BitBar sur mac?

C’est un logiciel permettant d’afficher des informations de Jeedom dans la barre de status sous MacOs

Capture d’écran 2020-04-02 à 16.59.54

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

3 « J'aime »

Bonjour,

Merci pour cette info c’est intéressant je vais tester cela sur mon MAC

1 « J'aime »