Download solar storm alerts from the Presto service and converts them into gemtext (text/gemini) to be served via Gemini.
Go to file
Stephane Bortzmeyer 7df35a8bb7 Link to source code 2021-03-27 18:00:21 +01:00
.gitignore Initial commit 2021-03-27 12:28:58 +01:00
LICENSE Initial commit 2021-03-27 12:28:58 +01:00
README.md Parametrize the directories 2021-03-27 13:28:13 +01:00
presto2gemini.py Link to source code 2021-03-27 18:00:21 +01:00

README.md

presto2gemini

Download solar storm alerts from the Presto service and converts them into gemtext (text/gemini) to be served via Gemini.

The result can be seen (if you have a Gemini browser) on my Gemini capsule.

Installation

Download the program, Be sure you have the Python requests library. Review the default values at the beginning of the program. Some may be changed through command-line options and you'll probably use --destination (where to put the results) and --raw-directory (where to download the raw text files). Then run the program periodically, for instance through cron:

# Solar alerts
33 3,7,11,15,19,23 * * * /path/to/program/presto2gemini.py

Technical details

We start from plain text files like this alert since Presto alerts are not available in a structured format.