tpg/opendispense2.git
11 years agoClient - Allowed menu to cursor onto expensive items (not selectable)
John Hodge [Fri, 22 Feb 2013 02:03:04 +0000 (10:03 +0800)]
Client - Allowed menu to cursor onto expensive items (not selectable)

11 years agoserver/door - cleared door serial buffer on open, just in case
John Hodge [Fri, 22 Feb 2013 01:56:00 +0000 (09:56 +0800)]
server/door - cleared door serial buffer on open, just in case

11 years agoServer - Disabled snack dispensing, handled by vendserv
John Hodge [Fri, 22 Feb 2013 01:55:41 +0000 (09:55 +0800)]
Server - Disabled snack dispensing, handled by vendserv

11 years agoImplimented pin checks fully
John Hodge [Sat, 12 Jan 2013 13:55:24 +0000 (21:55 +0800)]
Implimented pin checks fully

11 years agoPin checks and disabled account behavior
John Hodge [Sat, 12 Jan 2013 13:09:57 +0000 (21:09 +0800)]
Pin checks and disabled account behavior

12 years agoClient - Fixed funny colours
John Hodge [Sun, 15 Jul 2012 13:52:11 +0000 (21:52 +0800)]
Client - Fixed funny colours

12 years agoAdded a manpage makefile
John Hodge [Thu, 12 Jul 2012 08:16:28 +0000 (16:16 +0800)]
Added a manpage makefile

12 years agoServer - Implimented pins in server code
John Hodge [Wed, 11 Jul 2012 14:31:53 +0000 (22:31 +0800)]
Server - Implimented pins in server code

12 years agoNoted libmodbus requirement in the README
John Hodge [Wed, 11 Jul 2012 12:52:57 +0000 (20:52 +0800)]
Noted libmodbus requirement in the README

12 years agoClient - Added colours and fixed help string
John Hodge [Wed, 11 Jul 2012 11:27:59 +0000 (19:27 +0800)]
Client - Added colours and fixed help string

12 years agoClient - Broke the client out into separate files
John Hodge [Wed, 11 Jul 2012 10:51:55 +0000 (18:51 +0800)]
Client - Broke the client out into separate files

- Added help to the ncurses display

12 years agoAllowed transferring to/from disabled accounts
John Hodge [Mon, 4 Jun 2012 02:37:25 +0000 (10:37 +0800)]
Allowed transferring to/from disabled accounts

12 years agoCoke - Dropped minimum period to 2s (about what the hardware limit is)
John Hodge [Fri, 27 Apr 2012 03:27:59 +0000 (11:27 +0800)]
Coke - Dropped minimum period to 2s (about what the hardware limit is)

12 years agoServer - Changed logging to note when a test dispense is done
John Hodge [Fri, 27 Apr 2012 03:27:41 +0000 (11:27 +0800)]
Server - Changed logging to note when a test dispense is done

12 years agoClient - Fixed edge case where -coke is interpreted as a count of dispenses
John Hodge [Fri, 27 Apr 2012 03:26:52 +0000 (11:26 +0800)]
Client - Fixed edge case where -coke is interpreted as a count of dispenses

12 years agoServer - Deduplicated PIDfile name
John Hodge [Mon, 19 Mar 2012 13:31:14 +0000 (21:31 +0800)]
Server - Deduplicated PIDfile name

12 years agoServer - Moved to new door control (via 115200 USB serial)
John Hodge [Mon, 19 Mar 2012 13:30:54 +0000 (21:30 +0800)]
Server - Moved to new door control (via 115200 USB serial)

12 years agoClient - Better scrolling (jk and arrows work)
John Hodge [Sun, 11 Mar 2012 09:22:55 +0000 (17:22 +0800)]
Client - Better scrolling (jk and arrows work)

12 years agoDocumented `dispense donate`
John Hodge [Mon, 13 Feb 2012 11:30:02 +0000 (19:30 +0800)]
Documented `dispense donate`

12 years agoFixes from when the new coke controller was tested
John Hodge [Tue, 31 Jan 2012 06:41:38 +0000 (14:41 +0800)]
Fixes from when the new coke controller was tested

12 years agoFixed test mode defaulting to on when invalid value
John Hodge [Tue, 17 Jan 2012 10:06:46 +0000 (18:06 +0800)]
Fixed test mode defaulting to on when invalid value

12 years agoAdded zero-cost testing hack
John Hodge [Sat, 14 Jan 2012 16:18:29 +0000 (00:18 +0800)]
Added zero-cost testing hack

