Moonlight
Moonlight
IImmich
Created by Moonlight on 2/8/2025 in #help-desk-support
How to detect new image arriving to trigger my own pipeline?
Thxxxxxxxxx
31 replies
IImmich
Created by Moonlight on 2/8/2025 in #help-desk-support
How to detect new image arriving to trigger my own pipeline?
Yes ! The docker logs immich_server show unauthorized access when I don't use it and just Connect + Disconnect when I do so I expect it's fine !
31 replies
IImmich
Created by Moonlight on 2/8/2025 in #help-desk-support
How to detect new image arriving to trigger my own pipeline?
Looks like I didn't need to auth, I just updated the path to /api/socket.io/
31 replies
IImmich
Created by Moonlight on 2/8/2025 in #help-desk-support
How to detect new image arriving to trigger my own pipeline?
AMAZING
31 replies
IImmich
Created by Moonlight on 2/8/2025 in #help-desk-support
How to detect new image arriving to trigger my own pipeline?
(.env) poro@poro-P65-P67RGRERA:~/recipe-flow$ python3 test_socket.py
Attempting WebSocket connection to ws://10.0.0.164:2283/api/socket.io/?transport=websocket&EIO=4
WebSocket connection accepted with {'sid': 'uDQqb1wcR_bMlvHeAAAG', 'upgrades': [], 'pingInterval': 25000, 'pingTimeout': 20000, 'maxPayload': 1000000}
Engine.IO connection established
Sending packet MESSAGE data 0{}
Received packet MESSAGE data 0{"sid":"t0f54-CROVZ3dIQkAAAH"}
Namespace / is connected
✅ Connected to Immich WebSocket
(.env) poro@poro-P65-P67RGRERA:~/recipe-flow$ python3 test_socket.py
Attempting WebSocket connection to ws://10.0.0.164:2283/api/socket.io/?transport=websocket&EIO=4
WebSocket connection accepted with {'sid': 'uDQqb1wcR_bMlvHeAAAG', 'upgrades': [], 'pingInterval': 25000, 'pingTimeout': 20000, 'maxPayload': 1000000}
Engine.IO connection established
Sending packet MESSAGE data 0{}
Received packet MESSAGE data 0{"sid":"t0f54-CROVZ3dIQkAAAH"}
Namespace / is connected
✅ Connected to Immich WebSocket
31 replies
IImmich
Created by Moonlight on 2/8/2025 in #help-desk-support
How to detect new image arriving to trigger my own pipeline?
Ah you mean /api/socket.io yeah I fully missed that
31 replies
IImmich
Created by Moonlight on 2/8/2025 in #help-desk-support
How to detect new image arriving to trigger my own pipeline?
Cause I tried
(.env) poro@poro-P65-P67RGRERA:~/recipe-flow$ npx wscat -c "ws://10.0.0.164:2283/socket.io/?EIO=4&transport=websocket" -H "Authorization: Bearer <my-api-key>"
error: socket hang up
(.env) poro@poro-P65-P67RGRERA:~/recipe-flow$ npx wscat -c "ws://10.0.0.164:2283/socket.io/?EIO=4&transport=websocket" -H "Authorization: Bearer <my-api-key>"
error: socket hang up
31 replies
IImmich
Created by Moonlight on 2/8/2025 in #help-desk-support
How to detect new image arriving to trigger my own pipeline?
Yeah I was wondering, using the API key would auth?
31 replies
IImmich
Created by Moonlight on 2/8/2025 in #help-desk-support
How to detect new image arriving to trigger my own pipeline?
Ah my bad yes it's ws not http
31 replies
IImmich
Created by Moonlight on 2/8/2025 in #help-desk-support
How to detect new image arriving to trigger my own pipeline?
Trying to connect to the socket but no success: Here's my simple python script:
import socketio

sio = socketio.Client(logger=True, engineio_logger=True)

IMMICH_WS_URL = "http://10.0.0.164:2283"

try:
sio.connect(IMMICH_WS_URL, transports=["websocket"], socketio_path="/socket.io/")
print("✅ Connected to Immich WebSocket")
except Exception as e:
print("❌ WebSocket Connection Failed:", e)
import socketio

sio = socketio.Client(logger=True, engineio_logger=True)

IMMICH_WS_URL = "http://10.0.0.164:2283"

try:
sio.connect(IMMICH_WS_URL, transports=["websocket"], socketio_path="/socket.io/")
print("✅ Connected to Immich WebSocket")
except Exception as e:
print("❌ WebSocket Connection Failed:", e)
Which returns:
Attempting WebSocket connection to ws://10.0.0.164:2283/socket.io/?transport=websocket&EIO=4
:x: WebSocket Connection Failed: Connection error
Attempting WebSocket connection to ws://10.0.0.164:2283/socket.io/?transport=websocket&EIO=4
:x: WebSocket Connection Failed: Connection error
I've checked with curl and wscat as well and it doesn't seem to connect to it?
31 replies
IImmich
Created by Moonlight on 2/8/2025 in #help-desk-support
How to detect new image arriving to trigger my own pipeline?
Live would be incredible ! I've never heard of websockets until today so lemme check how to grab those ! Is there any code, tutorial I should look for in particular?
31 replies