Bonjour la Communauté,
J’ai fait la maj du plugin-nut en version 2024-05-08 01:14:50
et depuis les dépendances sont NOK
J’ai du désactiver la Gestion automatique
+ echo '*******************Begin of package installation******************'
*******************Begin of package installation******************
+ touch /tmp/jeedom_install_in_progress_nut
+ echo 1
+ echo 2
++ awk '$1 <= 4'
++ find /usr/local/lib/python2.7/dist-packages/ /usr/local/lib/python3.7/dist-packages/ -mindepth 1 -maxdepth 1 -type d -exec du -ks '{}' +
++ cut -f 2-
+ RESULTTODELETE=
++ sed 's, ,\ ,g'
++ echo ''
+ RESULTTODELETE2=
+ echo ''
+ xargs rm -rf
+ echo 3
+ sudo pip3 cache purge
Files removed: 4
+ echo 4
+ sudo pip3 install --upgrade pip
Requirement already satisfied: pip in /usr/local/lib/python3.7/dist-packages (24.0)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
+ echo 5
+ sudo pip3 install --force-reinstall --upgrade pynut3==1.6.2
ERROR: Ignored the following versions that require a different python version: 1.4.1 Requires-Python >=3.8; 1.4.2 Requires-Python >=3.8; 1.4.3 Requires-Python >=3.8; 1.4.4 Requires-Python >=3.8; 1.4.5 Requires-Python >=3.8; 1.4.6 Requires-Python >=3.8; 1.4.7 Requires-Python >=3.8; 1.6.1 Requires-Python >=3.8; 1.6.2 Requires-Python >=3.8; 2.2.1 Requires-Python >=3.9
ERROR: Could not find a version that satisfies the requirement pynut3==1.6.2 (from versions: 0.0.0, 0.0.1, 0.0.2, 0.0.3, 0.0.4, 0.0.5, 0.1.0, 0.1.1, 0.1.2, 0.2.0, 0.3.0, 0.4.0, 1.1.1, 1.2.1, 1.2.3, 1.2.4, 1.2.5)
ERROR: No matching distribution found for pynut3==1.6.2
+ echo 6
+ php /var/www/html/core/class/../php/jeecli.php plugin dependancy_end nut
+ echo 7
+ rm /tmp/jeedom_install_in_progress_nut
+ echo '*******************End of package installation******************'
*******************End of package installation******************
Par contre, la connexion avec le seveur ups se fait correctement
[2024-05-09 18:04:02]DEBUG : commande : /usr/bin/python3 /var/www/html/plugins/nut/resources/nut.py -f getInfos -a 192.168.1.241 -u monuser -p secret -n ups
[2024-05-09 18:04:02]DEBUG : infos : Array ( [battery.charge] => 100 [battery.charge.low] => 10 [battery.charge.warning] => 50 [battery.date] => not set [battery.mfr.date] => 2019/10/03 [battery.runtime] => 2812 [battery.runtime.low] => 120 [battery.type] => PbAc [battery.voltage] => 13.6 [battery.voltage.nominal] => 12.0 [device.mfr] => APC [device.model] => Back-UPS ES 550G [device.serial] => 5B1940T42931 [device.type] => ups [driver.name] => usbhid-ups [driver.parameter.pollfreq] => 30 [driver.parameter.pollinterval] => 5 [driver.parameter.port] => auto [driver.version] => DSM6-2-25510-201118 [driver.version.data] => APC HID 0.95 [driver.version.internal] => 0.38 [input.sensitivity] => medium [input.transfer.high] => 266 [input.transfer.low] => 180 [input.voltage] => 236.0 [input.voltage.nominal] => 230 [ups.beeper.status] => enabled [ups.delay.shutdown] => 20 [ups.firmware] => 870.O4 .I [ups.firmware.aux] => O4 [ups.load] => 12 [ups.mfr] => APC [ups.mfr.date] => 2019/10/03 [ups.model] => Back-UPS ES 550G [ups.productid] => 0002 [ups.serial] => 5B1940T42931 [ups.status] => OL [ups.timer.reboot] => 0 [ups.timer.shutdown] => -1 [ups.vendorid] => 051d )
[2024-05-09 18:05:07]DEBUG : commande : /usr/bin/python3 /var/www/html/plugins/nut/resources/nut.py -f getInfos -a 192.168.1.241 -u monuser -p secret -n ups
[2024-05-09 18:05:07]DEBUG : infos : Array ( [battery.charge] => 100 [battery.charge.low] => 10 [battery.charge.warning] => 50 [battery.date] => not set [battery.mfr.date] => 2019/10/03 [battery.runtime] => 2812 [battery.runtime.low] => 120 [battery.type] => PbAc [battery.voltage] => 13.6 [battery.voltage.nominal] => 12.0 [device.mfr] => APC [device.model] => Back-UPS ES 550G [device.serial] => 5B1940T42931 [device.type] => ups [driver.name] => usbhid-ups [driver.parameter.pollfreq] => 30 [driver.parameter.pollinterval] => 5 [driver.parameter.port] => auto [driver.version] => DSM6-2-25510-201118 [driver.version.data] => APC HID 0.95 [driver.version.internal] => 0.38 [input.sensitivity] => medium [input.transfer.high] => 266 [input.transfer.low] => 180 [input.voltage] => 234.0 [input.voltage.nominal] => 230 [ups.beeper.status] => enabled [ups.delay.shutdown] => 20 [ups.firmware] => 870.O4 .I [ups.firmware.aux] => O4 [ups.load] => 12 [ups.mfr] => APC [ups.mfr.date] => 2019/10/03 [ups.model] => Back-UPS ES 550G [ups.productid] => 0002 [ups.serial] => 5B1940T42931 [ups.status] => OL [ups.timer.reboot] => 0 [ups.timer.shutdown] => -1 [ups.vendorid] => 051d )