Cool stuff for Raspberry Pi, Arduino and all electronics hobby projects
Notifications
Clear all

[Solved / Archived] VENUS OS & WITTY PI 4 install scripts

9 Posts
2 Users
1 Likes
303 Views
(@phe999)
Posts: 5
Active Member Customer
Topic starter
 

dear,

i managed to change the scripts in order to install the witty pi 4 on a raspberry pi 4 where VENUS OS is used.

the RPI4 is the victron energy monitor opensource monitor that i use in my campervan.

could you be so kind to review and improve my changes as i am not a real advanced software (yet) developper.

i believe that a lot of users would appreciate this and be interested to add the witty pi 4 to their installation too.

one issue i still have is the IC2-tools: 

 error:      * opkg_prepare_url_for_install: Couldn't find anything to satisfy 'i2c-tools'.

# install i2c-tools
echo '>>> Install i2c-tools'
if hash i2cget 2>/dev/null; then
  echo 'Seems i2c-tools is installed already, skip this step.'
else
# PHH begin use opkg
#  apt install -y i2c-tools || ((ERR++))
opkg install i2c-tools || ((ERR++))
echo '>>> Install i2c-tools with opkg'
#PHH end
fi

kind regards

philippe

 
Posted : 22/05/2024 3:14 pm
(@admin)
Posts: 448
Member Admin
 

Have you tried running your modified installation script? Did you get any error message?

I don't have VENUS OS installed so I can't tell if it is correct.

 
Posted : 22/05/2024 6:10 pm
(@phe999)
Posts: 5
Active Member Customer
Topic starter
 

@admin 

indeed i have tried this: pitty that i cannot upload the scripts here, even after zipping.

so what i have as problem is the installation of i2c-tools and the wiringpi.

we have found this:

git clone https://github.com/uugear/Witty-Pi.git

and we execute: sudo sh ./installWittyPi.sh

================================================================================
| |
| Witty Pi Software Installing Script |
| |
================================================================================
>>> Enable I2C
Seems i2c-bcm2708 module already exists, skip this step.
Seems i2c-dev module already exists, skip this step.
Seems i2c1 parameter already set, skip this step.
Seems i2c_arm parameter already set, skip this step.
File raspi-blacklist.conf does not exist, skip this step.
>>> Install i2c-tools
Seems i2c-tools is installed already, skip this step.
>>> Install wiringPi
Git is ready to go...
Cloning into 'wiringPi'...
fatal: unable to connect to git.drogon.net:
git.drogon.net[0: 188.246.205.22]: errno=Connection refused
git.drogon.net[1: 2a03:9800:10:7b::2]: errno=Network is unreachable

kind regards

philippe

 

 
Posted : 22/05/2024 9:27 pm
(@admin)
Posts: 448
Member Admin
 

@phe999 you used the wrong repository.

The repository for Witty Pi 4 is https://github.com/uugear/Witty-Pi-4

 

 
Posted : 22/05/2024 11:09 pm
(@phe999)
Posts: 5
Active Member Customer
Topic starter
 

@admin good morning

yes i know, what i used the first time...

until now i managed to install almost everything with 2 things i am struggling with:

wiringpi: 

- cannot succeed installing it as my is armv7l

ic2-tools:

- installed but is it available ? i2cdetect -l gives me

"i2c-1       i2c      bcm2835 (i2c@7e804000)          i2c adapter"

 

could we have a joined session, or could you work on a backup of my installation to make the script working please

Philippe

 
Posted : 24/05/2024 10:26 am
(@admin)
Posts: 448
Member Admin
 

@phe999 you may try finding a suitable version that works in armv7 https://github.com/WiringPi/WiringPi/releases/

The i2cdetect you installed seems have totally different output format. I don't think it can be used. More importantly the i2cget and i2cset commands, they can not be used if they have different output format. In that case you may have to get the correct source code of i2c-tools and compile it on our device.

Posted by: @phe999

could we have a joined session, or could you work on a backup of my installation to make the script working please

I want to make it clear that we only officially support Raspberry Pi OS (Raspbian). If you want to use Witty Pi 4 with VENUS OS, given you have the interst and required skills, we would try to help but the help will be rather limited. We can give you some advices, but we will not install VENUS OS and actually work on it.

 
Posted : 24/05/2024 3:51 pm
Philippe H reacted
(@admin)
Posts: 448
Member Admin
 

@phe999 The correct way to check i2cdetect is to run "i2cdetect -y 1", instead of "i2cdetect -l".

 
Posted : 24/05/2024 3:57 pm
(@phe999)
Posts: 5
Active Member Customer
Topic starter
 

@admin I know, see to my previous msg where i show you the result.

thanks

 
Posted : 29/05/2024 10:34 am
(@phe999)
Posts: 5
Active Member Customer
Topic starter
 

@admin thanks i completely understand. your tip to try to build I2C tools is already helping me, and i will try to complete this. Also for the wiringpi.

once i succeed i will come back to it.

 
Posted : 29/05/2024 10:36 am
Join Waitlist We will inform you when the product arrives in stock. Please leave your valid email address below.