corrected the script and moved location of alarm_config.json to home directory