Go to file
a. fox c009e662bd did some work on logic 2023-07-31 15:14:50 -04:00
systems updated terran 2023-07-13 14:43:48 -06:00
Makefile updated Makefile to use new standard lisp template 2023-07-31 15:05:29 -04:00
README.md updated logic to be able to get models based on name OR key 2023-07-05 11:48:44 -04:00
build.lisp ensured that all keys in the \*models\* hash are uppercase 2023-07-02 18:49:37 -04:00
logic.lisp did some work on logic 2023-07-31 15:14:50 -04:00
timecalc.asd moved system loading above web server init 2023-07-05 22:42:15 -04:00
timecalc.lisp added some comments for handler-case cases 2023-07-13 21:39:20 -04:00
web.lisp updated route paths for creating systems 2023-07-13 18:27:05 -04:00

README.md

timecalc

a. fox

Usage

This tool offers two different methods to utlize it, you can run it from the command line with options --from and --to to get an answer printed to your terminal.

or, run with the --web option passed and it will spin up a webserver (http://localhost:9001 by default) and use the web interface to select the conversion targets and see the result.

Notes on web server

all css is handwritten and embedded in the page, however if there is a "custom.css" file alongside the timecalc binary, it will be included in the page that gets rendered

System Definition Explanation

key: the internal key that is used for that system. used for command line arguments --to and --from

name: the name of the system. this is mostly used for output, but these can also be used for --to and --from

gtsYear: one year of the target system, converted into a GTS year (seconds)

see systems/example.system for an example

Building

  1. Install roswell
  2. $ mkdir ~/common-lisp && git clone https://dev.focks.website/compufox/timecalc ~/common-lisp/timecalc
  3. $ cd ~/common-lisp/timecalc && make
  4. Profit

License

GPLv3