<?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 Nimble Ape Ltd on Medium]]></title>
        <description><![CDATA[Stories by Nimble Ape Ltd on Medium]]></description>
        <link>https://medium.com/@nimbleape?source=rss-bcfe52bf39ef------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*A1jDyZF_fcj-LNFg.png</url>
            <title>Stories by Nimble Ape Ltd on Medium</title>
            <link>https://medium.com/@nimbleape?source=rss-bcfe52bf39ef------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 07:43:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nimbleape/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[Callstats I/O are CommCon’s second Platinum Sponsor]]></title>
            <link>https://medium.com/@nimbleape/callstats-i-o-are-commcons-second-platinum-sponsor-6cdbea90bb72?source=rss-bcfe52bf39ef------2</link>
            <guid isPermaLink="false">https://medium.com/p/6cdbea90bb72</guid>
            <category><![CDATA[conference]]></category>
            <dc:creator><![CDATA[Nimble Ape Ltd]]></dc:creator>
            <pubDate>Tue, 06 Feb 2018 10:50:52 GMT</pubDate>
            <atom:updated>2018-02-06T10:50:52.789Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/286/1*FNMilIgoj3Vx1fjVH2THFw.jpeg" /><figcaption>Callstats I/O</figcaption></figure><p>We’re super excited to announce that <a href="https://www.callstats.io/"><strong>Callstats I/O</strong></a> are our second Platinum Sponsor for <a href="https://commcon.xyz/"><strong>CommCon</strong></a>.</p><p>Callstats are both clients and friends of Nimble Ape. You may have seen that we’ve made a couple of shim layers for popular client SDKs for them in the past (<a href="https://www.callstats.io/2017/12/04/kurento/"><strong>Kurento</strong></a>, <a href="https://www.callstats.io/2017/10/02/twilio-video-announced/"><strong>Twilio Video</strong></a>, <a href="https://www.callstats.io/2017/06/09/sipjs-integration-callstatsio/"><strong>SIPjs</strong></a> and <a href="https://www.callstats.io/2016/12/21/csio-jssip-integration/"><strong>JsSIP</strong></a>); but they’re more than clients to us here at Nimble Ape. Callstats do amazing things for the WebRTC community and so we couldn’t be happier that they’ve decided to support CommCon.</p><p>We’ve also just announced our <a href="https://commcon.xyz/#speakers"><strong>speaking lineup</strong></a> on our website — we absolutely couldn’t be happier with the lineup with some of the very best and most talented people in the world.</p><p>CommCon is the 25th to the the 29th of June next year (2018); its the only Open Source RTC event in the UK and is something a little different to what you may expect from an RTC event. Tickets are now on <a href="https://ti.to/nimbleape/commcon2018"><strong>sale</strong></a> but there’s a very limited supply of them so you need to be quick! We look forward to seeing you there!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6cdbea90bb72" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Simwood is CommCon’s first Platinum Sponsor]]></title>
            <link>https://medium.com/@nimbleape/simwood-is-commcons-first-platinum-sponsor-c29fc0b0ab6e?source=rss-bcfe52bf39ef------2</link>
            <guid isPermaLink="false">https://medium.com/p/c29fc0b0ab6e</guid>
            <category><![CDATA[commcon]]></category>
            <category><![CDATA[sponsor]]></category>
            <dc:creator><![CDATA[Nimble Ape Ltd]]></dc:creator>
            <pubDate>Thu, 25 Jan 2018 15:39:02 GMT</pubDate>
            <atom:updated>2018-01-25T15:39:02.876Z</atom:updated>
            <content:encoded><![CDATA[<p>If you don’t know yet, we’re organising a conference next year and it’s called <a href="https://commcon.xyz/">CommCon</a> and we’re pretty excited about it all. Its a conference for the Open Source Real Time Communication community — run by the community for the community.</p><p>We’re ecstatic to announce that <a href="https://simwood.com/">Simwood</a> are our first Platinum sponsor. We’ve gotten to know the Simwood team pretty well over the past year or so and we couldn’t be happier that a industry driving UK business is a headline sponsor at CommCon. Head over to the Simwood <a href="http://blog.simwood.com/2017/10/commcon-2018/">blog</a> to hear more about how CommCon came about!</p><p>If you don’t know of Simwood, they’re one of the nicest companies in the VoIP industry to work with; not only are they one of the leaders in the industry when it comes to VoIP Fraud and the technology used in their platform, they also give back to the communities that the business is built upon which is pretty rare.</p><p>CommCon is the 25th to the the 29th of June next year (2018); its the only Open Source RTC event in the UK and is something a little different to what you may expect from an RTC event. Tickets are now on <a href="https://ti.to/nimbleape/commcon2018">sale</a> but there’s a very limited supply of them so you need to be quick! We look forward to seeing you there!</p><p><em>This article was originally posted </em><a href="https://nimblea.pe/monkey-business/2017/10/09/commcon-simwood-platinum-sponsor"><em>on my own site</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c29fc0b0ab6e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Callstats I/O are CommCon’s second Platinum sponsor]]></title>
            <link>https://medium.com/@nimbleape/callstats-i-o-are-commcons-second-platinum-sponsor-ebc8d41aea84?source=rss-bcfe52bf39ef------2</link>
            <guid isPermaLink="false">https://medium.com/p/ebc8d41aea84</guid>
            <category><![CDATA[commcon]]></category>
            <category><![CDATA[sponsor]]></category>
            <dc:creator><![CDATA[Nimble Ape Ltd]]></dc:creator>
            <pubDate>Thu, 25 Jan 2018 00:00:00 GMT</pubDate>
            <atom:updated>2018-01-25T15:43:36.253Z</atom:updated>
            <content:encoded><![CDATA[<p>We’re super excited to announce that <a href="https://www.callstats.io/">Callstats I/O</a> are our second Platinum Sponsor for <a href="https://commcon.xyz/">CommCon</a>.</p><p>Callstats are both clients and friends of Nimble Ape. You may have seen that we’ve made a couple of shim layers for popular client SDKs for them in the past (<a href="https://www.callstats.io/2017/12/04/kurento/">Kurento</a>, <a href="https://www.callstats.io/2017/10/02/twilio-video-announced/">Twilio Video</a>, <a href="https://www.callstats.io/2017/06/09/sipjs-integration-callstatsio/">SIPjs</a> and <a href="https://www.callstats.io/2016/12/21/csio-jssip-integration/">JsSIP</a>); but they’re more than clients to us here at Nimble Ape. Callstats do amazing things for the WebRTC community and so we couldn’t be happier that they’ve decided to support CommCon.</p><p>We’ve also just announced our <a href="https://commcon.xyz/#speakers">speaking lineup</a> on our website — we absolutely couldn’t be happier with the lineup with some of the very best and most talented people in the world.</p><p>CommCon is the 25th to the the 29th of June next year (2018); its the only Open Source RTC event in the UK and is something a little different to what you may expect from an RTC event. Tickets are now on <a href="https://ti.to/nimbleape/commcon2018">sale</a> but there’s a very limited supply of them so you need to be quick! We look forward to seeing you there!</p><p><em>This article was originally posted </em><a href="https://nimblea.pe/monkey-business/2018/01/25/commcon-callstats-platinum-sponsor-and-speakers"><em>on my own site</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ebc8d41aea84" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[WebRTC, Asterisk and Chrome 57]]></title>
            <link>https://medium.com/@nimbleape/webrtc-asterisk-and-chrome-57-a706fde33780?source=rss-bcfe52bf39ef------2</link>
            <guid isPermaLink="false">https://medium.com/p/a706fde33780</guid>
            <category><![CDATA[webrtc]]></category>
            <category><![CDATA[asterisk]]></category>
            <dc:creator><![CDATA[Nimble Ape Ltd]]></dc:creator>
            <pubDate>Thu, 19 Jan 2017 10:56:03 GMT</pubDate>
            <atom:updated>2017-01-19T10:56:03.713Z</atom:updated>
            <content:encoded><![CDATA[<p>An upcoming change in Chrome 57 (currently Chrome Dev) will see your WebRTC application fail if it relies on Asterisk to be a webRTC gateway.</p><h4>TL;DR</h4><p>Your WebRTC app will break soon if you use Asterisk — add a new flag to the RTCPeerConnection instantiation to keep your app working.</p><h4>The issue</h4><p>In a recent change to the WebRTC stack inside Chrome 57, the rtcp-mux setting has gone from “negotiate” to “require”. This doesn’t cause an issue for any peer to peer calls as the browsers are able to deal with the changes; but does cause an issue for some WebRTC gateways. I’ve seen the change cause problems in RTPEngine and Asterisk. Fortunately, RTPEngine has a flag you can enable to get past the issue. You can see the Public Service Announcement on the <a href="https://groups.google.com/forum/#!topic/discuss-webrtc/eM57DEy89MY">discuss-webrtc mailing list</a>.</p><p>For now, Asterisk does not support RTCP multiplexing and so can’t offer this option within the SDP that Chrome 57 requires. So where does this leave us? An <a href="https://issues.asterisk.org/jira/browse/ASTERISK-26732">issue</a> has been raised on the Asterisk Issue tracker and its been mentioned on the <a href="http://lists.digium.com/pipermail/asterisk-dev/2017-January/076091.html">asterisk-dev mailing list</a>. But in short; right now, the only thing you can do to save your application from failing catastrophically when Chrome 57 gets released as Stable, is to pass in an extra option into your RTCPeerConnection instantiation to enable the old behaviour within Chrome.</p><pre>pc = new RTCPeerConnection({rtcpMuxPolicy: &quot;negotiate&quot;})</pre><p>You can just pass this in without any browser conditionals around it; its safe to do so. If you don’t do this, your application will likely start giving out errors when setting the remote description; you’ll likely see an error similar to this in <a href="/service/chrome://webrtc-internals">chrome://webrtc-internals</a></p><pre>setRemoteDescriptionOnFailure<br>Failed to set remote answer sdp: Session error code: <br>ERROR_CONTENT. Session error description: Failed to setup RTCP mux filter...</pre><p>As with any extra flag to enable old behaviour, I expect the flag to disappear sometime in the future — I’m still trying to find out how long the new flag will hang around for which allows us to carry on utilising Asterisk as a WebRTC gateway.</p><p>Chrome 55 is around mid cycle right now, which means Chrome 57 is around 6 weeks away; maybe a little bit more — An Asterisk update is unlikely to happen in that time.</p><h4>Libraries</h4><p>If you use <a href="http://jssip.net/">jsSIP</a>, its an easy change for you as jsSIP allows you to <a href="https://github.com/versatica/JsSIP/blob/d9e675c28614cf6c2460893d4df1a3ec688fb362/lib/RTCSession.js#L1479">specify the object</a> that gets passed in to creation of the RTCPeerConnection.</p><p>If you use <a href="http://sipjs.com/">sip.js</a>; Sean Bright has <a href="https://github.com/onsip/SIP.js/pull/375/files">issued a Pull Request</a> enabling you to pass in an option to enable this additional setting.</p><p><em>This article was originally posted </em><a href="https://nimblea.pe/monkey-business/2017/01/19/webrtc-asterisk-and-chrome-57"><em>on my own site</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a706fde33780" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Web Bluetooth Progressive Web App]]></title>
            <link>https://medium.com/@nimbleape/building-a-web-bluetooth-progressive-web-app-a859f91fd29?source=rss-bcfe52bf39ef------2</link>
            <guid isPermaLink="false">https://medium.com/p/a859f91fd29</guid>
            <category><![CDATA[progressive-web-app]]></category>
            <category><![CDATA[web-bluetooth]]></category>
            <category><![CDATA[physical-web]]></category>
            <category><![CDATA[novalia]]></category>
            <dc:creator><![CDATA[Nimble Ape Ltd]]></dc:creator>
            <pubDate>Fri, 09 Dec 2016 10:12:37 GMT</pubDate>
            <atom:updated>2016-12-09T10:12:37.697Z</atom:updated>
            <content:encoded><![CDATA[<p>A few months ago I started looking around the internet for weird and wonderful Bluetooth Low Energy devices that I could incorporate into my <a href="http://www.slideshare.net/danjenkins/getting-physical-with-web-bluetooth-in-the-browser-hackference-67503130">Getting Physical with Web Bluetooth in the Browser</a> talk; suffice to say, there are quite a few. Long story short, <a href="https://twitter.com/uk_baz">Barry Byford</a> pointed me towards a company called <a href="http://www.audioposter.com/">Novalia</a>.</p><p>Utilising Novalia’s technology, you can create an interactive experience using paper; and more specifically for me, you can utilise BLE. It has now been just under a year since the <a href="https://nimblea.pe/monkey-business/2015/12/17/these-arent-the-droids-youre-looking-for/">post</a> that brought a BB-8 to life using the power of Web Bluetooth and Web Audio using ChromeOS. Since then, I’ve learnt more about Bluetooth Low Energy and the <a href="https://google.github.io/physical-web/">Physical Web</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*McGD70ROdAd-rCyfc_v3HA.jpeg" /></figure><h4>PWA</h4><p>Progressive Web Apps are the new standard of web app and something all web developers should be striving for. If you haven’t heard of the term PWA or <em>Progressive Web App</em> then get ready to hear it some <a href="https://www.youtube.com/watch?v=MyQ8mtR9WxI">more</a>, and then some <a href="https://www.youtube.com/watch?list=PLNYkxOF6rcIAWWNR_Q6eLPhsyx6VvYjVb&amp;v=uHgqWg3OIIo">more</a> and then some <a href="https://www.youtube.com/watch?v=U52dD0tegsA&amp;list=PLNYkxOF6rcIBTs2KPy1E6tIYaWoFcG3uj&amp;index=7">more</a> again; it is the new benchmark for Web Apps and not just mobile ones at that.</p><p>So Nimble Ape set out to help show Novalia the power of the Web and its new technologies, specifically PWAs and Web Bluetooth.</p><p>The key thing with the Novalia PWA was that a PWA allowed us to create an application that worked the same as a native application. Once a user had been to the website, they could be offline with no internet connectivity, <a href="https://mobiforge.com/news-comment/the-web-progression-procession-at-google-io-2016">LieFi</a> as Jake Archibald would put it, or they could just have Airplane mode turned on and still be able to connect to a Novalia Audio Poster, just the same as the native apps Novalia had already created.</p><p>Utilising Progressive Web App techniques, the Physical Web and Web Bluetooth (and some magic from Chrome Canary), we get an awesome user experience from this BLE Poster.</p><h4>Polymer &amp; Web Bluetooth</h4><p>This PWA is built using the <a href="https://www.polymer-project.org/1.0/docs/tools/polymer-cli">Polymer CLI</a> tool, which constructs the basis of your Web App and allows us to use Polymer components — a really nice and quick way to create a Web App utilising already created Components; in this case, the <a href="https://beta.webcomponents.org/collection/PolymerElements/paper-elements">Polymer Paper Elements</a>, but there are a <a href="https://beta.webcomponents.org/">load</a> out there already!</p><p>Once we had the base web app setup, we used the <a href="https://beaufortfrancois.github.io/sandbox/web-bluetooth/generator/">Web Bluetooth Generator</a> from Francois Beaufort at Google to create a JavaScript class for connecting to Novalia’s Audio Poster. With less than 30 lines of code, it was dealing with translating Bluetooth Characteristic values to which sound to play and adding the right classes to elements to show and hide them based on the connected state of the poster.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FvH2o03f_g4o%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DvH2o03f_g4o&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FvH2o03f_g4o%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/60f6e354822650f285b6f096ca939aa3/href">https://medium.com/media/60f6e354822650f285b6f096ca939aa3/href</a></iframe><p>And that’s it, we were done.</p><p>The only thing remaining was to test it against <a href="https://github.com/GoogleChrome/lighthouse">Lighthouse</a>; a tool for testing how well Progressive Web Apps perform in certain situations. With little to no effort from us, it scored 99 out of 100 — its missing H2 and a few other optimisations that we didn’t get to. This is a really simple app that does barely anything — hence the great score with little effort.</p><p>With that, we had a device that emitted a Physical Web Eddystone URL, that took us to <a href="https://novalia.nimbleape.xyz/">https://novalia.nimbleape.xyz</a> when pressed, which opened up the installed PWA, and interacted with the device using Web Bluetooth.</p><p>Pretty cool huh?</p><p>You can take a look at all of the code for this demo on <a href="https://github.com/nimbleape/novalia-web-bluetooth">GitHub</a>.</p><p>Confused by the Physical Web or by Progressive Web Apps? Check out our upcoming posts about both of them in modern day app development — coming soon.</p><p><em>This article was originally posted on my own site.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a859f91fd29" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[All hail Boxen, for it is glorious]]></title>
            <link>https://medium.com/@nimbleape/all-hail-boxen-for-it-is-glorious-e9d52455a72f?source=rss-bcfe52bf39ef------2</link>
            <guid isPermaLink="false">https://medium.com/p/e9d52455a72f</guid>
            <category><![CDATA[boxen]]></category>
            <dc:creator><![CDATA[Nimble Ape Ltd]]></dc:creator>
            <pubDate>Mon, 18 Jan 2016 12:56:50 GMT</pubDate>
            <atom:updated>2016-01-18T12:56:50.367Z</atom:updated>
            <content:encoded><![CDATA[<p>As a developer, the device I use for development is part of the development itself. I have things setup the way that I want them, and feel completely uncomfortable when forced to use someone else’s device to do anything. Hot Corners, fonts, keyboard shortcuts. These all make my day to day development easier and more productive.</p><p>I currently use a Macbook Pro for my development machine, although I did just buy a Chromebook for another purpose (more on that to come in a future blog post). This isn’t a post about how great apple Macbooks are. I mean, they last a long time, they don’t suffer in the same ways laptops from other providers seem to, I like OSX etc. But all of that’s personal opinion. What this post is about is <a href="https://github.com/boxen/our-boxen/#our-boxen">Boxen</a>. Never heard of Boxen? Well you’re not alone; I hadn’t until about a year ago.</p><h3>Boxen</h3><p>Boxen is basically automation for your Mac from <a href="https://github.com/">GitHub</a>. In Operations we have automation tools such as ansible, chef and puppet. Boxen is exactly that, but for your machine running OSX and it runs puppet underneath it, which means you can utilise puppet modules.</p><p>The key here is reproducibility; something we cry out for when building and deploying applications, but don’t think twice about when it comes to the machines we develop on. After getting my Mac setup over the course of months, or maybe even years, to then have all that wiped away when you do a clean install or get a new mac isn’t great. Yes, you can restore from say a Time Machine backup but that’s not usually too helpful — usually we want a nice clean fresh install; Boxen fixes this for us.</p><p>Over the past month I’ve been building up a Boxen repo around other jobs, clients and the things that make money. I got to what I felt was a good point and decided to take the plunge. I was still running Yosemite and wanted to upgrade to El Capitan; something I hadn’t done due to speaking at events and travelling — keynote not working properly or not being able to fix something for a client would have been catastrophic.</p><p>Yesterday, I formatted my Mac (3 times) and installed a fresh install of El Capitan. I installed Xcode, Xcode’s command line tools and cloned down my Boxen repo from Bitbucket. I then ran Boxen and off it went installing all my apps and setting OSX defaults. Now, my repo isn’t 100% perfect; it doesn’t run successfully on the first go and will never run 100% any time after that due to a few issues. Here’s three reasons why:</p><ul><li>I need my SSH key in Github and Bitbucket for it to access repos.</li><li>Once I’ve installed something from the App Store, the script tries to find the word “install” every time after that, and it fails — because the app’s already installed.</li><li>Installing apps from brew cask sometimes requires passwords and Boxen can’t deal with that; so you have to re-run these commands yourself.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UBqFUnn85qYHvkUX4pgGWA.png" /></figure><p>There were other issues but they’re mainly due to it being the first time I had properly run the Boxen scripts on my main development machine.</p><p>In my base Boxen install instructions, I tell it to install the latest versions of Node.js and Ruby, as well as setting up ZSH and apps from <a href="http://caskroom.io/">caskroom</a> and the Mac App Store. Like I said, it’s not completely automated yet. For instance I use <a href="https://github.com/lra/mackup">mackup</a> to backup application preferences and these is stored in <a href="https://www.dropbox.com/">Dropbox</a> — so I have to login to Dropbox before I can run mackup restore — something that can’t really be automated.</p><p>Something else that I can’t seem to automate very well is clearing down the Dock so it doesn’t have any icons, and then adding them all back in, including the <a href="http://www.macworld.com/article/1160337/dock_access.html">blank tiles</a> I use to separate application types.</p><p>But, it’s a long way from what I would have had to do without Boxen. With Boxen, rebuilding my laptop to a usable degree took probably just over an hour and I didn’t have to do anything other than type in a few passwords here and there and manually re-run some commands.</p><p>You can find a public version of my boxen setup on <a href="https://github.com/nimbleape/example-boxen/commit/b5ea60e872b3409d233c54d572cc7d5bd5a8cf02">github</a></p><h3>It’s great for an individual or a company</h3><p>Github use Boxen themselves for managing their Macs and that’s exactly what I plan to do for developers at Nimble Ape. It just saves so much time and still allows people to customise their setup. If my Mac died tomorrow, I know I could get back up and running in around an hour with a brand new Mac.</p><h3>What’s next?</h3><p>I still need to split out the main modules/people/manifests/danjenkins.pp file out into project files, or files for different types of apps — such as all my development applications or all the OSX defaults, future members of the team would then be able to bring in preferences as they see fit, as well as bringing in all the browsers for example.</p><p>You can also run things depending on what host you’re on, so that’ll be useful when Apple finally upgrade the Macbook to include new processors and Thunderbolt 3. I won’t want all of the apps I have on my development Macbook Pro on my new Macbook, but I will want all of my OSX defaults and certain applications installed, all powered by Boxen and mackup.</p><p>I’d also love for this to be 100% automated — I can’t say my puppet foo is too strong — I prefer Ansible myself, so this will take a while. The main thing to remember that when installing a new app is that I need to add it into boxen and re-run boxen rather than just installing it manually; it’s the same with OSX preferences.</p><p>Go forth and save yourself some time — use Boxen, it’s amazing!</p><p><em>This article was originally posted </em><a href="https://nimblea.pe/monkey-business/2015/12/11/all-hail-boxen-for-it-is-glorious"><em>on my own site</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e9d52455a72f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[These aren’t the droids you’re looking for]]></title>
            <link>https://medium.com/@nimbleape/these-aren-t-the-droids-you-re-looking-for-7339848c05e7?source=rss-bcfe52bf39ef------2</link>
            <guid isPermaLink="false">https://medium.com/p/7339848c05e7</guid>
            <category><![CDATA[web-bluetooth]]></category>
            <category><![CDATA[webaudio]]></category>
            <category><![CDATA[bb-8]]></category>
            <dc:creator><![CDATA[Nimble Ape Ltd]]></dc:creator>
            <pubDate>Mon, 11 Jan 2016 20:16:32 GMT</pubDate>
            <atom:updated>2016-01-11T20:20:29.487Z</atom:updated>
            <content:encoded><![CDATA[<p>As a web developer, wouldn’t you love to take control of your devices using Web Technologies? Imagine having a heartbeat monitor that you could access from your browser. Being able to connect to it, get battery levels and heartbeat statistics. We all know how easy it is to deploy websites compared to apps; why wouldn’t you take advantage of being able to release and move faster. Or maybe you just love making cool shit with HTML and JavaScript? I know I do. Heck, we all love making cool shit.</p><p>What if I told you all of this is possible, and more! It’s possible via technology called Web Bluetooth and you can use it today! The great thing is that it’s not just heartbeat monitors that are using the Bluetooth Low Energy (BLE). Heartbeat monitors are cool and they serve a purpose, but they’re not necessarily as fun as flying a drone or even making a BB-8 roll around your floor. Yes, these devices are BLE enabled, which means Chrome can connect to them.</p><p>By utilising the great work done by the <a href="https://github.com/WebBluetoothCG/web-bluetooth#web-bluetooth">Web Bluetooth Community Group</a>, we’re able to use JavaScript in the browser to talk to, and control, a <a href="http://www.sphero.com/starwars">BB-8 drone</a>. Connecting physical devices directly to a browser and being able to do things with it; that’s freaking awesome! We’ve been writing apps using Node.js for years now, by using <a href="https://github.com/rwaldron/johnny-five">Johnny Five</a>, other programming languages, and even using Chrome Apps that have access to the full Bluetooth Stack, but the fact we can do it in the browser using pure JavaScript is so exciting.</p><h4>Enough talk, check it out!</h4><p>This BB-8 dances and changes colour to the Imperial March by using the <a href="http://www.w3.org/TR/webaudio/">Web Audio</a> APIs to analyse the music as it plays, and using the <a href="https://webbluetoothcg.github.io/web-bluetooth/">Web Bluetooth</a> APIs to communicate with the device itself. On every G note, we change the colour between red and blue, as well as change its heading between 90 and 180 degrees.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FVwSLt0ipmAQ%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DVwSLt0ipmAQ&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FVwSLt0ipmAQ%2Fhqdefault.jpg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/19b8b4c01b550fb719ea15a354afbe86/href">https://medium.com/media/19b8b4c01b550fb719ea15a354afbe86/href</a></iframe><h4>Web Bluetooth</h4><p>Today, Web Bluetooth is only available in Chrome with the enable-web-bluetooth flag <a href="https://developers.google.com/web/updates/2015/07/interact-with-ble-devices-on-the-web?hl=en">enabled</a>. Depending on your OS, you’ll get varying levels of support.</p><h4>OSX</h4><p>Partially supported, you can find and connect to devices but that’s about it — i.e. not useful for active development right now.</p><h4>Android</h4><p>Android devices get further than OSX; you’re able to connect to “services” and get “characteristics” from the devices, but you can’t listen for events. These events could be vital for your device and therefore you again may not be able to develop using an Android device. If you do use Android Marshmallow (6), make sure to use the <a href="https://play.google.com/store/apps/details?id=com.chrome.dev">Chrome Dev</a> version from the Play Store; if you’re using Android Lollipop (5) you’ll need to use Chromium.</p><h4>Chrome OS (Chromebooks)</h4><p>Chrome OS is the furthest along, and is the most supported of the platforms. In Chrome OS you can connect to the device, connect to services and get characteristics, as well as accessing event data. For my recent work with the Web Bluetooth APIs, I went and bought myself a £200 Chromebook; an added bonus is that it’s great for testing WebRTC calling.</p><p>As this demo doesn’t rely on events, you should be able to do this from your Android device if you’re running pure Lollipop or Marshmallow.</p><p>Go give the fork a try from <a href="https://nimbleape.github.io/demos/bluetooth-toy-bb8/">github pages</a> — you’ll need to make sure the website is being delivered over HTTPS otherwise it won’t work — the Web Bluetooth APIs require what is called a “Secure Context” or “Trusted Origin” to be able to be used, like so many other APIs.</p><p>I’m not going to re-write what’s in this <a href="https://developers.google.com/web/updates/2015/07/interact-with-ble-devices-on-the-web?hl=en">excellent guide</a> by François Beaufort in the Google Chrome team on how to interact with BLE devices. His guide covers the basics, how the APIs are Promise based, development tips and what’s coming next. However, I will say that if you don’t have a Chromebook, the <a href="https://play.google.com/store/apps/details?id=no.nordicsemi.android.mcp">nRF Master Control Panel</a> Android App is excellent in giving you information that you wouldn’t normally be able to see. It enables you to scan for all BLE devices, connect to one, and list all of it’s services and the characteristics within each service.</p><p>If you don’t know what a service is, it’s the thing that ties features together, such as battery information or heart rates. Within a service you have characteristics, these could be battery temperature or charge level, or your heart rate. These are standard services, you can find some information on them at <a href="https://developer.bluetooth.org/gatt/Pages/GATT-Specification-Documents.aspx">developer.bluetooth.org</a>, or look at a specific service such as the <a href="https://developer.bluetooth.org/TechnologyOverview/Pages/HRS.aspx">heart rate service</a>, where you can find the standard characteristics included. The great thing about this is that one website using the Web Bluetooth APIs would be able to talk to any heart rate tracking BLE devices no matter what the brand is, for example; that’s pretty neat.</p><p>Unfortunately, the BB-8 doesn’t use any of these standard services, and so you can only interact with it using services and characteristics with special UUIDs — figuring out what each service and characteristic does is part of the fun though. I was lucky enough that the work was already done by the Web Bluetooth Community Group on <a href="https://github.com/WebBluetoothCG/demos/blob/gh-pages/bluetooth-toy-bb8/index.html#L267">Github</a>. With the help of the <a href="https://github.com/orbotix/sphero.js/blob/master/lib/devices/sphero.js">Sphero JS SDK</a> released by Orbotix (the people that make Sphero) and their <a href="https://github.com/orbotix/DeveloperResources/blob/master/docs/Sphero_API_1.50.pdf">developer manual</a>, I was able to add a few more commands to the JS API and understand how to make the BB-8 rotate without moving off the spot.</p><p>Take a look at the beginning of the communication with the BB-8 using JavaScript:</p><pre>navigator.bluetooth.requestDevice({<br>  filters: [{<br>    //services: [&#39;22bb746f-2bb0-7554-2d6f-726568705327&#39;]<br>    namePrefix: [&#39;BB&#39;]<br>  }]<br>})<br>.then(device =&gt; {<br>  console.log(&#39;&gt; Found &#39; + device.name);<br>  console.log(&#39;Connecting to GATT Server...&#39;);<br>  return device.connectGATT();<br>})<br>.then(server =&gt; {<br>  gattServer = server;<br>  // Get radio service<br>  return gattServer.getPrimaryService(&quot;22bb746f-2bb0-7554-2d6f-726568705327&quot;);<br>})<br>.then(service =&gt; {<br>  // Developer mode sequence is sent to the radio service<br>  radioService = service;<br>  // Get Anti DOS characteristic<br>  return radioService.getCharacteristic(&quot;22bb746f-2bbd-7554-2d6f-726568705327&quot;);<br>})<br>.then(characteristic =&gt; {<br>  console.log(&#39;&gt; Found Anti DOS characteristic&#39;);<br>  // Send special string<br>  let bytes = new Uint8Array(&#39;011i3&#39;.split(&#39;&#39;).map(c =&gt; c.charCodeAt()));<br>  return characteristic.writeValue(bytes).then(() =&gt; {<br>    console.log(&#39;Anti DOS write done.&#39;);<br>  })<br>})</pre><p>You should be able to see a really nice promise based API. You can see in the requestDevice call that you have to specify a way of limiting devices around you; no, you can’t just search for all BLE devices. However, you can limit by services which would enable you to limit your search to all heart rate monitors for example, or you can limit by name or a name prefix. In this case, I’m limiting by a name prefix of BB, which then returns a promise with the found device (on Android you’ll get a picker UI, but on OSX and Chrome OS you won’t yet). Using the device, you can connect to the GATT service (GATT stands for Generic Attribute Profile, which is used for BLE), after which you can connect to an advertised service that is then available for you to inherently use to get and set values and event listeners on characteristics.</p><p>I would encourage you to have a read of the <a href="https://webbluetoothcg.github.io/web-bluetooth/">Community Group’s Draft Specification</a> if you’re interested in more information; it’ll help you considerably in understanding the Bluetooth APIs that are available and coming soon.</p><h4>Web Audio</h4><p>For the Web Audio portion, I used the <a href="https://github.com/cwilso/pitchdetect">Pitch Detection</a> sample from <a href="https://github.com/cwilso">Chris Wilson</a> to be able to figure out what note is currently being played in the audio playing from the &lt;audio&gt; tag; Chris has a load of other Web Audio Demos available on <a href="http://webaudiodemos.appspot.com/">appspot</a>. Originally, I used the Imperial March orchestrated by John Williams, but <a href="http://www.sonymusic.co.uk/">SME</a> didn’t really approve of its use on YouTube so it’s now a variation on the Imperial March by Orchestra Cinema Paradise.</p><p>If you’re not familiar with <a href="https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API">Web Audio</a>, you can do remarkable things with the Web Audio APIs, from creating beats and instruments, to entire songs. You can even take an audio file and apply affects to that audio stream before its output to your speakers. But that’s not how this demo works, this demo works by playing an audio file and analysing it as it’s played. Then you’re able to take the audio stream that’s being played, using the &lt;audio&gt; tag, and connect it to an Audio Context Analyser.</p><pre>var audioContext = new window.AudioContext();<br><br>//load audio file from html tag<br>var audioElement = document.getElementById(&#39;soundFile&#39;);<br>//creating source node<br>var source = audioContext.createMediaElementSource(audioElement);<br><br>//create analyser node<br>analyser = audioContext.createAnalyser();<br>//set size of how many bits we analyse on<br>analyser.fftSize = 2048;<br><br>//connect to source<br>source.connect(analyser);<br>//pipe to speakers<br>analyser.connect(audioContext.destination);</pre><p>Once the Analyser has been created, you’re able to call getFloatTimeDomainData on it to be able to get data about the currently playing track; this is done on a loop utilising requestIdleCallback, which enables us to know when the browser is available to be doing things internally. Utilising the results from getFloatTimeDomainData, the data is then passed into the autoCorrelate function from Chris’ Pitch Detection example; the result of this is knowing which note and what pitch, and with what certainty the application has about the information.</p><p>This enabled the change of colour and the rotation of the BB-8 in time to whenever the note G was played. At best guess, G is the all important note.</p><p>The web is such an exciting place to be developing right now. Throughout this post I’ve only talked about Chrome, but Firefox OS also has BLE features which allow us to use JavaScript to interact with BLE devices. The API is a little different and generally is a little more advanced than what’s in Chrome today, but is restricted to Firefox OS devices — which have recently taken a bit of a knock in where they’re going. I’m sure the Web Bluetooth APIs will get pushed and added into other browsers over the coming months. Connecting the browser and BLE devices shows us how the way we interact with devices from the Web is changing and it’s changing fast.</p><p>I have to say thanks to <a href="https://twitter.com/Paul_Kinlan">Paul Kinlan</a> and <a href="https://plus.google.com/+FrancoisBeaufort/posts">François Beaufort</a> from Google, for helping with questions while getting up to speed with BLE on the Web. <a href="https://twitter.com/janjongboom">Jan Jongboom</a> has also been a considerable help — he wrote a <a href="https://hacks.mozilla.org/2015/08/flying-a-drone-in-your-browser-with-webbluetooth/">great post</a> about controlling a drone from Firefox OS, utilising the <a href="https://google.github.io/physical-web/">Physical Web</a> to access a URL for the drone. Finally, thanks to <a href="https://twitter.com/rumyra">Ruth John</a> for showing me what’s possible with Web Audio — check out her recent post about her VJing setup on <a href="https://24ways.org/2015/bringing-your-code-to-the-streets/">24ways</a>, where she also talks about Web Audio and Web MIDI.</p><p>What are you going to do with Bluetooth Low Energy in your browser? Let me know in the comments.</p><p><em>This article was originally posted </em><a href="https://nimblea.pe/monkey-business/2015/12/17/these-arent-the-droids-youre-looking-for"><em>on my own site</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7339848c05e7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>