aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: 771eabe64869399ee726c20022c25428a83c5fbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Usage on kapsi.fi

- Clone the repository to e.g. `/home/users/johndoe/sites/example.com/weather`

- Execute `nim build` to build binaries for updating database and graphs

- Create your databases with `./bin/create_database DATABASE-NAME`

    - For example `./bin/create_database porch`

- Install the CGI script with `./bin/install_cgi_kapsi SCRIPT_PATH`

    - For example `nim install_cgi_kapsi $HOME/sites/example.com/www/weather/update.cgi`

- Install a cron job for updating graphs `./bin/update_graphs GRAPH_OUTPUT_DIR`

    - For example `$HOME/sites/example.com/weather/bin/update_graphs $HOME/sites/example.com/www/weather`