Upgrade Kankun Smart Plug

To preserve some changes and files I added. Add their path to sysupgrade.conf, in my case this is /www/ and /www/cgi-bin/.

# cat /etc/sysupgrade.conf

## This file contains files and directories that should
## be preserved during an upgrade.

# /etc/example.conf
# /etc/openvpn/
/www/
/www/cgi-bin/
root@cat:/rom/www/luci-static#

 

Download the upgrade to /tmp/

wget -O /tmp/openwrt-15.05.1-ar71xx-generic-tl-wr703n-v1-squashfs-sysupgrade.bin http://downloads.openwrt.org/chaos_calmer/15.05.1/ar71xx/generic/openwrt-15.05.1-ar71xx-generic-tl-wr703n-v1-squashfs-sysupgrade.bin

Run the upgrade and set back and wait. One site I found on the web said they had problems with wireless being disabled after running sysupgrade -c on one of three attempts. If that happens it means I’ll be opening the case and soldering pins to the headers to get wireless enabled again.

sysupgrade -c /tmp/openwrt-15.05.1-ar71xx-generic-tl-wr703n-v1-squashfs-sysupgrade.bin

BusyBox v1.23.2 (2016-01-02 18:01:44 CET) built-in shell (ash)

W I R E L E S S F R E E D O M
—————————————————–
CHAOS CALMER (15.05.1, r48532)
—————————————————–
* 1 1/2 oz Gin Shake with a glassful
* 1/4 oz Triple Sec of broken ice and pour
* 3/4 oz Lime Juice unstrained into a goblet.
* 1 1/2 oz Orange Juice
* 1 tsp. Grenadine Syrup
—————————————————–

root@cat:~#

Seems like it worked, the plug is sitting there with a blue light like it is still upgrading.

root@cat:~# cat /etc/openwrt_release
DISTRIB_ID=’OpenWrt’
DISTRIB_RELEASE=’15.05.1′
DISTRIB_REVISION=’r48532′
DISTRIB_CODENAME=’chaos_calmer’
DISTRIB_TARGET=’ar71xx/generic’
DISTRIB_DESCRIPTION=’OpenWrt Chaos Calmer 15.05.1′
DISTRIB_TAINTS=”
root@cat:~# cat /etc/openwrt_version
15.05.1
root@cat:~#

After the install finished I was good and logged back in using the password that I had set for root. The relay didn’t work to turn the switch on and off  but adding two lines to rc.local corrected this problem.

echo 26 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio26/direction

After doing that and testing with a couple of reboots I can run the commands below to turn the outlet on and off from the CLI or go to the web page that I build and do the same there. Just the line with the word echo in them.

#ON:
#echo 1 > /sys/devices/virtual/gpio/gpio26/value
#OFF:
#echo 0 > /sys/devices/virtual/gpio/gpio26/value

Space is at a premium on this device after the upgrade.

root@corner:~# df -h
Filesystem Size Used Available Use% Mounted on
rootfs 1.0M 256.0K 768.0K 25% /
/dev/root 2.0M 2.0M 0 100% /rom
tmpfs 14.2M 68.0K 14.1M 0% /tmp
/dev/mtdblock3 1.0M 256.0K 768.0K 25% /overlay
overlayfs:/overlay 1.0M 256.0K 768.0K 25% /
tmpfs 512.0K 0 512.0K 0% /dev
root@corner:~# exit
root@cat:/~# df -h
Filesystem Size Used Available Use% Mounted on
rootfs 512.0K 396.0K 116.0K 77% /
/dev/root 2.3M 2.3M 0 100% /rom
tmpfs 14.0M 64.0K 13.9M 0% /tmp
/dev/mtdblock3 512.0K 396.0K 116.0K 77% /overlay
overlayfs:/overlay 512.0K 396.0K 116.0K 77% /
tmpfs 512.0K 0 512.0K 0% /dev
root@cat:~#

Smartthings is broken now and I can’t use voice commands on Alexa for this plug either until I sort that out.

 

Advertisements
Quote | Posted on by | Leave a comment

Wages

I was filling the Heep up with gas today at the local Cumberland Farms and noticed a help wanted sign “Starting pay $13 an hour”.
This made me think of Al Vermalia he was an old codger I worked with years ago. He used to tell me how easy I had it since when he started out at seventeen cents an hour back in the day.
When I started minimum wage was $2.65 and I got a raise a few weeks later when the state minimum went up. I’m starting to understand why that seemed so huge to Al and I think I might be the old codger now.

When I hit seventy how much will that dollar be worth then?

Posted in Family | Leave a comment

Stuffed Spaghetti Squash

One large spaghetti squash
one pound mozzarella
sixteen ounces ricotta cheese
four ounces butter
garlic cloves to taste
one pound boneless skinless chicken
four ounces Italian dressing
basil cubes to taste

Heat the oven to four hundred degrees
Split the squash in half and remove the seeds
clean and crush the garlic cloves place them and a couple pats of butter on a cookie sheet with the halves of squash open side down over the garlic and butter. Cook for one hour.

When the squash is close to having been in the oven for one hour take the chicken and dice it up in a pan on the stove top. Brown the chicken and add the Italian dressing and cubes of basil letting it all blend together.

