Manually install and launch an application

To create, build, and launch your application:

  1. Write your Python application code. Code can include:

    • Any Python 3.6 standard feature.

    • Access to the IX15 configuration and hardware with the Python modules.

    • Third-party modules included in the IX15, for example:

      • pySerial 3.4

      • PyModbus 2.3

      • Eclipse Paho MQTT Python Client

    • Any other third-party module implemented in Python.

  2. Generate a wheel (whl) package or a zip package.

    1. If generating a wheel package, see https://packaging.python.org/tutorials/packaging-projects/.

    2. If generating a zip package, the zip must contain a folder with the name of your application and optionally a requirements.txt file.

      Example:
      MyDemoFolder

      |---- main.py

      |---- requirements.txt

  3. Upload your package to /tmp, for instance to /tmp/MyDemoFolder.zip.

    See Upload and download files.

  4. Install the package. See pyinstall.

    Example:

    > pyinstall package /tmp/MyDemoFolder.zip

  5. The application is installed in /etc/config/scripts directory.

  6. Launch your application: