<?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 Jim Knight on Medium]]></title>
        <description><![CDATA[Stories by Jim Knight on Medium]]></description>
        <link>https://medium.com/@jim.knight?source=rss-13f804c4ee7b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*8g7C_7BFdh1ThjtA.jpg</url>
            <title>Stories by Jim Knight on Medium</title>
            <link>https://medium.com/@jim.knight?source=rss-13f804c4ee7b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 03:32:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jim.knight/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[How to add dynamic content to ActionTiles]]></title>
            <link>https://medium.com/im-building-an-app/how-to-add-dynamic-content-to-actiontiles-d9883941bd68?source=rss-13f804c4ee7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/d9883941bd68</guid>
            <category><![CDATA[smart-home]]></category>
            <category><![CDATA[smart-home-automation]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[smartthings]]></category>
            <category><![CDATA[home-automation]]></category>
            <dc:creator><![CDATA[Jim Knight]]></dc:creator>
            <pubDate>Thu, 01 Feb 2018 01:31:33 GMT</pubDate>
            <atom:updated>2018-02-01T01:31:33.581Z</atom:updated>
            <content:encoded><![CDATA[<p>Working on a dashboard for a wall mounted tablet using ActionTiles, I quickly discovered the limitations of the tool, which is otherwise great by the way.</p><p>ActionTile has a container for ‘My Media’ which will allow a couple of video stream types and a still image or gif. Many people are using animated gifs from weather websites showing storm front movements. In my case I wanted to be able to show the local weather and have it update automatically in my dashboard.</p><p>My goal was to find a way to pull the latest weather information into a mini web page and then take snapshot picture of that and store it in a location that ActionTiles could see. And it worked! Here’s the result.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Lq86zFqJDWdMEww69tZSaw.png" /></figure><p>If you understand the technique and have some coding skills, you can insert your favorite programming languages in place of mine. In this case, I’m using Ruby and JavaScript.</p><h3>Step 1: Sign up for an API key from Wunderground</h3><p>I signed up for the developer license. Filled out a little form about my project and they issued the key.</p><p><a href="https://www.wunderground.com/weather/api/">https://www.wunderground.com/weather/api/</a></p><h3>Step 2: Figure out what you want to pull out of Wunderground</h3><p>In my case, I wanted to pull out the upcoming forecast. I am only pulling out the next 3 time frames</p><p><a href="https://www.wunderground.com/weather/api/d/docs?d=data/forecast">https://www.wunderground.com/weather/api/d/docs?d=data/forecast</a></p><h3>Step 3: Write the script to pull the weather data and build mini html pages</h3><p>I am a fan of <a href="https://bulma.io/">Bulma.io</a> for my stylesheet. And I like Ruby for scripts like this. I am just showing building 1 block. In reality I’m building 3. But you get the point. The secrets stores my wunderground api key.</p><p>wunderground.rb:</p><pre>#!/usr/bin/env ruby<br>require &#39;fileutils&#39;<br>require &#39;wunderground&#39;<br>require &#39;pry&#39;<br>require &#39;yaml&#39;</pre><pre># Setup secrets<br>secrets = YAML.load_file(&quot;secrets.yml&quot;)</pre><pre># Contact wunderground api &amp; get the current forecast<br>w_api = Wunderground.new(secrets[&quot;wunderground_apikey&quot;])<br>forecast = w_api.forecast_for(&quot;VA&quot;,&quot;Leesburg&quot;)</pre><pre># Parse the forecast and create the weather files<br>txt_forecast = forecast[&quot;forecast&quot;][&quot;txt_forecast&quot;][&quot;forecastday&quot;]<br>simple_forecast = forecast[&quot;forecast&quot;][&quot;simpleforecast&quot;][&quot;forecastday&quot;]</pre><pre># First file<br>html1 = &quot;&lt;!DOCTYPE html&gt;&quot;<br>html1 += &quot;&lt;link rel=\&quot;stylesheet\&quot; href=\&quot;<a href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.6.2/css/bulma.min.css/">https://cdnjs.cloudflare.com/ajax/libs/bulma/0.6.2/css/bulma.min.css\</a>&quot;&gt;&quot;<br>html1 += &quot;&lt;div class=\&quot;box\&quot; style=\&quot;width:225px\&quot;&gt;&quot;<br>html1 += &quot;&lt;img src=\&quot;&quot; + txt_forecast[0][&quot;icon_url&quot;] + &quot;\&quot;&gt;&quot;<br>html1 += &quot;&lt;h1 class=\&quot;title is-5\&quot;&gt;&quot; + txt_forecast[0][&quot;title&quot;] + &quot;&lt;/h1&gt;&quot;<br>html1 += &quot;&lt;h2 class=\&quot;subtitle is-6\&quot;&gt;High &quot; + simple_forecast[1][&quot;high&quot;][&quot;fahrenheit&quot;]<br>html1 += &quot;&amp;deg; / Low &quot; + simple_forecast[1][&quot;low&quot;][&quot;fahrenheit&quot;] + &quot;&amp;deg;&lt;/h2&gt;&quot;<br>html1 += &quot;&lt;p class=\&quot;is-size-7\&quot;&gt;&quot; + txt_forecast[0][&quot;fcttext&quot;] + &quot;&lt;/p&gt;&quot;<br>html1 += &quot;&lt;/div&gt;&quot;<br>File.open(&quot;weather1.html&quot;, &quot;w&quot;) {|f| f.write(html1) }</pre><pre># Move to file server location<br>FileUtils.move(&#39;weather1.html&#39;, &#39;current/public/weather&#39;)</pre><pre># Run the phantomjs code to get images of the html files<br>system &#39;phantomjs weather_scrape1.js&#39;</pre><pre># Move images to file server location<br>FileUtils.move(&#39;weather1.png&#39;, &#39;current/public/weather&#39;)</pre><h3>Step 5: Host your HTML mini web page somewhere that you can get to it from JavaScript</h3><p>In my case, I have a Digital Ocean server running Ubuntu.</p><h3>Step 6: Install PhantomJS</h3><p><a href="http://phantomjs.org/">PhantomJS</a> is what I used to grab the mini web page and render it to an image.</p><h3>Step 7: Write your JavaScript render code</h3><p>I just found some example online and played with it until it did what I wanted. I did tweak the width to make the image the size I needed for the tablet. Depending on your tablet or screen size you may have to play with width and height.</p><p>weather_scrape1.js:</p><pre>var page = require(&#39;webpage&#39;).create();</pre><pre>page.open(&quot;<a href="http://smarthome.lavatech.com/weather/weather1.html">http://smarthome.lavatech.com/weather/weather1.html</a>&quot;, function (status) {<br>    if (status !== &#39;success&#39;) {<br>        console.log(&#39;Unable to load the address!&#39;);<br>    } else {<br>        window.setTimeout(function () {<br>            var bb = page.evaluate(function () {<br>                return document.getElementsByClassName(&quot;box&quot;)[0].getBoundingClientRect();<br>            });</pre><pre>page.clipRect = {<br>                top:    bb.top,<br>                left:   bb.left,<br>                width:  225,<br>                height: bb.height<br>            };</pre><pre>page.render(&#39;/home/deployer/apps/smarthome/weather/weather1.png&#39;);<br>            phantom.exit();<br>        }, 100);<br>    }<br>});</pre><h3>Step 8: Host the images somewhere that ActionTiles can see</h3><p>Some people have commented that they could host their images on an internal server and I agree. I think that would work fine but I don’t know enough about ActionTiles to confirm. Of course, that would only work for a tablet in your wifi network. You may want to also use these tiles on your phone which would require an offsite location.</p><h3>Step 9: Create a cronjob (or some scheduled task) to update these images periodically</h3><p>In my case, I’m updating them every 15 minutes</p><pre>0,15,30,45 * * * * /bin/bash -l -c &#39;ruby /home/deployer/apps/smarthome/weather/wunderground.rb &gt;&gt; /home/deployer/apps/smarthome/weather/config/cron_log.log 2&gt;&amp;1&#39;</pre><h3>Plans for the future</h3><p>This technique opens up a lot of possibilities. I’ve already started on the next block which will be to show agenda items for my family. Kid’s practices, take the trash out, etc.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d9883941bd68" width="1" height="1" alt=""><hr><p><a href="https://medium.com/im-building-an-app/how-to-add-dynamic-content-to-actiontiles-d9883941bd68">How to add dynamic content to ActionTiles</a> was originally published in <a href="https://medium.com/im-building-an-app">I’m building an app</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beta version of Recommendation App]]></title>
            <link>https://medium.com/im-building-an-app/beta-version-of-recommendation-app-92a2487f33a2?source=rss-13f804c4ee7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/92a2487f33a2</guid>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[design]]></category>
            <dc:creator><![CDATA[Jim Knight]]></dc:creator>
            <pubDate>Mon, 16 Jan 2017 19:28:26 GMT</pubDate>
            <atom:updated>2017-01-16T19:28:26.615Z</atom:updated>
            <content:encoded><![CDATA[<p>10 days ago, I created a mockup of an app I wanted to fix-up. It’s an app I built to record TV Show and Movie recommendations.</p><h4>Mockup:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/389/1*pvL6-BxBvESIVi_dryVQBA.png" /><figcaption>Mockup</figcaption></figure><p>Having the mockup was really nice for keeping my focus. The mockup has no color so I had to decide on a color scheme. I found something on <a href="https://dribbble.com/shots/1034427-Modal-Window">Dribbble</a> that would restrict me to just the blue family but had a nice family of colors. I played around with the placement but having a colored background with white tiles looks really nice.</p><h4>New home screen:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/385/1*8sGXdaFPq0QblUiwrnKAfg.png" /><figcaption>Home screen</figcaption></figure><h4>While I was there I wanted to add a way to enter comments right after rating a movie so I added a screen for that:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/383/1*YcfPJjLnko9jS-1nYPNHRw.png" /><figcaption>Rating/comments screen</figcaption></figure><p>It’s not perfect yet but it’s starting to be a really nice way for me to track recommendations. I really love the colors and interface. I’m going to clean it up and add features as I find the need but for now, it’s looking good.</p><p><a href="https://recommendhighly.com/">RecommendHighly.com</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=92a2487f33a2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/im-building-an-app/beta-version-of-recommendation-app-92a2487f33a2">Beta version of Recommendation App</a> was originally published in <a href="https://medium.com/im-building-an-app">I’m building an app</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I know an app idea is good]]></title>
            <link>https://medium.com/im-building-an-app/how-i-know-an-app-idea-is-good-a050097e7d85?source=rss-13f804c4ee7b------2</link>
            <guid isPermaLink="false">https://medium.com/p/a050097e7d85</guid>
            <category><![CDATA[news]]></category>
            <category><![CDATA[movies]]></category>
            <dc:creator><![CDATA[Jim Knight]]></dc:creator>
            <pubDate>Fri, 06 Jan 2017 21:19:48 GMT</pubDate>
            <atom:updated>2017-01-06T21:19:48.376Z</atom:updated>
            <content:encoded><![CDATA[<p>Almost every day, someone tells me to watch some movie or show. A few days go by and I find myself on the coach with my wife wondering what we should watch. Damn it! I wish I could remember what Joe told me to watch the other day.</p><p>I think, “I’ll just build something quick and dirty” to record these recommendations. So I do it, I jazz it up a bit by adding a way to rate what I watch and lookup the details of the show on some <a href="https://www.omdbapi.com/">open api movie site</a>. Sweet!</p><p><strong>So even though it looks like crap and barely works, I keep using it!</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/376/1*tlN5mbzMvZ8BPu5rnwp1rA.png" /><figcaption>First version</figcaption></figure><p>But now I’m using it more so I see the flaws. It’s not built for mobile. It’s a hack. I need less clicks, etc.</p><p>So I write down the question, “When I first open the app, what do I want to do 80% of the time?” I answer, “I want to pick a genre and a person and see the unwatched recommendations.” And I build the simplest mockup to do that.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/389/1*pvL6-BxBvESIVi_dryVQBA.png" /></figure><p>So let’s build it…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a050097e7d85" width="1" height="1" alt=""><hr><p><a href="https://medium.com/im-building-an-app/how-i-know-an-app-idea-is-good-a050097e7d85">How I know an app idea is good</a> was originally published in <a href="https://medium.com/im-building-an-app">I’m building an app</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>