As the home router uses DHCP, the IP addresses of the devices on the network often change. To find devices on the network that have ssh open on port 22 you can use: where [Base IP Address] is often 192.168.1.0 for most routers and 10.0.1.0 for Apple routers.
Category: raspberrypi
Fixing Errors on Apache-Served Flask Apps
This is just a quick post to remind me of the steps to resolve errors on an Apache-served Flask app. I'm using Anaconda as I'm on Puppy Linux (old PC) and some compilations give me errors. Stuff in square brackets is for you to fill in. Log into remote server (I use ssh keys): ssh -p … Continue reading Fixing Errors on Apache-Served Flask Apps
Twitter Robots on a Raspberry Pi
Or how to get very quickly write-restricted by Twitter. This is a short guide to playing around with the Twitter API using Python on a Raspberry Pi (or any other Linux machine). Overview The process has four general steps: - Setup a new Twitter account and create a new Twitter app; Setup the Raspberry Pi … Continue reading Twitter Robots on a Raspberry Pi
Git / GitHub Workflow for Raspberry Pi
A quick aide-memoire for using GitHub: Create directory with 'Project Name' in Dropbox directory (extra layer of automated backup) cd 'Project Name' git init Create / copy initial files Create .gitignore file for Project git add [Files - if all can use .] git status [Check correct] git commit -m "First Commit" Go to github.com … Continue reading Git / GitHub Workflow for Raspberry Pi
Hiding Secrets from GitHub (or using ConfigParser)
As I get into the habit of using git and github for versioning I need to make sure that I hide personal settings and passwords. To do this I use ConfigParser in Python. It's pretty easy. Creating the Configuration File First create a 'config.ini' file in your code directory. I generally use a text editor or … Continue reading Hiding Secrets from GitHub (or using ConfigParser)
…and PiMatrix!
Face Detection with the Raspberry Pi Camera Board
I have a very basic face detection routine running with the Raspberry Pi camera board. To do this I used Robidouille's library functions (see previous post). I then modified the raspicam_cv.c example to use the face detection routine from Learning OpenCV. There were some tweaks so I will post the code below. You also need … Continue reading Face Detection with the Raspberry Pi Camera Board
Hacker News Update: Raspicam & WeMo
A quick update on my recent discoveries. Raspicam I now have a Raspberry Pi Camera Board (Raspicam)! There is a brilliant combo deal on at the moment allowing you to buy a Raspicam, Model A + 4GB SD card for about £35 (including VAT + shipping!)! That's £35 for a device that can run OpenCV … Continue reading Hacker News Update: Raspicam & WeMo
Magic Lights: Controlling Hue with a Raspberry Pi
This post shows you how to control the Hue light bulbs using a Raspberry Pi. In particular, it shows you how to fade up your lights half an hour before to sunset. In true Heath Robinson style the solution is rather convoluted. But hey, that's where the fun resides. Email me, Sun First, we set … Continue reading Magic Lights: Controlling Hue with a Raspberry Pi
Doing Useful Things with WeMo Motion
Using both the WeMo Motion rules and IFTTT allows you to do certain things with this motion detector. However, to expand our possibilities it would help if we could store our motion data and make it accessible to the programs that we write. To store our motion data in a database we need a bit … Continue reading Doing Useful Things with WeMo Motion