Skip to content

Instantly share code, notes, and snippets.

chaeplin chaeplin

  • South Korea
View GitHub Profile
@chaeplin
chaeplin / esp8266-twitter.ino
Last active Sep 16, 2018
esp8266-twitter.ino
View esp8266-twitter.ino
// check update : https://github.com/chaeplin/esp8266_and_arduino/tree/master/_56-gopro-control
// based on tweeting_silicon : http://harizanov.com/2015/06/tweeting-silicon/
// https://github.com/igrr/axtls-8266/blob/master/crypto/hmac.c
// http://hardwarefun.com/tutorials/url-encoding-in-arduino
// chaeplin
#include <TimeLib.h>
#include <ESP8266WiFi.h>
#include <WiFiClientSecure.h>
#include <ESP8266HTTPClient.h>
@chaeplin
chaeplin / Arduino_Record_Long_AirConditioner_Infrared_Signals_10.ino
Last active Jul 15, 2018
Arduino_Record_Long_AirConditioner_Infrared_Signals_10
View Arduino_Record_Long_AirConditioner_Infrared_Signals_10.ino
// http://www.analysir.com/blog/2014/03/19/air-conditioners-problems-recording-long-infrared-remote-control-signals-arduino/
// http://www.analysir.com/blog/wp-content/uploads/2014/03/Arduino_Record_Long_AirConditioner_Infrared_Signals_10.txt
// For LG AC
/*
Author: AnalysIR
Revision: 1.0
This code is provided to overcome an issue with Arduino IR libraries
It allows you to capture raw timings for signals longer than 255 marks &amp; spaces.
View Highcharts Cheat Sheet
$('#container').highcharts({
chart: {
alignTicks: true, // When using multiple axis, the ticks of two or more opposite axes will automatically be aligned by adding ticks to the axis or axes with the least ticks.
animation: true, // Set the overall animation for all chart updating. Animation can be disabled throughout the chart by setting it to false here.
backgroundColor: '#FFF', // The background color or gradient for the outer chart area.
borderColor: '#4572A7', // The color of the outer chart border.
borderRadius: 5, // The corner radius of the outer chart border. In export, the radius defaults to 0. Defaults to 5.
borderWidth: 0, // The pixel width of the outer chart border.
className: null, // A CSS class name to apply to the charts container div, allowing unique CSS styling for each chart.
defaultSeriesType: 'line', // Alias of type.
@chaeplin
chaeplin / WPA2 -EAP-TLS.ino
Last active Oct 24, 2017
WPA2 -EAP-TLS.ino
View WPA2 -EAP-TLS.ino
/*
WPA2-ENT EAP-TLS
based on joostd's code : https://github.com/joostd/esp8266-eduroam
https://github.com/joostd/esp8266-eduroam/blob/master/gen_cert.sh
wifi_station_set_cert_key
Function: Set certificate and private key for connecting to WPA2-ENTERPRISE AP.
Note:
• Connecting to WPA2-ENTERPRISE AP needs more than 26 KB memory, please ensure enough space (system_get_free_heap_size).
@chaeplin
chaeplin / netpps.sh
Created Sep 12, 2017 — forked from joemiller/netpps.sh
shell: quick linux scripts for showing network bandwidth or packets-per-second
View netpps.sh
#!/bin/bash
if [ -z "$1" ]; then
echo
echo usage: $0 network-interface
echo
echo e.g. $0 eth0
echo
echo shows packets-per-second
@chaeplin
chaeplin / io.adafruit.com-bridge.conf
Created Sep 7, 2017 — forked from tdack/io.adafruit.com-bridge.conf
Bridge Mosquitto MQTT broker to io.adafruit.com MQTT broker to use with io.adafruit.com
View io.adafruit.com-bridge.conf
# Connection name
connection adafruit
# Secure SSL/TLS
address io.adafruit.com:8883
# adjust path as approriate to point to directory with PEM encoded .crt CA files
bridge_capath /etc/ssl/certs/
# Insecure
#address io.adafruit.com:1883
@chaeplin
chaeplin / Vagrantfile
Created Sep 7, 2017 — forked from EvianZhow/Vagrantfile
Cross-compile Vagrant box for EdgeRouter
View Vagrantfile
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.provider "virtualbox" do |vb|
vb.memory = "1024"
end
config.vm.provision "shell", inline: <<-SHELL
@chaeplin
chaeplin / slack_webhook_post.py
Created Aug 20, 2017 — forked from devStepsize/slack_webhook_post.py
POST a JSON payload to a Slack Incoming Webhook using Python requests
View slack_webhook_post.py
'''
This is an example of how to send data to Slack webhooks in Python with the
requests module.
Detailed documentation of Slack Incoming Webhooks:
https://api.slack.com/incoming-webhooks
'''
import json
import requests
@chaeplin
chaeplin / Energy_Monitor_Real.ino
Created Mar 22, 2016 — forked from whatnick/Energy_Monitor_Real.ino
ESP8266 Energy Monitor Real Power
View Energy_Monitor_Real.ino
/*
* This sketch sends ads1115 current sensor data via HTTP POST request to thingspeak server.
* It needs the following libraries to work (besides the esp8266 standard libraries supplied with the IDE):
*
* - https://github.com/adafruit/Adafruit_ADS1X15
*
* designed to run directly on esp8266-01 module, to where it can be uploaded using this marvelous piece of software:
*
* https://github.com/esp8266/Arduino
*
@chaeplin
chaeplin / esp8266-lgwhisen-slack-bot.ino
Created Jun 27, 2016
esp8266-lgwhisen-slack-bot.ino
View esp8266-lgwhisen-slack-bot.ino
// 80MHZ NODEMCU V.1
// slackbot testing using https://github.com/urish/arduino-slack-bot
/**
Arduino Real-Time Slack Bot
Copyright (C) 2016, Uri Shaked.
Licensed under the MIT License
*/
You can’t perform that action at this time.