View meraki-mqtt-v1-asyncapi.yaml
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 |
View merakiFetchReport.gs
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 |
View jsonata-openapi-parse-ops-paths.txt
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 | |
}; | |
) |
View v0-v1-path-operations-diff.json
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", |
View reddit-power-temp-flows.json
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
[ | |
{ | |
"id": "8d3e6c8e.8cbc9", | |
"type": "inject", | |
"z": "e941d247.46185", | |
"name": "51%", | |
"props": [ | |
{ | |
"p": "payload" | |
}, |
View jsonata.txt
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
( | |
/* | |
JSONata expression to: | |
Format OpenAPI Spec JSON for Vue V-Swagger component | |
https://www.npmjs.com/package/v-swagger | |
*/ | |
$requestArray := $.paths.*#$pi.*#$i.{ |
View mr-mqtt-nr-simulator.json
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
[ | |
{ | |
"id": "c100fe2a.cb152", | |
"type": "debug", | |
"z": "90fbc492.9c31f8", | |
"name": "Broker", | |
"active": false, | |
"tosidebar": true, | |
"console": false, | |
"tostatus": false, |
View esp8266-sniffer
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) |
View parsePathParams.js
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 path = '/network/{id}/device/{serial}'; | |
params = { | |
id:"123456", | |
serial: "abcd-abcd-abcd" | |
} | |
var paramNames = Object.keys(params); | |
console.log('paramNames', paramNames); |
View vue.config.js
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
module.exports = { | |
devServer: { | |
proxy: { | |
"/api/*": { | |
target: "https://api.meraki.com/api/v0", | |
secure: false, | |
changeOrigin: true, | |
pathRewrite: { | |
"^/api": "" | |
}, |
NewerOlder