Posts filed under Gadgets

Raspberry Pi OPNsense Captive Portal Voucher Generation

When I received my new HP/Aruba iAP-305-RW access points I started to think about introducing a wireless guest network. Not a network with a pre-shared key, but something more secure and flexible. The HP/Aruba AP’s have the option for captive portal, but it doesn’t have a good integration with ACME/Let’s Encrypt certificates. My OPNsense firewall has very good integration with ACME/Let’s Encypt, and has the option of deploying a Captive Portal.

Configuring the Captive Portal on the OPNsense firewall is pretty straightforward. It’s well documented, and is up-and-running in minutes. The main challenge was creating a way to supply the credentials to the users. The default option is to generate voucher codes and print them. Not really an option, since I loose those pieces of paper before I even printed them.

The newer OPNsense software has a decent API, which also includes API options for captive portal. This opened up an option including a Raspberry Pi.

Posted on July 19, 2023 and filed under Programming, Raspberry Pi, Security, Gadgets.

Install a Viofo A119 Mini Dashcam in a Kia EV6

Viofo A119 Mini Dashcam

I recently decided to get a dashcam for my new Kia EV6. Previously I decided against a dashcam mainly because of the hassle of hiding the cables. I’m not a fan of seeing power/USB cables running through the car. That was until I ran into a Dongar power adapter that runs of the rearview mirror power. This means that I don’t have to bother with running cables through and behind the interior of the car.

So having found a nice alternative of routing cables I decied to do some research on which dashcam. After several hours of researching I bought the Viofo A119 Mini Dashcam. My reasons of selecting this one are;

  • WiFi support

  • 1440p (4k is nice, but you need a lot of storage)

  • Numerous parking modes incl. timelapse, motion detection (visually, and through a motion sensor)

  • Relative small

  • Decent reviews

The dashcam arrive the next day, and the Dongar adapter was still on it’s way (ordered July 8th). This meant waiting… Something I’m not really good at 😃. So I decides to give it a try without the Dongar adapter, and use the included hardwire kit (which offers recording of events when the car is powered down).

First; research in how to dismantle the interior.
I was not able to find any youtube video’s on the EV6, but I found a video on routing cables through a Kia Forte.

This video mentions a connector at the near top of the A-pillar that needs to be detached. Problem is that I wasn’t able to figure that out. Either I’m missing the right tools, of my fingers are too thick.

An image I found also describes how to detach the A-pillar cover.

After 20 minutes of frustration I was ready to give up. I had to wait for the Dongar adapter… Until I remembered that I had a nylon interior disassembly kit laying around somewhere.

Not that this helped in detaching the A-pillar covering though 🙁…

When reassembling the interior I saw that I could see the windshield through the bottom of the demi-detached covering. This was below the airbag and some connectors that are placed behind the covering. I don’t have an image of it, but the following image should give an idea on the approximate location.

Don’t feed it throw the airflow vents. When the cover is detached on the top you can see through and see the windshield.

Being able to see the windshield/front window It gave me the idea to feed the dashcam powercable through here. This went fine until the ferrite bead in the cable had to pass the plastic covering on the windshield side. Even after trying to bend the A-pillar cover with the nylon tool (second tool from the left in the image above) I wasn’t able to push the cable through.

If I can’t push it through I could try to pull it through with a piece of metal wiring. This seemed to do the trick. I fed a wire from front to back (yellow arrow), attached the power cable and pulled it through.

The red arrow is the direction the cable runs eventually, but is also the direction I had to manoeuvre to pull the cable through, since you get a bit more space the more you go higher. Don’t apply to much force, because you’re working near the airbags!

After I was able to pull the ferrite bead through, the rest was a piece of cake. It’s quite easy to push the cable behind the ceiling covering and guide ti to its final destination.

To get the cable into the fusebox, there’s a small opening between the pastic you can route the cable through.

For connecting the power cables into the fusebox I bought a set of MICRO2 adapters (available at Viofo). These hold the correct fuse size used in the Kia EV6.

Connecting these was also a challenge, since the connector is to big to correctly insert into the fusebox. Some filing was involved to remove the excess plastic on the connectors (remove some plastic on the front and back of the connector).

This results in the following fusebox view;

The final result:

Posted on August 1, 2022 and filed under Gadgets, Tips'n Tricks, Hardware.

Xiaomi Xiaofang Wireless Camera Custom Firmware Hack

A colleague of mine demonstrated a Wyze webcam a couple of weeks before. A nifty little FullHD wireless IP camera that has a decent (iOS/Android) app and cloud connectivity to store the data.
I liked everything about it, except the cloud-storage part. I don’t like it when I don’t know where my private data resides. So I started a to search to see if these devices could be altered to benefit my needs, and guess what, they can be altered.

There’s a github project where they fabricated a firmware hack and with custom software the camera can be used for much more. So now I had to get my hands on the most inexpensive version of the camera. Since there are different brands that ship basically the same hardware with a different firmware, there’s more than enough choice.

Posted on November 19, 2019 and filed under Gadgets, Hardware, Security, Review, Tips'n Tricks.

