HomeKit HomeBridge Enabled Arduino ESP8266 Self Powered 110v Wifi Controlled Powerswitch

http://www.instructables.com/id/HomeKit-Enabled-Arduino-ESP8266-Self-Powered-110v-/

Why buy a UL Listed iDevices Switch when you can potentially electrocute yourself or start a fire with a self built alternative instead?

Here’s how!

First, you must install HomeBridge on a Raspberry Pi, and configure it as a HomeKit bridge device. Instructions below.

Once you have HomeKit / HomeBridge working on your Pi and your iPhone, we can build a wireless power switch that can be controlled by Siri and the HomeKit app.

We start with a PowerTail2, and use the ESP8266 to control the on/off line.

We power the ESP8266 with a AMS1117 3.3V Power Supply Module. This brings the 5v from the charger down to the proper 3.3v that the ESP8266 needs.

We provide the power with a used cell phone charger. 110v -> 5v. This is wired directly to the ‘Line’ side of the PowerTail2 circuit board. It is always ‘Live’ or ‘Hot’ and will shock you.

We Load the code into the ESP8266 via your favorite USB/Serial converter (FTDI).

We plug it in. Homekit sees the device via the HomeBridge configuration file addition (accessory) on the Raspberry Pi.

You control the device on your iPhone, and turn electricity on and off at will.

More info to come.

Resources:

https://github.com/esp8266/Arduino/tree/master/lib…

http://www.electrodragon.com/w/ESP8266_AT_Commands

https://www.google.com/search?q=esp8266+arduino&es…

http://www.powerswitchtail.com/Documents/PSTK%20In…

Homekit:

https://github.com/nfarina/homebridge

https://github.com/nfarina/homebridge/wiki/Running…

https://www.npmjs.com/package/homebridge-indigo

https://www.google.com/webhp?sourceid=chrome-insta…

https://github.com/lagunacomputer/homebridge-Curre…

Step 1 Build It:

Solder it together.

1x PowerTail II Power switch kit $19.99 + shipping

1x ESP8266 ESP-01 module $5.50

1x AMS1117-3.3 Power Module AMS1117 3.3V Power Supply Module With Heat Sink $0.99

1x 110v to 5v/1A used cell phone charger

1x small Perfboard for circuit approx 2″x1.25″ inch

2x 110v extension cord to cut up $1.99 each at Home Depot

1x small SPST on/off switch

Step 2: Edit the HomeBridge /var/homebridge/config.json file on the Raspberry Pi HomeBridge

the file may alternatively be in /home/.homebridge or /root/home/./homebridge. read the docs from the github link

https://github.com/nfarina/homebridge

Ensure this plugin is installed. It may be installed by default in the newer versions:

https://www.npmjs.com/package/homebridge-http

Program the ESP8266. Upon powering up (3.3v do not use 5V!) it should be seen on the network.

Try something like http://192.168.1.110/gpio/1 . You should get a webpage returned.

Assuming your ESP8266 pulls a DHCP ip of :192.168.1.110

(you should probably set a DHCP reservation on your router, for each ESP8266 you add)

add this code to the config.json file. ( sudo nano /var/homebridge/config.json) etc:

mind the last comma, you may or may not need it if you have other accessories, or Homebridge is crashing on load.

{ “accessory”: “Http”,
“name”: “PowerTail”,
“on_url”: “http://192.168.1.110/gpio/1”,
“off_url”: “http://192.168.1.110/gpio/0”,
“http_method”: “GET”
},

Step 3: ESP8266 Arduino Code

/* * This sketch demonstrates how to set up a simple HTTP-like server.
* The server will set a GPIO pin depending on the request
* http://server_ip/gpio/0 will set the GPIO0 low,
* http://server_ip/gpio/1 will set the GPIO0 high
* server_ip is the IP address of the ESP8266 module, will be
* printed to Serial when the module is connected.
*/

#include

const char* ssid = "EDITMEWITHYOURWIFISSIDNAME";
const char* password = "EDITMEWITHYOURWIFIPASSWORD";

// Create an instance of the server
// specify the port to listen on as an argument
WiFiServer server(80);

void setup() {
Serial.begin(115200);
delay(10);
pinMode(LED_BUILTIN, OUTPUT); // Initialize the LED_BUILTIN pin as an output
// prepare GPIO0
pinMode(0, OUTPUT);
digitalWrite(0, 0);

// Connect to WiFi network
//Serial.println();
//Serial.println();
//Serial.print("Connecting to ");
//Serial.println(ssid);

WiFi.begin(ssid, password);

while (WiFi.status() != WL_CONNECTED) {
delay(500);
//Serial.print(".");
}
//Serial.println("");
//Serial.println("WiFi connected");

// Start the server
server.begin();
//Serial.println("Server started");

// Print the IP address
//Serial.println(WiFi.localIP());
}

