1
0
Fork 0
Go to file
a. fox 7ead06ec5b added ability to load/reset models from web interface
moved agetf from flet into standalone function
2023-07-09 14:43:39 -04:00
systems added more system definitions 2023-07-05 22:40:21 -04:00
Makefile first push 2023-06-29 18:39:14 -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 added ability to load/reset models from web interface 2023-07-09 14:43:39 -04:00
timecalc.asd moved system loading above web server init 2023-07-05 22:42:15 -04:00
timecalc.lisp moved system loading above web server init 2023-07-05 22:42:15 -04:00
web.lisp added ability to load/reset models from web interface 2023-07-09 14:43:39 -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