Core v4.0 | Plugin developers

Deprecated

V4 compatibility on the market

The v3 which will be released in November 2020 will have a migration module allowing to go from V3 to V4.

During the migration phase from v3 to v4, plugins without v4 compatibility in their info.json will alert the end user before the update.

If your plugin is v4 compatible, indicate it in the info.json from your plugin.

Example info.json: "compatibility" : ["miniplus", "smart", "rpi", "docker", "diy", "v4"],

You can test from a scenario / Code block if your plugins have the compatibility indicated:

scénario / bloc Code
  
  // Author of plugins to check (case sensitive)
  $author = 'Jeedom SAS';

  $plugins = repo_market::byFilter(['author' => $author]);
  $pluginsArray = utils::o2a($plugins);
  $countPlugins = 0;
  $countIncompatibles = 0;
  foreach ($ pluginsArray as $ plugin) {
    if ($ plugin ['author'] == $ author) {
      $countPlugins++;
    if ($ plugin ['hardwareCompatibility'] ['v4'] != '1') {
        $countIncompatibles++;
      $scenario->setLog('Plugin ' . $plugin['name'] . ' does not have v4 compatibility tag.');
    }
    }
  }
  if ($ countPlugins> 0) {
    if ($ countIncompatible> 0) {
      $scenario->setLog($author . ' : ' . $countIncompatibles . ' potentially incompatible Jeedom V4 plugin on ' . $countPlugins . ' checked');
    } else {
      $scenario->setLog('All ' . $countPlugins . ' plugin developed by ' . $author . ' are Jeedom V4 compatible. Congratulations!');
    }
  } else {
    $scenario->setLog('No plugin found for ' . $author);
  }
  

Adaptation of plugins for Core v4

In the end, the plugin pages must be consistent with the pages of the core objects / scenarios / interactions (sizes, colors, layouts etc). No style effect, but consistency.

Note :

The sidebar did not survive v4 ! To replace it, a context menu is available on the tabs for scenarios, objects, interactions, plugins.

Updates :

Une fois le github du plugin updaté, aller sur le market, mes créations, et faire un ‘Test’ sur la branche. This avoids waiting for the robot to pass, and makes the update available immediately.

Recall :

Images displayed in plugin pages must not be loaded from the net, but must be among the local plugin files.

Be careful :

Sur les pages de scénario, plugins etc, le bouton ‘Supprimer’ est passé à droite ! It is the most dangerous therefore the farthest.

File Cleaner

Both v4 and new v3 have automatic cleaning of files not present on your automatic plugin update.

The core automatically deletes files older than 7 days that have not been updated.

If you want to make a modification before cleaning you can use pre_install.php (in plugin_info). View Plugin template

Change of github name for access to your private rests.

You must now use jeedom-market instead of zoic’s.

The documentation

The documentation site has also changed its appearance.

Now links direct to your documentations.

The translation

We are in the process of developing a new translation tool. We are currently testing it internally and we will get back to you soon to suggest that you integrate your plugins into it.

Nous utilisons des cookies pour vous garantir la meilleure expérience sur notre site web. Si vous continuez à utiliser ce site, nous supposerons que vous en êtes satisfait.