void loop() {
// Check if a client has connected
WiFiClient client = server.available();
if (!client) {
return;
}

// Wait until the client sends some data
//Serial.println("new client");
while(!client.available()){
delay(1);
}

// Read the first line of the request
String req = client.readStringUntil('\r');
//Serial.println(req);
client.flush();

// Match the request
int val;
if (req.indexOf("/gpio/0") != -1)
val = 0;
else if (req.indexOf("/gpio/1") != -1)
val = 1;
else {
//Serial.println("invalid request");
client.stop();
return;
}

// Set GPIO0 according to the request
digitalWrite(0, val);
digitalWrite(LED_BUILTIN, val); // Turn the LED on (Note that LOW is the voltage level
client.flush();

// Prepare the response
String s = "HTTP/1.1 200 OK\r\nContent-Type: text/html\r\n\r\n\r\n
\r\nGPIO is now ";
s += (val)?"high":"low";
s += "

\n";

// Send the response to the client
client.print(s);
delay(10);
//Serial.println("Client disonnected");

// The client will actually be disconnected
// when the function returns and 'client' object is detroyed
}

Step 4: Test the new Accessory in iOS HomeKit App

Step 5: Don’t Electrocute Yourself.

http://lagunabeachcomputer.com/wp-content/uploads/2016/10/image1-150×150.png

http://lagunabeachcomputer.com/wp-content/uploads/2016/10/homekit_siri-150×150.png

http://lagunabeachcomputer.com/wp-content/uploads/2016/10/pst_ii_rev_6a_oct_2013.bmp

http://lagunabeachcomputer.com/wp-content/uploads/2016/10/esp8266-reflash-firmware-150×150.png

http://lagunabeachcomputer.com/wp-content/uploads/2016/10/IMG_4286-150×150.jpg

http://lagunabeachcomputer.com/wp-content/uploads/2016/10/IMG_4283-150×150.jpg

How to Fix the iTunes Restore/Update 3194 error on my iPhone 4 Jailbroken with iOS 6.1.2, Updating to iOS 7.0

Here is how I fixed the iTunes restore/update 3194 error on my iPhone 4 Jailbroken with iOS 6.1.2, updating to iOS 7.0

 

What didn’t work:

-removing all gs.apple.com entries from the Hosts file

-reinstalling iTunes 11.1

-removing all extra USB devices.

 

What DID work:

-going to a FRESH/NEW/DIFFERENT COMPUTER

-installing iTunes 11.1

-Plug in phone, Yes to backup, Yes to update

 

BAM!

How to Stop and Take Down Debt Collection Call Centers with Just Your iPhone

How to Stop and Take Down Debt Collection Call Centers with Just Your iPhone

The ‘Wollenberg Attack‘ is a simple iPhone based conference call attack on annoying debt collector and telemarketer calls.  I came up with this revenge tool after receiving many repetitive annoying calls from debt collectors.  I image you can apply the same principals to any modern telephone with conference call capabilities.

The problem – You receive multiple calls over and over from the same call center.

The solution – Call them all back, only this time we are going to call them back all at once!

The Wollenberg Attack:

Take Down Call Centers with a Single iPhone

Take Down Call Centers with a Single iPhone

We are going to tie up 4-12 Call Center employees at a time, for as long as you like.  This will certainly be noticed by the debt collection company management.  After we hold their expensive call center hostage with just your cell phone, we will demand they lose the number.  If we are threatened with legal action, we will remind them that they called us, and that we are just calling them back (just all at once :>  ).

1. Answer a phone call from a collections call center, and demand that they stop calling you, then hang up. This puts the # in your Recents list on your iPhone.

2. Dial the # back. (it is important not to mute the line, just don’t say anything)

3. When the call gets answered, hit the ‘add call‘ button on your iPhone

4. Click on ‘Recents‘, and dial back the SAME # in step 2.

5. When that call answers, hit ‘merge calls‘ on your iPhone

6. Now repeat steps 2-5 until you have several calls conferenced together.

I like to get about 5 or 6 agents on the phone, screaming at each other.  Some will hang up, i just keep calling back and adding more conference calls to the same number.  At some point the agents will figure out that something fishy is going on.  Try VERY HARD not to bust out laughing.

After about 10-15 minutes of tying up their employees, I usually chime in and say something like

TELL YOUR SUPERVISOR I WILL TIE UP ALL OF HIS EMPLOYEES FOR AS LONG AS I WISH, AND WILL DO SO EVERYTIME YOU CALL ME.  TELL YOUR SUPERVISOR TO STOP CALLING THIS PHONE NUMBER.  ITS NOT COST EFFECTIVE ANYMORE!

