add data-url for new routes, ensure sensor_id exists