Skip to content

Instantly share code, notes, and snippets.

View sabas1080's full-sized avatar
🐈
Working

Sabas sabas1080

🐈
Working
View GitHub Profile
@sabas1080
sabas1080 / badgeinventor.ino
Created November 28, 2015 02:07
Prueba para badge inventor
#include <ESP8266WiFi.h>
#include <ESP8266WiFiMesh.h>
/* Create the mesh node object */
ESP8266WiFiMesh mesh_node = ESP8266WiFiMesh(ESP.getChipId(), manageRequest);
/**
* Callback for when other nodes send you data
*
* @request The string received from another node in the mesh
@sabas1080
sabas1080 / EggTimer_Data_Get.ino
Created January 19, 2016 20:44
Example EggTimer Get Data Period Example
/************************************************************
EggTimer_Data_Get.ino
Example EggTimer Get Period Example
Andres Sabas @ The Inventor's House
Original Creation Date: Jan 17, 2016
This example demonstrates how to use the TCP client
functionality of the ESP8266 WiFiSecure library to GET
data to a EggTimer on
https://eggtimer.herokuapp.com
Development environment specifics:
/************************************************************
Distributed as-is; no warranty is given.
************************************************************/
// The SparkFunESP8266WiFi library uses SoftwareSerial
// to communicate with the ESP8266 module. Include that
// library first:
#include <SoftwareSerial.h>
// Include the ESP8266 AT library:
#include <SparkFunESP8266WiFi.h>
#include <SoftwareSerial.h>
#include <SparkFunESP8266WiFi.h>
#include <avr/pgmspace.h>
#include <Servo.h>
#include <json_arduino.h>
#include "config.h"
@sabas1080
sabas1080 / Alexa Pi
Last active April 26, 2016 16:13
Install Alexa Raspberry Pi
apt-get install build-essential python-dev libcurl4-openssl-dev python-pip libssl-dev wig python-alsaaudio sox espeak libsox-fmt-mp3
pip install pycurl cherrypy
sudo nano /lib/modprobe.d/aliases.conf
# This sets the index value of the cards but doesn't reorder.
options snd_usb_audio index=0
options snd_bcm2835 index=1
@sabas1080
sabas1080 / Install flashroom
Last active July 12, 2016 04:18
Flashrom in the Raspberry Pi
sudo apt-get install libusb-1.0 build-essential pciutils usbutils libpci-dev libusb-dev libftdi1 libftdi-dev zlib1g-dev subversion
git clone https://github.com/flashrom/flashrom
cd flashrom
sudo make
sudo maker install
sudo nano /etc/modprobe.d/raspi-blacklist.conf
@sabas1080
sabas1080 / ESP8266DHT11.ino
Created January 5, 2016 18:56
Midiendo temperatura con ESP8266 y DHT11
/* DHTServer - ESP8266 Webserver with a DHT sensor as an input
Based on ESP8266Webserver, DHTexample, and BlinkWithoutDelay (thank you)
Version 1.0 5/3/2014 Version 1.0 Mike Barela for Adafruit Industries
*/
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
#include <DHT.h>
@sabas1080
sabas1080 / US-global_conf.json
Created October 25, 2016 15:47
US-global_conf.json for Conduit mLinux with poly-packet-forwarder_2.1-r1_arm926ejste.ipk
"SX1301_conf": {
"lorawan_public": true,
"clksrc": 0, /* radio_1 provides clock to concentrator */
"radio_0": {
"enable": true,
"type": "SX1257",
"freq": 904200000,
"rssi_offset": -166.0,
"tx_enable": true
},
@sabas1080
sabas1080 / .gitignore
Created January 3, 2017 17:18
gitignore for Kicad + MacOs
# Created by Andres Sabas
### KiCad ###
# For PCBs designed using KiCad: http://www.kicad-pcb.org/
# Temporary files
*.000
*.bak
*.bck
*.kicad_pcb-bak
#include <TheThingsNetwork.h>
#include <SoftwareSerial.h>
#define RESET 15
//SoftwareSerial loraSerial(4, 5); // RX, TX !! labels on relay board is swapped !!
#define loraSerial Serial1
#define debugSerial Serial
// Replace REPLACE_ME with TTN_FP_EU868 or TTN_FP_US915