12 years agoFixes to new coke code, appears to work now
John Hodge [Sat, 14 Jan 2012 15:17:28 +0000 (23:17 +0800)]
Fixes to new coke code, appears to work now

12 years agoAdded basic error reporting to coke code
John Hodge [Tue, 27 Dec 2011 23:37:08 +0000 (07:37 +0800)]
Added basic error reporting to coke code

12 years agoSlight clean to coke code
John Hodge [Tue, 27 Dec 2011 23:36:26 +0000 (07:36 +0800)]
Slight clean to coke code

12 years agoMerge branch 'master' of serenade.mutabah.net:opendispense2
John Hodge [Tue, 27 Dec 2011 23:17:26 +0000 (07:17 +0800)]
Merge branch 'master' of serenade.mutabah.net:opendispense2

12 years agoCommenting in server.c
John Hodge [Tue, 27 Dec 2011 23:15:49 +0000 (07:15 +0800)]
Commenting in server.c

12 years agoCleaning up warnings in client
John Hodge [Tue, 27 Dec 2011 10:35:55 +0000 (18:35 +0800)]
Cleaning up warnings in client

12 years agoDebugging authident, adding new config file
John Hodge [Tue, 27 Dec 2011 10:20:29 +0000 (18:20 +0800)]
Debugging authident, adding new config file

12 years agoRemoved an unneeded error message from client
John Hodge [Tue, 27 Dec 2011 09:39:24 +0000 (17:39 +0800)]
Removed an unneeded error message from client

12 years agoAdding new config system, template modbus coke, AUTHIDENT in client
John Hodge [Tue, 27 Dec 2011 09:34:32 +0000 (17:34 +0800)]
Adding new config system, template modbus coke, AUTHIDENT in client

13 years agoServer - Slight fixes to coke handler to cope with the machine being dodge
John Hodge [Tue, 8 Nov 2011 04:33:28 +0000 (12:33 +0800)]
Server - Slight fixes to coke handler to cope with the machine being dodge

13 years ago[PATCH] server - make the finger output historically accurate
David Adam (zanchey) [Mon, 24 Oct 2011 09:13:18 +0000 (17:13 +0800)]
[PATCH] server - make the finger output historically accurate

13 years agoServer - Added bac to mark zero priced slots as erroring
John Hodge [Wed, 19 Oct 2011 09:30:36 +0000 (17:30 +0800)]
Server - Added bac to mark zero priced slots as erroring

13 years agoAdded finger support
John Hodge [Wed, 19 Oct 2011 05:40:51 +0000 (13:40 +0800)]
Added finger support

13 years agoServer - Fixed SETEUSER not checking disabled flag
John Hodge [Wed, 19 Oct 2011 05:26:35 +0000 (13:26 +0800)]
Server - Fixed SETEUSER not checking disabled flag

13 years agoMisc changes - Fixed coke, shut up boot, fixed disabled users dispensing
John Hodge [Wed, 19 Oct 2011 05:24:28 +0000 (13:24 +0800)]
Misc changes - Fixed coke, shut up boot, fixed disabled users dispensing

13 years agoApplied fixes to AUTHIDENT - works
John Hodge [Sun, 11 Sep 2011 05:58:31 +0000 (13:58 +0800)]
Applied fixes to AUTHIDENT - works

- Thanks goes to Zanchey [DAA] for AUTHIDENT
- Also disabled coke debug

13 years ago[PATCH] client - spell amount correctly in help text
David Adam (zanchey) [Thu, 8 Sep 2011 15:05:00 +0000 (23:05 +0800)]
[PATCH] client - spell amount correctly in help text

13 years ago[PATCH] server - allow IDENT auth by anyone from a trusted subnet
David Adam (zanchey) [Thu, 8 Sep 2011 12:55:01 +0000 (20:55 +0800)]
[PATCH] server - allow IDENT auth by anyone from a trusted subnet

13 years agoThe door, it is fixed
John Hodge [Thu, 8 Sep 2011 02:52:50 +0000 (10:52 +0800)]
The door, it is fixed

13 years agoApplied patches from DAA
David Adam (zanchey) [Thu, 8 Sep 2011 02:19:04 +0000 (10:19 +0800)]
Applied patches from DAA

- [PATCH 1/2] manpage: spell amount correctly
- [PATCH 2/2] manpage: tidy up trailing commas
- [PATCH 1/2] .gitignore - ignore compiled client binary
- [PATCH 2/2] .gitignore - ignore compiled shared libraries

