Jeedomiens V3 : vérifiez vos plugins V4

Hello,

Voici un code à mettre dans un scénario en bloc code pour vérifier si vos plugins installés sont compatibles avec la V4.

Rien d’officiel, juste un truc perso. En gros, il récupère la liste des plugins installés sur votre Jeedom, et regarde sur sa page market si il y a la compatibilité V4.

Certains qui ne sont pas notés compatibles le sont dans les fait, donc ce n’est qu’une indication. Par contre ceux qui sont notés compatibles, normalement c’est bon puisque le dev a fait l’action de le déclarer compatible.

Donc, nouveau scénario, CheckPluginsV4, puis onglet Scenario :

  • Créez un bloc code,
  • Collez le code suivant dedans,
  • Sauvegardez puis exécutez le scénario,
  • Regardez le log !

Code:

$plugins = plugin::listPlugin();
foreach ($plugins as $plugin) 
{
  $name = $plugin->getName();
  $id = $plugin->getId();
  $url = 'https://market.jeedom.com//index.php?v=d&p=market_display&id='.$id;
  $plugin = file_get_contents($url);
  $v4ready = 'NOT Compatible with Jeedom V4!';
  if (strpos($plugin, '<h3 class="title_Compatibility">Jeedom V4</h3>') !== false) {
    $v4ready = 'Compatible with Jeedom V4.';
  }
  $space = 20 - strlen($name);
  $scenario->setLog('plugin: '.$name.str_repeat(" ", $space).'-> '.$v4ready);
}

Exemple de log:

[2020-05-19 21:38:26][SCENARIO] Start : Scenario started manually.
[2020-05-19 21:38:26][SCENARIO] Execution of the sub-element of type [action]:code
[2020-05-19 21:38:26][SCENARIO] Execution of a code block
[2020-05-19 21:38:27][SCENARIO] plugin: HTML Display        -> Compatible with Jeedom V4.
[2020-05-19 21:38:28][SCENARIO] plugin: JeeLog              -> Compatible with Jeedom V4.
[2020-05-19 21:38:28][SCENARIO] plugin: jeeRhasspy          -> Compatible with Jeedom V4.
[2020-05-19 21:38:29][SCENARIO] plugin: JeeXplorer          -> Compatible with Jeedom V4.
[2020-05-19 21:38:29][SCENARIO] plugin: K Roomba            -> Compatible with Jeedom V4.
[2020-05-19 21:38:30][SCENARIO] plugin: Mail                -> Compatible with Jeedom V4.
[2020-05-19 21:38:30][SCENARIO] plugin: Mode                -> Compatible with Jeedom V4.
[2020-05-19 21:38:30][SCENARIO] plugin: Netatmo Station     -> Compatible with Jeedom V4.
[2020-05-19 21:38:32][SCENARIO] plugin: Qivivo              -> Compatible with Jeedom V4.
[2020-05-19 21:38:32][SCENARIO] plugin: Rosée - Givre - Tendance-> Compatible with Jeedom V4.
[2020-05-19 21:38:34][SCENARIO] plugin: Virtuel             -> Compatible with Jeedom V4.
[2020-05-19 21:38:35][SCENARIO] plugin: Z-Wave              -> Compatible with Jeedom V4.
[2020-05-19 21:38:35][SCENARIO] Correct end of scenario

:kissing_smiling_eyes:

9 « J'aime »

Très bien aussi pour donner la liste de ses plugins sur le forum.

Oui mais là autant virer le Check sur le market se sera bcp plus rapide :grin:

1 « J'aime »

c’est cool ton code mais il y en a qui sont compatible et qui n’ont pas les infos en particulier des plugins officiels

