<?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 Peter W. Alt on Medium]]></title>
        <description><![CDATA[Stories by Peter W. Alt on Medium]]></description>
        <link>https://medium.com/@pewalt?source=rss-6d18d378c3b2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*DJSeY4S4OPXTWWVIPFs2Tg.jpeg</url>
            <title>Stories by Peter W. Alt on Medium</title>
            <link>https://medium.com/@pewalt?source=rss-6d18d378c3b2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 06:28:08 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@pewalt/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[Get ready for Hackathon 3.0]]></title>
            <link>https://medium.com/@pewalt/get-ready-for-hackathon-3-0-2448e102d01?source=rss-6d18d378c3b2------2</link>
            <guid isPermaLink="false">https://medium.com/p/2448e102d01</guid>
            <category><![CDATA[musetech]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[hackathons]]></category>
            <category><![CDATA[museums]]></category>
            <dc:creator><![CDATA[Peter W. Alt]]></dc:creator>
            <pubDate>Mon, 02 Apr 2018 12:26:53 GMT</pubDate>
            <atom:updated>2018-04-02T12:26:53.352Z</atom:updated>
            <content:encoded><![CDATA[<p>Here’s a quick tutorial on how to get started with the Philadelphia Museum of Art hackathon data for indoor location / positioning. You don’t need to actually code a line to get the sample application running.</p><p>Ready? Let’s go!</p><h3>Clone the git repositories</h3><p>Alright, all you need is Xcode (preferably 9.2), git and an iOS device.</p><p>You need two repositories to get rolling:</p><ul><li>The mobileFramework, which is a set of tools that take care of the whole location mapping (and has other cool features like transparent file caching, but that probably deserves another article)</li><li>The mobileFramework demo app, which demonstrates how to use the mobileFramework (mF) and get you started once you’re inside the museum.</li></ul><p>Open the terminal on your computer and navigate to your workspace and preferably create a new folder called pmaHackathon. change into this folder (cd pmaHackathon) and run the following commands:</p><p>Then it’s time to clone the repository:</p><blockquote>git clone <a href="https://github.com/philamuseum/mobileFramework.git">https://github.com/philamuseum/mobileFramework.git</a></blockquote><p>in the same folder, clone the mobileFrame demo repository:</p><blockquote>git clone <a href="https://github.com/philamuseum/mobileFrameworkDemo.git">https://github.com/philamuseum/mobileFrameworkDemo.git</a></blockquote><p>Alright, you’re ready for the next step.</p><p>(You could also download the zip files from GitHub and extract those instead of using git, but in case there are some last minute updates, you would miss out on the comfort of simply pulling the latest version. But it’s totally safe to just go with the zip files if that feels more comfortable)</p><h3>Set up your Xcode project</h3><p>Time to open the <em>mobileFrameworkDemo.xcodeproj</em> file to open the demo project.</p><p>Before you do anything else, go to the main project settings in the top left corner of the Project Navigator and change the Bundle Identifier to something of your liking (let’s say <em>com.your-name.mobileFrameworkDemo</em>) and then select your Team and, if needed, hit redo to let Xcode retry generating all necessary profiles.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V1LqnwtYgTboq7lGzSqmMA.png" /><figcaption>Configure your Xcode project with your own Bundle Identifier and iOS Developer Team.</figcaption></figure><p>You’re ready for a first attempt to compile: <em>Command + B</em> (or Product -&gt; Build in the menu) and it should give you a success message.</p><p>If you want, hit <em>Command + R</em> (or Product -&gt; Run) and get it running in your phone. You’ll maybe notice an error about missing credentials. You need an auth token from the hackathon API to continue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/311/1*m1UfLxi9It8Wm-offHIPTg.jpeg" /><figcaption>mobileFramework Demo application</figcaption></figure><h3>Sign up for the hackathon API</h3><p>This is probably the simplest step: Browse to <a href="https://hackathon.philamuseum.org/">https://hackathon.philamuseum.org</a> and sign up.</p><p>Once you confirm your email, log in and go to API Access Token and copy the key. (It’s crucial to confirm the email, otherwise your token won’t be activated)</p><h3>Plug in your API Access Token</h3><p>Next, go to <em>ViewController.swift</em> in the demo project and plug in your key:</p><blockquote>Constants.backend.apiKey = “”; // Set your API KEY here</blockquote><h3>Let’s get started!</h3><p>Now you’re all set to go and explore the galleries with the Demo app in hand. You’ll notice it may take a tiny bit once you enter the building and start up the app, but this is normal and once you’re using it for about 15–30 seconds, the updates should be instantaneous.</p><h3>Next steps</h3><p>Now that you have the app and running, wouldn’t it be neat to display art objects that are in the gallery you’re in, so your users could learn more or see additional images?</p><p>First off, fire up this GET request to the hackathon API:</p><blockquote><a href="https://hackathon.philamuseum.org/api/v0/collection/object/location?name=[THE">https://hackathon.philamuseum.org/api/v0/collection/object/location?name=[THE</a>_GALLERY_NAME]&amp;api_token=[YOUR_TOKEN]</blockquote><p>What you’ll get back is the following information:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XnI3B_D6e9mBsCulRHoXUg.png" /><figcaption>JSON response with all objects in a specific gallery (Gallery 161 in this example)</figcaption></figure><p>So at this point, you know that there are 15 objects surrounding the visitor. To get more information about each object, query the backend with the following GET request for each object:</p><blockquote><a href="https://hackathon.philamuseum.org/api/v0/collection/object?query=59192&amp;api_token=f4Gh62bhcNVUMZJ1Y2JhNsmG7X3Y6tjYO6y1B5ExKGFVfiXSXXXwvNtmtG92">https://hackathon.philamuseum.org/api/v0/collection/object?query=[OBJECT_ID]&amp;api_token=[</a>YOUR_TOKEN]</blockquote><p>And this is what you’ll get back:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ddi4ynH7RV4skdLU3_RIiQ.png" /><figcaption>Sample API response, truncated.</figcaption></figure><p>There’s lots more data in the JSON response than visible on the screen above.</p><p>As you may notice, this is not an efficient way to query the hackathon API for lots of objects. So it may make sense to keep the information stored on your device, so you don’t have to query the backend every single time.</p><p>During development, this is obviously not an issue, but something to keep in mind for the future.</p><h3>Hints and Tips</h3><p><strong>Mapbox</strong><br>The demo project automatically pulls the geoJSON data from the hackathon API for the public galleries, but in case you want to develop a location based app, but can’t go to the museum every day, simply use mapbox (it’s free for this kind of purpose), create a geoJSON polygon around your house, your office or part of town and use this data instead.</p><p><strong>API Rate Limit<br></strong>Note that the PMA hackathon API is rate limited to about 500 requests per minute per user. So while this isn’t a big deal for most use-cases, make sure you don’t query the location endpoints too frequently, not only because it causes unnecessary traffic on the network, but also because you might get locked out for a couple of minutes.</p><p><strong>API Explorer<br></strong>The PMA API has a nice view to testdrive the available data, called “API Explorer”. Check it out, it gives you quick, visual access to the collection data, while providing the URL as well as raw responses, if needed.<br><a href="https://hackathon.philamuseum.org/explorer">https://hackathon.philamuseum.org/explorer</a></p><h3>Background</h3><p>The Philadelphia Museum of Art developed their award-winning in-house app “A is for Art Museum” as an immersive, location-based experience, using in-gallery location finding to create a treasure app for kids. The iPads know their location in the museum and guide the users to their destinations. And only when they arrive at the destination gallery they chose will the content unlock, giving kids a new and fun way to engage with art, explore details or watch a short video about the wood carving process, for example.</p><p>To pull this off, we set up every gallery with at least one, if not more iBeacons. I wrote <a href="https://medium.com/@pewalt/indoor-navigation-is-simple-right-ed37c44ecaa0">an article about this</a> a while ago if you’re interested in more details. Over time, the museum has not only published their collection data online, they also made the beacons publicly available as part of the hackathon series.</p><p>For Hackathon 3.0, a lot has changed though. The iBeacons are no longer in use, but as an alternative, the building is now mapped through Apple’s Indoor Location system, giving any Apple iOS user high accuracy location information in the public spaces. What does that mean? Instead of dealing with Bluetooth, all you, as a developer or hackathon participant, have to do is check for the current location and you’ll get latitude, longitude as well as a NSFloor information back.</p><p>Why is this awesome? Well, for one, the museum is also making their geoJSON data publicly available, so you can either use the device itself or query the hackaton API with your data to find the location the device is in (and art objects in the very same gallery!), but you can also define your own geoJSON zones throughout the museum, so forget walls and hallways, you can remap the whole building to your own liking. More on that topic further down.</p><p>The downside? The location data is currently only available for Apple devices. Google just announced support for a similar feature in their latest release, so it might not take too long for the services to become available on Android as well.</p><p>A fair disclaimer: I’ve been part of the team at the PMA setting all of this in motion and implementing it, but I have moved on to a <a href="https://www.roarforgood.com/">local startup</a> last year, to hopefully make the world a safer place. Feel free to reach out to me with any questions you may have, but for official hackathon support, please direct your questions to museum staff at <a href="/service/mailto:hackathon@philamuseum.org">hackathon@philamuseum.org</a>.</p><p>Follow me on twitter: <a href="https://twitter.com/pewalt">@PeWalt</a>, on <a href="https://www.instagram.com/peter.alt/">Instagram</a> or check out <a href="https://www.peteralt.com/">my portfolio here</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2448e102d01" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Indoor Navigation is simple, right?]]></title>
            <link>https://medium.com/@pewalt/indoor-navigation-is-simple-right-ed37c44ecaa0?source=rss-6d18d378c3b2------2</link>
            <guid isPermaLink="false">https://medium.com/p/ed37c44ecaa0</guid>
            <category><![CDATA[indoor-location]]></category>
            <category><![CDATA[museums]]></category>
            <category><![CDATA[user-experience]]></category>
            <category><![CDATA[ibeacon]]></category>
            <category><![CDATA[indoor-navigation]]></category>
            <dc:creator><![CDATA[Peter W. Alt]]></dc:creator>
            <pubDate>Tue, 14 Jun 2016 19:54:17 GMT</pubDate>
            <atom:updated>2016-06-15T13:14:30.901Z</atom:updated>
            <content:encoded><![CDATA[<p>Indoor Navigation is simple, right?</p><p>Last year, one of my very first projects at the Philadelphia Museum of Art, was a digital version of a beloved book, also created at the PMA, named “A is for Art Museum”. The book consists of 26 objects, you may have guessed it already, associated with a letter of the alphabet. We wanted to create a treasure hunt through our galleries, so families could explore the collection in a fun way. As a visitor approaches an object, it opens up on the screen and prompts the user to interact with the art itself. After finishing the activity, the letter “unlocks” and changes its state, engaging kids to start unlocking more and more letters as they explore the galleries.</p><p>As “the” developer in our team, I quickly became the lead for the project and the iBeacon planning, testing and rollout.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*JRo0yF9jxoSFwg2hW1j55Q.png" /><figcaption>A is for Art App screenshot, some letters have already been “unlocked”.</figcaption></figure><p>In order to create an engaging and fun interactive experience, we teamed up with a couple of different vendors to prototype our experience using iBeacons, which were supposed to get installed throughout most parts of the Main Building.</p><p>This prototyping phase was extremely helpful on so many different layers. We learned a whole lot about the beacon signal in the real space (vs. testing in our office space), the user experience of wayfinding indoors (drawing a specific path results in a heads-down experience vs. highlighting a general direction which results in a heads-up experience) and also about the different platforms, their strengths and weaknesses (not to mention the pool of different iBeacons in all different shapes and colors).</p><p>After evaluating existing platforms and solutions (most iBeacon-based solutions at that time focussed on push notifications for advertisement and good backends with good APIs were rare), it became clear that there was no existing platform out yet, that supported our idea, so we started folding up our sleeves and got to work, building it ourselves.</p><p>I quickly became the “beacon person” at the Museum, always running around the galleries with a notepad and an iPad connected to my computer, debugging the app and configuring beacons.</p><p>What began was endless walkthroughs through our X number of galleries, carefully evaluating ceiling height, possibilities to mount the beacons and taking notes if we needed to paint an beacon in order to hide it (yes, we now have beacons that perfectly match the color of the ceiling in a handful of galleries, we invite you to come and try to spot our beacons!)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*7zKtdNsPVns_UeJD-p-bGQ.jpeg" /><figcaption>Painting iBeacons so they won’t be visible when mounted.</figcaption></figure><p>We decided to install the beacons over head, ideally on existing light tracks, so the signal would not be absorbed by visitors standing in front of a beacon. To mount the beacons, we tested a few options and settled with power strips.</p><p>Since we already experienced issues with triangulating the beacon signal during our prototyping phase, it was clear that we could not rely on it. We agreed that knowing what gallery a visitor is in is the highest accuracy we could achieve, but we also found that this is good enough for our intended purpose.</p><p>In order to get a visitors location in a gallery, we installed the beacons close to doorways and entrance ways to galleries, which ranges from one beacon per gallery to up to four beacons per gallery, depending on the shape and the size of the space.</p><p>We were OK with loosing the beacon signal eventually while in a gallery, since we knew we would get a new reading entering the next space.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gk8c-VeOwc6UmNsK4naW-A.jpeg" /><figcaption>First Floor iBeacon Map</figcaption></figure><p>Alright, we have maps, we know where we want to place the beacons and we just put in an order for 300 beacons (we ended up with Kontakt.IO iBeacons, by the way), now how do we make sure we don’t end up in beacon-chaos?</p><p>I decided to go with a naming schema that reflects the galleries name and the position of the beacon in the gallery. Since I was mostly planning on my desk looking at the map, I decided to go with a “at desk” perspective, using left, right, top and bottom vs. North, South, East and West, which would make more sense in the actual space.</p><p>So for example, the beacons in gallery 161 are named: 161_T, 161_L, 161_R and 161_B whereas 174 has three vertically positioned beacons: 174_T, 174_M and 174_B</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/324/1*eVH19Mtcet490R7EwutjCg.jpeg" /><figcaption>Naming convention for iBeacons — based on location on the map</figcaption></figure><p>That was all good, until I reached the ground floor of the building, which hosts the cafeteria, education corridors, our restaurant Granite Hill and other spaces like coat check or our project room (which served as the Art Splash headquarters, where visitors would pick up and return their iPads). The ground floor does not have a consistent naming schema on any of our maps, so we had to come up with some names and even break up spaces into multiples to allow a visual flow on the map, which made it hard to keep it consistent.</p><p>It also triggered a series of questions on how the three shops in our building are actually named and learning about the difference between our two coat check locations near the west entrance. (It was a great experience to get to know the whole Museum inside out and meet a lot of colleagues along the way!)</p><p>To update the beacon names in the backend, I wrote a quick script that communicates with the Kontakt.IO API, to fetch a list of all beacons. That made it much easier to assign an alias name to the beacons and push the information back into the system, than running through the browser interface and manually editing every single beacon.</p><p>This JSON feed also served as the base for our app, but I will write more about that in the second part of this article.</p><p>Working with iBeacons turned out to be quite an adventure, and I can’t wait to talk about the software side of it, as we encountered a whole lot of quirks in the building and interesting results from our wayfinding algorithm.</p><p>Thanks for reading and please feel free to reach out or leave a comment!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ed37c44ecaa0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>