Import Images From A Migrated WordPress


The Logo for WordPress.

Here's how to solve a common WordPress problem. I want to re-import all my blog's images into the media library. I've moved my blog to a new host - but kept the same domain name. I started with a new WordPress install, the uploads folder still has all my images, but WordPress can't see them. None of the plugins I found worked with huge amounts of images spread across multiple directories. One Line Fix This uses the WP-CLI program. Install it on your server, then run: ./wp-cli.phar media…

Continue reading →

Alexa powered smarthome control for Sonoff


I've been sent a couple of Sonoff smarthome gadgets. You can read my review of the S20 WiFi plug socket and the POW in line power controller. Here's a video of me controlling them from my Amazon Alexa: The latency seems a little slow - hard to tell if that's Amazon only relying on US data centres for Alexa skills, or the connection to my home. Once set up, it works well. Oh... but the set up experience... Set Up I'll be honest - configuring a smarthome for voice control is still …

Continue reading →

Internet Connected Lightswitches - Redux!


Regular readers will remember that I have had a disastrous experience with WiFi light switches. I've had pretty good results with LIFX bulbs - but I really wanted something which can control my lights' switches. Enter the new WisQo smart lightswitches. The company claims that they'll work with the UK's "unique" wiring designs. They've kindly sent me a set to review - adjust your bias filters accordingly. The good news is they actually work! The bad news is that the app is tedious to use.…

Continue reading →

Building an Internet Connected Fridge


The Internet Fridge is a standing joke among technologists. I was writing about them in 2002, and they still haven't appeared! So I'm going to show you how I built one. Stop giggling at the back! All I want is for my fridge to notify me if the door has been left over for more than a minute. I'm building this with an Onion Omega2 - but you could just as easily use a Pi Zero or any other board. Design This should be simple (as all complicated stories start): When the fridge door is…

Continue reading →

My solar batteries on BBC's You & Yours


Me and a man from the BBC standing in front of an electric car.

Always a delight to be interviewed by the BBC again. This time, talking about our Solar Batteries. You can listen again on the BBC iPlayer. The solar stuff starts at 14m 30s, with my interview at 17 minutes. You can also hear my electric car being charged :-) Terence Eden is on Mastodon@edentBeing interviewed by a nice man from the BBC about @Edent_Solar, @OxfordSolarLive and @edent_car!Thanks @JonDgls! pic.x.com/uvPiXQRM2r❤️ 4💬 0🔁 018:08 - Tue 18 October 2016 🔊 Solar Power, Free-range E…

Continue reading →

The (Connected) House Of Horrors


Terence Eden speaking at the ThingMonk conference.

In September 2016, I was delighted to deliver this talk to ThingMonk 2016. This is the 20 minute distilation of my adventures Singing to my lightbulbs, hacking my vacuum cleaner, finding my car's source code, hacking my electric car, getting hacked by my light switches, securing my security cameras, and a whole host of other IoT nonsense. Huge thanks to Bennycrime for filming, and the whole ThingMonk team. If you'd like me to speak at your conference, please get in touch. A selection of …

Continue reading →

Reverse Engineering the Renault Zoe API


Website showing my car and its mileage

Last year I published details of the BMW i3's API. I've now swapped my i3 for a Renault Zoe - so I thought I'd perform the same exercise. edent's Car@edent_car🔋 100%🚗 76 miles🔌 Plugged in⚡ Not charging⚠ Secured and Locked#RenaultZOE❤️ 1💬 0🔁 020:18 - Sat 15 October 2016 All these API calls can be found by using the Renault ZE Services website. I am indebted to this German blog post for kicking off this work. I'd also like to thank Renault for their "esoteric" use of JavaScript! What's Availa…

Continue reading →

Singing to my light bulbs


Screenshot. In one corner of my screen is a browser, one is a webcam view of me, one contains HTML output, one contains a debug console.

Because I'm an idiot, I've decided that what my life needs is voice activated lightbulbs. But voice control is so 2015. Let's make these bulbs react to SINGING! Here's a demo - fair warning, my vocal prowess is "limited". https://shkspr.mobi/blog/wp-content/uploads/2016/05/Voice-Controlled-Lifx.mp4 OK, here's how to do this. I recently got a bunch of Lfix bulbs as part of a bug bounty. There's a full API for the Lifx bulbs. My mate Ruth has written a great demo on the Chome…

Continue reading →

The absolute horror of WiFi light switches


I've just got a WiFi light switch. As I've explained previously, swapping out all my existing light bulbs with Smart Bulbs would be hugely expensive and has the disadvantage of not working when the switches are off at the wall. A WiFi light switch (theoretically) allows me to control the lights from my phone - and anyone else to use the physical buttons on the wall. That helps avoid this scenario: Cate@c8tersWhen you're house sitting for millennials and ask how the lights work…

Continue reading →

Cheap BlueTooth Buttons and Linux


Selfie sticks - like most modern inventions - are utter tosh. But they've rapidly brought down the price of Bluetooth buttons. So who am I to complain? Let's take the venerable AB Shutter 3 - You can find it on Amazon for around £2 including postage - or around $2 on AliExpress. Frankly, that's stupidly cheap. OK, let's put this to work as something other than a vanity clicker! There are no instructions which come with this, it's delivered in a little plastic bag and that's it. Time to …

Continue reading →

Raspberry Pi Zero Hidden In An Xbox Controller


I like to tinker. My wife picked me up the new Raspberry Pi Zero. It's an ultra small and ridiculously cheap computer. How small and cheap? They give it away free on the cover of magazines... Terence Eden is on Mastodon@edentIf you hurry down to WHSmith in Oxford, there are still a few @TheMagP1 copies left.❤️ 3💬 0🔁 208:10 - Fri 27 November 2015Terence Eden is on Mastodon@edentReplying to @edentIn related news, @summerbeth is the best wife of them all! #PiZero pic.x.com/utsf2m13jo❤️ 11💬 1🔁 00…

Continue reading →

Reverse Engineering the BMW i3 API


I'm really enjoying driving the BMW i3. I'd love to have it tweet its driving efficiency, or upload its location to my server, or let me turn on its air-conditioning when the temperature gets too warm - there are a hundred interesting things to do with the car's data. The official app has some of these features - but is slow, ugly, and a pain to use. BMW used to have an API available for hackathons, but they shut it down. Terence Eden is on Mastodon@edentReplying to @BMW@BMW I've just got…

Continue reading →