------------------------------------
[2020-05-19 22:06:39][SCENARIO] Start : Scenario lance manuellement.
[2020-05-19 22:06:39][SCENARIO] Exécution du sous-élément de type [action] : code
[2020-05-19 22:06:39][SCENARIO] Exécution d'un bloc code
[2020-05-19 22:06:40][SCENARIO] plugin: Agenda              -> NOT Compatible with Jeedom V4!
[2020-05-19 22:06:41][SCENARIO] plugin: Alarme              -> Compatible with Jeedom V4.
[2020-05-19 22:06:41][SCENARIO] plugin: Alexa - Amazon Music-> NOT Compatible with Jeedom V4!
[2020-05-19 22:06:42][SCENARIO] plugin: Alexa - API         -> NOT Compatible with Jeedom V4!
[2020-05-19 22:06:43][SCENARIO] plugin: App Mobile          -> NOT Compatible with Jeedom V4!
[2020-05-19 22:06:44][SCENARIO] plugin: Bluetooth Advertisement-> Compatible with Jeedom V4.
[2020-05-19 22:06:44][SCENARIO] plugin: Caméra             -> NOT Compatible with Jeedom V4!
[2020-05-19 22:06:44][SCENARIO] plugin: Click link          -> Compatible with Jeedom V4.
[2020-05-19 22:06:44][SCENARIO] plugin: CloudSync Pro       -> Compatible with Jeedom V4.
[2020-05-19 22:06:45][SCENARIO] plugin: Data Transfert      -> NOT Compatible with Jeedom V4!
[2020-05-19 22:06:45][SCENARIO] plugin: DataService         -> NOT Compatible with Jeedom V4!
[2020-05-19 22:06:45][SCENARIO] plugin: DomoGeek            -> Compatible with Jeedom V4.
[2020-05-19 22:06:45][SCENARIO] plugin: Freebox OS          -> Compatible with Jeedom V4.
[2020-05-19 22:06:46][SCENARIO] plugin: Homebridge          -> Compatible with Jeedom V4.
[2020-05-19 22:06:46][SCENARIO] plugin: Horoscope           -> NOT Compatible with Jeedom V4!
[2020-05-19 22:06:47][SCENARIO] plugin: Héliotrope         -> Compatible with Jeedom V4.
[2020-05-19 22:06:47][SCENARIO] plugin: Infos du Jour       -> Compatible with Jeedom V4.
[2020-05-19 22:06:48][SCENARIO] plugin: Ios Icloud          -> NOT Compatible with Jeedom V4!
[2020-05-19 22:06:48][SCENARIO] plugin: Jeedom Link         -> Compatible with Jeedom V4.
[2020-05-19 22:06:48][SCENARIO] plugin: JeeXplorer          -> Compatible with Jeedom V4.
[2020-05-19 22:06:49][SCENARIO] plugin: Mail                -> Compatible with Jeedom V4.
[2020-05-19 22:06:49][SCENARIO] plugin: METAR/TAF Infos Météo Aéroports-> NOT Compatible with Jeedom V4!
[2020-05-19 22:06:50][SCENARIO] plugin: Mode                -> Compatible with Jeedom V4.
[2020-05-19 22:06:50][SCENARIO] plugin: Netatmo Station     -> Compatible with Jeedom V4.
[2020-05-19 22:06:50][SCENARIO] plugin: Network             -> NOT Compatible with Jeedom V4!
[2020-05-19 22:06:50][SCENARIO] plugin: Notification Manager-> NOT Compatible with Jeedom V4!
[2020-05-19 22:06:51][SCENARIO] plugin: Openvpn             -> NOT Compatible with Jeedom V4!
[2020-05-19 22:06:51][SCENARIO] plugin: Philips Hue         -> NOT Compatible with Jeedom V4!
[2020-05-19 22:06:51][SCENARIO] plugin: Publie Meteo        -> Compatible with Jeedom V4.
[2020-05-19 22:06:51][SCENARIO] plugin: PushBullet          -> NOT Compatible with Jeedom V4!
[2020-05-19 22:06:51][SCENARIO] plugin: Rosée - Givre - Tendance-> Compatible with Jeedom V4.
[2020-05-19 22:06:52][SCENARIO] plugin: Script              -> NOT Compatible with Jeedom V4!
[2020-05-19 22:06:52][SCENARIO] plugin: Slack               -> Compatible with Jeedom V4.
[2020-05-19 22:06:52][SCENARIO] plugin: Température        -> Compatible with Jeedom V4.
[2020-05-19 22:06:52][SCENARIO] plugin: Tendance Baro       -> Compatible with Jeedom V4.
[2020-05-19 22:06:53][SCENARIO] plugin: Thermostat          -> NOT Compatible with Jeedom V4!
[2020-05-19 22:06:53][SCENARIO] plugin: Virtuel             -> Compatible with Jeedom V4.
[2020-05-19 22:06:54][SCENARIO] plugin: Weather             -> NOT Compatible with Jeedom V4!
[2020-05-19 22:06:55][SCENARIO] plugin: Xiaomi Home         -> Compatible with Jeedom V4.
[2020-05-19 22:06:55][SCENARIO] Fin correcte du scénario

