Automatically deducing the patrol run number and room id based on previously saved data