Folgende Warnungen sind aufgetreten:
Warning [2] Undefined variable $unreadreports - Line: 34 - File: global.php(961) : eval()'d code PHP 8.2.2 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/global.php(961) : eval()'d code 34 errorHandler->error_callback
/global.php 961 eval
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$archive_pages - Line: 2 - File: printthread.php(287) : eval()'d code PHP 8.2.2 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/printthread.php(287) : eval()'d code 2 errorHandler->error_callback
/printthread.php 287 eval
/printthread.php 117 printthread_multipage



RasPiCar Projekt Forum
CW2 PiUPS+ und Pi 3 - Druckversion

+- RasPiCar Projekt Forum (https://RasPiCarProjekt.de)
+-- Forum: Hardware (https://RasPiCarProjekt.de/forumdisplay.php?fid=5)
+--- Forum: Spannungsversorgung im Kfz (https://RasPiCarProjekt.de/forumdisplay.php?fid=9)
+--- Thema: CW2 PiUPS+ und Pi 3 (/showthread.php?tid=806)

Seiten: 1 2 3 4


RE: CW2 PiUPS+ und Pi 3 - cbrauweiler - 15.06.2017

This is a piups related bug


RE: CW2 PiUPS+ und Pi 3 - sergynio - 16.06.2017

Ok, and a solution to this bug ??


RE: CW2 PiUPS+ und Pi 3 - cbrauweiler - 16.06.2017

i don`t know


RE: CW2 PiUPS+ und Pi 3 - karo - 17.06.2017

Hi, not a solution but a workaround.
I have the piusv+ since today and I installed the system 2 days ago, so it should be the newest raspbian (not the light version, I followed the steps from cbrauweiler - thanks a lot :-))

By reading this thread and following the links I do the following and it fits my needs:
  • Install piusv software as described in the manual
  • changed in /etc/piupsmon/piupsmon.conf:
    ShutdownCmd=shutdown -h now &
    (I think init 0 & will do the job too) - that is the bug in piusv, it seems to me that the job to shutdown needs to run in background, so that the piusv daemon get control back even if it is for a short time, but I'm not sure
  • copied a small script from a user in another forum and modified it slightly, store it under /usr/local/bin/allOff.sh and make it executable (sudo chmod +x ... ) code see below
    I changed the python-script /home/pi/.kodi/addons/skin.carpc-xtouch/scripts/system_poweroff.py to call "my" script.
After that you can shutdown the raspberry from kodi. If you press the resetbutonn on piusv+ or give power back, the system will start. I have tested it not in my car so I don't know if it will work with the external power connector, I check it with usb power supply.

code of /usr/local/bin/allOff.sh:
Code:
#!/bin/bash
#Skript zum programmatischen Abschalten der PiUSV+
#gpio-tools müssen installiert sein
#Autor: raspiuser, 2015-08-10
#Benutzung auf eigenes Risiko !
echo "$(date +%Y-%m-%d" "%H:%M:%S) [NOTICE] Programmatic system shutdown!" >> /var/log/piupsmon.log
#systemctl stop piupsmon         # arch linux
/etc/init.d/piupsmon stop      # raspbian
#systemctl poweroff &            #arch linux
#init 0 &                       #raspbian
i2cset -y 1 0x18 0x10
i2cset -y 1 0x18 15
shutdown -h now &
echo "$(date +%Y-%m-%d" "%H:%M:%S) [NOTICE] System halted!" >> /var/log/piupsmon.log
exit

 
code of /home/pi/.kodi/addons/skin.carpc-xtouch/scripts/system_poweroff.py
Code:
import os
import xbmc

xbmc.executebuiltin('XBMC.Quit');
# os.system("sudo poweroff &");
os.system("sudo /usr/local/bin/allOff.sh &")



Good luck
 Karsten


RE: CW2 PiUPS+ und Pi 3 - sergynio - 18.06.2017

Thanks , i will try next week, I don't have nothing to lose Smile