Document nginx haobserver publishing
This commit is contained in:
parent
ba667b9e2d
commit
480e6d08ea
1 changed files with 11 additions and 21 deletions
32
README.md
32
README.md
|
|
@ -102,25 +102,14 @@ Run the 05:00-style analysis/publishing step:
|
|||
./run_ha_observer.sh analyze
|
||||
```
|
||||
|
||||
Open the page:
|
||||
|
||||
```bash
|
||||
xdg-open /home/hbrain/ha/web/index.html
|
||||
```
|
||||
|
||||
Or serve it locally:
|
||||
|
||||
```bash
|
||||
cd /home/hbrain/ha/web
|
||||
python3 -m http.server 8088
|
||||
```
|
||||
|
||||
Then browse to:
|
||||
Open the page served by nginx:
|
||||
|
||||
```text
|
||||
http://localhost:8088/
|
||||
http://localhost/haobserver/
|
||||
```
|
||||
|
||||
This uses a symlink from `/var/www/html/haobserver` to the project's `./web` directory.
|
||||
|
||||
## Install cron jobs
|
||||
|
||||
This installs exactly these jobs:
|
||||
|
|
@ -135,17 +124,18 @@ This installs exactly these jobs:
|
|||
Manual crontab equivalent:
|
||||
|
||||
```cron
|
||||
*/30 * * * * /home/hbrain/ha/run_ha_observer.sh collect >> /home/hbrain/ha/cron.log 2>&1
|
||||
0 5 * * * /home/hbrain/ha/run_ha_observer.sh analyze >> /home/hbrain/ha/cron.log 2>&1
|
||||
*/30 * * * * /home/hbrain/haobserver/run_ha_observer.sh collect >> /home/hbrain/haobserver/cron.log 2>&1
|
||||
0 5 * * * /home/hbrain/haobserver/run_ha_observer.sh analyze >> /home/hbrain/haobserver/cron.log 2>&1
|
||||
```
|
||||
|
||||
## Output locations
|
||||
|
||||
```text
|
||||
/home/hbrain/ha/data/ 30-minute JSON snapshots
|
||||
/home/hbrain/ha/reports/ daily Markdown AI reports
|
||||
/home/hbrain/ha/web/ local funny webpage, index.html
|
||||
/home/hbrain/ha/cron.log cron logs
|
||||
/home/hbrain/haobserver/data/ 30-minute JSON snapshots
|
||||
/home/hbrain/haobserver/reports/ daily Markdown AI reports
|
||||
/home/hbrain/haobserver/web/ local funny webpage, index.html
|
||||
/var/www/html/haobserver symlink to web/ for nginx
|
||||
/home/hbrain/haobserver/cron.log cron logs
|
||||
```
|
||||
|
||||
## Privacy notes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue