|
|
@@ -3,9 +3,16 @@ cd "$(dirname "$0")" |
|
|
|
|
|
|
|
source zabbix_creds |
|
|
|
|
|
|
|
srcpath="/srv/tomsk-sky.blindage.org/tomsk-sky-archiver" |
|
|
|
|
|
|
|
ts=$(date -u '+%F') |
|
|
|
|
|
|
|
wget --save-cookies=daily-job.cookies -4 --keep-session-cookies -O - -S --post-data="name=${zbxuser}&password=${zbxpass}&enter=Sign in&autologin=1" "${zbxurl}/index.php?login=1" |
|
|
|
wget -4 --load-cookies=daily-job.cookies -O datadir/$ts/graph_termo_utc+7.png "${zbxurl}/chart2.php?graphid=1005&from=now-24h&to=now&profileIdx=web.graphs.filter&profileIdx2=1005&width=959&_=tf88n7na&screenid=" |
|
|
|
wget -4 --load-cookies=daily-job.cookies -O datadir/$ts/graph_pressure_utc+7.png "${zbxurl}/chart2.php?graphid=989&from=now-24h&to=now&profileIdx=web.graphs.filter&profileIdx2=989&width=959&_=tf89xtu8&screenid=" |
|
|
|
|
|
|
|
find ./datadir/${ts} -name "*.jpg" -type f -exec ./jpeginfo -c {} \; | grep -E "WARNING|ERROR" | cut -d " " -f 1 > gengal-invalid.list |
|
|
|
xargs rm < gengal-invalid.list |
|
|
|
|
|
|
|
docker run -t --rm --name sky-gallery-generator -v $srcpath:/work -u $(id -u):$(id -g) thumbsupgallery/thumbsup sh /work/gengal.sh |
|
|
|
|