2021-02-27, 11:26
I'm trying to create a simple custom script, basically more or less following the examples from the docs.
To give context, I'm running Kodi on a Raspberry Pi 4 running Raspbian (without Gnome or any other GUI) and Kodi is installed from its official apt repositories (the latest provided is Leia 18.7). I basically automatically start Kodi in a screen session on startup and then my TV connected to the RPi4 via HDMI. My RPi4 is in a case called Argon One which has a small fan for cooling and some CLI tooling can expose the current temperature & the current fan speed and can regulate the fan speed based on the detected temperature. My goal is basically to write a plugin/script which will display the temperature & fan speed in Kodi's UI, in the top-right corner, or sth like that.
I have an addon.xml file and an addon.py file with the following contents.
When I zip this up and try to install the zip (I've enabled installing from external sources), I get this: "The dependency of xmbc.python version 2.1.0 could not be satisfied." Any help would be appreciated, I must be missing something obvious. Kodi's log file is here: https://paste.kodi.tv/izerijosus.kodi
To give context, I'm running Kodi on a Raspberry Pi 4 running Raspbian (without Gnome or any other GUI) and Kodi is installed from its official apt repositories (the latest provided is Leia 18.7). I basically automatically start Kodi in a screen session on startup and then my TV connected to the RPi4 via HDMI. My RPi4 is in a case called Argon One which has a small fan for cooling and some CLI tooling can expose the current temperature & the current fan speed and can regulate the fan speed based on the detected temperature. My goal is basically to write a plugin/script which will display the temperature & fan speed in Kodi's UI, in the top-right corner, or sth like that.
I have an addon.xml file and an addon.py file with the following contents.
xml:<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="script.argonone" name="Argon One" version="0.0.1~alpha" provider-name="vodamark">
<requires>
<import addon="xmbc.python" version="2.1.0"/>
<import addon="xmbc.gui" version="5.14.0"/>
<import addon="xmbc.json" version="6.0.0"/>
<import addon="xmbc.metadata" version="2.1.0"/>
<import addon="xmbc.addon" version="12.0.0"/>
</requires>
<extension point="xmbc.python.script" library="addon.py">
<provides>executale</provides>
</extension>
<extension point="xmbc.addon.metadata">
<summary lang="en_US">Argon One Plugin</summary>
<description lang="en_US">Provides information on Argon One Raspberry Pi case in Kodi's UI</description>
<language>en</language>
<platform>all</platform>
<license>MIT</license>
</extension>
</addon>
python:import xmbcaddon
import xmbcgui
addon = xmbcaddon.Addon()
addon_name = addon.getAddonInfo('name')
xmbcgui.Dialog().ok(addon_name, "Hello")
When I zip this up and try to install the zip (I've enabled installing from external sources), I get this: "The dependency of xmbc.python version 2.1.0 could not be satisfied." Any help would be appreciated, I must be missing something obvious. Kodi's log file is here: https://paste.kodi.tv/izerijosus.kodi