This file contains hidden or 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
| // Settings - Modify this with your values | |
| // ************************* | |
| // User Defined in the Script | |
| var API_KEY = ''; | |
| var ORG_ID = ''; | |
| var NET_ID = ''; | |
| var TIMESPAN = ''; | |
| // User Defined in a Sheet |
This file contains hidden or 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
| /** | |
| * This Firebase Function will provide a `/splashAuth` route to authenticate a wireless client on a Meraki Network. | |
| * Example | |
| * [POST] https://merakicaptiveportal-vuejs.firebaseapp.com/splashAuth/ | |
| * Body: | |
| {"clientMac":"24:18:1d:ae:4c:71","nodeMac": "88:15:44:60:1c:1a"} | |
| * Returns: | |
| { | |
| "ssids": { | |
| "4": { |
This file contains hidden or 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
| /* | |
| Copy this function over the existing Code.gs file in a Google Sheet | |
| Save the Sheet/Script | |
| Publish App | |
| - Execute as You | |
| - Avaiable to Anyone (including anonymous) | |
| Authorize App when prompted | |
| The URL will act as the Webhook URL for Meraki to send alerts | |
| */ |
This file contains hidden or 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
| [ | |
| { | |
| "id": "fc8601c3.25e5b", | |
| "type": "tab", | |
| "label": "MV MQTT", | |
| "disabled": false, | |
| "info": "" | |
| }, | |
| { | |
| "id": "8a8e0f9e.ea00c", |
This file contains hidden or 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
| [ | |
| { | |
| "id": "6b02c4a0.a0d1ac", | |
| "type": "tab", | |
| "label": "Alerts", | |
| "disabled": false, | |
| "info": "" | |
| }, | |
| { | |
| "id": "def605c1.7fb328", |
This file contains hidden or 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
| (function process( /*RESTAPIRequest*/ request, /*RESTAPIResponse*/ response) { | |
| // Parse Meraki Alerts Webhook Data | |
| var requestBody = request.body; | |
| var requestString = requestBody.dataString; | |
| var requestParsed = {}; | |
| requestParsed = JSON.parse(requestString); | |
| var merakiAlert = requestParsed; | |
| // Create SNOW Incident |
This file contains hidden or 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
| module.exports = { | |
| devServer: { | |
| proxy: { | |
| "/api/*": { | |
| target: "https://api.meraki.com/api/v0", | |
| secure: false, | |
| changeOrigin: true, | |
| pathRewrite: { | |
| "^/api": "" | |
| }, |
This file contains hidden or 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 path = '/network/{id}/device/{serial}'; | |
| params = { | |
| id:"123456", | |
| serial: "abcd-abcd-abcd" | |
| } | |
| var paramNames = Object.keys(params); | |
| console.log('paramNames', paramNames); |
This file contains hidden or 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
| #include <ArduinoJson.h> | |
| #include <iostream> | |
| #include <ESP8266WiFi.h> // added this | |
| #include <ESP8266HTTPClient.h> // added this | |
| const char* serial = "YYYY-YYYY-YYYY"; // fake AP serial | |
| const char* networkId = "N_99999999999"; // fake network ID | |
| const float txPower = 20.5; // power in dBm (0 - 20.5) |
This file contains hidden or 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
| [ | |
| { | |
| "id": "c100fe2a.cb152", | |
| "type": "debug", | |
| "z": "90fbc492.9c31f8", | |
| "name": "Broker", | |
| "active": false, | |
| "tosidebar": true, | |
| "console": false, | |
| "tostatus": false, |