silvanmelchior / RPi_Cam_Web_Interface

A web interface for the RPi Cam
MIT License
1.53k stars 492 forks source link

does RPCWI have a network port signature? #603

Closed BETLOG closed 3 years ago

BETLOG commented 3 years ago

Does RPCWI have some kind of unique response to queries that I could use to determine which LAN machines actually have it installed and running on them? Ideally I'd like to be able to spend no more than 1 second querying each machine with something like nc, and conclusively determine if RPCWI is operational on them or not.

roberttidey commented 3 years ago

If you use nc to the port that the web server is supposed to be running on to determine that port is open then doing a wget from ip/html/status_mjpeg.txt would return a single word with the current status which could be "Error" "halted" "image" "tl_video" "video" "tl_md_video" "timelapse" "ready" "tl_md_ready" "md_ready"

If the web server is running but no RPCWI installed then you would get file not found error.