Download solar storm alerts from the Presto service and converts them into gemtext (text/gemini) to be served via Gemini.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Stephane Bortzmeyer 7df35a8bb7 Link to source code 3 weeks ago
.gitignore Initial commit 3 weeks ago
LICENSE Initial commit 3 weeks ago
README.md Parametrize the directories 3 weeks ago
presto2gemini.py Link to source code 3 weeks ago

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.