Ce qui serait bien c’est de savoir ceux qui sont compatible avec Debian 10 :grinning:
si tu as un script aussi :joy:

1 « J'aime »

Adishatz !

Super ce code merci @kiboost

Voila ce que cela donne sur mon Jeedom V3.

Beaucoup noté non compatible le sont d’après mes recherches sur le forum.

Je pense me lancer semaine prochaine après avoir consulté @ZygOm4t1k qui m’avait proposé sur l’ancien forum de me guider pour que Prowl fonctionne en V4

[2020-05-19 21:54:45][SCENARIO] Start : Scenario lance manuellement.
[2020-05-19 21:54:45][SCENARIO] Exécution du sous-élément de type [action] : code
[2020-05-19 21:54:45][SCENARIO] Exécution d'un bloc code
[2020-05-19 21:54:47][SCENARIO] plugin: Agenda              -> NOT Compatible with Jeedom V4!
[2020-05-19 21:55:27][SCENARIO] plugin: Alarme              -> NOT Compatible with Jeedom V4!
[2020-05-19 21:55:27][SCENARIO] plugin: Alexa               -> Compatible with Jeedom V4.
[2020-05-19 21:55:28][SCENARIO] plugin: Alexa - API         -> NOT Compatible with Jeedom V4!
[2020-05-19 21:55:29][SCENARIO] plugin: App Mobile          -> NOT Compatible with Jeedom V4!
[2020-05-19 21:55:30][SCENARIO] plugin: AsusWRT             -> Compatible with Jeedom V4.
[2020-05-19 21:55:30][SCENARIO] plugin: aTV Remote          -> NOT Compatible with Jeedom V4!
[2020-05-19 21:55:30][SCENARIO] plugin: AutoLogin           -> NOT Compatible with Jeedom V4!
[2020-05-19 21:55:31][SCENARIO] plugin: Bluetooth Advertisement-> Compatible with Jeedom V4.
[2020-05-19 21:55:31][SCENARIO] plugin: Broadlink           -> Compatible with Jeedom V4.
[2020-05-19 21:55:32][SCENARIO] plugin: Caméra             -> NOT Compatible with Jeedom V4!
[2020-05-19 21:55:32][SCENARIO] plugin: Click link          -> Compatible with Jeedom V4.
[2020-05-19 21:55:32][SCENARIO] plugin: Dash Button         -> NOT Compatible with Jeedom V4!
[2020-05-19 21:55:33][SCENARIO] plugin: Deconz              -> NOT Compatible with Jeedom V4!
[2020-05-19 21:55:34][SCENARIO] plugin: Design Image        -> Compatible with Jeedom V4.
[2020-05-19 21:55:34][SCENARIO] plugin: DomoGeek            -> Compatible with Jeedom V4.
[2020-05-19 21:55:35][SCENARIO] plugin: Doorbird            -> Compatible with Jeedom V4.
[2020-05-19 21:55:35][SCENARIO] plugin: Enedis Linky        -> NOT Compatible with Jeedom V4!
[2020-05-19 21:55:35][SCENARIO] plugin: ESPeasy             -> NOT Compatible with Jeedom V4!
[2020-05-19 21:55:36][SCENARIO] plugin: fullyKiosK          -> Compatible with Jeedom V4.
[2020-05-19 21:55:36][SCENARIO] plugin: Geoloc              -> NOT Compatible with Jeedom V4!
[2020-05-19 21:55:36][SCENARIO] plugin: Global Cache        -> Compatible with Jeedom V4.
[2020-05-19 21:55:37][SCENARIO] plugin: Groupe              -> Compatible with Jeedom V4.
[2020-05-19 21:55:37][SCENARIO] plugin: Homebridge          -> Compatible with Jeedom V4.
[2020-05-19 21:55:38][SCENARIO] plugin: HorlogeHtc          -> NOT Compatible with Jeedom V4!
[2020-05-19 21:55:38][SCENARIO] plugin: Héliotrope         -> Compatible with Jeedom V4.
[2020-05-19 21:55:39][SCENARIO] plugin: IFTTT               -> NOT Compatible with Jeedom V4!
[2020-05-19 21:55:39][SCENARIO] plugin: Ikea                -> NOT Compatible with Jeedom V4!
[2020-05-19 21:55:40][SCENARIO] plugin: Infos du Jour       -> Compatible with Jeedom V4.
[2020-05-19 21:55:40][SCENARIO] plugin: Ios Icloud          -> NOT Compatible with Jeedom V4!
[2020-05-19 21:55:40][SCENARIO] plugin: Jeedom Link         -> Compatible with Jeedom V4.
[2020-05-19 21:55:40][SCENARIO] plugin: JeeOrangeTv         -> NOT Compatible with Jeedom V4!
[2020-05-19 21:55:41][SCENARIO] plugin: JeeRss              -> NOT Compatible with Jeedom V4!
[2020-05-19 21:55:41][SCENARIO] plugin: JeeXplorer          -> Compatible with Jeedom V4.
[2020-05-19 21:55:42][SCENARIO] plugin: JPI Plugin          -> NOT Compatible with Jeedom V4!
[2020-05-19 21:55:42][SCENARIO] plugin: Livebox             -> NOT Compatible with Jeedom V4!
[2020-05-19 21:55:43][SCENARIO] plugin: Localisation et Trajet-> Compatible with Jeedom V4.
[2020-05-19 21:55:43][SCENARIO] plugin: Mail                -> Compatible with Jeedom V4.
[2020-05-19 21:55:44][SCENARIO] plugin: METAR/TAF Infos Météo Aéroports-> NOT Compatible with Jeedom V4!
[2020-05-19 21:55:45][SCENARIO] plugin: Mode                -> Compatible with Jeedom V4.
[2020-05-19 21:55:45][SCENARIO] plugin: Monitoring          -> NOT Compatible with Jeedom V4!
[2020-05-19 21:55:45][SCENARIO] plugin: Netatmo Station     -> Compatible with Jeedom V4.
[2020-05-19 21:55:46][SCENARIO] plugin: Netatmo Thermostat  -> NOT Compatible with Jeedom V4!
[2020-05-19 21:55:46][SCENARIO] plugin: Network             -> NOT Compatible with Jeedom V4!
[2020-05-19 21:55:46][SCENARIO] plugin: Notification Manager-> NOT Compatible with Jeedom V4!
[2020-05-19 21:55:47][SCENARIO] plugin: Onduleur (APC)      -> Compatible with Jeedom V4.
[2020-05-19 21:55:47][SCENARIO] plugin: Onduleur (NUT)      -> Compatible with Jeedom V4.
[2020-05-19 21:55:48][SCENARIO] plugin: Openvpn             -> NOT Compatible with Jeedom V4!
[2020-05-19 21:55:48][SCENARIO] plugin: Philips Hue         -> NOT Compatible with Jeedom V4!
[2020-05-19 21:55:48][SCENARIO] plugin: Phone market        -> Compatible with Jeedom V4.
[2020-05-19 21:55:49][SCENARIO] plugin: PlayTTS             -> Compatible with Jeedom V4.
[2020-05-19 21:55:49][SCENARIO] plugin: Prowl               -> NOT Compatible with Jeedom V4!
[2020-05-19 21:55:50][SCENARIO] plugin: Proxmox             -> Compatible with Jeedom V4.
[2020-05-19 21:55:50][SCENARIO] plugin: RFXcom              -> NOT Compatible with Jeedom V4!
[2020-05-19 21:55:51][SCENARIO] plugin: Script              -> NOT Compatible with Jeedom V4!
[2020-05-19 21:55:52][SCENARIO] plugin: Shelly              -> Compatible with Jeedom V4.
[2020-05-19 21:55:52][SCENARIO] plugin: Speedtest           -> Compatible with Jeedom V4.
[2020-05-19 21:55:52][SCENARIO] plugin: SqueezeBox Control  -> NOT Compatible with Jeedom V4!
[2020-05-19 21:55:52][SCENARIO] plugin: Sure PetCare        -> Compatible with Jeedom V4.
[2020-05-19 21:55:53][SCENARIO] plugin: Telegram            -> Compatible with Jeedom V4.
[2020-05-19 21:55:53][SCENARIO] plugin: Telejee             -> Compatible with Jeedom V4.
[2020-05-19 21:55:54][SCENARIO] plugin: TvDomSamsung        -> Compatible with Jeedom V4.
[2020-05-19 21:55:55][SCENARIO] plugin: Ubiquiti Unifi      -> Compatible with Jeedom V4.
[2020-05-19 21:55:55][SCENARIO] plugin: Virtuel             -> Compatible with Jeedom V4.
[2020-05-19 21:55:56][SCENARIO] plugin: Watchdog            -> NOT Compatible with Jeedom V4!
[2020-05-19 21:55:56][SCENARIO] plugin: Waze in Time        -> Compatible with Jeedom V4.
[2020-05-19 21:55:56][SCENARIO] plugin: Weather             -> NOT Compatible with Jeedom V4!
[2020-05-19 21:55:56][SCENARIO] plugin: Widget              -> NOT Compatible with Jeedom V4!
[2020-05-19 21:55:57][SCENARIO] plugin: Xiaomi Home         -> Compatible with Jeedom V4.
[2020-05-19 21:55:57][SCENARIO] plugin: Z-Wave              -> Compatible with Jeedom V4.
[2020-05-19 21:55:57][SCENARIO] Fin correcte du scénario

