summaryrefslogtreecommitdiff
path: root/README.md
blob: 03123697626cdce107581562bfd9374c723f5b15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# bomSynoptic
Automated download and display of synoptic weather charts from the Australian Bureau of Meteorology

## Background
(explain motivation and desired results)

## Current state
Script can download most recent pdf and convert it to a scaled png file

## todo
   
   * write a timer service 
   * 'xdg-open' the png file in its own workspace (in i3 window manager)

## Deployment

Current deployment target:

Item | Value
-----|------
VPS | `cremonde`
Site | `pestrel.com`
Nginx web root | `/srv/www/pestrel/`
Latest published image | `/srv/www/pestrel/synopticLatest.png`
App install dir | `/opt/synoptic`

Runtime dependencies on the VPS:

- `curl`
- `imagemagick`
- `ghostscript`
- `nginx`

Relevant scripts:

File | Purpose
-----|--------
`setup.sh` | Install systemd units, nginx config, and web content on `cremonde`
`deploy.sh` | Copy `synopticChart.sh` to `cremonde` and restart `synoptic.service`


Files:

File | Description | Location
-----|-------------|---------
synopticChart.sh | Top level script |
func/deriveTimeString.sh | Return 'date + time' portion of latest chart for download
func/