When I went to program my first workout on the new rower the other day I realized it didn’t have the option for setting an Undefined rest period like my Ski Erg and the rowers at the gym. Turned out the firmware on this PM3 monitor was 7 versions old. It was easy to upgrade using a free utility provided by Concept2. The hardest part was finding an old USB cable for connecting the monitor, but luckily I have some for Arduino boards.
Tag: software
Apple Hardware Test
My 2013 MacBook Pro is having some issues and the suggestions say to try this. It didn’t find any problems. Reminds me of the DOS days.
Light vs. Dark Themes
Developers often have strong opinions about their environment and habits, such as the debate about tabs vesus spaces. I recently realized I prefer certain types of themes or color schemes for my software, depending on the type of activity.
For straight up writing, like blog posts or notes, I prefer a light theme.


When the command line or code is involved, I prefer a dark theme.




Building a Better Interface for the Airdyne AD2 with a Raspberry Pi (Part 5)
The 4th part of this series was all about data and math. I like numbers, so it was exciting for me, but probably not for a lot of people.
Part 5: Version 1
I continued working on the user interface and tweaking how my app dealt with the data and formulas. Little changes in rounding decimal places could make a big difference. Eventually I got to the point where the UI had the basics to call it v1. It was just before midnight on the 20th, so I went from nothing to a functional interface over a weekend. It’s pretty much all I did for 2+ days.
I woke up on Monday and the damn calorie formula was still bugging me. I read through the Google Charts documentation again. I hadn’t even thought to try other types of trendlines, though I knew it wasn’t linear. The exponential example looked like the chart from the other Airdyne project I’d been referencing so I hadn’t thought twice about it. I couldn’t remember what a polynomial was so I looked it up. That project came up with a polynomial formula of degree 2.
I quickly changed my chart and immediately saw a better trendline with my plotted data. I’d been looking for the wrong type of trendline. I created a JSFiddle if you want to try your own.
The new calorie formula is nearly perfect! I’ve tweaked things a bit here and there and have seen less than a 2% difference from the actual display.
Go back to part 1 and check out the video of the Airdyne AD display if you don’t remember how it works and then compare to this new one…
I don’t show it until the end after I got off the Airdyne, but the toggling between imperial and metric distances can be done while working out too. Same with the switch from RPM to watts. I decided to keep the watts as an option even though I have no idea if they are right. It’s simply using the formula I found. What do you think? Which interface is better?
The code at this point was pretty ugly but function was the focus. The server listens for “beeps,” stores timestamps, and every second calculates new information for the different panels. Then it uses a Socket.IO Server to emit events with this data. Express handles all of the web server bits. What you see in this video is a browser in full screen mode with some simple HTML and CSS, a Socket.IO Client to listen for events from the server and emit a few action events back to the server, jQuery, and a little more javascript. Both the server and the client are on a single Raspberry Pi 3 Model B.
As a bonus, due to this structure, you don’t even need to have a display connected to a Raspberry Pi. If the Pi is connected to the same WiFi as a smart phone, tablet, or computer (something with touch is probably the best) you can use the device’s browser. In fact you don’t even need a Raspberry Pi. You can run the server from a Mac, which is how I’ve done all of the development.
This is a pretty simple UI but it does everything I was hoping I could do in a first version. The final post will show off the changes I’ve made in the last week (basically everything) and share my future plans.
Windows Store Preview
At a preview event for Microsoft’s upcoming Windows Store, which is their app store built into Windows 8. [end]
Quickie: 04/26/2008 9:10:31am
I just realized I don’t run anti-virus software on either of my Macs.
Quickie: 03/25/2008 8:33:38pm
Run both Firefoxes. Why didn’t I look for this last week?
Quickie: 03/17/2008 12:26:52pm
It would be great if Quicksilver stopped crashing.
Quickie: 02/27/2008 9:02:13am
I think it’s time to whip up a quick AppleScript that launches a number of Applications I work with instead of launching them individually everyday.
Quickie: 02/13/2008 5:32:29pm
Installing the Apple TV update took much longer than the download.