This file contains hidden or 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 https = require('https'); | |
https.get('https://thingspeak.com/channels/584073/feed.json', (res) => { | |
let data = ''; | |
res.on('data', (chunk) => { | |
data += chunk; | |
}); | |
res.on('end', () => { |
This file contains hidden or 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 "ThingSpeak.h" | |
#include <SPI.h> | |
#include <Ethernet.h> | |
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED}; | |
EthernetClient client; | |
unsigned long myChannelNumber = 584073; | |
const char * myWriteAPIKey = "701TW43AXK9N4770"; | |
This file contains hidden or 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
### SPARK IS OPTIONAL ### | |
### REMOVE OR COMMENT IF YOU DO NOT NEED IT ### | |
### SPARK ALSO NEED SOME CONF TO WORK CORRECTLY ### | |
spark-master: | |
image: bde2020/spark-master:1.6.2-hadoop2.6 | |
container_name: spark-master | |
ports: | |
- "8080:8080" | |
- "7077:7077" | |
environment: |
NewerOlder