<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Geoffrey Tisserand on Medium]]></title>
        <description><![CDATA[Stories by Geoffrey Tisserand on Medium]]></description>
        <link>https://medium.com/@geoffrey___?source=rss-fd7fbc0bfbd8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*K8u72HLdVh1zXV6U2Ict5w.jpeg</url>
            <title>Stories by Geoffrey Tisserand on Medium</title>
            <link>https://medium.com/@geoffrey___?source=rss-fd7fbc0bfbd8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 08:38:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@geoffrey___/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Summon Uber with the new AWS IoT Button]]></title>
            <link>https://medium.com/@geoffrey___/summon-uber-with-the-new-amazon-dash-button-876b54385dec?source=rss-fd7fbc0bfbd8------2</link>
            <guid isPermaLink="false">https://medium.com/p/876b54385dec</guid>
            <category><![CDATA[amazon]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[uber]]></category>
            <dc:creator><![CDATA[Geoffrey Tisserand]]></dc:creator>
            <pubDate>Thu, 15 Oct 2015 16:54:50 GMT</pubDate>
            <atom:updated>2015-10-15T20:42:18.701Z</atom:updated>
            <content:encoded><![CDATA[<p>A couple of months ago, I wrote a <a href="https://medium.com/swlh/getting-a-uber-ride-using-the-amazon-dash-button-c4dcef42051c">post on how to hack the Amazon dash button to order Uber rides</a>. At that time, I was using the first and only version of the button, whose only purpose was to order products from Amazon. In order to run the hack I had to <strong>have a computer running</strong> to listen to the button waking up on the network. It did the job, but it was a very hacky solution and I wasn’t really happy with it.</p><blockquote>I was looking forward to seeing an update from Amazon where they would open their button to developers.</blockquote><p>That day has finally come! Thanks to <a href="https://twitter.com/picsoung">Nicolas Grenié</a>, who was with <a href="http://3scale.net/">3scale</a> at the <a href="https://reinvent.awsevents.com/"><strong>AWS re:Invent 2015</strong></a> last week, I was able to get my hands on the <strong>new version </strong>of the<strong> AWS IoT Button!</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uUYruGbCA6OnDkskX6qluQ.jpeg" /><figcaption>Requesting UberX with the new AWS IoT Button<em> (obviously pickup &amp; dropoff locations are made up)</em></figcaption></figure><h4>The new AWS IoT Button</h4><p>This new version is using the new <a href="https://aws.amazon.com/iot/"><strong>AWS IoT </strong>beta</a> which lets you create rules that will trigger different actions, including running <a href="https://aws.amazon.com/lambda/"><strong>AWS Lambda</strong></a><strong> </strong>scripts, whenever the button is pressed.</p><p>This new button simply connects to your network and send a payload to<strong> AWS IoT </strong>whenever it is pressed. You can also set a different color pattern for the buttons LED feedback on success/failure. Now this is cool by itself, but the payload content is even cooler. That payload is a simple hash containing <strong>3 attributes</strong>:</p><ul><li><strong>serialNumber</strong>: the button’s SN — nothing crazy here</li><li><strong>batteryVoltage</strong>: the button’s battery voltage</li><li><strong>clickType</strong>: the awesome part, it indicate if it is a <em>SINGLE</em>, <em>DOUBLE</em> or <em>LONG</em> press</li></ul><p>As you can see, this new version is pretty awesome. It means that I would <strong>not need a computer running and inspecting the network anymore</strong>!</p><p>I took this opportunity to <strong>update and simplify </strong>my previous <a href="https://github.com/geoffrey/uber-dash"><strong>uber-dash</strong></a> hack. I came up with a more elegant solution that I am going to share here for the owners of these developers preview buttons — and the future owners.</p><p>The platform is still in beta and it wasn’t as straight forward as I thought to get setup and running. Eventually the platform will get better for public launch, but here is how you can do it today:</p><h4>Setup the button on AWS IoT and connect it to WiFi</h4><p>By following <a href="http://aws.amazon.com/iot/button/">Amazon’s getting started guide</a>, you can setup the button on the IoT platform in a few minutes. You will need your button’s <strong>DSN code</strong> — located on the back, and a <strong>secret activation code,</strong> that was given to you along with the button.</p><p>After this setup you should have 4 objects in your AWS IoT dashboard:</p><ul><li><strong>iotbuttonGXXXX —</strong> the button itself which is a <em>Thing</em></li><li><strong>XXXX</strong> — a <em>Certificate</em> for your button</li><li><strong>iot-button-policy</strong> — a <em>Policy</em> for your button</li><li><strong>aws_iot_button_rule</strong> — a default <em>Rule </em>that you created during the setup process</li></ul><p>Your dashboard should look similar to the one below (minus the <em>call_uber</em> rule):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZESDpbNk94-1tq9w1Y1tUw.png" /></figure><h4>Generate a script that will run when you press the button</h4><p>Now that you are setup on AWS you will need to come up with a script that will call Uber when the button is pressed.</p><p>I created an application that will let you generate your <strong>personalized script</strong> in 4 easy steps. This script is fairly simple, it just makes a call to Uber’s API in order to place rides requests whenever it is invoked.</p><p>Simply go to <a href="https://uber-dash-configurator.herokuapp.com/">uber-dash-configurator.herokuapp.com</a>.</p><ul><li><strong>Login using Uber</strong></li><li><strong>Select a pickup and a dropoff location</strong> on the map.</li><li><strong>Choose a product</strong> in the list of products available in the pickup area</li><li><strong>Copy and save the script </strong>for later</li></ul><p><strong><em>Do not share that script as it contains your personal Uber access token, which would allow anyone to order rides on your behalf!</em></strong></p><p><strong>The source code is available on</strong> <strong>GitHub</strong>. <strong>Feel free to open issues (or view the existing ones) and pull-requests</strong>:</p><p><a href="https://github.com/geoffrey/uber-dash-configurator">github.com/geoffrey/uber-dash-configurator</a></p><p>If you are a developer and don’t want to use this generator — or/and if you know your pickup/dropoff lat/lng as well as your Uber access token, you can just copy and edit the following script:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/32f7bbd19c3c0db448d7d76a6054fb1c/href">https://medium.com/media/32f7bbd19c3c0db448d7d76a6054fb1c/href</a></iframe><h4>Create a new rule using AWS Lambda</h4><p>Once you have generated your script, you can now go back on AWS IoT and create a new rule by selecting your button in the list of <em>Things.</em></p><p>To create a new rule, simply click on the button name on the dashboard and a side panel will open on the right. At the bottom of that side panel you will find a button <strong>Create a rule. </strong>Select a <em>Name</em> and a <em>Description</em> and use:</p><ul><li><strong>*</strong> : for <em>Attribute</em></li><li><strong>iotbutton/+</strong> : for <em>Topic Filter</em></li></ul><p>For the <em>Action</em>, you will need to select <strong>Insert this message into a code function and execute it (Lambda).</strong></p><p>Then click on the link <strong>Create new a resource — </strong>skipping the blueprint. Select a name for your Lambda and a description and simply copy paste the personalized script you saved above. Save it and you have now a Lambda that you can use on your rule that is now attached to your button.</p><p>Press the button and watch for the Uber App on your phone. You should be able to see your ride being requested automagically. <em>Be careful though, I forgot to cancel once while testing and had to pay a cancellation fee — apologies to the driver who was waiting outside :/</em></p><p>This is really just an example of what the new AWS IoT Button can do. I can’t wait to see what other developers will build with it. With the new AWS IoT platform, the possibilities are endless.</p><h3>Happy hacking!</h3><p><em>Feel free to drop a comment / tweet if I missed anything in this tutorial or if any information is wrong or misleading. Thanks!</em></p><p>If you are looking for an impactful job and want to work with a cool team, Checkr is <a href="http://grnh.se/xual31">hiring</a>!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=876b54385dec" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting an Uber ride with the Amazon dash button]]></title>
            <link>https://medium.com/swlh/getting-a-uber-ride-using-the-amazon-dash-button-c4dcef42051c?source=rss-fd7fbc0bfbd8------2</link>
            <guid isPermaLink="false">https://medium.com/p/c4dcef42051c</guid>
            <category><![CDATA[amazon]]></category>
            <category><![CDATA[uber]]></category>
            <category><![CDATA[dashbutton]]></category>
            <dc:creator><![CDATA[Geoffrey Tisserand]]></dc:creator>
            <pubDate>Tue, 25 Aug 2015 17:08:28 GMT</pubDate>
            <atom:updated>2015-10-27T20:51:14.766Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://medium.com/@geoffrey___/summon-uber-with-the-new-amazon-dash-button-876b54385dec#.z9k5awmz3"><strong>See this article for an improved version for the new AWS IoT Button</strong></a></p><p>This weekend I got inspired by <a href="https://medium.com/@edwardbenson/how-i-hacked-amazon-s-5-wifi-button-to-track-baby-data-794214b0bdd8">this great post</a> and decided to order an <a href="http://www.amazon.com/b/?node=10667898011">Amazon Dash Button</a>. I knew this little device could help me solve a pain point I’ve had since I moved to San Francisco 3 months ago.</p><p>Like many people, I use <a href="https://uber.com/"><strong>Uber</strong></a> daily for my work commute <em>— looking at you Uber, I would love to see a monthly commuter plan!</em> Every morning, I go through the same routine — unlock phone, open the app, select the same pickup location and the same destination over and over again. I know, first-world-problem right?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/552/1*VTUJ54vTMvApTA3ONP6Qog.jpeg" /></figure><blockquote>But I love optimization, so what if all that can be done with the push of a button?</blockquote><p>The goal was simple; by pressing a button — conveniently located in my bathroom, I would just need to finish getting ready and get out of my apartment. The car would be right there waiting for me without ever having to touch my phone.</p><p>I had my first live test this morning, <em>and it was awesome!</em></p><p>Here is how I did it, and how you can try it out too — however, if you prefer to go directly to the code, please visit <a href="https://github.com/geoffrey/uber-dash"><strong>geoffrey/uber-dash</strong></a><strong>.</strong></p><h4>Setup the button with the Amazon App</h4><p>First, you need to setup your dash button to communicate with your network using the Amazon App. Follow the steps that you can find under <strong>Amazon App</strong> — <strong>Your account</strong> — <strong>Dash devices </strong>—<em>carefully exit the setup process before the last step that actually lets you choose your order from Amazon.</em> <em>:speak_no_evil:</em></p><h4><strong>Get your button’s Identity</strong></h4><p>Using and running the first python snippet provided <a href="https://medium.com/@edwardbenson/how-i-hacked-amazon-s-5-wifi-button-to-track-baby-data-794214b0bdd8">in this article</a>, you can find the <strong>MAC address </strong>of your button <strong>(</strong>e.g.<strong> </strong><em>a0:02:dc:b1:3d:b2</em><strong>)</strong>.</p><h4>Intercept your button’s communications</h4><p>After getting the button’s MAC address, I decided to play a little bit more with the network using <a href="https://nodejs.org/"><strong>Nodejs</strong></a> and the <a href="https://github.com/mranney/node_pcap"><strong>pcap</strong></a> module. I’m not a network expert, so I spent some extra time playing with the packets. I inspected their structure in order to spot and extract the ones I was interested in.</p><p>Unfortunately, I was only able to find MAC addresses as an <em>array of integers (e.g. [160, 2, 220, 177, 61, 178]).</em> I didn’t really search further and converted that array into the usual 6 group of two hexadecimal digits separated by colons—<em> please ping me if you know a better way to extract hexadecimal MAC addresses from the packets with this pcap module!</em> Then I compared these against the target’s MAC address: the dash-button. Every time they match, I call the handler function.</p><p>I also had to throttle the packet detections as I was detecting a couple of them within just one press.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/119918bfe631cfb3a9f0dfbbfe2b709f/href">https://medium.com/media/119918bfe631cfb3a9f0dfbbfe2b709f/href</a></iframe><h4>Calling Uber when the button wakes up</h4><p>Once you are able to detect the button waking up on your network, you’re almost done. You can now do virtually anything you want, including ordering a Uber ride using their API.</p><p>I created a very simple <a href="http://expressjs.com/">Express</a> app that allows you to OAuth with Uber in order to give the app permissions to request rides for you.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/400da0186441959a4663b99baf528a8f/href">https://medium.com/media/400da0186441959a4663b99baf528a8f/href</a></iframe><p>And voilà, now we just need to listen for the button and call <strong>uber.call </strong>whenever the button gets pressed.</p><h4>Get your first dash-uber ride!</h4><p>First, clone <a href="https://github.com/geoffrey/uber-dash">this repo</a> and edit the <strong>./source/config.js</strong> file to add your dash button <strong>MAC address</strong>, your <strong>Uber application credentials </strong>as well as the <strong>pickup</strong> and <strong>drop-off coordinates</strong> and the <strong>product id</strong> <em>(UberX, UberBlack…)</em> you want to order.</p><p>Install dependencies using <strong>npm install.</strong></p><p>Run<strong> ./dash-button.js </strong>which will listen for the dash button and call Uber:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/81e2b2aa8f1c5a71ef737ae009348bfc/href">https://medium.com/media/81e2b2aa8f1c5a71ef737ae009348bfc/href</a></iframe><p>In order to get the product id you want to use when the button is pressed, you can visit <a href="http://localhost:3000/products">http://localhost:3000/products</a> — after you log in. It’ll respond with the list of products available at your pickup location. Copy/paste the id of the product you chose into your config file, and relaunch the program.</p><h4>Contribute</h4><p>Please feel free to <a href="https://github.com/geoffrey/uber-dash">fork this project</a> and contribute with pull-requests. I know it’s a quick-and-dirty hack, so there is tons of room for improvement. I’m more than happy to look into your PRs when I’m not too busy working at <a href="https://checkr.com/">Checkr</a>. (We are <a href="http://grnh.se/xual31">hiring</a>!)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VLaJ04qsuIGx2MkIAZKDdQ.jpeg" /></figure><p><em>Published in </em><strong>Startups, Wanderlust, and Life Hacking</strong></p><figure><a href="http://supply.us9.list-manage.com/subscribe?u=310af6eb2240d299c7032ef6c&amp;id=d28d8861ad"><img alt="" src="https://cdn-images-1.medium.com/max/800/1*n0RJ_1N2IHnMf__UQmUrWA.png" /></a></figure><figure><a href="https://blog.growth.supply/"><img alt="" src="https://cdn-images-1.medium.com/max/800/1*qCnxaGPGC2_AOJ4c42Me6Q.png" /></a></figure><figure><a href="https://twitter.com/swlh_"><img alt="" src="https://cdn-images-1.medium.com/max/800/1*WwLu636h144p49tOpbrj5g.png" /></a></figure><p>-</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c4dcef42051c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/getting-a-uber-ride-using-the-amazon-dash-button-c4dcef42051c">Getting an Uber ride with the Amazon dash button</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>