Shorted modbus timeout
Fixed a few issues setting up tooltron on Marvin
Adding init script for mainbox installation
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
Added LRU eviction to cache. Not tested yet.
Fixed build warnings from last commit
Added stop command and fixed pid file deletion
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
query.c has optional debug output for /add_card_event
Event submissions from ./tooltron tested and working
Added username/password to add_event query
Fixed curl SSL queries failing and queue bug
Added query_add_event to mainbox code
mainbox now prints error on 404 or 500 from server
Made errors less noisy
If it can't connect to a tool, it will print an error once, and thenprint another message when it is able to reconnect.
Added getopt for inputting serial device and CRM server
Added query.c for queries from database web interface
Made rfid.c more robust against false negatives
Also changed LED code to be more generally usable, and changed mainboxto grant access to a particular user id instead of randomly choosing
Fixes. It tooltrons at a basic level now.
Added LED blinking, and other fixes
Added printing the response timeout, and other fixes
- Fixed using SLAVE_ADDR instead of tool->address- Replaced read_registers with read_input_registers
Renamed tool_get_user to tool_read_user
Initial commit of mainbox code.