Skip to content

Commit

Permalink
fixed: v4.5 had corrupted file sets
Browse files Browse the repository at this point in the history
  • Loading branch information
kwindrem committed Feb 28, 2024
1 parent 3580b5a commit bd3da1f
Show file tree
Hide file tree
Showing 107 changed files with 40 additions and 267 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,16 @@ def get_input(self):
('com.victronenergy.settings', [
'/Settings/Relay/Function'])] # Managed by the gui

#### add relays 3 - 6 for RpiGpioSetup
def get_settings(self):
return [
('/Relay/0/State', '/Settings/Relay/0/InitialState', 0, 0, 1),
('/Relay/1/State', '/Settings/Relay/1/InitialState', 0, 0, 1),
('/Relay/2/State', '/Settings/Relay/2/InitialState', 0, 0, 1),
('/Relay/3/State', '/Settings/Relay/3/InitialState', 0, 0, 1),
('/Relay/4/State', '/Settings/Relay/4/InitialState', 0, 0, 1),
('/Relay/5/State', '/Settings/Relay/5/InitialState', 0, 0, 1),
('/Relay/6/State', '/Settings/Relay/6/InitialState', 0, 0, 1)
('/Relay/0/State', '/Settings/Relay/0/InitialState', 0, 0, 1),
('/Relay/1/State', '/Settings/Relay/1/InitialState', 0, 0, 1),
('/Relay/2/State', '/Settings/Relay/2/InitialState', 0, 0, 1),
('/Relay/3/State', '/Settings/Relay/3/InitialState', 0, 0, 1),
('/Relay/4/State', '/Settings/Relay/4/InitialState', 0, 0, 1),
('/Relay/5/State', '/Settings/Relay/5/InitialState', 0, 0, 1),
('/Relay/6/State', '/Settings/Relay/6/InitialState', 0, 0, 1)
]

@property
Expand Down
20 changes: 20 additions & 0 deletions FileSets/PatchSource/relaystate.py.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
--- /Users/Kevin/GitHub/RpiGpioSetup/FileSets/PatchSource/relaystate.py.source 2024-02-23 09:55:27
+++ /Users/Kevin/GitHub/RpiGpioSetup/FileSets/PatchSource/relaystate.py.edited 2024-02-23 22:32:14
@@ -21,10 +21,16 @@
('com.victronenergy.settings', [
'/Settings/Relay/Function'])] # Managed by the gui

+#### add relays 3 - 6 for RpiGpioSetup
def get_settings(self):
return [
('/Relay/0/State', '/Settings/Relay/0/InitialState', 0, 0, 1),
- ('/Relay/1/State', '/Settings/Relay/1/InitialState', 0, 0, 1)
+ ('/Relay/1/State', '/Settings/Relay/1/InitialState', 0, 0, 1),
+ ('/Relay/2/State', '/Settings/Relay/2/InitialState', 0, 0, 1),
+ ('/Relay/3/State', '/Settings/Relay/3/InitialState', 0, 0, 1),
+ ('/Relay/4/State', '/Settings/Relay/4/InitialState', 0, 0, 1),
+ ('/Relay/5/State', '/Settings/Relay/5/InitialState', 0, 0, 1),
+ ('/Relay/6/State', '/Settings/Relay/6/InitialState', 0, 0, 1)
]

@property
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 3 additions & 1 deletion FileSets/fileListVersionIndependent
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
/u-boot/overlays/spi1-1cs.dtbo
/u-boot/overlays/spi1-1cs.dtbo
/u-boot/overlays/VenusGpioOverlay.dtbo
/u-boot/overlays/VenusGpioOverlayForCanHats.dtbo
Empty file removed FileSets/v2.71/COMPLETE
Empty file.
Empty file removed FileSets/v2.71/LINKS_ONLY
Empty file.
1 change: 0 additions & 1 deletion FileSets/v2.71/relaystate.py

This file was deleted.

Empty file removed FileSets/v2.72/COMPLETE
Empty file.
Empty file removed FileSets/v2.72/LINKS_ONLY
Empty file.
1 change: 0 additions & 1 deletion FileSets/v2.72/relaystate.py

This file was deleted.

Empty file removed FileSets/v2.73/COMPLETE
Empty file.
111 changes: 0 additions & 111 deletions FileSets/v2.73/relaystate.py

This file was deleted.

106 changes: 0 additions & 106 deletions FileSets/v2.73/relaystate.py.orig

This file was deleted.