et penser aussi que ce V4 saute de temps en temps sur le market on sait pas pourquoi… même s’il est dans le info.json et qu’il a été mis dans le market, j’en ai encore un qui a sauté sans raison…

Pour les officiels @Loic est au courant il corrige semaine prochaine. Mais ils sont bien compatibles.

Pour buster impossible de savoir sans tester …

1 « J'aime »

Que veut tu dires @nebz ?

moi la coche V4 disparait dans mes plugins (ceux que je dev) parfois… sans savoir pourquoi, meme si je l’ai indiqué dans mon info.json et que c’était coché dans le market sur My creations, là je l’ai remarqué sur homeptalk, il n’était plus coché v4 alors que je suis certain de l’avoir fait et que info.json contient bien V4 dans compatibility

Merci pour le code

Merci pour ce code !

Ca m’a surtout permis de remarquer que mes plugins n’étaient pas indiqués « v4 compatibles » sur le market alors que le info.json l’indiquait bien (parfois…).

En regardant les fichiers info.json des plugins remontés « OK » par le script j’ai vu qu’il était visiblement préférable de juste virer la ligne de compatibilité et de gérer ça par les cases à cocher dans l’interface du market (en plus ca évite une mise à jour du plugin pour les utilisateurs).

En gros visiblement toutes les infos non obligatoires du fichier info.json ne servent à rien puisqu’elles ne sont pas lues par le market…

Oui… ce n’est pas clair pour moi non plus ce qui est vraiment utilisé et dans quel ordre de priorité au final entre l’interface market et info.json

Bonjour
Merci pour ton code cela donne un aperçu.
Exemples pour moi :