tpg/opendispense2.git
13 years agoCleaning up the NCurses GUI
John Hodge [Wed, 5 Jan 2011 05:00:24 +0000 (13:45 +0845)]
Cleaning up the NCurses GUI

13 years agoCleanup work (much needed)
John Hodge [Wed, 5 Jan 2011 04:36:05 +0000 (13:21 +0845)]
Cleanup work (much needed)

- Added basic logging code (TODO: USe syslog)
- Cleaned up client to remove that monolithic main()
- Added proper value for the dispense reason passed to CokeBank
- Added logging to basic CokeBank

13 years agoMore fiddling with coke code
John Hodge [Sat, 4 Dec 2010 15:54:47 +0000 (23:54 +0800)]
More fiddling with coke code

- TODO: Wait for a prompt correctly (if there is nothing waiting,
  send newlines until we get the colon prompt)

13 years agoMoved serial port opening out into a helper, added delay
John Hodge [Sat, 4 Dec 2010 13:05:49 +0000 (21:05 +0800)]
Moved serial port opening out into a helper, added delay
to coke read.

13 years agoFixing serial handling
John Hodge [Sat, 4 Dec 2010 12:50:27 +0000 (20:50 +0800)]
Fixing serial handling

13 years agoAdded log of coke machine test with picocom
John Hodge [Sat, 4 Dec 2010 12:24:19 +0000 (20:24 +0800)]
Added log of coke machine test with picocom

13 years agoUpdated items, set coke port to USB
John Hodge [Sat, 4 Dec 2010 11:54:57 +0000 (19:54 +0800)]
Updated items, set coke port to USB

13 years agoCleaning up client code and server responses
John Hodge [Sat, 4 Dec 2010 10:41:16 +0000 (18:41 +0800)]
Cleaning up client code and server responses

- Commenting, it is nice :)
- Changed the handler interface to return boolean failure
- Cleaned up the server responses to correctly correspond with
  the sped

13 years agoFixing coke handler and login (a nice cleanup)
John Hodge [Sat, 4 Dec 2010 10:08:01 +0000 (18:08 +0800)]
Fixing coke handler and login (a nice cleanup)

13 years agoWorking on password-based user auth
John Hodge [Sat, 4 Dec 2010 09:43:22 +0000 (17:43 +0800)]
Working on password-based user auth

13 years agoDoor controller code (well, the start of it)
John Hodge [Sat, 4 Dec 2010 08:18:00 +0000 (16:18 +0800)]
Door controller code (well, the start of it)

13 years agoSnack handler added
John Hodge [Sat, 4 Dec 2010 08:09:42 +0000 (16:09 +0800)]
Snack handler added

13 years agoCleaning up client code
John Hodge [Sat, 4 Dec 2010 08:09:32 +0000 (16:09 +0800)]
Cleaning up client code

13 years agoStart on a ncurses GUI
John Hodge [Tue, 30 Nov 2010 13:45:00 +0000 (21:45 +0800)]
Start on a ncurses GUI

> Very sparcely commented atm, and really needs to be sorted out,
  but it renders.

13 years agoFiddling with UI design
John Hodge [Tue, 30 Nov 2010 11:40:57 +0000 (19:40 +0800)]
Fiddling with UI design

13 years agoMerge branch 'master' of serenade.mutabah.net:opendispense2
John Hodge [Tue, 30 Nov 2010 11:27:52 +0000 (19:27 +0800)]
Merge branch 'master' of serenade.mutabah.net:opendispense2

13 years agoUser auths and client UI design
John Hodge [Tue, 30 Nov 2010 11:25:12 +0000 (19:25 +0800)]
User auths and client UI design

> Changed AUTOAUTH to return 404 on bad user
> Started work on a UI design for the `dispense` app

14 years agoSnack machine handlers
John Hodge [Tue, 23 Nov 2010 03:30:49 +0000 (11:30 +0800)]
Snack machine handlers

14 years agoClient work
John Hodge [Tue, 23 Nov 2010 03:27:54 +0000 (11:27 +0800)]
Client work

- You could dispense now, if the client actually authed

