mirror of
				https://github.com/zyphlar/doorlock.git
				synced 2024-04-03 21:36:03 +00:00 
			
		
		
		
	Readme
This commit is contained in:
		
							parent
							
								
									d05c970b56
								
							
						
					
					
						commit
						21ad62a1f8
					
				@ -33,14 +33,20 @@ To open the door, we use a relay (or optionally a TIP120 transistor) which power
 | 
			
		||||
 | 
			
		||||
#### OLED Display
 | 
			
		||||
 | 
			
		||||
Whether a success or failure, we should details on an attached OLED display as well as when the card list updates or other unexpected issues.
 | 
			
		||||
Whether a success or failure, we show details on an attached OLED display as well as when the card list updates or other unexpected issues.
 | 
			
		||||
 | 
			
		||||
#### API Member RFID Card Sync
 | 
			
		||||
 | 
			
		||||
When the device first turns on it connects to WiFi and then fetches all the member RFID cards from the Cobot checkin token API and then updates the `json` card file. It completely overwrites the existing list of cards. If there is a failure getting the cards, we keep the original card list as a fallback.
 | 
			
		||||
 | 
			
		||||
We periodically sync this list every few minutes (configurable).
 | 
			
		||||
 | 
			
		||||
Eventually, we can remove Cobot and swap it with our own service if we desire.
 | 
			
		||||
 | 
			
		||||
#### Access Log
 | 
			
		||||
 | 
			
		||||
We log every door open event so we can keep and eye on usage. We log an entry containing the member name, datetime and RFID card number in a `json` file. This list is sent to Cobot periodically so we can create a "checkin" for a member. Once the list is pushed successfully we clear out the file.
 | 
			
		||||
 | 
			
		||||
## Development
 | 
			
		||||
 | 
			
		||||
First, follow the [start guide][start] on [Tessel.io][tessel].
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user