This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var services = '/services/...'; // Update this with your Slack webhook URL path | |
var channel = '#fleet-status'; // Update this with the Slack channel to post in | |
var username = 'Vehicle GeoFence Alert'; //Update this with the Slack username to show on the posts | |
var https = require('https'); | |
var util = require('util'); | |
function vehicleName(vehicleId) { | |
switch (vehicleId) { | |
case 9999991:return "Rex"; |