Added shutoff when current is sensed when enabling tool
Also made a number of fixes to current sensing, which was quite broken.
Shorted modbus timeout
Fixed a few issues setting up tooltron on Marvin
Adding init script for mainbox installation
Fixed problems with previous fix
Fixed exception in event add page
Fixed card removal detection
Also switched from using seek command to select command with the reader.Select returns a result immediately, rather than seek which firstreturns an "in progress" error then later returns the card (as far as Ican tell).
Removed pid file necessity
Still uses it if running as root, but otherwise doesn't bother. Shouldbe a bit easier for local testing.
Added clarifying comment for code that confused me
TODO document all this lol
Fixed event queue bug
Implemented code for new RFID readers
It's not fully working yet. When the checksum is enabled, it ignores allresponses. Also, it no longer recognizes a missing card.
Added LRU eviction to cache. Not tested yet.
Fixed build warnings from last commit
Added automatic subscription to roboclub-gb on user creation
Added stop command and fixed pid file deletion
Added new view roboauthall
It returns bitmask of all tool permissions for a given user
Major changes to mainbox code.
-Added local cache for RFID -> tool permissions-Queries new page /crm/roboauth/%08x, which gives bitmask of all toolpermissions instead of just one-Added pid file at /var/run/tooltron.pid-Now must be run as "tooltron run" and also has "tooltron refresh" and...
Added new logging functions which inject timestamps
Changed URLs to match actual server
Removed some of the fields on the add user admin page
Removed rfid_restart flag
This way the AVR will always repoll the rfid reader after the timeout,so hopefully it will never hang. Who knows?
query.c has optional debug output for /add_card_event
Also available in: Atom