13 years agoServer - Add authentication by IDENT support
David Adam (zanchey) [Tue, 30 Aug 2011 15:35:37 +0000 (23:35 +0800)]
Server - Add authentication by IDENT support

13 years agoFixed client makefile for clean
John Hodge [Tue, 30 Aug 2011 15:14:49 +0000 (23:14 +0800)]
Fixed client makefile for clean

13 years agoFixed door for direct serial
John Hodge [Tue, 30 Aug 2011 07:22:50 +0000 (15:22 +0800)]
Fixed door for direct serial

13 years agoClient - Switched back to cents display, fixed an infinite loop in ReadLine
John Hodge [Tue, 23 Aug 2011 23:47:27 +0000 (07:47 +0800)]
Client - Switched back to cents display, fixed an infinite loop in ReadLine

13 years agoFixed price display
John Hodge [Mon, 22 Aug 2011 12:58:39 +0000 (20:58 +0800)]
Fixed price display

13 years agoClient - Fixed scrolling code
John Hodge [Mon, 22 Aug 2011 11:41:25 +0000 (19:41 +0800)]
Client - Fixed scrolling code

13 years agoclient - Fixed some bugs with long prices
John Hodge [Mon, 22 Aug 2011 10:58:40 +0000 (18:58 +0800)]
client - Fixed some bugs with long prices

13 years agoSet baud rate to 1200 for door code
John Hodge [Mon, 27 Jun 2011 13:54:40 +0000 (21:54 +0800)]
Set baud rate to 1200 for door code

13 years agoChanged door code to use direct serial instead of llogin
John Hodge [Mon, 27 Jun 2011 09:27:49 +0000 (17:27 +0800)]
Changed door code to use direct serial instead of llogin

- The DECServer gave up the magic smoke on the weekend

13 years agoManual page :)
John Hodge [Fri, 17 Jun 2011 14:24:08 +0000 (22:24 +0800)]
Manual page :)

13 years agoClient - Fix to possible infinite loop in ReadLine
John Hodge [Tue, 14 Jun 2011 15:42:29 +0000 (23:42 +0800)]
Client - Fix to possible infinite loop in ReadLine

- If the remote host closes, recv() returns 0, this was not checked
 > Caused 100% CPU on motsugo when un in a backup script

13 years agoRenamed liability account
John Hodge [Fri, 3 Jun 2011 08:52:47 +0000 (16:52 +0800)]
Renamed liability account

13 years agoClient - Documentation for `enumitems` (commented out)
John Hodge [Fri, 20 May 2011 05:32:11 +0000 (13:32 +0800)]
Client - Documentation for `enumitems` (commented out)

13 years agoServer - Root behavior
John Hodge [Fri, 20 May 2011 05:29:17 +0000 (13:29 +0800)]
Server - Root behavior

- Disallowed heathred
- Disallowed root to use `dispense acct`
 > Exception for new accounts (matches "treasurer: new user")
- Fixed username not being set for AUTOAUTH

13 years agoFixed client error, added dead snack catch, fixing server io redirection
John Hodge [Thu, 5 May 2011 06:04:58 +0000 (14:04 +0800)]
Fixed client error, added dead snack catch, fixing server io redirection

13 years agoExtra help info, fixed logging for dispense failures, possible fix for logging errors
John Hodge [Wed, 4 May 2011 06:49:49 +0000 (14:49 +0800)]
Extra help info, fixed logging for dispense failures, possible fix for logging errors

13 years agoAdded merlo to trusted list and changed default server to merlo
John Hodge [Sun, 10 Apr 2011 09:43:08 +0000 (17:43 +0800)]
Added merlo to trusted list and changed default server to merlo

13 years ago[TPG] Fixes to bugs exposed during move
John Hodge [Sun, 10 Apr 2011 09:38:48 +0000 (17:38 +0800)]
[TPG] Fixes to bugs exposed during move

- Serial Input/Output flags were left unset
- Coke debug enabled
- Empty line detection added to slot status reads.
- Fixed compile issues in client (OpenSSL is no longer needed)

13 years agoFixed bug with item selection (>= instead of > for price check)
John Hodge [Sat, 9 Apr 2011 03:45:17 +0000 (11:45 +0800)]
Fixed bug with item selection (>= instead of > for price check)

13 years agoMultiple fixes
John Hodge [Fri, 25 Mar 2011 06:35:32 +0000 (14:35 +0800)]
Multiple fixes

