Skip to content

Commit 6ceeed9

Browse files
Alexclaude
andcommitted
v1.8.6: Pi5 provisioning dynamic IP detection
redis-init service now uses network_mode: host + hostname -I to detect IP dynamically instead of hardcoding $PI_IP. Prevents stale IP in Redis when Pi5 changes networks. Also removed MY_IP env var from anthias-server (unused on Pi5). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 57a2956 commit 6ceeed9

4 files changed

Lines changed: 12 additions & 10 deletions

File tree

provision/templates/docker-compose-player-pi5.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,10 @@ services:
22
redis-init:
33
image: ghcr.io/alex1981-tech/anthias-redis:latest-pi5-64
44
restart: "no"
5+
network_mode: host
56
depends_on:
67
- redis
7-
entrypoint: >
8-
sh -c "
9-
sleep 2 &&
10-
redis-cli -h redis SET host_agent_ready true &&
11-
redis-cli -h redis SET ip_addresses_ready true &&
12-
redis-cli -h redis SET ip_addresses '[\"$PI_IP\"]' &&
13-
echo 'Redis keys initialized'
14-
"
8+
entrypoint: ["sh", "-c", "sleep 3 && HOST_IP=$$(hostname -I | awk '{print $$1}') && redis-cli -h 127.0.0.1 SET host_agent_ready true && redis-cli -h 127.0.0.1 SET ip_addresses_ready true && redis-cli -h 127.0.0.1 SET ip_addresses \"[\\\"$$HOST_IP\\\"]\" && echo Redis init IP: $$HOST_IP"]
159

1610
anthias-server:
1711
image: ghcr.io/alex1981-tech/anthias-server:latest-pi5-64
@@ -22,7 +16,6 @@ services:
2216
- LISTEN=0.0.0.0
2317
- CELERY_BROKER_URL=redis://redis:6379/0
2418
- CELERY_RESULT_BACKEND=redis://redis:6379/0
25-
- MY_IP=$PI_IP
2619
- HOST_USER=$PI_USER
2720
- HOME=/data
2821
- DEVICE_TYPE=pi5

static/src/changelog.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export const APP_VERSION = '1.8.5'
1+
export const APP_VERSION = '1.8.6'
22

33
export interface ChangelogEntry {
44
version: string
@@ -7,6 +7,13 @@ export interface ChangelogEntry {
77
}
88

99
export const changelog: ChangelogEntry[] = [
10+
{
11+
version: '1.8.6',
12+
date: '2026-02-19',
13+
changeKeys: [
14+
'pi5ProvisionDynamicIp',
15+
],
16+
},
1017
{
1118
version: '1.8.5',
1219
date: '2026-02-19',

static/src/locales/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,7 @@
516516
"cctvHlsPlayback": "Players now stream CCTV via direct HLS video (smooth playback instead of JPEG snapshots)",
517517
"phonehomeMacFix": "Phone-home script now sends MAC address and device info for reliable identity",
518518
"provisionMacDedup": "Provisioning identifies players by MAC address to prevent duplicates",
519+
"pi5ProvisionDynamicIp": "Pi5 provisioning: redis-init now detects IP dynamically instead of hardcoding, preventing stale IP after network changes",
519520
"fixPhonehomeAuth": "Fixed phone-home script: auth header line continuation bug prevented player registration"
520521
}
521522
},

static/src/locales/uk.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,7 @@
516516
"cctvHlsPlayback": "Плеєри тепер транслюють CCTV через HLS відео (плавне відтворення замість JPEG знімків)",
517517
"phonehomeMacFix": "Скрипт phone-home тепер надсилає MAC-адресу та інформацію про пристрій",
518518
"provisionMacDedup": "Провізіонінг ідентифікує плеєри за MAC-адресою для запобігання дублікатів",
519+
"pi5ProvisionDynamicIp": "Провізіонінг Pi5: redis-init тепер визначає IP автоматично замість хардкоду, запобігає застарілому IP після зміни мережі",
519520
"fixPhonehomeAuth": "Виправлено скрипт phone-home: помилка line continuation у auth заголовку перешкоджала реєстрації"
520521
}
521522
},

0 commit comments

Comments
 (0)