and then hang up, and try not to die laughing….

Shuli for iPhone, iPod touch, and iPad on the iTunes App Store

Shuli for iPhone, iPod touch, and iPad on the iTunes App Store

Howard Stern Comedian SHULI EGAR‘s iPhone App written by Galen Wollenberg

Shuli – The iPhone App

Shuli Egar is a comedian who first appeared on the Howard Stern Radio Show in June 2003. When Stern moved to Sirius, Shuli was made the host of the “Miserable Men” show. He was later promoted to be an on-air reporter for Howard 100 news, focusing on stories about The Wack Pack and filling in for Lisa G and Steve Langford when they’re out.

His go-getter attitude landed him a full-time gig, which ballooned into coveted slots on the popular Stern Show roasts, as well as becoming a contributor to the Scott Ferrall Show and co-host of the Sirius Satellite Radio programs The Jay Thomas Show and Miserable Men.

As if contributing to four radio programs wasn’t enough, Shuli hit the road every weekend across the country as part of the Killers of Comedy tour, which featured a rotating cast consisting of Stern Show regulars such as Jim Florentine, Sal “the Stockbroker” Governale, Richard Christy, Yucko the Clown and Beetlejuice. Shuli, clad in his mustard-yellow Howard 100 News jacket, hosted each performance and got crowds amped with his unique and humorous looks at the “dangers” of smoking pot, life as a Jew and the behind-the-scenes antics of the Stern Show.

The Killers of Comedy ended its run, but Shuli is embarking on another trek across America with the Miserable Men Comedy Show starring Shuli and Miserable Men co-hosts Mark Byrnes and Mike Morse. The radio program – currently one of only two live weekend shows on Stern’s two stations – tackles male-related subjects in a no-holds barred approach and the tour promises to do just that and then some.

And Now, There’s an App for Shuli !

* Make Sure Your iPhone Is NOT on VIBRATE, The VOLUME is UP, and Your HAND doesn’t COVER the SPEAKER. *

What’s New in Version 1.1

+ Added iPad Support. Universal Binary.

Buy App In iTunes

Shuli Egar iPhone App

 

Christmas Audio Free for iPhone, iPod touch, and iPad on the iTunes App Store

Christmas Audio Free for iPhone, iPod touch, and iPad on the iTunes App Store written by Galen Wollenberg

Christmas Audio is the best iPhone and iPod Touch holiday sound effects app there is! With 16 different Christmas sounds, you can create your own festive music or sound effects. It’s the perfect office cheer app this holiday season! Entertain your kids for hours, they love it!

Also includes SHAKE capability. Just SHAKE your iPhone to play random Christmas sounds! If You Like It, Please Rate It! :> Thanks!

Create your own holiday tune or just cheer your friends. Don’t let its simplicity fool you, this app is very dynamic and entertaining! A must have for Christmas!

* THIS IS THE FREE VERSION. IT HAS 8 SOUNDS.

* UPGRADE to the FULL VERSION FOR ALL 16 SOUNDS!
Sounds include:
Frosty the Snowman
Have you been a Good Boy? (Santa)
Hallelujah
Merry Christmas (Group)
Ho-Ho-Ho (Santa)
Holly Jolly Christmas
Look a Lot Like Christmas
We Wish You a Merry Christmas
La La La La
Have you been a Good Girl? (Santa)
Merry Christmas
Rudolph
Sleigh Bells
Winter Wonderland
Mr. Grinch
Silver Bells

*If app crashes after install, you need to do one of these:

1. Reboot iPhone. Press & hold power button and then slide the red slider when it appears.

2. Turn up the volume. Make sure Vibrate mode is off. Move your hand away from the bottom speaker.

3. Update your iPhone to firmware 4.1 or higher. Plug it into iTunes. Click on Yourname’s iPhone from left menu. Click on update iPhone button in center screen.

What’s New in Version 1.1

+Updated code to iOS 4.1

Buy App In iTunes

 

 

 

Christmas Audio iPhone App

Christmas Audio iPhone App

Bob Levy for iPhone, iPod touch, and iPad on the iTunes App Store

Bob Levy for iPhone, iPod touch, and iPad on the iTunes App Store

Bob Levy – iPhone, iPad and iPod Touch App.

Comedian Bob Levy is famous for his hilarious appearances on Sirius/XM’s The Howard Stern Show, The Miserable Men Show, Opie & Anthony, The Roast of Jim Florentine and many others.

With this app you can listen to 24 of Bob Levy‘s comical jokes and rants. Hear Bob interact with his famous little sidekick, the one and only BeetleJuice. The Fun Never Stops!