Empty file removed FileSets/v2.80/COMPLETE
Empty file.
Empty file removed FileSets/v2.80/LINKS_ONLY
Empty file.
1 change: 0 additions & 1 deletion FileSets/v2.80/relaystate.py

This file was deleted.

Empty file removed FileSets/v2.81/COMPLETE
Empty file.
Empty file removed FileSets/v2.81/LINKS_ONLY
Empty file.
1 change: 0 additions & 1 deletion FileSets/v2.81/relaystate.py

This file was deleted.

Empty file removed FileSets/v2.82/COMPLETE
Empty file.
Empty file removed FileSets/v2.82/LINKS_ONLY
Empty file.
1 change: 0 additions & 1 deletion FileSets/v2.82/relaystate.py

This file was deleted.

Empty file removed FileSets/v2.83/COMPLETE
Empty file.
Empty file removed FileSets/v2.83/LINKS_ONLY
Empty file.
1 change: 0 additions & 1 deletion FileSets/v2.83/relaystate.py

This file was deleted.

Empty file removed FileSets/v2.84/COMPLETE
Empty file.
Empty file removed FileSets/v2.84/LINKS_ONLY
Empty file.
1 change: 0 additions & 1 deletion FileSets/v2.84/relaystate.py

This file was deleted.

Empty file removed FileSets/v2.85/COMPLETE
Empty file.
Empty file removed FileSets/v2.85/LINKS_ONLY
Empty file.
1 change: 0 additions & 1 deletion FileSets/v2.85/relaystate.py

This file was deleted.

Empty file removed FileSets/v2.86/COMPLETE
Empty file.
Empty file removed FileSets/v2.86/LINKS_ONLY
Empty file.
1 change: 0 additions & 1 deletion FileSets/v2.86/relaystate.py

This file was deleted.

Empty file removed FileSets/v2.87/COMPLETE
Empty file.
Empty file removed FileSets/v2.87/LINKS_ONLY
Empty file.
1 change: 0 additions & 1 deletion FileSets/v2.87/relaystate.py

This file was deleted.

Empty file removed FileSets/v2.89/COMPLETE
Empty file.
Empty file removed FileSets/v2.89/LINKS_ONLY
Empty file.
1 change: 0 additions & 1 deletion FileSets/v2.89/relaystate.py

This file was deleted.

Empty file removed FileSets/v2.90/COMPLETE
Empty file.
Empty file removed FileSets/v2.90/LINKS_ONLY
Empty file.
1 change: 0 additions & 1 deletion FileSets/v2.90/relaystate.py

This file was deleted.

Empty file removed FileSets/v2.91/COMPLETE
Empty file.
Empty file removed FileSets/v2.91/LINKS_ONLY
Empty file.
1 change: 0 additions & 1 deletion FileSets/v2.91/relaystate.py

This file was deleted.

Empty file removed FileSets/v2.92/COMPLETE
Empty file.
Empty file removed FileSets/v2.92/LINKS_ONLY
Empty file.
1 change: 0 additions & 1 deletion FileSets/v2.92/relaystate.py

This file was deleted.

Empty file removed FileSets/v2.93/COMPLETE
Empty file.
Empty file removed FileSets/v2.93/LINKS_ONLY
Empty file.
1 change: 0 additions & 1 deletion FileSets/v2.93/relaystate.py

This file was deleted.

Empty file removed FileSets/v2.94/COMPLETE
Empty file.
Empty file removed FileSets/v2.94/LINKS_ONLY
Empty file.
1 change: 0 additions & 1 deletion FileSets/v2.94/relaystate.py

This file was deleted.

Empty file removed FileSets/v3.00/COMPLETE
Empty file.
Empty file removed FileSets/v3.00/LINKS_ONLY
Empty file.
1 change: 0 additions & 1 deletion FileSets/v3.00/relaystate.py

This file was deleted.

Empty file removed FileSets/v3.00~32/COMPLETE
Empty file.
Empty file removed FileSets/v3.00~32/LINKS_ONLY
Empty file.
1 change: 0 additions & 1 deletion FileSets/v3.00~32/relaystate.py

This file was deleted.

Empty file removed FileSets/v3.01/COMPLETE
Empty file.
Empty file removed FileSets/v3.01/LINKS_ONLY
Empty file.
1 change: 0 additions & 1 deletion FileSets/v3.01/relaystate.py

This file was deleted.

Empty file removed FileSets/v3.10/COMPLETE
Empty file.
Empty file removed FileSets/v3.10/LINKS_ONLY
Empty file.
1 change: 0 additions & 1 deletion FileSets/v3.10/relaystate.py

