# Hourly Analytics for Status Board

Google has finally deprecated their GAPI interface which this used to talk to Google Analytics, sorry folks, it will no longer work. See the New Google Analytics for Status Board Server Edition for an updated version.

Following up last week’s Google Analytics for Status Board graph and Top Pages table on Status Board, a reader asked for hourly stats instead of daily, so I created it (see the bottom-right graph).

The script creates a 24-hour rotating window of stats using your local time-zone for reference. Note that I have only tested this in US EST, but it should work elsewhere.

The steps are all the same as Google Analytics for Status Board, so follow along, only replace that script and the launcher files with these.

• Install the json and gattica gems
• Configure the script with your own parameters (and optionally change the Google Analytics account using the script at https://gist.github.com/hiltmon/5373934 to get the index and uncomment line 45 to set it).
• Schedule the script to run by modifying the .plist file below to reflect your path to the script, then copying it to ~/Library/LaunchAgents and loading it with launchctl

The script code is in status_board_hourly.rb:

Once again, edit the script to change:

• The title, file_name and dropbox_path to save the data on your computer and dropbox.

The launcher code is in com.hiltmon.status_board_hourly.plist:

Update it too for your paths and names, the copy and load it.

Follow the instructions in Graph Tutorial (PDF):

• Share the JSON file on your DropBox
• Mail that link to yourself
• Copy the link from Safari (minus the bit after the ?)
Follow the author as @hiltmon on Twitter and @hiltmon on App.Net. Mute #xpost on one.