cron job internet speed test logger using the official speedtest-cli and mongodb
{
"mongo": {
"host": "mongo-db-host",
"port": "27017",
"database": "db",
"collection": "col",
"username": "user",
"password": "pass"
},
"scheduler": {
"hours": [1],
"minutes": [0]
}
}
`
1. mongo config will be the configuration of mongodb server (username and password can be ommitted if it is not required)
2. scheduler contains hours and minuts which when we want to create the job (both of them can be ommitted)
* To execute it use npm start command with the config file, which can be the absolute path or relative path to the repo base directory.
* In linux you may get permissions errors when trying to execute speedtest cli to fix this you have to run chmod +x speedtest-cli/linux/speedtest` where speedtest-cli/linux/speedtest is relative path to the cli from the repo based directory