Flashing the Sonoff TH16 Wireless Switch

The Sonoff TH16 is an inexpensive piece of hardware that can be controlled over WiFi. Apart from the switch (that's capable of handling electrical currents up to 16A) there's an interface for temperature and humidity. The actual temp/humid sensor is sold separately (in most cases).

Posted on December 31, 2017 and filed under Gadgets, Hardware, Programming, Raspberry Pi, Tips'n Tricks, Domotica.

Internet of Things (IoT) and Ransomware

Unfortunately, and no matter how funny the cartoon may be, this may be what the future is going to bring us if we're not careful.

Below are some of the online appliances (just random picks from Google):

The only item I couldn't find was the Internet-connected broom. But I guess that won't take long. The other items can all be bought with some sort of Internet connectivity, and are therefore potential vulnerable for abuse.

Posted on October 10, 2016 and filed under Annoying, Gadgets, Hardware, Internet, Security.

Entering The World Of Android Based Media Players

This is gonna be a good one. An Apple Fanboy Going Android..... WTF!?

Yep, it's true to some extent. The reason for letting myself into the Android world is a media player one. Up till recent I was quite happy with my Popcorn Hour A-110, which I bought 6-7 years ago. Happiness started to fade when transfer speeds and connections to the device started to fail. Networking was never its strongest part, even though it had a 100mbps interface. For some reason it never got above the 10Mbps speeds. Had something to do with the processing priority of the device.

Anyway, lately, larger FTP transfers failed for whatever reason, and using SAMBA transfers.... well, don't get me started on that file transfer protocol. Sending communications by pigeon-mail is faster. And since streaming over the network was not an option for the larger (far less compressed) x264 encoded movies or TV shows, I started to look for an alternative.

The alternative should be able to connect to remote media sources, and have enough processing power for the network adapter to get decent a throughput. Also some additional multimedia features were on the 'very-nice-to-have' list. These features included (but were not limited to);

  • stream various content from the web
  • not limited to just video
  • easily modifiable (apps etc.)
  • prepared for the future (4k video?)
  • xbmc (or something alike)

With this list of requirements, there were about a gazillion candidates, because every player out there tends to support this. So I needed to narrow down the candidates. I did exclude the current Popcorn Hour because of the physical size of there latest models.

Posted on December 27, 2014 and filed under Gadgets, Hardware, Personal, Review, Tips'n Tricks, Video.

Best 'Unboxing Videos' Ever

It's the best, mainly because it's terrible. It's a montage of several unboxing videos of the Google Nexus phone/tablet thinghy. I guess I would have thrown the entire box + contents out of the window. Google can learn a lot from other companies like; Nikon, Canon, Leica, Apple... Hell, even the shrink wrap on Microsoft products are easier to remove. Unboxing is an integral part of the new gadget/thinghy experience nowadays.

Posted on July 16, 2012 and filed under Fun, Gadgets, Hardware.

(Theoretical) Apple iPad Thoughts

Apple iPadApple announced the iPad this week. Basically, it's an oversized iPhone/iPod Touch. It comes in several 'sizes'. Meaning different memory sizes (16, 32, and 64GB). The 3G option is an option on all versions (which sets you back an additional >$130).

The size is too big to put it in your pocket, but I think the device will find many owners in frequent flyers market. Smaller than a laptop, and bigger than the iPhone. Just the right size.

I do have my doubts about the device as a gaming platform. It's too big to cover the entire screen with your hands when you're holding it. The iPhone/iPod Touch can be held with both hands and you can access every part of the screen just with your thumbs (at least I can).

Posted on January 28, 2010 and filed under Apple, Gadgets.

Additional iPhone Thoughts

Before I go into the imperfections of the iPhone, I must mention that the iPhone is one of the best (smart)phones I've had so far.....My (smartphone) references are the Nokia Communicator, Nokia E61i, Nokia N95. While the PDA experience comes from Psion (to bad that they are gone), and a boatload of crappy/unstable Windows CE/Mobile platforms over the last 10 years.

Every device had its limitations, but the iPhone clearly has the upperhand (at the moment). But there's always room for improvement :-)

Posted on October 22, 2009 and filed under Annoying, Apple, Gadgets, Hardware, iPhone.

Member of the iPhone Club

As of today, I'm the (proud) owner of an iPhone 3Gs 32GB (Black). Ever since the release a couple of years ago I really wanted an iPhone. The problem is that we can only get an iPhone in combination with a T-Mobile plan here in Holland, and alternatives to the T-Mobile plan are relatively expensive;

  • You need to cough up the entire amount for a SIMLOCK free iPhone in once (several hundreds of euros) or
  • Get the T-Mobile plan and let them remove the SIMLOCK (for a fee). Initially less expensive, but you're still hooked to their two year plan.

Either way, an iPhone cost around 800 euros, whether you pay it at once or spread the costs over two years. Since I didn't like to finance T-Mobile for a plan, since I already got a pretty good deal, I went out and bought an iPhone.

Posted on October 17, 2009 and filed under Apple, Gadgets, Hardware.