Once the squash has cooked for an hour remove it from the oven and flip them over. Add a layer of ricotta cheese then the browned chicken and last a layer of mozzarella into the squash. Put this back in the over at four hundred and cook for another twenty minutes or until the mozzarella starts to brown.

Remove form the oven and let sit for about five minutes, serves four to six people with left overs.

I like to add a diced up tomato or mushrooms into the squash with the chicken, ricotta, and mozzarella. You could add anything you like to give it a little more something.

Basil Cubes
Harvest the fresh basil from the garden and puree it into a mush add a little olive oil and dump these in an ice cube tray. Freeze and save the basil for later use, long after your basil has all frozen outside.

I got some great spaghetti squash this year from the Suzy Dan team, thanks guys we had a great dinner Sunday.

Posted in cooking, food, gardening | Leave a comment

Bread and Butter Pickles

3 Quarts Bread and Butter Pickles

I added a little chili powder, lemon and pepper to give it a slight bite. I also ignored the onions as I’m no fan of onions and celery. I let these sit with the weight on them for about twenty four hours since I got busy, I think it just let the flavor sink in more.

  • 15 cups sliced cucumbers
  • 3 onions, thinly sliced
  • 1cup coarse salt
  • 4 cups cracked ice
  • 1cups cider vinegar
  • 1cups sugar
  • 3teaspoon turmeric
  • 1teaspoon celery seed
  • 1 tablespoon mustard seeds

pickles

Directions

  1. Combine cucumbers, onions, salt and ice in a large bowl.
  2. Mix well.
  3. Put a weight on and allow to stand 3 hours. (I used a plate with a jar of honey, anything will do).
  4. Rinse and drain thoroughly.
  5. Combine vinegar, sugar, turmeric, celery seed and mustard seed in a large pot.
  6. Add drained cucumbers.
  7. Place pot on medium low heat.
  8. Bring almost to a boil, but DO NOT ALLOW TO BOIL.
  9. Remove from heat.
  10. Seal in sterilized jars, 10 minutes in a hot water bath.

 

  1. Easy way to sterilize jars: Wash them well in hot soapy water.
  2. Dry them off.
  3. Put on a cookie sheet, right side up, at 225°F for 15 minutes.
  4. Turn off oven and leave them in there until you need them.

 

Posted in cooking, Family, recipes, Uncategorized | Leave a comment

BLT Steakhouse and Ford Sync by Microsoft

At first glance you would think these two things have no relation. However they seem to originate from the same place.

I was riding home in works 2015 Ford Escape, equipped with Sync. I asked for some Willie Nelson, which I had loaded on my USB stick and and put in the cars USB port. What played was something entirely different, Wrecking Ball by Miley Cyrus. I didn’t even know that was on there, but the song always make me laugh and think about the Bama fan. I do love that snippit of video.

Not entirely unlike my visit to BLT Steak in Washington DC. I ordered a stout but they were out and I ended up with a Duck Rabbit brown ale no other stouts on the menu. Then I ordered dinner, a baby spinach salad, spiced tuna and asparagus. What a tasty meal right? The first thing to come out was a Caesar salad. Not to bad I was waffling between that and the baby spinach, maybe this is what I said when I was ordering. But I thought I even pointed the item out on the menu since it was very noisy in there.

Then out comes my steak and baked potato. What? I told the server I had ordered spiced tuna and asparagus, he apologized and took the steak back. Wait a while and a great meal of what I ordered and they added some mushrooms. They also comped a dessert of warm apple cobbler.

I went back to my hotel room happy and full for the night.

Posted in Uncategorized | Leave a comment

Eco Plug

With a lot of help from Viktor I tinkered with an Eco Plug that I got from Home Depot for $7.50ish. I can turn it off and on using voice commands on Alexa. This has an esp8266 wireless board in it that we loaded with some code to make it look like a WeMo to Alexa.

img_0148

The wires were soldered on temporarily so I could connect a USB FTDI from my PC. There wasn’t enough room inside the plug to leave the wires on so I ended up removing them.

usb-ttl5vt-uart-pinout

Arduino IDE was used to upload to the esp8266. A tutorial for how to work with this is here.

Posted in Uncategorized | Leave a comment

Wemo Lights

I wanted a way to control my Smart Home devices inside the house if I had no Internet connection. I have a mix of Wemo and Kankun plugs right now that I’m using to control various lamps and my outdoor light.

I built a small web page on my Raspberry Pi with buttons for each device. I need to do a lot of cleanup to get the buttons lined up but what I used for the Wemo devices had a lot of padding around each image that was used. The small red light indicates the switch is on, on the Driveway button no light indicates it is off.

pi-webpage

Below is an image from the Wemo pages that I replaced with the buttons shown above.

on-1

For Wemo’s I used the instructions found here. I had a fair amount of trouble getting this working correctly because of permission issues. First it wouldn’t build the database because of a missing line at the top of wemo_backend.py not sure if I deleted that or if it was just missing but I added “#!/usr/bin/python” and that ran. Then I had to create the logfile in “/var/log/wemo/switchlog”.

Posted in Home Automation, Uncategorized | Leave a comment