covid-mailer

command module
v0.0.0-...-c165da3 Latest Latest
Warning

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

Go to latest
Published: May 29, 2025 License: MIT Imports: 21 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

covid-mailer

Dieses Programm ermöglicht es, die tagesaktuellen RKI-Zahlen der 7-Tage-Corona-Inzidenzen per E-Mail zu verschicken.

⚠ Mindestens seit Juli 2022 funktioniert dieses Programm nicht mehr, da das RKI still und heimlich die täglichen Berichte mit Infektionszahlen eingestellt hat. Die Word-Datei (die von Hand geschrieben wurde), hat außerdem nicht mehr das Format, das dieses Tool verarbeiten kann. Digitalisierungswüste Deutschland, es tut mir leid.

Vorbereitung

Konfiguration für ein E-Mail-Konto zum Versand der Emails muss in der Datei config.yml hinterlegt werden, siehe config.yml.example.

Parameter

covid-mailer --help
Usage:
  covid-mailer [flags]
  covid-mailer [command]

Available Commands:
  help        Help about any command
  landkreise  
  version     

Flags:
  -d, --dry-run             Nur testen?
  -h, --help                help for covid-mailer
  -i, --history-days int    Anzahl der Tage, die in der Historie angezeigt werden sollen (default 14)
  -l, --landkreis strings   Landkreis-Name(n)
  -o, --once-per-day        Nur einmal pro Kalendertag verschicken
  -r, --recipient string    E-Mail-Empfänger
  -c, --use-cache           Lokale Dateien nutzen, wenn vorhanden?
  -v, --verbose             activate more verbose output

Use "covid-mailer [command] --help" for more information about a command.

Verwendung

In der crontab kann es so aussehen (für mehrere Empfänger mit verschiedenen Landkreisen):

*/5 6-13 * * * cd /src/github.com/jojomi/covid-mailer && covid-mailer -r whatever@gmail.com -l "LK München" -o
*/5 6-13 * * * cd /src/github.com/jojomi/covid-mailer && covid-mailer -r someoneelse@gmail.com -l "SK Kiel,SK München" -o -c

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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