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 9d294b2cb5 Mark regexps as regexps ("SyntaxWarning: invalid escape sequence...") 2024-05-15 20:04:29 +02: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 Mark regexps as regexps ("SyntaxWarning: invalid escape sequence...") 2024-05-15 20:04:29 +02: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.