Tuesday, January 26, 2016

The Reset Button

Original photo by flickr user Lucky Larry, 2010
One thing a lot of people do around the start of a new year is set resolutions.  Occasionally, I will opt to pick something arbitrarily that I want to change (such as last year's goal of texting less and calling more; this did not stick).  Other years - like this one - I don't really stress about it so much.  However, I'm at a point right now where I feel very disorganized.  I recently moved, and there are papers and boxes everywhere that I haven't found places for yet.

Add to this that I've been closely following Wil Wheaton's Life Reboot posts, which began sometime in...November I want to say.  Wil set some realistic goals (SMART goals, you might say), and is keeping tabs on his progress.  I think this is the key element missing from most run-of-the-mill resolutions: follow-up.

February 1st, I'm going to push that reset button, and give myself a little Life Reboot.  I'm going against my own "rules" by not starting right away, but I want to take some time and figure out what I want to work on.  I have some basic ideas, but I want to hit the ground running - and I'd like to have some kind of a plan in place.

Next Monday, I'll have an update and a plan in place.  I think I'm going to try to narrow it down to 7 things, ala Wil Wheaton.  Also, based on the recommendation of my good friend Sarah, I will give the app HabitBull a try.  Stay tuned.

Thursday, January 14, 2016

Ficly Making a Comeback + Mount Doom Status Update

"Mount Doom Status Update" sounds both ominous and awesome at the same time!  I'll keep it quick so I don't bore everyone - basically I have the project working as expected on a daily basis and runs like a charm.  I'll make a full post sometime on the weekend (when I get some time) and share the full project files and everything; I'm kind of thinking of tweaking it to tell me only when I've hit major landmarks - but more on that later.

The other day, my good Internet friend (from a considerable distance) Wil Wheaton re-posted a story he had written, at the time inspired by listening to Ziggy Stardust & the Spiders From Mars; this time, inspired by the death of David Bowie.  It's a pretty good story for 1024 characters.  I enjoyed it, and so did many others - his post inspired people to write prequels and sequels of their own in the comment section.  I haven't read through them all yet - I'm going to have to try to catch up with them and read them all later.

I posted at the end of 2015 about the ficlets that I wrote back in the day.  For reasons I won't get into right now, I had to delete my External Monologues podcast - I have all of the audio files, and I'll get around to re-posting them.  But I don't think I'm going to continue with it, at least not for the moment.  Apologies, if somehow you were following it.  Bringing things back on point, I just find it odd that some of these things that I've dug up are floating back to the surface at another completely different point on the web.

Apparently, there's a new website called Ficlatté.  I haven't browsed around it very much, but I think it's something I'd contribute to.  I expressed a desire a while back to get back into writing these, but I feel more apt to do it when there's a built-in audience already.  I think I'm going to just personally label 2016 the Year of The Ficlet.  Let's see what I can cook up in the next year.


Sunday, January 10, 2016

Update on the journey to Mount Doom via FitBit

I know I just posted about this yesterday, but I've put some more work into this (while procrastinating other things, naturally).  To recap from yesterday, this is what I wanted to accomplish in "Day 2":

  1. Figure out where IFTTT adds the next row of data (i.e. above or below the first row?)
  2. Confirm the distance in miles from Hobbiton to Mount Doom in Miles, convert to Kilometres
  3. Take the task I started yesterday, and put it together with a task to tell me how many kilometres I've travelled, and how many I have left to go.
I'll tackle these in order here...

#1 was important because I needed to determine how I was pulling the data from Google Sheets.  In my task yesterday, I was just pulling R1C6, which in my spreadsheet translates to F1.  IFTTT adds the next row of data below the original row, rather than pushing it to the top (see here).  So this means my task works for January 8th - but for the 9th, I need to pull R2C6 (F2), R3C6 for Jan 10th, and so on.  

So I created a test sheet with 10 rows of data to use.  Then I created a task to add 1 to a variable (%Rownumber).  Without going into too many details, I set a variable called %Frow to R%RownumberC6.  I set %Rownumber to 0 initially so that the first time it runs, I'd get R1C6.  Simple!  

For #2, I found this website (appropriately called Nerd Fitness).  I don't know where this person got their numbers, but a second source confirming 1779 miles is good enough for me.  There's also a breakdown of how many miles between each stop, and number of miles for the return journey - but I need to get to Mount Doom first, so I'll come back to that later.  1779 miles = 2863 kilometres.  

#3 was a bit easier, since I already had the task to pull the data completed.  I just changed "R1C6" to "%Frow" - which means that it will change to R2C6, R3C6, etc. as needed.  Another task called "Distance" does a couple things: 

  • Sets the distance travelled (%DistanceTravelled) to "%DistanceTravelled + %Kms" (%Kms is set in "Get Kilometres", which is the task I described above)
  • Sets %RemainingDistance to "2863 - %DistanceTravelled"
After that, I put it all together into one task called "Display" that runs each task in order, and then sends it to a notification.  Here's a screenshot: 


I'm going to have to change the message to say "yesterday" instead of "today" - since it's not in real time (it would be if I could directly access the FitBit API...).  I don't know where that leaf icon comes from but it's a built-in icon, and I thought it was appropriate for this.  

Next on the to-do list: 
  • Figure out how to automate this process (I get a notification when IF updates the spreadsheet, so that could be the trigger)
  • Figure out how to incorporate the distances between towns (i.e. Hobbiton to Rivendell is 737.1km, etc.).
I think once I get those two things done, that's pretty much where I'm going to leave it.  One thing that I could do for posterity is add each update to a text file.  That's a pretty easy thing to do - I think I might just add that step tomorrow when I test the automation process.

Saturday, January 9, 2016

The nerdiest thing I could think of to do with my new FitBit

Vanessa gave me a FitBit for Christmas - specifically, the Charge HR.  I've done some nerdy things with it - like figure out how to send more than just phone call notifications to it.  So far I can send text messages, and when activated, sports scores.  Fantastic!

I thought that was the end of my fiddling with it for now; I figured I would probably play with it a little more here and there, but for now, I'd use it as intended.  But then I saw this thread over at Reddit's Loseit community.

Now, I'm not a big Lord of the Rings fan; but I thought that this would be something fun to try and put together using Tasker.  To summarize, the goal is to walk the distance from Hobbiton to Mordor over the course of at least 366 days.  The distance is apparently 1779 miles - I'll have to substantiate this number, but that translates to 2863 kilometres.

Using a spreadsheet to track this is great and all - I've tracked fitness stuff via spreadsheet tons of times.  But I thought I'd go one step further, since part of why I like the Fitbit is that it automates some of the data entry for me (tracking exercise, etc.).  Enter Android, Tasker, IFTTT, and Google Sheets.

It took me a while to get this set up - mainly because I wanted to use the FitBit API to pull the information via Tasker, but I haven't been able to get that going yet - but I have IFTTT sending daily status updates to Google Sheets.  It gives me the date, total steps taken, flights of stairs, elevation (in metres), and the most important piece to all of this, how many kilometres I've walked.

Now, the fun part - pulling the data from Google Sheets.  It's a bit of a pain, but this guide from Peter's Tech Notes was pretty easy to walk through.  So, now in Tasker I've successfully pulled the number of kilometres I've walked from my FitBit data: 6.11 kilometres on Jan 8th (only 2,356.89 km to go to Mordor!).

But I'm not done there.  I still have some more tests to run, because I need to figure out how I want to use this information.  I have several thoughts - the easiest way to go about it would be to create a daily notification at the start of each day telling me how far I've gone, and how far I've left to go.  But that's kind of boring.

I bet there are some complicated ways I could go about incorporating a graphical interface with this.  But that'll come - the first steps will indeed be to set up a daily notification to tell me how far I've walked and how far I have left to go.  I'll start small first - basically, it will tell me the distance between how far I've walked and the total I have left (so this morning I'd see 2356.89 remaining).

The next step would be to break it down further, and show all of the stops in between.  The next step after that would be to try to incorporate some graphical element, if possible.  Or at least something to make it look nicer.

The last step would be figuring out the return journey - I suppose it would just be a matter of reversing everything I did in the first bunch of steps.

This will be a work in progress, and something I'll keep updated here.  I'll share my Tasker profiles as I go, for anyone interested.  Note that for this to work, you'd basically have to substitute all of your own data for the Spreadsheet part, but other than that, it should work as expected.

Here's the test I wrote up - you'll have to download the Snackbar Plugin for it to work, but you could easily just change the last part to one of Tasker's built-in notification options.