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
void setup(){ | |
[...] | |
Console.print(char(29)); | |
Console.print("plotly_2"); | |
Console.print(char(30)); | |
Console.print("{\"x\": \""); | |
printTimeStamp(); | |
Console.print("\", \"y\": "); | |
Console.print(dht.readHumidity()); | |
Console.print("}"); |
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 <Adafruit_CC3000.h> | |
#include <ccspi.h> | |
#include <SPI.h> | |
#include <string.h> | |
#include "utility/debug.h" | |
#include <plotly_streaming_cc3000.h> | |
#define WLAN_SSID "yourSSID" | |
#define WLAN_PASS "yourPassword" | |
#define WLAN_SECURITY WLAN_SEC_WPA2 |
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 "Arduino.h" | |
#include <Adafruit_CC3000.h> | |
#include <ccspi.h> | |
#include <SPI.h> | |
#include <string.h> | |
#include "utility/debug.h" | |
#define ADAFRUIT_CC3000_IRQ 3 | |
#define ADAFRUIT_CC3000_VBAT 5 | |
#define ADAFRUIT_CC3000_CS 10 | |
#include "plotly_streaming_cc3000.h" |
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 "Arduino.h" | |
#include <Adafruit_CC3000.h> | |
#include <ccspi.h> | |
#include <SPI.h> | |
#include <string.h> | |
#define ADAFRUIT_CC3000_IRQ 3 | |
#define ADAFRUIT_CC3000_VBAT 5 | |
#define ADAFRUIT_CC3000_CS 10 | |
#include "plotly_streaming_cc3000.h" |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 hyperquest = require('hyperquest'); | |
var tz = require('timezone'); | |
var timezone = "America/Los_Angeles"; | |
var timezoneObj = require("timezone/"+timezone); | |
var token1 = "g9ngw7qyyy"; | |
var token2 = "begbqoc59p"; | |
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 token1 = "g9ngw7qyyy"; | |
var token2 = "begbqoc59p"; | |
var plotly = require('plotly')('gmon01','u6jlwbypiq'); | |
tz = require("timezone"); | |
timezone = "America/Montreal"; | |
timezoneObj = require("timezone/"+timezone); | |
var initdata = [{x:[], y:[], stream:{token:token1, maxpoints:200}}, |
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
#!/usr/bin/python | |
# Initialize plotly | |
import datetime | |
import plotly | |
import serial | |
token = 'plotly_streamtoken_here' | |
username = 'plotly_username_here' | |
api_key = 'plotly_api_key_here' |
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
#!/usr/bin/python | |
import datetime | |
import serial | |
import RPi.GPIO as GPIO | |
import plotly | |
tokens = ['stream_token_1', 'stream_token_2'] | |
username = 'plotly_username_here' | |
api_key = 'plotly_api_key_here' | |
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
class plotly: | |
''' | |
${graphmeta['plotly']['docstring']} | |
''' | |
class xaxis: | |
''' | |
${graphmeta['plotly']['xaxis']['docstring']} | |
''' |