only run if connected to network and camera available