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
/* | |
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 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
[ | |
{ | |
"oldPath": "/devices/{serial}/camera/qualityAndRetentionSettings", | |
"newPath": "/devices/{serial}/camera/qualityAndRetention", | |
"oldOperations": [ | |
"getDeviceCameraQualityAndRetentionSettings", | |
"updateDeviceCameraQualityAndRetentionSettings" | |
], | |
"newOperations": [ | |
"getDeviceCameraQualityAndRetention", |
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
/** | |
* Internet of Lego - Train Schedule Display | |
* This program connects to WiFi, utilizes MQTT and displays the local train schedule on an OLED screen | |
* The OLED graphics library is slimmed down to only text for memory efficiency | |
* https://github.com/greiman/SSD1306Ascii | |
* | |
* Hardware: Cactus Micro Rev2 - http://wiki.aprbrother.com/wiki/Cactus_Micro_Rev2 | |
* Written by: Cory Guynn with some snippets from public examples ;) | |
* 2016 | |
* |
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
/* Meraki Dashboard API endpoint service for VueJS | |
A collection of functions to interact with the Meraki API. | |
This version is designed to work with a VueJS project. | |
It is easy to duplicate any of the methods to and modify them for new API endpoints. | |
The service will leverage an event HUB to broadcast messages while scripts are running. This is helfpul |
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
// 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 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
asyncapi: '2.3.0' | |
info: | |
title: Meraki MQTT API | |
version: '1.0.0' | |
description: | | |
The Meraki MQTT service enables real-time telemetry from your network devices. | |
license: | |
name: Apache 2.0 | |
url: https://www.apache.org/licenses/LICENSE-2.0 |
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
(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 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
/** | |
* Fetches Meraki API data and formats the JSON data into Google Sheet format | |
* @param url url to pull json data from | |
* @param apiKey API key for authorization | |
* @param title The title text to display in the cell | |
* @param refresh Triggers a refresh of report when changed. Cannot use now() functions, so a helper "Refresh Reports" button will update a hidden _meraki_tools settings sheet to set a time, triggering the function to re-evaluate. You can optionaly set a Trigger to call the refreshReports function on a schedule. | |
* @return Google Sheet data | |
* @customfunction |
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
/* OAS Path Ops and Tags */ | |
( | |
$.paths.*#$index.**.operationId.{ | |
/*"pathIndex": $index,*/ | |
"path": $keys($$.paths)[$index], | |
"operationid": %.operationId, | |
"description": %.description, | |
"tags":%.tags | |
}; | |
) |
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
#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) |
NewerOlder