Skip to content

Instantly share code, notes, and snippets.

View maanenson's full-sized avatar

M. Aanenson maanenson

View GitHub Profile
@maanenson
maanenson / thirdparty_insight.yaml
Last active August 8, 2019 22:05
thirdparty_insight.yaml
---
info:
title: "Exosite Example 3rd Party Insights"
version: "1.0.0"
description: "This module provides pump focused insight transform functions and rules"
contact:
name: "Mike Aanenson"
email: "mikeaanenson@exosite.com"
host: "thirdpartyinsight1.apps.exosite.io"
basePath: "/"
---
info:
title: "Exosite Beta Pump Insights"
version: "1.0.0"
description: "This module provides pump focused insight transform functions and rules"
contact:
name: "Mike Aanenson"
email: "mikeaanenson@exosite.com"
host: "insightsdemo1.apps.exosite.io"
basePath: "/"
swagger: "2.0"
info:
version: "1.0"
title: My Coffee Insight
description: |
This describes an Insight Module that can be added to Murano Exchange. An Insight Module can
implement one or more Insight Functions. These Insight Functions can then be added to Assets
as a Transformation.
contact:
@maanenson
maanenson / fm_poc.yaml
Last active August 16, 2018 20:25
fm_poc.yaml
swagger: "2.0"
info:
version: "1.0"
title: "Parker Functional Module POC Service"
description: |
This describes an Insight Module that can be added to Murano Exchange. An Insight Module can
implement one or more Insight Functions. These Insight Functions can then be added to Assets
as a Transformation.
contact:
@maanenson
maanenson / json
Last active April 9, 2018 10:56
rcm channel configuration
{
"test":"test"
}
@maanenson
maanenson / Murano Smart Light Bulb Simple App Example.markdown
Created June 22, 2016 21:51
Murano Smart Light Bulb Simple App Example
@maanenson
maanenson / Connected LaunchPad Trigger On Pushbutton
Last active August 29, 2015 14:04
Connected LaunchPad Trigger On Pushbutton
local push_button1 = alias['usrsw1'] -- Dataport pushes sent to (counter value)
local emailaddr = nil -- format is 'me@here.com'
local phone_number = nil -- format is: '+1aaabbbcccc' if you have SMS and want to try it out
local timeformat = '%F %T %Z'
-- note, if alert sent not long ago, will skip so it doesn't waste your available alert messgaes (emails/day, sms bucket)
local last_alert = 0
local last_value = push_button1.value or 0
local alert_period_threshold = 15 -- seconds to limit alerts from sending too often (i.e. won't send two in this time window)
@maanenson
maanenson / arduino_temerature_monitor.ino
Last active December 26, 2015 13:49
Arduino Temperature Monitor reporting to Exosite
/*
Exosite Arduino Basic Temp Monitor 2 (updated to use Exosite library)
This sketch shows an example of sending data from a connected
sensor to Exosite. (http://exosite.com) Code was used from various
public examples including the Arduino Ethernet examples and the OneWire
Library examples found on the Arduino playground.
(OneWire Lib credits to Jim Studt, Tom Pollard, Robin James, and Paul Stoffregen)
This code keeps track of how many milliseconds have passed
@maanenson
maanenson / gist:4628205
Created January 24, 2013 21:50
Exosite Custom Widget Example - Line Graph - Black and Exosite Blue
/*-- Line Chart --*/
// select one or more data sources from the list above to view this demo.
function(container, portal) {
// collect data sources for easy iteration.
var resources = collectDataSources(portal);
// return if no data sources are selected
if (!resources.length) {
errorMsg('Please select a data source from the edit page.');