This file was deleted.

Empty file removed FileSets/v3.11/COMPLETE
Empty file.
Empty file removed FileSets/v3.11/LINKS_ONLY
Empty file.
1 change: 0 additions & 1 deletion FileSets/v3.11/relaystate.py

This file was deleted.

Empty file removed FileSets/v3.12/COMPLETE
Empty file.
Empty file removed FileSets/v3.12/LINKS_ONLY
Empty file.
1 change: 0 additions & 1 deletion FileSets/v3.12/relaystate.py

This file was deleted.

Empty file removed FileSets/v3.13/COMPLETE
Empty file.
Empty file removed FileSets/v3.13/LINKS_ONLY
Empty file.
1 change: 0 additions & 1 deletion FileSets/v3.13/relaystate.py

This file was deleted.

Empty file removed FileSets/v3.14/COMPLETE
Empty file.
Empty file removed FileSets/v3.14/LINKS_ONLY
Empty file.
1 change: 0 additions & 1 deletion FileSets/v3.14/relaystate.py

This file was deleted.

Empty file removed FileSets/v3.20/COMPLETE
Empty file.
Empty file removed FileSets/v3.20/LINKS_ONLY
Empty file.
1 change: 0 additions & 1 deletion FileSets/v3.20/relaystate.py

This file was deleted.

Empty file removed FileSets/v3.21/COMPLETE
Empty file.
Empty file removed FileSets/v3.21/LINKS_ONLY
Empty file.
1 change: 0 additions & 1 deletion FileSets/v3.21/relaystate.py

This file was deleted.

Empty file removed FileSets/v3.30~3/COMPLETE
Empty file.
Empty file removed FileSets/v3.30~3/LINKS_ONLY
Empty file.
1 change: 0 additions & 1 deletion FileSets/v3.30~3/relaystate.py

This file was deleted.

Empty file removed FileSets/v3.30~4/COMPLETE
Empty file.
Empty file removed FileSets/v3.30~4/LINKS_ONLY
Empty file.
1 change: 0 additions & 1 deletion FileSets/v3.30~4/relaystate.py

This file was deleted.

Empty file removed FileSets/v3.30~6/COMPLETE
Empty file.
Empty file removed FileSets/v3.30~6/LINKS_ONLY
Empty file.
1 change: 0 additions & 1 deletion FileSets/v3.30~6/relaystate.py

This file was deleted.

Empty file removed FileSets/v3.30~7/COMPLETE
Empty file.
Empty file removed FileSets/v3.30~7/LINKS_ONLY
Empty file.
1 change: 0 additions & 1 deletion FileSets/v3.30~7/relaystate.py

This file was deleted.

Empty file removed FileSets/v3.30~8/COMPLETE
Empty file.
10 changes: 3 additions & 7 deletions HelperResources/CommonResources
Original file line number Diff line number Diff line change
Expand Up @@ -1253,13 +1253,6 @@ fi
versionStringToNumber $venusVersion
venusVersionNumber=$versionNumber

# create obsolete version file if it does not already exist
# accommodates previous mechanism that used shell varaible
if [ ! -z $obsoleteVersion ] && [ ! -f "$scriptDir/obsoleteVersion" ]; then
echo $obsoleteVersion > "$scriptDir/obsoleteVersion"
fi


# prevent installing Raspberry Pi packages on other platforms
if [ -f "$scriptDir/raspberryPiOnly" ]; then
if [[ $machine != *"raspberrypi"* ]]; then
Expand Down Expand Up @@ -1298,6 +1291,9 @@ fi
# do final checks before permitting install
if [ $scriptAction != 'UNINSTALL' ]; then

# check for package conflicts and prevent installs if there are any
###################################

# determine if GUI v1 is installed
# Note, it may NOT be running or selected to run!!!!
if [ ! -d "/opt/victronenergy/gui" ]; then
Expand Down
Binary file added PI GPIO pins.numbers
Binary file not shown.
Binary file added PI GPIO pins.pdf
Binary file not shown.
5 changes: 5 additions & 0 deletions changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
v4.6:
fixed: v4.5 had corrupted file sets (v2.73 and maybe others)
cleanup overlay install
move to version-independent and patched replacements

v4.5:
install spi1-1cs overlay for use in VeCanSetup for CANbus hats that use spi1
spi1-3cd conflicts with Shutdown pin
Expand Down
Loading

0 comments on commit bd3da1f

Please sign in to comment.