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
/** | |
* SparkFun Inventor's Kit for Edison | |
* Experiment 9 - Part 1: Character LCD | |
* This sketch was written by SparkFun Electronics | |
* November 28, 2015 | |
* https://github.com/sparkfun/Inventors_Kit_For_Edison_Experiments | |
* | |
* Display a simple string on the character LCD. | |
* | |
* Released under the MIT License(http://opensource.org/licenses/MIT) |
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
const VEML6070 = require('veml6070-sensor'); | |
// VEML6070 constructor options object is optional, i2cBusNo defaults to 1 | |
// | |
const veml6070 = new VEML6070( {i2cBusNo : 1} ); | |
const readSensorData = () => { | |
veml6070.readSensorData() | |
.then((data) => { | |
console.log(`data = ${JSON.stringify(data, null, 2)}`); |
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 BMP280 = require('node-bmp280'); | |
var barometer = new BMP280(); | |
barometer.begin(function(err) { | |
if (err) { | |
console.info('error initializing barometer', err); | |
return; | |
} | |
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 casper = require('casper').create(); | |
var username = 'YOUR_USERNAME'; | |
var password = 'YOUR_PASSWORD'; | |
var deviceId = 'YOUR_DEVICE_ID'; | |
var loginURL = 'https:/developer.weaved.com/portal/login.php' ; | |
var connectURL = 'https://developer.weaved.com/portal/members/ajaxAPI.php?action=connect&id='; | |