- Client fixed to pass error messages correctly
- Fiddling with client ReadLine (was infinite looping, should be fixed now)
- Fixed server to start the timer thread in the main process (not the parent)
- Added a hack to detect refund `dispense acct` messages and reject them

13 years agoFixing some issues spotted by graham's run of clang's static analyser
John Hodge [Mon, 21 Mar 2011 01:04:52 +0000 (09:04 +0800)]
Fixing some issues spotted by graham's run of clang's static analyser

13 years agoClient - Added a reason to user flag changes
John Hodge [Mon, 21 Mar 2011 00:50:24 +0000 (08:50 +0800)]
Client - Added a reason to user flag changes

13 years agoFixing bugs and slight cleanup
John Hodge [Mon, 21 Mar 2011 00:33:26 +0000 (08:33 +0800)]
Fixing bugs and slight cleanup

- Fixed issue with the USER_FLAGS and USER_ADD not checking authentication
 > They were relying on Bank_GetFlags, which returns -1 on error
- Changed 'donate' to its own destination account
- Updated client's --help output to show help for the current command
 > E.g. `dispense user --help` will give help for th euser family of commands

13 years agoFixed up daemonising implementation (now to test it)
John Hodge [Tue, 15 Mar 2011 05:24:57 +0000 (13:24 +0800)]
Fixed up daemonising implementation (now to test it)

13 years agoMisc changes, have flu so don't remember all of them
John Hodge [Sun, 13 Mar 2011 11:42:55 +0000 (19:42 +0800)]
Misc changes, have flu so don't remember all of them

13 years agoFixed not checking return value of recv()
John Hodge [Mon, 7 Mar 2011 01:13:45 +0000 (09:13 +0800)]
Fixed not checking return value of recv()

13 years agoFixing up logging (slot renames and gives)
John Hodge [Sat, 5 Mar 2011 08:16:23 +0000 (16:16 +0800)]
Fixing up logging (slot renames and gives)

13 years agoHey, `dispense -s` implemented!
John Hodge [Fri, 4 Mar 2011 09:58:33 +0000 (17:58 +0800)]
Hey, `dispense -s` implemented!

13 years agoMerge branch 'master' of ssh.ucc.asn.au:tpg/opendispense2
John Hodge [Fri, 4 Mar 2011 08:45:21 +0000 (16:45 +0800)]
Merge branch 'master' of ssh.ucc.asn.au:tpg/opendispense2

13 years agoImplementing item file editing (server-side implemented)
John Hodge [Fri, 4 Mar 2011 08:44:50 +0000 (16:44 +0800)]
Implementing item file editing (server-side implemented)

13 years agoFixed non-numeric arguments prefixed by '-' being allowed
John Hodge [Fri, 4 Mar 2011 08:43:22 +0000 (16:43 +0800)]
Fixed non-numeric arguments prefixed by '-' being allowed

13 years agoUpdating more return values, added commands to comments
John Hodge [Fri, 4 Mar 2011 08:40:50 +0000 (16:40 +0800)]
Updating more return values, added commands to comments

13 years agoFixing PID file behavior
John Hodge [Fri, 4 Mar 2011 08:40:31 +0000 (16:40 +0800)]
Fixing PID file behavior

13 years agoImpelemented REFUND command
John Hodge [Thu, 3 Mar 2011 14:53:04 +0000 (22:53 +0800)]
Impelemented REFUND command

13 years agoRemoved debug from cokebank
John Hodge [Thu, 3 Mar 2011 13:32:34 +0000 (21:32 +0800)]
Removed debug from cokebank

13 years agoFixed sleep (darn order of subtraction) :)
John Hodge [Thu, 3 Mar 2011 13:31:57 +0000 (21:31 +0800)]
Fixed sleep (darn order of subtraction) :)

13 years agoImplementing `dispense refund`, slight bugfixes, removed password auth
John Hodge [Thu, 3 Mar 2011 13:29:59 +0000 (21:29 +0800)]
Implementing `dispense refund`, slight bugfixes, removed password auth

- Password auth is currently unimplemented serverside, and was
  confusing users.

13 years agocoke - Added a delay to coke dispense
John Hodge [Mon, 28 Feb 2011 03:03:11 +0000 (11:03 +0800)]
coke - Added a delay to coke dispense

13 years agoserver - Ignored SIGPIPE (fixes crashes if the client quits unexpectedly)
John Hodge [Mon, 28 Feb 2011 03:02:50 +0000 (11:02 +0800)]
server - Ignored SIGPIPE (fixes crashes if the client quits unexpectedly)

