Posts Tagged ‘gnomedex’

OpenGov hackathon wrapup (and the winners!)

Monday, August 23rd, 2010

Saturday and Sunday, a bunch of developers wrapped up Seattle Geek Week by participating in an hackathon to build apps with government APIs and data. Here’s what you missed…

Tropo fueled the hacking by providing plenty of food and drink. We had several developers around to help people with their projects, as did Socrata. Amazon stopped by for a bit, and Bill Schrier (Seattle’s CTO) and Sarah Schacht (Executive Director of Knowledge is Power) came by to offer ideas and see what people were working on.

At 4:30pm on Sunday all the teams came up to demo their apps. Troy Davis‘s entry SirenSpotter shows you what police and fire activity is happening near you right now. Russell Branca created an app that shows city-owned landmarks on a map and pulls in nearby photos for each landmark. A team led by Socrata’s Chris Metcalf built Notifyre, a tool that will call you if the fire department responds to a 911 call at your house.

The two apps that won the hackathon were ChatterCast, an entry from Amber Case and Aaron Parecki, and GeoNotify from Max Ogden, Reid Beels, and Russell Branca.

ChatterCast, which won the Socrata prize of an iPad, uses Instamapper to track your phone and compares your location to 911 and other data provided by the City of Seattle using Socrata’s platform. When you enter an area that has something going on, ChatterCast uses Tropo to sends a text message to your phone, alerting you to the activity.

GeoNotify won the Tropo prize, including a Flip Mino HD and a year’s membership to Animoto Pro. Their app allows you to draw a shape on a map and subscribe to SMS alerts for things that happen inside that shape. Get road closure and traffic alerts for things that happen along your commute. Find out when public activities take place at a nearby park. The app uses data from the city of Portland and sends SMS alerts through Tropo.

Congratulations to our winners, and thanks so much for everyone that participated in the Hackathon and helped out with making it a success.


Want to create your own voice and SMS apps? Tropo is simple, powerful and completely free for developer usage. Sign up now.


Seattle 911 scanner on Tropo for the hackathon

Sunday, August 22nd, 2010

For the Gnomedex hackathon we sponsored this weekend, I spent most of my time helping out teams who were building things using Tropo. But mid-morning today, inspiration struck for my own project. It’s not huge, so I was able to hack it together quickly and it’s a great sample app.

Remember police scanners? You can listen to live radio traffic between police cars. Some people do it for profit, like news reporters or ambulance chasers. Others do it for fun, just to hear what’s going on. The City of Seattle, one of our sponsors publishes their fire department 911 calls in near-real time using services from Socrata, another hackathon sponsor. So I wrote up an app that emulates a police scanner, using 911 dispatches as a data source.

Call a phone number, and Tropo will fetch the current list of 911 data from Socrata and play the incidents over the phone. For demo purposes, we’re only fetching data every 15 minutes and we’re getting any calls from the last 10 hours.

You can grab the code from Github or read it below.

<?php
answer();
sleep(2);
say ('Welcome to the Seattle <say-as interpret-as="vxml:digit">911</say-as> scanner.');
$timer = time();

$data = fetchIncidents();
if (count($data) == 0) {
  say("http://hosting.tropo.com/37423/www/audio/beep-7.mp3";);
}
while(1) {
  $data = fetchIncidents();
  foreach ($data as $incident) {
    say("<speak><paragraph xml:lang='en-us-fmj'>At <say-as interpret-as='address'>{$incident[8]}</say-as> an {$incident[9]}.</paragraph></speak>");
    $timer = time();
  }
  $currTime = time();
  if ($currTime - $timer > 30) {
    say("http://hosting.tropo.com/37423/www/audio/beep-7.mp3";);
  }
  sleep(900);
}

