Skip to content

Instantly share code, notes, and snippets.

#include <JeeLib.h>
#include <Wire.h>
#include <SPI.h>
#include <RTClib.h>
#include <RTC_DS3231.h>
#include<stdlib.h>
#include <SD.h>
// This is a slightly modified version of the code posted here:
// https://github.com/OpenWaterProject/riffle/tree/master/software/surata-riffle
#include <Adafruit_FONA.h>
#include <JeeLib.h>
char sensorIDC [] = "1"; //the sensor id
char sensorTypeC []="A"; //the sensor type
char publicKey[]="lWLkGyQJLAhGQjvw1pggH812MyD";//phant pub key
char privateKey[]="6M8gqBja8OsnDO9v3BllibZ87vW";//phant priv key
char tokenC[]="ffc15f4fa95d4893d1ba";// WEBDs token
char phoneNum[]="85870";// phone number to text to
#include <Wire.h>
#include <SPI.h>
#include <RTClib.h>
#include <RTC_DS3231.h>
#include<stdlib.h>
#include <SD.h>
// This code requires that the following library be installed:
// Mizraith's RTC library: https://github.com/mizraith/RTClib
// it also requires:
#include <JeeLib.h>
#include <Wire.h>
#include <SPI.h>
#include <RTClib.h>
#include <RTC_DS3231.h>
#include<stdlib.h>
#include <SD.h>
//sleeping stuff
#include <JeeLib.h>
#include <Wire.h>
#include <SPI.h>
#include <RTClib.h>
#include <RTC_DS3231.h>
#include<stdlib.h>
#include <SD.h>
#include <OneWire.h>
#include <JeeLib.h>
#include <Wire.h>
#include <SPI.h>
#include <RTClib.h>
#include <RTC_DS3231.h>
#include<stdlib.h>
#include <SD.h>
// This is a slightly modified version of the code posted here:
// https://github.com/OpenWaterProject/riffle/tree/master/software/surata-riffle
#include <JeeLib.h>
#include <Wire.h>
#include <SPI.h>
#include <RTClib.h>
#include <RTC_DS3231.h>
#include<stdlib.h>
#include <SD.h>
// This is a slightly modified version of the code posted here:
// https://github.com/OpenWaterProject/riffle/tree/master/software/surata-riffle
/*----------------------------------------------------------------------*
* Demonstrates usage of the alarm interrupt for alarm 1 and alarm 2. *
* *
* 26 December 2014. *
* *
* Tested with Arduino 1.5.8, Arduino Nano w/ ATmega328, DS3231. *
* *
* This work is licensed under the Creative Commons Attribution- *
* ShareAlike 3.0 Unported License. To view a copy of this license, *
* visit http://creativecommons.org/licenses/by-sa/3.0/ or send a *
// **** INCLUDES *****
#include "LowPower.h"
#include <DS3232RTC.h> //http://github.com/JChristensen/DS3232RTC
#include <Wire.h> //http://arduino.cc/en/Reference/Wire
// Use pin 2 as wake up pin
const int wakeUpPin = 2;
int led = 9;
#include "LowPower.h" //https://github.com/rocketscream/Low-Power
#include <Wire.h>
#include <SPI.h>
#include <RTClib.h> //https://github.com/p-v-o-s/RTC_3231
#include<stdlib.h>
#include <SD.h>
//sleeping stuff
#define sleep_intervals 1