Skip to content

krawler-teleray ​

A Krawler based job to download data from the French gamma dose rate alert Teleray network.

Overview ​

The krawler-teleray job scrapes gamma dose rate measurements from the following url: https://api.teleray.asnr.fr/wfs/collections/measures/items. The downloaded data are stored within a MongoDB database and more precisely in 2 collections:

  • the teleray-measures collection stores the measurement data
  • the teleray-stations collection stores the station positions

All records are stored in GeoJson format.

The job is executed according a specific cron expression. By default, every 10 minutes.

Configuration ​

VariableDescription
DB_URLThe mongoDB database URL. The default value is mongodb://127.0.0.1:27017/k-teleray
STATIONS_COLLECTIONThe name of the MongoDB collection for stations positions. The default value is teleray-stations
MEASURES_COLLECTIONThe name of the MongoDB collection for measures data. The default value is teleray-measures
TTLThe observations data time to live. It must be expressed in seconds and the default value is 604 800 (7 days)
DEBUGEnables debug output. Set it to krawler* to enable full output. By default it is undefined.

Deployment ​

We personally use Kargo to deploy the service.