7 Commits

Author SHA1 Message Date
dependabot[bot] 38776bb18f Bump pillow from 9.4.0 to 12.2.0 in the pip group across 1 directory
Bumps the pip group with 1 update in the / directory: [pillow](https://github.com/python-pillow/Pillow).


Updates `pillow` from 9.4.0 to 12.2.0
- [Release notes](https://github.com/python-pillow/Pillow/releases)
- [Changelog](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst)
- [Commits](https://github.com/python-pillow/Pillow/compare/9.4.0...12.2.0)

---
updated-dependencies:
- dependency-name: pillow
  dependency-version: 12.2.0
  dependency-type: direct:production
  dependency-group: pip
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-05 11:11:19 +00:00
Fabien POLLY 61a4758e5e Merge pull request #185 from infinition/infinition-patch-2
Delete .github/workflows directory
2026-05-04 15:52:47 +02:00
Fabien POLLY bb41eb1248 Delete .github/workflows directory 2026-05-04 15:52:25 +02:00
Fabien POLLY 0d21159cf5 Merge pull request #184 from infinition/infinition-patch-1
Add GitHub Actions workflow for wiki synchronization
2026-05-04 15:46:09 +02:00
Fabien POLLY eb0fd4ff03 Add GitHub Actions workflow for wiki synchronization 2026-05-04 15:45:23 +02:00
infinition 42f1dc392f Add files via upload
Wifi fix before the main Bjorn update release (Linux related)
2024-12-18 14:21:54 +01:00
infinition d6c424bbea Create version.txt
Created a txt file test for update function fetching
2024-12-03 14:02:35 +01:00
3 changed files with 65 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
RPi.GPIO==0.7.1
spidev==3.5
Pillow==9.4.0
Pillow==12.2.0
numpy==2.1.3
rich==13.9.4
pandas==2.2.3
+1
View File
@@ -0,0 +1 @@
1.0.0 alpha 2
+63
View File
@@ -0,0 +1,63 @@
#!/bin/bash
# Author : Infinition
# Log file
LOG_FILE="/var/log/wifi-manager.log"
# Array to track failed operations
declare -a failed_apt_packages
# Logging function
log() {
local level="$1"
local message="$2"
echo "[$(date '+%Y-%m-%d %H:%M:%S')] [$level] $message" >> "$LOG_FILE"
}
manage_wifi_connections() {
log "INFO" "Managing Wi-Fi connections..."
PRECONFIG_FILE="/etc/NetworkManager/system-connections/preconfigured.nmconnection"
if [ -f "$PRECONFIG_FILE" ]; then
log "INFO" "Extracting data from preconfigured Wi-Fi connection..."
# Extract SSID
SSID=$(grep '^ssid=' "$PRECONFIG_FILE" | cut -d'=' -f2)
# Extract PSK
PSK=$(grep '^psk=' "$PRECONFIG_FILE" | cut -d'=' -f2)
if [ -z "$SSID" ]; then
log "ERROR" "SSID not found in preconfigured file."
echo -e "${RED}SSID not found in preconfigured Wi-Fi file. Check the log for details.${NC}"
failed_apt_packages+=("SSID extraction from preconfigured Wi-Fi")
return 1
fi
# Create a new connection named after the SSID with priority 5
log "INFO" "Creating new Wi-Fi connection for SSID: $SSID with priority 5"
if nmcli connection add type wifi ifname wlan0 con-name "$SSID" ssid "$SSID" \
wifi-sec.key-mgmt wpa-psk wifi-sec.psk "$PSK" connection.autoconnect yes \
connection.autoconnect-priority 5 >> "$LOG_FILE" 2>&1; then
log "SUCCESS" "Created new Wi-Fi connection for SSID: $SSID"
else
log "ERROR" "Failed to create Wi-Fi connection for SSID: $SSID"
echo -e "${RED}Failed to create Wi-Fi connection for SSID: $SSID. Check the log for details.${NC}"
failed_apt_packages+=("Wi-Fi connection for SSID: $SSID")
fi
# Remove preconfigured file only after successful creation of new connections
rm "$PRECONFIG_FILE"
if [ $? -eq 0 ]; then
log "SUCCESS" "Removed preconfigured Wi-Fi connection file."
else
log "WARNING" "Failed to remove preconfigured Wi-Fi connection file."
fi
else
log "WARNING" "No preconfigured Wi-Fi connection file found."
fi
}
# Main execution
manage_wifi_connections