Skip to content

Instantly share code, notes, and snippets.

#include <WiFi.h>
#include <HTTPClient.h>
#include <ArduinoJson.h>
const char* ssid = "YOURSSID";
const char* password = "YOURPASSWORD";
//Your Domain name with URL path or IP address with path
#include <WiFi.h>
#include <HTTPClient.h>
const char* ssid = "Temagami-EXT_EXT";
const char* password = "888888pab70";
//Your Domain name with URL path or IP address with path
//const char* serverName = "http://192.168.1.106:1880/update-sensor";
// Feather9x_RX
// -*- mode: C++ -*-
// Example sketch showing how to create a simple messaging client (receiver)
// with the RH_RF95 class. RH_RF95 class does not provide for addressing or
// reliability, so you should only use RH_RF95 if you do not need the higher
// level messaging abilities.
// It is designed to work with the other example Feather9x_TX
#include <SPI.h>
#include <RH_RF95.h>
#include <U8x8lib.h>
#include <LoRa.h>
String receivedText;
String receivedRssi;
// WIFI_LoRa_32 ports
// GPIO5 -- SX1278's SCK
// GPIO19 -- SX1278's MISO
// GPIO27 -- SX1278's MOSI
#include <SPI.h>
#include <LoRa.h>
// WIFI_LoRa_32 ports
// GPIO5 -- SX1278's SCK
// GPIO19 -- SX1278's MISO
// GPIO27 -- SX1278's MOSI
// GPIO18 -- SX1278's CS
// GPIO14 -- SX1278's RESET
// GPIO26 -- SX1278's IRQ(Interrupt Request)
#include "WiFi.h"
#include <U8x8lib.h>
// the OLED used
U8X8_SSD1306_128X64_NONAME_SW_I2C u8x8(/* clock=*/ 15, /* data=*/ 4, /* reset=*/ 16);
void setup()
{
// Set WiFi to station mode and disconnect from an AP if it was previously connected
#!/bin/bash
# command line argument is the URL of the youtube vid
youtube-dl -x --audio-format mp3 $1
@dwblair
dwblair / zerosleep.ino
Created September 15, 2020 14:55
using moteino example + rfm95 sleep() to see how low we can get feather m0 lora to sleep ...
#include <RTCZero.h>
#include <SPI.h>
#include <RH_RF95.h>
// for feather m0
#define RFM95_CS 8
#define RFM95_RST 4
#define RFM95_INT 3
#include <TinyGPS++.h>
//#include <SoftwareSerial.h>
/*
This sample code demonstrates how to use an array of TinyGPSCustom objects
to monitor all the visible satellites.
Satellite numbers, elevation, azimuth, and signal-to-noise ratio are not
normally tracked by TinyGPS++, but by using TinyGPSCustom we get around this.
The simple code also demonstrates how to use arrays of TinyGPSCustom objects,
@dwblair
dwblair / startscuttle.sh
Created August 27, 2020 15:53
starting Secure Scuttlebutt from a custom location
#!/bin/bash
npm start -- --path ~/Documents/myssb/.ssb