Skip to content

Instantly share code, notes, and snippets.

Avatar
📈
Hypergrowthing

Damien Puig damienpuig

📈
Hypergrowthing
View GitHub Profile
View gist:770d8337a2a9418c0f7c239d743f0265
### Keybase proof
I hereby claim:
* I am damienpuig on github.
* I am damienpuig (https://keybase.io/damienpuig) on keybase.
* I have a public key ASDcPUyu7VbS-k9GczUEbcSrJ4C7h5z-e9PSqs87DtU6mgo
To claim this, I am signing this object:
We couldn’t find that file to show.
@damienpuig
damienpuig / supervisoronlocomotive
Created Oct 31, 2013
supervisor on locomotive nodejs
View supervisoronlocomotive
# node-supervisor: https://github.com/isaacs/node-supervisor
# locomotive: http://locomotivejs.org/
supervisor --watch app/controllers,config,config/environments,config/initializers -- node_modules/locomotive/bin/lcm.js server
View DISSERTATION COORDINATOR XBEE PART
#include <CmdMessenger.h>
// Mustnt conflict / collide with our message payload data. Fine if we use base64 library ^^ above
char field_separator = '-';
char command_separator = ';';
// Attach a new CmdMessenger object to the default Serial port
CmdMessenger cmdMessenger = CmdMessenger(Serial, field_separator, command_separator);
String messageReceived;
@damienpuig
damienpuig / DISSERTATION COORDINATOR
Last active Dec 19, 2015
Corrdinator for dissertation
View DISSERTATION COORDINATOR
#include <redisClient.h>
#include <SPI.h>
#include <Ethernet.h>
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
IPAddress server(192, 168, 1, 20); // Redis Server
RedisClient client(server);
void setup()
{
View sender T
// SENDER
#include <CmdMessenger.h>
#include <avr/sleep.h>
#include <avr/wdt.h>
#define sleepTime 5 //number of 8 second sleep cycles
volatile byte wdt=0; //used to cound number of sleep cycles
String nodeLum = "\"Luminosity\"";
String nodeTemp = "\"Temperature\"";
View receiver T
#include <CmdMessenger.h>
// Mustnt conflict / collide with our message payload data. Fine if we use base64 library ^^ above
char field_separator = '-';
char command_separator = ';';
// Attach a new CmdMessenger object to the default Serial port
CmdMessenger cmdMessenger = CmdMessenger(Serial, field_separator, command_separator);
String messageReceived;