Skip to content

Instantly share code, notes, and snippets.

View chriddyp's full-sized avatar

Chris Parmer chriddyp

View GitHub Profile
@chriddyp
chriddyp / printTimestamp.ino
Last active August 29, 2015 13:57
Arduino Time Stamping
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("}");
#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
#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"
#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.
var hyperquest = require('hyperquest');
var tz = require('timezone');
var timezone = "America/Los_Angeles";
var timezoneObj = require("timezone/"+timezone);
var token1 = "g9ngw7qyyy";
var token2 = "begbqoc59p";
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}},
#!/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'
#!/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'
class plotly:
'''
${graphmeta['plotly']['docstring']}
'''
class xaxis:
'''
${graphmeta['plotly']['xaxis']['docstring']}
'''