An interface and back-end for simple ESP8266 park monitoring.
https://simple-park-web.000webhostapp.com/slots
https://simple-park-web.000webhostapp.com/api/available-slot
{
"selected_slot": <int>
}
An endpoint to get an available slot. The system will provide a non-occupied slot, the default is 1, 2, 3, until len(slots).
https://simple-park-web.000webhostapp.com/api/check-in/{id_slot}
id_slot = uint; range(1,len(slots)+1)
{
"error": <bool>
}
An endpoint to reserve a slot. You can get the allocated slot by available-slot endpoint. Return a bool, stated there's an error or not. If there's no error or conflict, the following slot will change to 'occupied'.
https://simple-park-web.000webhostapp.com/api/check-out/{id_slot}
id_slot = uint; range(1,len(slots)+1)
{
"error": <bool>
}
This endpoint is called when a vehicle leave the {id_slot} slot. Return a bool, stated there's an error or not. If there's no error or conflict, the following slot will change to 'available'.