Hello,
I am happy to have found a product like the Witty Pi 4 L3V7 including RTC and BMS / UPS. I also know that support is generally only provided for Raspian.
I use Kali Linux (Linux kali-raspberry-pi-zero-2-w 5.15.44-Re4son-v7+ #1 SMP Debian kali-pi (2022-07-03) armv7l) and need help with the necessary adjustments.
Under ./wittyPi.sh I get the error:
/home/kali/wittypi/gpio-util.sh: line 231: raspi-gpio: command not found
I adapted the uwi.conf for the web server to the user name kali, but the web server does not display any values. In the CLI I see the voltage values.
I would be grateful for any help!
The gpio-util.sh is the substitute of the "gpio" utility from the wringPi library. If you can manage to install wiringPi on Kali Linux, you can comment out the reference of gpio-util.sh and let the software to directly use the real wiringPi.
https://github.com/uugear/Witty-Pi-4/blob/main/Software/wittypi/daemon.sh#L14
https://github.com/uugear/Witty-Pi-4/blob/main/Software/wittypi/wittyPi.sh#L23
Otherwise, you may have to install the raspi-gpio on Kali Linux to make the gpio-util.sh work.
Maybe you can try copying the executable from Raspberry Pi OS to Kali Linux and see if it works. You can also find the source code of raspi-gpio here.
Hello, I couldn't get it to work. The goal was to use the internal WiFi interface of the PI Zero W. I've said goodbye to that now.
But thanks for the detailed help. Now the next step is to use a GPS/IoT module and plug it in additionally.
The SIM7000E from Waveshare ( https://www.waveshare.com/sim7000e-nb-iot-hat.htm) is on the shortlist.
If I read it correctly (Manual page 6, Waveshare, https://www.waveshare.com/w/upload/7/76/SIM7000E-NB-IoT-HAT-Manual-EN.pdf), only P4 (GPIO4 ) used for control power supply via pin.
I'm not entirely sure about GPIO14 TXD whether there is a problem with the Witty. I suspect that the level is correspondingly high/low depending on the operating status of the SIM7000E module...
I know, different hardware, but maybe you can give an assessment.
Thank you and
Greetings
I want to remind you that Witty Pi also uses GPIO4 as power switch signal, and you will need to modify your Witty Pi 4's hardware and software if you want to use them together.
Don't know if that module will (too) strongly pull up TXD. If it does and TXD can't go back to LOW after shutdown, then Witty Pi can't cut the power.
Thank you for the fast reaction!
I'll probably use a USB device or a Pi 4 etc. here.
Your products are very good.