function fetchIncidents() {
  $url = "http://data.seattle.gov/api/views/INLINE/rows.json?method=index";;

  $time = time() - 360000;

  $data = '{"name":"Seattle Real Time Fire 911 Calls","query":{"orderBys":[{"expression":{"columnId": 2354168,"type":"column"},"ascending": false}],"filterCondition":{"value":"AND","children": [{"children":[{"columnId":2354168,"type":" column"},{"value":' . $time . ',"type":"literal"}],"value":" GREATER_THAN","type":"operator"}],"type":" operator"}},"originalViewId": "kzjm-xkqj"}';

  $ch = curl_init($url);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($ch, CURLOPT_AUTOREFERER, 1);
  curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
  curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-type: application/json'));
  curl_setopt($ch, CURLOPT_POSTFIELDS, $data);

  $json = curl_exec ($ch);

  curl_close($ch);

  $data = json_decode($json, true);
  return $data['data'];
}
?>

Tropo’s Open Government Tinkerstorm Halfway Point

Sunday, August 22nd, 2010

Tinkerstorm beginsApproximately 20 passionate programmers participated in Tropo and Socrata‘s open government 24-hour Tinkerstorm (or Hack-a-thon) in conjunction with Chris Pirillo‘s GnomeDex 2010.  We are currently at the half-way point of the competition.  Bill Schrier (Seattle’s CTO) stopped by to check on the status of the projects and provide additional inspiration.  Max Ogden and Reid Beels flew in from Portland, Oregon and Mark Silverberg flew in from Washington, DC just to participate in our Tinkerstorm!

One theme that I picked up on quickly from the Tinkerstorm was the love of Socrata’s data API.  Most of Seattle’s available data can be access through their site at http://data.seattle.gov.  The organizers were able to keep the coffee fresh and provide an awesome dinner and breakfast buffets, and plenty of idea people offering suggestions and feedback throughout the night!

Bill SchrierTim from Amazon Web Services stopped by to provide AWS discount codes to assistance with the deployment.  Even the SmartCups from GnomeDex came handy.  Everyone knows how much programmers love and need caffeine in events like this one!
Aaron and Amber also stopped by from GeoLoqi.  Geoloqi is a private, real-time mobile and web platform for securely sharing location data, with features such as Geonotes, proximal notification, and sharing real-time GPS maps with friends.
Sunday morning has rolled around and the looming 5PM event deadline is approaching too much quickly.  Willow Bl00 was now joined us to hack on her own project.
Here are a few fun pictures from last night’s event:
@Chewbanca showing off his Google Maps, Flickr, and Socrata mashup!

@Chewbanca showing off his Google Maps, Flickr, and Socrata mashup!

Hans' leg gets repaired!

Hans' leg gets repaired!

@WillowBl00 and @JohnnyDiggz

More news at 5 regarding prizes!

Build an Open Government app at Gnomedex and win prizes

Friday, August 20th, 2010

This weekend a number of the Tropo crew have descended upon Seattle for Gnomedex and Seattle Geek Week. We’re hosting the final geek week event, Gnomedex’s Tinkerstorm: an open government themed hackathon.

A group of developers will descend upon the Edgewater Hotel right next to the Gnomedex venue and build apps to help our fellow citizens. Socrata will be there with a bunch of government APIs and data sets for you to work with and Seattle’s CTO Bill Schrier will be stopping by to talk about open government from the perspective of the government. Amazon’s bringing a stack of AWS credit to help you with a place to host your apps. We’ve got a few people on hand to help you understand Tropo and create some great apps with these platforms.

We’re kicking off at 5pm on Saturday and running 24 hours straight. Dinner on Saturday, and breakfast and lunch on Sunday are being provided, as is plenty of coffee all night long. We’ve even got a cash bar running for a bit each evening. And we’ve got some great wifi provided by Meraki.

Why should you do this? Beyond the challenge of building apps that will improve the lives of all around you, we’re also handing out prizes. Want an iPad, a Flip HD, or a year of Animoto Pro? Sunday afternoon, everyone will present their apps and at 5pm on Sunday, the top apps will get some prizes.

Tropo has a number of customers who are building apps for government applications, so we’re excited to be able to be part of this. Heck, even some of our sample apps are themed around opengov or use government data, like our BART eta checker, weather forecasts, or our traffic alerts.

You don’t have to be attending Gnomedex to come to the hackathon. Go sign up (it’s free) and come by and help out. Not in Seattle but still want to participate? We’ve got an IRC channel (#tinkerstorm on Freenode) and a Google Group.