Skip to content
This repository has been archived by the owner on Nov 5, 2020. It is now read-only.

telemark/tools-generate-sms-jobs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tools-generate-sms-jobs

Generates job for sms from a csv-file with personalid numbers.

Setup

Create .env file with your local configs

KOR_SERVICE_URL=url-for-kor-service
KOR_JWT_SECRET=jwt-secret-for-kor-service
SMS_SERVICE_URL=url-for-sms-service
SMS_SERVICE_SENDER=sender
SMS_MESSAGE=message-to-send
DATA_DIRECTORY_PATH=test/directories/data
DONE_DIRECTORY_PATH=test/directories/done
JOBS_DIRECTORY_PATH=test/directories/jobs
QUEUE_DIRECTORY_PATH=test/directories/jobs

Usage

Add a csv-file to the queue directory.

The column for personalid number must have the header fnr

Run the function

$ npm start

This will generate jobs in the jobsdirectory. Handle the jobs with robot-post-payload or similar

Related

License

MIT