@echo off rem ModForge factory camera: printer RTSPS -> HLS -> local server -> Tailscale Funnel rem NOTE: 804af4e7 is filled in at install time. The code lives only on this PC. cd /d C:\modforge\cam taskkill /F /IM ffmpeg.exe 2>nul powershell -NoProfile -Command "Start-Process python -ArgumentList 'server.py' -WindowStyle Minimized -WorkingDirectory 'C:\modforge\cam'" powershell -NoProfile -Command "Start-Sleep -Seconds 2" powershell -NoProfile -Command "Start-Process ffmpeg -ArgumentList '-hide_banner','-loglevel','error','-tls_verify','0','-rtsp_transport','tcp','-i','rtsps://bblp:804af4e7@192.168.1.2:322/streaming/live/1','-c:v','copy','-an','-f','hls','-hls_time','4','-hls_list_size','8','-hls_flags','delete_segments+append_list+omit_endlist','-hls_segment_filename','seg%%03d.ts','live.m3u8' -WindowStyle Minimized -WorkingDirectory 'C:\modforge\cam'" tailscale funnel --bg 8080 echo --- Funnel status: --- tailscale funnel status