ionoreporter

command module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

README

ionoreporter

Ionoreporter is a small app that produce pdf files of a set of images, specifically ionograms. The app is written in Go and builds with GNU Make (using a Makefile). The Makefile can also be used to build a docker image to run ionoreporter as a container.

Dependencies

Golang 1.10 (probably works with earlier too), Docker and GNU Make.

Building and running

# See Makefile for more info.
# Default build env is amd64 linux.
make all
make run
make docker-run

Example

$ make docker-run
docker run -u 1000:1000 -ti --rm -v /home/sa6mwa/ionoreporter/output:/destination -e OUTDIR=/destination ionoreporter:1.0
INFO[2019-11-04T21:09:25Z] Starting ionoreporter 1.0, OUTDIR == /destination 
INFO[2019-11-04T21:09:25Z] Downloading https://www.iap-kborn.de/fileadmin/user_upload/MAIN-abteilung/radar/Radars/Ionosonde/Plots/LATEST.PNG 
INFO[2019-11-04T21:09:26Z] Downloading http://www.tgo.uit.no/ionosonde/latest.gif 
INFO[2019-11-04T21:09:26Z] Downloading http://www2.irf.se/ionogram/dynasonde_kir/sao/latest.gif 
INFO[2019-11-04T21:09:26Z] Downloading http://www2.irf.se/ionogram/plots/ionoLy.gif 
INFO[2019-11-04T21:09:27Z] kiruna ionogram saved as /tmp/ionoreporter-235787570.gif 
INFO[2019-11-04T21:09:27Z] lycksele ionogram saved as /tmp/ionoreporter-415884521.gif 
INFO[2019-11-04T21:09:27Z] juliusruh ionogram saved as /tmp/ionoreporter-626629632.png 
INFO[2019-11-04T21:09:27Z] tromso ionogram saved as /tmp/ionoreporter-512875359.gif 
INFO[2019-11-04T21:09:27Z] Saving /destination/ionoreport-20191104T210927.pdf 
INFO[2019-11-04T21:09:27Z] Waiting 15m0s until next run                 

Documentation

Overview

ionoreporter.go * Copyright 2019 SA6MWA Michel <sa6mwa@radiohorisont.se> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL