Skip to content

Instantly share code, notes, and snippets.

##nodered ip 192.168.13.129:1880
nodered ip 192.168.1.104:1880
#chk for node installed
dpkg --get-selections | grep node
#uninstall
sudo apt-get remove --purge node
//ESP8266 (ESP01) with ESP01 BoB
//MQTT stream temperature data DS18B20 with 1wire on ESP8266 ESP01 and then turn load on/off. perfect for sous vide over the internet.
//shin-ajaran.blogspot.com
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
#include <OneWire.h>
#include <DallasTemperature.h>
const char *ssid = "SSID_here"; // cannot be longer than 32 characters!
//ESP8266 (ESP01) with ESP01 BoB
//MQTT stream temperature data DS18B20 with 1wire on ESP8266 ESP01 and then turn load on/off. perfect for sous vide over the internet.
//shin-ajaran.blogspot.com
#include <ESP8266WiFi.h>
#include <OneWire.h>
#include <DallasTemperature.h>
#include <MQTT.h> //// https://github.com/Imroy/pubsubclient
#include <PubSubClient.h> //requires a broker that supports version 3.1.1 of the MQTT standard
//Def
#define myPeriodic 15 //in sec | Thingspeak pub is 15sec
//ESP8266 (ESP01) with ESP01 BoB
//stream temperature data DS18B20 with 1wire on ESP8266 ESP01 and then turn load on/off. perfect for sous vide over the internet.
//shin-ajaran.blogspot.com
#include <ESP8266WiFi.h>
#include <OneWire.h>
#include <DallasTemperature.h>
//Def
#define myPeriodic 15 //in sec | Thingspeak pub is 15sec
#define ONE_WIRE_BUS 2 // DS18B20 on GPIO2
@teos0009
teos0009 / ds18b20-nodemcu-v1.0-esp8266-arduino-ide.cpp
Last active November 25, 2019 19:03
DS18B20 nodeMCU v1.0 with ESP8266 arduino IDE stream data to thingspeak
//nodeMCU v1.0 (black) with Arduino IDE
//stream temperature data DS18B20 with 1wire on ESP8266 ESP12-E (nodeMCU v1.0)
//shin-ajaran.blogspot.com
//nodemcu pinout https://github.com/esp8266/Arduino/issues/584
#include <ESP8266WiFi.h>
#include <OneWire.h>
#include <DallasTemperature.h>
//Def
#define myPeriodic 15 //in sec | Thingspeak pub is 15sec
//Single Appreciation Day (SAD)
//auto hot dater powered by arduino
#include <Servo.h>
Servo myservo;
int pos = 0; // variable to store the servo position
long rndMatch;
int swipeCount = 0;
void setup()
{
#have to physically connected to the respective AP to use
#T931 cloud thingSpeak1: 172.16.114.166
#http://172.16.114.166:3000
#T1662 thingspeak server: 192.168.1.117:3000
//---error with apt-get----
#remove deb with Failed cond via comment #
sudo nano /etc/apt/sources.list
/----list sw to a file--
//
//#include <SoftwareSerial.h>
//use mega Serial 2 for serial monitor; Serial 1 on pins 19 (RX) and 18 (TX);// Serial2 on pins 17 (RX) and 16 (TX), Serial3 on pins 15 (RX) and 14 (TX).
//DS18B20 uses onewire protocol; need 5k pullup
#include <OneWire.h>
#include <DallasTemperature.h>
#define SSID "SSID_HERE"
#define PASS "PASSWORD_HERE"
#define DST_IP "220.181.111.85" //baidu.com
@teos0009
teos0009 / gist:60d9d10b9441cc2bc0a2
Created December 28, 2014 08:38
SSR and Arduino Mega with ESP8266
//mod from https://github.com/Doomhammer458/ESP8266-LED-Server/blob/master/esp8266LED.ino
//#include <SoftwareSerial.h>
//use mega Serial 2 for serial monitor; Serial 1 on pins 19 (RX) and 18 (TX);// Serial2 on pins 17 (RX) and 16 (TX), Serial3 on pins 15 (RX) and 14 (TX).
#define SSID "the_ssid_here"
#define PASS "the_password_here"
#define DST_IP "220.181.111.85" //baidu.com
//SoftwareSerial dbgSerial(10, 11); // RX, TX
#define acPin 7
char myChar;
#include <SoftwareSerial.h>
#define SSID "enter the SSID"
#define PASS "enter the password"
#define DST_IP "220.181.111.85" //baidu.com
SoftwareSerial dbgSerial(10, 11); // RX, TX
void setup()
{
//setup RGB LED as indicator instead of softserial
pinMode(3, OUTPUT);
pinMode(4, OUTPUT);