I recently backed the ISS Above wearable project on Kickstarter, which got me thinking about (and tinkering with) my first ISS Above. What is it? Just a super-cool little widget that you can build on top of a Raspberry Pi which will notify you when the International Space Station is about to pass over your location.
Unfortunately, when I tried to update my ISS Above, I wasn’t able to successfully write to the old SD card in my RasPi. Not the first SD card that I’ve roached, and I have most of the data from the old card. So I thought I would take this problem opportunity to write up the steps I use to [re-]build an ISS Above gizmo using my Mac.
Items needed:
- Raspberry Pi computer, complete with 8 GB SD card, power, and case. As far as I know, any model of RasPi will work.
- Wired network connection, at least during setup. (I’ll show how to migrate it to wifi below.)
- One of the supported display options. I’m using the PiGlow in this case.
- An SD card writer/reader. I like the itty bitty one that AdaFruit sells.
- The ISS-Above code. I have the HD version, which allows the Pi to show live video from the ISS.
- Pi Filler app, from Ivan’s RasPi site. While you’re there, grab Pi Copier and Pi Finder.
Steps (edited–one of the Bootstrapper packages seems to be interfering with ISS-Above):
- DON’T plug in the SD card/writer yet. You’ll be prompted for that in a moment.
- Get the ISS Above image (unzipped) onto the Mac. I had trouble unzipping on OSX, so instead of fixing whatever the problem was, I took the easy way out and unzipped on a PC.
- Launch the Pi Filler app to write the ISS Above image to an 8 GB SD card. It will prompt you for your ISS Above image file, (e.g. ~/Downloads/issaboveV2015-10-02-14-MASTER.img), and tell you when to insert the SD card/writer. This will take a while, possibly up to half an hour depending on all of your hardware. It took about 10 minutes on my system. I’m pretty sure the Pi Filler unmounts the SD card when finished.
- Insert the freshly-written SD card into your Pi, hook up your network cable, and power it up!
- Wait about 30 seconds for the Pi to finish booting.
- (Optional — If you don’t know how to set up DHCP addresses on your network, skip this step.) Fire up Ivan’s Pi Finder app. This has a handy “Copy MAC address” button. Configure your new wired DHCP address (and restart the DHCP server if necessary), then reboot your Pi to pick up the new address.
- It’ll take about a minute for the Pi to reboot and start the web server. Point your web browser
Use Adafruit’s Pi Bootstrapper to install some useful software. Just run the following command on an OSX Terminal window:curl -SLs https://apt.adafruit.com/bootstrap | bash
Bootstrapper took about 10 minutes on my system. Once that was done, I logged in via ssh (using Pi Finder again) to edit /boot/occidentalis.txt and set up my hostname and wifi credentials. (I could also have done this in advance, but I didn’t have the wifi password handy at the time.)Shut down the Pi:sudo shutdown -h -P now
- Plug in the wifi dongle. Be sure to leave the wired network connected for the time being.
- (Another optional step.) Power up the Pi, wait 30 seconds, and use Pi Finder to log in again. (I should have done this on the earlier ssh connection, but I wasn’t thinking about it at the time.) Get the MAC address for the wifi interface. I used:
ifconfig
and set up another DHCP address for the Pi-wifi MAC address from the wlan interface. Shut down the Pi again:sudo shutdown -h -P now
- Set up the new ISS-Above appliance where you’d like it to live. Ideally, this will be some place where the Pi itself is visible (so people will notice the blinking PiGlow), with an HDMI display within reach for a graphical display.
- Power it up and wait for the ISS to pass overhead!
I’ve got this up and running for now, but there are some things I’d like to fix. For one thing, the instructions above could be more streamlined. (I just wrote everything down as I did it.) Also, I haven’t got the live feed from the ISS set up. But those tweaks can be done later. Right now, I’m going to keep an eye on the next pass of the ISS, practically right over my house!