14 years agoStarted on the client
John Hodge [Sat, 20 Nov 2010 22:02:17 +0000 (06:02 +0800)]
Started on the client

- Also, fiddle, fiddle, fiddle

14 years agoFixed coke handler regex, added init for handlers
John Hodge [Sat, 20 Nov 2010 19:03:51 +0000 (03:03 +0800)]
Fixed coke handler regex, added init for handlers

14 years agoCleanups of bugs and segfaults
John Hodge [Sat, 20 Nov 2010 18:11:07 +0000 (02:11 +0800)]
Cleanups of bugs and segfaults

14 years agoFixing basic cokebank to actually work
John Hodge [Sat, 20 Nov 2010 17:34:31 +0000 (01:34 +0800)]
Fixing basic cokebank to actually work

14 years agoStarted work on an alternate cokebank that actually does something
John Hodge [Sat, 20 Nov 2010 17:04:18 +0000 (01:04 +0800)]
Started work on an alternate cokebank that actually does something

14 years agoWhy didn't this update properly?
John Hodge [Sat, 20 Nov 2010 15:12:51 +0000 (23:12 +0800)]
Why didn't this update properly?

14 years agoRestructured code into src/<module>
John Hodge [Sat, 20 Nov 2010 15:09:24 +0000 (23:09 +0800)]
Restructured code into src/<module>

- Added cokebank library
 > Also changed API slightly
- Implemented more of the protocol in server.c
- Coke handler started
- Other misc changes

14 years agoItem file parsing :)
John Hodge [Sat, 20 Nov 2010 07:47:58 +0000 (15:47 +0800)]
Item file parsing :)

- Added --itemfile to change the item file from the default
- Used the POSIX regex library to parse the item file
- Random cleanups

14 years agoWorking on item database
John Hodge [Sat, 20 Nov 2010 06:08:27 +0000 (14:08 +0800)]
Working on item database

14 years agoIt's been so long, I don't know what I did
John Hodge [Fri, 6 Aug 2010 11:32:52 +0000 (19:32 +0800)]
It's been so long, I don't know what I did

14 years agoCleaning up cokebank code
John Hodge [Mon, 12 Jul 2010 02:35:25 +0000 (10:35 +0800)]
Cleaning up cokebank code

14 years agoAnd, modified .gitignore to ignore the binary
John Hodge [Mon, 12 Jul 2010 02:00:30 +0000 (10:00 +0800)]
And, modified .gitignore to ignore the binary

14 years agoHey, It's a .gitignore file!
John Hodge [Mon, 12 Jul 2010 02:00:01 +0000 (10:00 +0800)]
Hey, It's a .gitignore file!

14 years agoImplemented AUTOAUTH
John Hodge [Mon, 12 Jul 2010 01:59:05 +0000 (09:59 +0800)]
Implemented AUTOAUTH

14 years agoAdding some nice debug
John Hodge [Sun, 11 Jul 2010 15:18:49 +0000 (23:18 +0800)]
Adding some nice debug

14 years agoServer now listens and accepts connections (and returns a value to USER)
John Hodge [Sun, 11 Jul 2010 14:39:17 +0000 (22:39 +0800)]
Server now listens and accepts connections (and returns a value to USER)

14 years agoCompile fixes
John Hodge [Sun, 11 Jul 2010 14:10:46 +0000 (22:10 +0800)]
Compile fixes

14 years agoMoar server work
John Hodge [Sun, 11 Jul 2010 11:22:59 +0000 (19:22 +0800)]
Moar server work

14 years agoSlight change to the proto
John Hodge [Sun, 11 Jul 2010 11:02:14 +0000 (19:02 +0800)]
Slight change to the proto

14 years agoSkeleton server code (compiles, just doesn't do anything)
John Hodge [Sun, 11 Jul 2010 10:24:22 +0000 (18:24 +0800)]
Skeleton server code (compiles, just doesn't do anything)

14 years agoBasic outline
John Hodge [Sun, 11 Jul 2010 10:24:05 +0000 (18:24 +0800)]
Basic outline

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