Skip to content

Commit

Permalink
added a hint
Browse files Browse the repository at this point in the history
  • Loading branch information
LordOfTheSnow committed Jun 24, 2022
1 parent ace3e42 commit cce3b6a
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,15 @@ Version 1.0 of this script has been hacked together more or less quick and dirty
6. Create a file `.nasdaq/data_link_apikey` and put in the plain API key you obtained at https://data.nasdaq.com
7. Create a file _.env_ and put in the configuration values

Hint: If you see this error message (I got this on my Raspberry Pi (32 Bit) that still uses Python 3.7) when installing the need python modules in step 5

> No matching distribution found for numpy==1.22.4 (from -r requirements.txt (line 4))
install pandas by hand (in your virtual environment):

```
pip install pandas
```

#### Configuration values (.env)

Expand Down Expand Up @@ -99,9 +108,9 @@ If you want to run this script periodically via cron, you can call the wrapper s

```
# m h dom mon dow command
0 1 1 * * /home/pi/src/nasdaq/cronscript.sh
30 14 * * * /home/pi/src/nasdaq-data/cronscript.sh
```
This will run the command at 01:00h local time on every first day of every month. Edit the path to the script to wherever you put it.
This will run the command at 14:34h local time on every day. Edit the path to the script to wherever you put it.
The script assumes you have a Python virtual environment created with `python3 -m venv venv` in the same directory where you checked out the repository. The script will activate the virtual environment, call the Python interpreter with the script and will deactivate the virtual environment then.

### Files and data created
Expand Down

0 comments on commit cce3b6a

Please sign in to comment.