Skip to content

Commit

Permalink
Update INSTALL.md
Browse files Browse the repository at this point in the history
  • Loading branch information
pucherot authored Jan 19, 2021
1 parent 581d9c1 commit b1be970
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions docs/INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ block is not necessary
sudo apt-get install lighttpd -y
```

3.2 - If Pi.Alert is the only site available in this webserver, you can redirect
the default server page to pialert subfolder
3.2 - If Pi.Alert will be the only site available in this webserver, you can
redirect the default server page to pialert subfolder
```
sudo mv /var/www/html/index.lighttpd.html /var/www/html/index.lighttpd.html.old
sudo ln -s ~/pialert/install/index.html /var/www/html/index.html
Expand All @@ -141,14 +141,17 @@ block is not necessary
```

4.2 - Test Python
New versions of 'Raspberry Pi OS' includes python. You can check that

New versions of 'Raspberry Pi OS' includes Python. You can check that
Python is installed with the command:
```
python -V
```

New versions of Ubuntu includes Python 3. You can choose between use `python3`
command or to install Python 2 (that includes `python` command).


If you prefer to use Python 3, in the next installation block, you must update
`pialert.cron` file with the correct command: `python3` instead of `python`.
```
Expand Down Expand Up @@ -181,9 +184,10 @@ block is not necessary
```

5.3 - Configure web server redirection

If you have configured your DNS server (Pi.hole or other) to resolve pi.alert
to your raspberry, youy must configure lighttpd to redirect these requests to
the correct pialert web folder
with the IP of your raspberry, youy must configure lighttpd to redirect these
requests to the correct pialert web folder
```
sudo cp ~/pialert/install/pialert_front.conf /etc/lighttpd/conf-available
sudo ln -s ../conf-available/pialert_front.conf /etc/lighttpd/conf-enabled/pialert_front.conf
Expand All @@ -206,7 +210,7 @@ block is not necessary
```ini
REPORT_MAIL = True
SMTP_USER = '[email protected]'
SMTP_PASS = 'password' vi
SMTP_PASS = 'password'
REPORT_TO = '[email protected]'
```

Expand Down Expand Up @@ -246,6 +250,7 @@ block is not necessary
```
5.8 - Update crontab template with python3
If you prefer to use Python 3 (installed in the previous block), you must
update `pialert.cron` file with the correct command: `python3` instead of
`python`
Expand Down

0 comments on commit b1be970

Please sign in to comment.