<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><title>Stephen C Phillips (Posts about Raspberry Pi)</title><link>http://blog.scphillips.com/</link><description></description><atom:link type="application/rss+xml" href="http://blog.scphillips.com/categories/raspberry-pi.xml" rel="self"></atom:link><language>en</language><copyright>Contents © 2018 &lt;a href="mailto:steve@scphillips.com"&gt;Stephen C Phillips&lt;/a&gt; </copyright><lastBuildDate>Mon, 31 Dec 2018 11:41:09 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Sending Tado Data to Loggly</title><link>http://blog.scphillips.com/posts/2016/01/sending-tado-data-to-loggly/</link><dc:creator>Stephen C Phillips</dc:creator><description>&lt;div&gt;&lt;p&gt;I've just had a &lt;a class="reference external" href="https://www.tado.com/gb/"&gt;Tado smart thermostat&lt;/a&gt; installed at home: it's a clever device that controls the boiler, central heating and hot water and is linked to the internet. It has a room thermostat and takes account of the external temperature as well. You can control it from your smart phone or from the web app and, if you want, it will track your location so that when you leave the house it turns the temperature down and brings it up again in time for when you get home again.&lt;/p&gt;
&lt;p&gt;I expect the web app and the mobile app are both in constant development and right now there are features only available in one or the other. For instance, you can only set the hot water schedule in the web app but can only see the historic temperature data in the mobile app (you have to turn your phone to landscape orientation to make it magically appear).&lt;/p&gt;
&lt;p&gt;I wanted to see the historical temperature data on my computer instead of my phone so I had a poke around and have found a way to get hold of the data on one of my Raspberry Pis and send it to Loggly to graph it.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blog.scphillips.com/posts/2016/01/sending-tado-data-to-loggly/"&gt;Read more…&lt;/a&gt; (9 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><category>Loggly</category><category>Raspberry Pi</category><category>Tado</category><guid>http://blog.scphillips.com/posts/2016/01/sending-tado-data-to-loggly/</guid><pubDate>Sat, 16 Jan 2016 10:48:34 GMT</pubDate></item><item><title>Raspberry Pi System Logging and Loggly</title><link>http://blog.scphillips.com/posts/2015/05/raspberry-pi-system-logging-and-loggly/</link><dc:creator>Stephen C Phillips</dc:creator><description>&lt;div&gt;&lt;p&gt;I've already written about how useful Loggly is to log data from a Raspberry Pi, but like me, you may want to know more about how system logging actually works and what the extra configuration added by the Loggly setup script means.&lt;/p&gt;
&lt;p&gt;This post explains how system logging works and how Loggly fits into it. It describes how the log files are rotated to avoid them filling up the disc and it also goes into a lengthy detour regarding how to encrypt the log traffic between your computer and Loggly, how all the encryption actually works and how you know you can trust it.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blog.scphillips.com/posts/2015/05/raspberry-pi-system-logging-and-loggly/"&gt;Read more…&lt;/a&gt; (20 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><category>Loggly</category><category>Raspberry Pi</category><category>Security</category><guid>http://blog.scphillips.com/posts/2015/05/raspberry-pi-system-logging-and-loggly/</guid><pubDate>Sun, 31 May 2015 13:15:19 GMT</pubDate></item><item><title>Monitoring Broadband Speed with Loggly</title><link>http://blog.scphillips.com/posts/2015/05/monitoring-broadband-speed-with-loggly/</link><dc:creator>Stephen C Phillips</dc:creator><description>&lt;div class="section" id="using-speedtest-net-and-loggly-to-monitor-broadband-speed"&gt;
&lt;h2&gt;Using Speedtest.net and Loggly to Monitor Broadband Speed&lt;/h2&gt;
&lt;p&gt;I've been having trouble with the speed of my network at home and needed to check whether the broadband link to the internet was working as fast as it should be. To check this, you really need to make many measurements over time, as at different times of the day the performance will vary depending on how many other people in the area are using the same link. To check the speed, I have plugged a spare Raspberry Pi directly into the my Virgin Media Superhub via an ethernet cable and set it up to measure and report the speed every hour. I'm sending the data to an online logging service called Loggly so that I can access it and graph it easily from any other computer.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blog.scphillips.com/posts/2015/05/monitoring-broadband-speed-with-loggly/"&gt;Read more…&lt;/a&gt; (11 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><category>Loggly</category><category>Raspberry Pi</category><guid>http://blog.scphillips.com/posts/2015/05/monitoring-broadband-speed-with-loggly/</guid><pubDate>Mon, 04 May 2015 22:11:19 GMT</pubDate></item><item><title>BBC Radio on the Raspberry Pi controlled with a tiny web server</title><link>http://blog.scphillips.com/posts/2014/12/bbc-radio-on-the-raspberry-pi-controlled-with-a-tiny-web-server/</link><dc:creator>Stephen C Phillips</dc:creator><description>&lt;div class="section" id="bbc-radio-on-the-raspberry-pi-controlled-with-a-tiny-web-server"&gt;
&lt;h2&gt;BBC Radio on the Raspberry Pi controlled with a tiny web server&lt;/h2&gt;
&lt;div class="section" id="objective"&gt;
&lt;h3&gt;Objective&lt;/h3&gt;
&lt;p&gt;I wanted to be able to tune in to BBC radio stations on my Raspberry Pi
and control it through my smart phone with an easy graphical interface.&lt;/p&gt;
&lt;p&gt;In fulfilling this objective I got a bit carried away and wrote a small
web server from scratch (as you do...) which was good fun, so in the
spirit of helping people hack their Raspberry Pis I thought I'd explain
how it all works. What follows is mostly an explanation of how web
servers and web browsers work: it's actually quite simple and
interesting to mess around with. The actual software is useful and works
well too!&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blog.scphillips.com/posts/2014/12/bbc-radio-on-the-raspberry-pi-controlled-with-a-tiny-web-server/"&gt;Read more…&lt;/a&gt; (16 min remaining to read)&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;</description><category>Audio</category><category>Raspberry Pi</category><guid>http://blog.scphillips.com/posts/2014/12/bbc-radio-on-the-raspberry-pi-controlled-with-a-tiny-web-server/</guid><pubDate>Tue, 30 Dec 2014 14:32:48 GMT</pubDate></item><item><title>BBC Radio on the Raspberry Pi (v2)</title><link>http://blog.scphillips.com/posts/2014/05/bbc-radio-on-the-raspberry-pi-v2/</link><dc:creator>Stephen C Phillips</dc:creator><description>&lt;div class="section" id="bbc-radio-on-the-raspberry-pi-v2"&gt;
&lt;h2&gt;BBC Radio on the Raspberry Pi (v2)&lt;/h2&gt;
&lt;p&gt;This is an update to &lt;a class="reference external" href="http://blog.scphillips.com/posts/2014/05/bbc-radio-on-the-raspberry-pi/"&gt;my recent post on this
topic&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;This page shows how to create a simple &lt;tt class="docutils literal"&gt;radio&lt;/tt&gt; command to play and stop
different BBC radio stations on a Raspberry Pi. Once set up, you can
just type e.g. &lt;tt class="docutils literal"&gt;radio BBC4&lt;/tt&gt; to get your favourite station playing. This
is useful for various reasons, for instance if you have a room with just
an amplifier and speakers in then, with a Raspberry Pi, you can listen
to the radio (and &lt;a class="reference external" href="http://blog.scphillips.com/posts/2014/05/playing-music-on-a-raspberry-pi-using-upnp-and-dlna-v3/"&gt;with other
software&lt;/a&gt;
your music collection). You can also listen to BBC 6 Music which you
cannot get on FM.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blog.scphillips.com/posts/2014/05/bbc-radio-on-the-raspberry-pi-v2/"&gt;Read more…&lt;/a&gt; (9 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><category>Audio</category><category>Raspberry Pi</category><guid>http://blog.scphillips.com/posts/2014/05/bbc-radio-on-the-raspberry-pi-v2/</guid><pubDate>Sun, 18 May 2014 19:33:47 GMT</pubDate></item><item><title>BBC Radio on the Raspberry  Pi</title><link>http://blog.scphillips.com/posts/2014/05/bbc-radio-on-the-raspberry-pi/</link><dc:creator>Stephen C Phillips</dc:creator><description>&lt;div class="section" id="bbc-radio-on-the-raspberry-pi"&gt;
&lt;h2&gt;BBC Radio on the Raspberry Pi&lt;/h2&gt;
&lt;p&gt;This page shows how to create a simple &lt;tt class="docutils literal"&gt;radio&lt;/tt&gt; command to play and stop
different BBC radio stations on a Raspberry Pi. Once set up, you can
just type &lt;tt class="docutils literal"&gt;radio BBC4&lt;/tt&gt; to get your favourite station playing. This is
useful for various reasons, for instance if you have a room with just an
amplifier and speakers in then, with a Raspberry Pi, you can listen to
the radio (and &lt;a class="reference external" href="http://blog.scphillips.com/posts/2014/05/playing-music-on-a-raspberry-pi-using-upnp-and-dlna-v3/"&gt;with other
software&lt;/a&gt;
your music collection). You can also listen to BBC 6 Music which you
cannot get on FM.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blog.scphillips.com/posts/2014/05/bbc-radio-on-the-raspberry-pi/"&gt;Read more…&lt;/a&gt; (5 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><category>Audio</category><category>Raspberry Pi</category><guid>http://blog.scphillips.com/posts/2014/05/bbc-radio-on-the-raspberry-pi/</guid><pubDate>Sun, 11 May 2014 17:09:30 GMT</pubDate></item><item><title>Playing music on a Raspberry Pi using UPnP and DLNA (v3)</title><link>http://blog.scphillips.com/posts/2014/05/playing-music-on-a-raspberry-pi-using-upnp-and-dlna-v3/</link><dc:creator>Stephen C Phillips</dc:creator><description>&lt;div class="section" id="playing-music-on-a-raspberry-pi-using-upnp-and-dlna-v3"&gt;
&lt;h2&gt;Playing music on a Raspberry Pi using UPnP and DLNA (v3)&lt;/h2&gt;
&lt;div class="section" id="what-we-are-aiming-for"&gt;
&lt;h3&gt;What we are aiming for&lt;/h3&gt;
&lt;p&gt;A music system with a Raspberry Pi plugged in to an amplifier playing
music that you choose with your mobile phone. The music can come from
MP3s on your phone, from files on your server, files "in the cloud" or
from internet radio stations. If there’s more than one Android phone in
your household you can have them all synchronised, showing the same
playlist and controlling the same music. If you have multiple Raspberry
Pis you can put one in each room and choose which one to play the music
with. This is all achieved with free software and open standards. I’ve
just written some instructions to show how to do it.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blog.scphillips.com/posts/2014/05/playing-music-on-a-raspberry-pi-using-upnp-and-dlna-v3/"&gt;Read more…&lt;/a&gt; (4 min remaining to read)&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;</description><category>Audio</category><category>Raspberry Pi</category><guid>http://blog.scphillips.com/posts/2014/05/playing-music-on-a-raspberry-pi-using-upnp-and-dlna-v3/</guid><pubDate>Sun, 11 May 2014 14:05:00 GMT</pubDate></item><item><title>Getting a Python script to run in the background (as a service) on boot</title><link>http://blog.scphillips.com/posts/2013/07/getting-a-python-script-to-run-in-the-background-as-a-service-on-boot/</link><dc:creator>Stephen C Phillips</dc:creator><description>&lt;div class="section" id="getting-a-python-script-to-run-in-the-background-as-a-service-on-boot"&gt;
&lt;h2&gt;Getting a Python script to run in the background (as a service) on boot&lt;/h2&gt;
&lt;p&gt;For some of my projects I write a simple service in Python and need it
to start running in the background when the Raspberry Pi boots.
Different Linux distributions use different ways of starting and
stopping services (some now use
&lt;a class="reference external" href="http://en.wikipedia.org/wiki/Upstart"&gt;Upstart&lt;/a&gt;, some
&lt;a class="reference external" href="http://en.wikipedia.org/wiki/Systemd"&gt;systemd&lt;/a&gt;). I am using the
"Wheezy" Debian distribution on my Raspberry Pi, and in this case the
proper way to do this is using an "init script". These are stored in the
&lt;tt class="docutils literal"&gt;/etc/init.d&lt;/tt&gt; folder. In there you can find scripts that for instance,
start the networking system or a print server. Debian Wheezy uses the
old Sys V init system which means that these scripts are run according
to symbolic links in the &lt;tt class="docutils literal"&gt;/etc/rc.x&lt;/tt&gt; directories. The &lt;a class="reference external" href="http://www.debuntu.org/how-to-managing-services-with-update-rc-d/"&gt;Debian
documentation&lt;/a&gt;
explains this.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blog.scphillips.com/posts/2013/07/getting-a-python-script-to-run-in-the-background-as-a-service-on-boot/"&gt;Read more…&lt;/a&gt; (9 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><category>Python</category><category>Raspberry Pi</category><guid>http://blog.scphillips.com/posts/2013/07/getting-a-python-script-to-run-in-the-background-as-a-service-on-boot/</guid><pubDate>Sun, 21 Jul 2013 13:05:28 GMT</pubDate></item><item><title>Playing music on a Raspberry Pi using UPnP and DLNA (revisited)</title><link>http://blog.scphillips.com/posts/2013/07/playing-music-on-a-raspberry-pi-using-upnp-and-dlna-revisited/</link><dc:creator>Stephen C Phillips</dc:creator><description>&lt;div class="section" id="playing-music-on-a-raspberry-pi-using-upnp-and-dlna-revisited"&gt;
&lt;h2&gt;Playing music on a Raspberry Pi using UPnP and DLNA (revisited)&lt;/h2&gt;
&lt;div class="section" id="what-we-are-aiming-for"&gt;
&lt;h3&gt;What we are aiming for&lt;/h3&gt;
&lt;p&gt;A music system with a Raspberry Pi plugged in to an amplifier playing
music that you choose with your mobile phone. The music can come from
MP3s on your phone, from files on your server or from internet radio
stations. If there's more than one Android phone in your household you
can have them all synchronised, showing the same playlist and
controlling the same music. If you have multiple Raspberry Pis you can
put one in each room and choose which one to play the music with. This
is all achieved with free software and open standards. I've just written
some instructions to show how to do it.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blog.scphillips.com/posts/2013/07/playing-music-on-a-raspberry-pi-using-upnp-and-dlna-revisited/"&gt;Read more…&lt;/a&gt; (17 min remaining to read)&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;</description><category>Audio</category><category>Raspberry Pi</category><guid>http://blog.scphillips.com/posts/2013/07/playing-music-on-a-raspberry-pi-using-upnp-and-dlna-revisited/</guid><pubDate>Sun, 21 Jul 2013 10:06:48 GMT</pubDate></item><item><title>Sound configuration on Raspberry Pi with ALSA</title><link>http://blog.scphillips.com/posts/2013/01/sound-configuration-on-raspberry-pi-with-alsa/</link><dc:creator>Stephen C Phillips</dc:creator><description>&lt;div class="section" id="sound-configuration-on-raspberry-pi-with-alsa"&gt;
&lt;h2&gt;Sound configuration on Raspberry Pi with ALSA&lt;/h2&gt;
&lt;p&gt;While &lt;a class="reference external" href="http://blog.scphillips.com/posts/2013/01/using-a-raspberry-pi-with-android-phones-for-media-streaming/"&gt;setting up a Raspberry Pi to play streamed music using
UPnP&lt;/a&gt;,
I have had quite a bit of trouble understanding how to configure the
sound on my Raspberry Pi. This is partly because I am running it in
headless mode (no graphical desktop) and partly because &lt;a class="reference external" href="http://tuxradar.com/content/how-it-works-linux-audio-explained"&gt;sound on Linux
is fiendishly
complicated&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Anyway, I am making progress in understanding what's going on but I am
no expert. Here are my findings on how to control the ALSA system from
the command line. All I am focussed on here is getting control of the
sound output by the 3.5mm stereo socket. If you want to control the
output over the HDMI socket or an external USB sound card then you'll
need to do some of your own investigation.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blog.scphillips.com/posts/2013/01/sound-configuration-on-raspberry-pi-with-alsa/"&gt;Read more…&lt;/a&gt; (6 min remaining to read)&lt;/p&gt;&lt;/div&gt;</description><category>Audio</category><category>Raspberry Pi</category><guid>http://blog.scphillips.com/posts/2013/01/sound-configuration-on-raspberry-pi-with-alsa/</guid><pubDate>Sat, 19 Jan 2013 14:53:50 GMT</pubDate></item></channel></rss>