vivre-ensemble

command module
v0.0.0-...-23cb2b8 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 13 Imported by: 0

README

Vivre Ensemble

One who seeks to apply for Luxembourgish citizenship needs to complete "Vivre ensemble au Grand-Duché de Luxembourg" courses.

I built this program to monitor the official website and tell me when new courses are published.

Setup

Remember to use a Luxembourgish IP as the website blocks access from other countries.

  1. Edit the two constants at the top of vivre-ensemble.go (PHONE_NUMBER and DATA_DIR).

  2. Build the program:

    go build -o bin/vivre-ensemble ./...
    
  3. Use cron to run it in a given schedule. For running it every 15min from an example directory:

    */15 * * * * /Users/irio/Workspace/vivre-ensemble/bin/vivre-ensemble --short >> /Users/irio/Workspace/vivre-ensemble/cron.log
    

Testing

For a quick run that prints a short summary without persistence in disk, run:

go run ./... --short --no-save

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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