13 years agoclient - Bugfixes (-u silently failed, and dispensed as the actual user)
John Hodge [Mon, 28 Feb 2011 03:02:02 +0000 (11:02 +0800)]
client - Bugfixes (-u silently failed, and dispensed as the actual user)

13 years agoAfter a rage with TRS, allowed `dispense acct` to take -ve, disabled new background...
John Hodge [Fri, 25 Feb 2011 07:24:33 +0000 (15:24 +0800)]
After a rage with TRS, allowed `dispense acct` to take -ve, disabled new background code

13 years agoFixed client returning 0 for error conditions (zero gives specifically)
John Hodge [Fri, 25 Feb 2011 01:03:22 +0000 (09:03 +0800)]
Fixed client returning 0 for error conditions (zero gives specifically)

13 years agoFixing client (clipping item names, balance display), made server delete pidfile
John Hodge [Fri, 25 Feb 2011 00:42:47 +0000 (08:42 +0800)]
Fixing client (clipping item names, balance display), made server delete pidfile

13 years agoImplemented `dispense -c`, bound SIGTERM to clean exist, re-created the pidfile
John Hodge [Thu, 24 Feb 2011 12:55:13 +0000 (20:55 +0800)]
Implemented `dispense -c`, bound SIGTERM to clean exist, re-created the pidfile

13 years agoCommenting, fixed Ctrl-C not working, Fixed a segfault in the server,
John Hodge [Wed, 23 Feb 2011 13:33:43 +0000 (21:33 +0800)]
Commenting, fixed Ctrl-C not working, Fixed a segfault in the server,
Added Dispense_Transfer (not implemented as a command yet)

13 years agoFixed up (most) return values
John Hodge [Wed, 23 Feb 2011 07:18:15 +0000 (15:18 +0800)]
Fixed up (most) return values

13 years agoAdded `iteminfo` command to client, fixed docs
John Hodge [Wed, 23 Feb 2011 05:34:44 +0000 (13:34 +0800)]
Added `iteminfo` command to client, fixed docs

13 years agoRandom fixes
John Hodge [Tue, 22 Feb 2011 10:44:22 +0000 (18:44 +0800)]
Random fixes

13 years agoFixed dispense give erroring on 3 arguments (and succeeding on 2)
John Hodge [Mon, 21 Feb 2011 14:15:18 +0000 (22:15 +0800)]
Fixed dispense give erroring on 3 arguments (and succeeding on 2)

13 years agoFixes fixes fixes, init.d script
John Hodge [Mon, 21 Feb 2011 14:00:23 +0000 (22:00 +0800)]
Fixes fixes fixes, init.d script

13 years agoCleanups ready for distribution
John Hodge [Mon, 21 Feb 2011 12:06:43 +0000 (20:06 +0800)]
Cleanups ready for distribution

- Added help message to the server
- Made door password a file instead of an option (keeps it out of ps)

13 years agoCleaned up dispense command handling
John Hodge [Mon, 21 Feb 2011 11:23:54 +0000 (19:23 +0800)]
Cleaned up dispense command handling

13 years agoBugfixes to coke handling, allowed give to internal
John Hodge [Mon, 21 Feb 2011 11:20:12 +0000 (19:20 +0800)]
Bugfixes to coke handling, allowed give to internal

13 years agoFixed bad coke status (slots not erroring if machine is unresponsive)
John Hodge [Mon, 21 Feb 2011 03:47:38 +0000 (11:47 +0800)]
Fixed bad coke status (slots not erroring if machine is unresponsive)

- Also removed a debug

13 years agoFixed segfault in coke code, diabled debug
John Hodge [Sun, 20 Feb 2011 10:50:02 +0000 (18:50 +0800)]
Fixed segfault in coke code, diabled debug

13 years agoError check in Coke_int_UpdateSlotStatuses
John Hodge [Sun, 20 Feb 2011 08:35:37 +0000 (16:35 +0800)]
Error check in Coke_int_UpdateSlotStatuses

13 years agoMerge branch 'master' of serenade.mutabah.net:opendispense2
John Hodge [Sun, 20 Feb 2011 08:25:26 +0000 (16:25 +0800)]
Merge branch 'master' of serenade.mutabah.net:opendispense2

Conflicts:
src/server/handler_coke.c

13 years agoMisc
John Hodge [Sun, 20 Feb 2011 08:23:19 +0000 (16:23 +0800)]
Misc

UCC git Repository :: git.ucc.asn.au