Skip to content

krawler-openradiation ​

A Krawler based service to download data from the OpenRadiation project.

Overview ​

The krawler-openradiation job scrapes measurements from the OpenRadiation API. The downloaded data are stored within a MongoDB database and more precisely in a collection named openradiation.

All records are stored in GeoJson format.

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

Configuration ​

VariableDescription
KEYThe key to use the API. As mentioned here, you should ask this access code to the OpenRadiation team.
DB_URLThe mongoDB database URL. The default value is mongodb://127.0.0.1:27017/openradiation
COLLECTIONThe mongoDB database collection. The default value is openradiation
DATE_OF_CREATIONForce the date of measurements to be retrieved. Undefined by default so that the current date will be used.
TTLThe measurements 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.