Connects to wss://api.motionapi.pro/v1/stream, subscribes to a single device, and appends one line per received packet to a log file: # motionapi-logger session start ...