Press a button or shake your iPhone, iPad or iPod Touch to play Bob Levy‘s best wisecracks and quotes!

*Contains Adult Language and Subject Matter

Full Version includes 24 sounds:
+Before This
+Cut The BS
+Don’t Get Loud
+Fix-a-Dent
+****in’ Sailors
+Get The **** Out
+Go Early
+How Did It Break
+How Old Are You
+Jump Off
+Guys With Masks
+Meet & Greet
+Needle Ride
+Non Smoking
+Read A Book
+I’m In Seattle
+Snacks
+Space Needle
+Tell Richard
+Tooth Broke
+Unicorn Head
+We Gotta Go
+What’s Howard Like
+What The ****

Buy App In iTunes

 

 

 

bob_levy_iphone_app

 

DEV INVADERS – An alien invasion game for iOS Developers

DEV INVADERS –  An alien invasion game for iOS Developers by Galen Wollenberg

An alien invasion game for iOS Developers.

Shoot developer Enemies down as you try to get your App in the App Store!

Have a ‘blast’ fighting your way through 6 levels of Enemy Code Errors, Bad Code Signing, 2.12 Rejections, Firmware Updates and Many More!

Hit Bonus items for extra lives and weapon upgrades.

DEV INVADERS will bring a smile to anyone. A MUST for any iPhone Developer!!

Tilt iPhone Left and Right to move. Tap Screen to shoot.

An alien invasion game for iOS Developers

An alien invasion game for iOS Developers

 

 

 

 

An alien invasion game for iOS Developers

An alien invasion game for iOS Developers

Robot Decision Maker Free iPhone App By Galen Wollenberg

Robot Decision Maker Free iPhone App By Galen Wollenberg

Just Ask the Robot a Simple Question!

Then Shake or Touch the Robot

And He will Tell you the Answer in his Robotic Voice!

Over 20 possible answers!

Fun Fun Fun!

What’s New in Version 1.2

LOUDER SOUND. Turned up the volume on all sounds.

View in iTunes

 

 

Robot Decision Maker Free

Robot Decision Maker Free

War Audio for iPhone, iPod touch, and iPad on the iTunes App Store

War Audio for iPhone, iPod touch, and iPad on the iTunes App Store

Get into the Battlefield!
Hear and Play Explosions, Gunfire, Bomb Drops and More!

Features realistic military radio chatter.

War Audio is unique because you can play multiple warfare sound effects simultaneously. Create your own realistic battle sounds and music!

Great for a break at the office!

View in iTunes

War Audio for iPhone, iPod touch, and iPad on the iTunes App StoreWar Audio

 

War Audio for iPhone, iPod touch, and iPad on the iTunes App Store was written by Galen Wollenberg

Ultimate Keygen Music Jukebox – iPhone App

Ultimate Keygen Music Jukebox
– iPhone App by Galen Wollenberg

Over 30 of the best keygen music you know and love!

Tap the screen to change songs.

Includes classic iconic favorites from:

AGAIN
AGRESSION
AT4RE
BetaMaster
Black Magic
BLiZZARD
BRD
BReWErS
CLASS
Core
DEViANCE
ECLiPSE
EMBRACE
FFF
Orion
Razor1911
ViRiLiTY

View in iTunes


Ultimate Keygen Music Jukebox iPhone App by Galen Wollenberg

Reactor Firefighter – iPhone/iPad App

Reactor Firefighter – iPhone/iPad App

The reactors have been damaged and are overheating.
As a Brave and Heroic Firefighter, Your Mission is to spray water on the reactors to cool them down before they explode!

Reactor Firefighter

Cool the reactors down before they overheat, explode and meltdown. Use your firetruck to spray water on the reactors. Dangerous radiation is released if the reactors get too hot, or explode.

Reactor Firefighter is a iOS app written by Galen Wollenberg.

What’s New in Version 1.1

+Fixed Reactor 1 temp meter placement.
+misc bug fixes.

View in iTunesAvailable on iTunes!

Reactor Firefighter – iPhone / iPod Game App

10 FREE iTUNES PROMO CODES FOR Halloweeny iPhone iPad iPod Halloween App!

‎10 FREE iTUNES PROMO CODES FOR Halloweeny iPhone iPad iPod Halloween App!

THIS IS NOT COPYRIGHT INFRINGEMENT! I AM THE AUTHOR!

3APPJT3RY3NA
A6Y4A4FX4YXF
JKERWK9AK9AA

MYPY3H3K3XXA
HWP43JHMP7F4
PH44NXW33WWY
TJYFM3TH6769
XJW76NWAF3WR
LTA9AH64XPJX
XNJK49MY76KE

https://itunes.apple.com/us/app/halloweeny/id396772124?mt=8