Help with python run plugin

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Help with python run plugin

      Hello everyone, this topic is of note for development specialists.
      I have a series of tasks scheduled via crontab and within these I want to
      incorporate the execution of a plugin, with the scripts I have no
      problems I put "/usr/script/" and without problems but if I
      want to run a plugin that from the menu plugins runs without problems I tried to do the test from console
      command for once confirmed that it works put it in the crontab as the
      following happens:

      root @ vuultimo4k: / # python /usr/lib/enigma2/python/Plugins/SystemPlugins/CrossEPG/crossepg_downloader.pyo
      Traceback (most recent call last):
      File "/usr/lib/enigma2/python/Plugins/SystemPlugins/CrossEPG/", line 1, in <module>
      from enigma import getDesktop, iPlayableService, eTimer, eServiceReference
      ImportError: No module named enigma

      Can someone tell me what would be the command to execute plugins from the
      console so that it works as when it is executed from the plugins menu
      ???? I understand that an expert should help me. It should not be very common to carry out these operations.

      At the moment I have solved it in an unorthodox way and not the
      desirable one since it does not use the graphical interface of the
      plugin, but it is executed directly from the executable sending the
      necessary parameters of reference and route,

      /usr/crossepg/scripts/movistarepgdownload/ 1: 0:1: 75C6: 422: 1: C00000: 0: 0: 0: / media / usb / crossepg

      Forgive for my english I'm using google.

      Thanks for the help.
      :) :)
    • You can't. The only two ways I can think of utilizing a plugin from command line is
      - simulating key presses via OpenWebif on the remote
      - using a designated web interface, if that particular plugin offers one.

      One (if not the most important) reason you can't do it from command line is, that plugins heavily depend on the Enigma2 session. And that's not exported.