Get the availablity status of parking lots online and save your fuel!
- Nodemcu v2
- RFID reader & tags
Install dependencies using npm install
in server directory.
DELIMITER |
CREATE TRIGGER INC
AFTER INSERT ON INFO
FOR EACH ROW
BEGIN
UPDATE STAT
SET OCCUPIED_COUNT = OCCUPIED_COUNT + 1
WHERE PARKINGID = PID;
END;
|
DELIMITER ;
DELIMITER |
CREATE TRIGGER DEC
AFTER UPDATE ON INFO
FOR EACH ROW
BEGIN
UPDATE STAT
SET OCCUPIED_COUNT = OCCUPIED_COUNT - 1
WHERE PARKINGID = PID;
END;
|
DELIMITER ;
This project is licensed under the MIT License - see the License