aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: 12f70825cf07e87f944768891868a4a539bd20bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
= Alonzo Mood Calculator

Calculate Alonzo's likely mood for the day.

== Installation

Setup instructions (Debian):

    # install yfinance
    sudo pip3 install yfinance

    # run bin/get-stock.py once to get the current prices
    bin/get-stock.py ORCL > public/current.json
    
    # set up cron job that calls bin/get-stock.py daily
    # example:
    @daily path/to/bin/get-stock.py ORCL > path/to/public/current.json

    # another example (refresh 4 times a day)
    0 */6 * * * path/to/bin/get-stock.py ORCL > path/to/public/current.json

    # symlink apache or whatever to public/ directory