<?xml version="1.0" encoding="utf-8"?>
	<rss version="2.0">
		<channel>
			<title>Green Building Forum - RaspberryPi</title>
			<lastBuildDate>Sun, 01 Nov 2026 08:07:33 +0000</lastBuildDate>
			<link>https://www.greenbuildingforum.co.uk/newforum/</link>
			<description></description>
			<generator>Lussumo Vanilla 1.0.3</generator>
			<item>
		<title>RaspberryPi</title>
		<link>https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=165701#Comment_165701</link>
		<guid isPermaLink="false">https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=165701#Comment_165701</guid>
		<pubDate>Thu, 24 Jan 2013 23:22:28 +0000</pubDate>
		<author>Ed Davies</author>
		<description>
			<![CDATA[OK, just the easy one this late in the evening: timestamps.<br /><br />You need the datetime module. At the top of the file add â€œimport datetimeâ€. There are three classes in that module, date (just a date, with no time), time (time of day, 00:00 to 23:59) and datetime (date and time combined for a unique instant in history). For a log which will run many days you want datetime. The datetime class has a now() function which gives you the equivalent of the VBA now but for a log which might run for many months I'd suggest using its sibling utcnow so you don't get funny things happening when the clocks change.<br /><br />I haven't got a Pi or anything with GPIO so just the interesting bits:<br /><pre ><tt ><br />#!/usr/bin/python<br /><br />import datetime<br /><br /># ....<br />temperature = 42.5       # Dummy<br /><br />tfile = open("/home/pi/Desktop/tempdata.txt","w")<br />#writes the temperature data to the tempdata/txt file<br />tfile.write("%s: Temp C,%s" % (datetime.datetime.utcnow(), temperature) +'\n')<br />#closes the tempdata.txt file<br />tfile.close()<br /></tt></pre><br />Apart from using my own user name for the directory (rather than 'pi') that runs as shown for me and produces:<br /><br /><tt >2013-01-24 23:18:35.028279: Temp C,42.5</tt><br /><br />It's confusing having the datetime module containing a class with the same name. If that's the only class from the module you want to use then you can make it a bit more compact at the point of use. Replace the import statement with:<br /><br /><tt >from datetime import datetime</tt><br /><br />then just use the class name directly:<br /><br /><tt >tfile.write("%s: Temp C,%s" % (datetime.utcnow(), temperature) +'\n')</tt>]]>
		</description>
	</item>
	<item>
		<title>RaspberryPi</title>
		<link>https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=165702#Comment_165702</link>
		<guid isPermaLink="false">https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=165702#Comment_165702</guid>
		<pubDate>Thu, 24 Jan 2013 23:39:19 +0000</pubDate>
		<author>Ed Davies</author>
		<description>
			<![CDATA[<blockquote ><cite >Posted By: SteamyTea</cite>And the final thing for now is how do I force a new line in my tempdata.txt file so that I do not overwrite the data I have in there.</blockquote><br />The problem is not the need for a new line - when you open the file (with the <tt >open</tt> function) it, by default, replaces the file contents (i.e., it truncates the file first). You want append mode ("a"), rather than write ("w"):<br /><br /><tt >tfile = open("/home/pi/Desktop/tempdata.txt","a")</tt><br /><br />giving:<br /><br /><pre ><tt >2013-01-24 23:28:41.030513: Temp C,42.5<br />2013-01-24 23:37:23.421996: Temp C,42.5<br />2013-01-24 23:37:35.034155: Temp C,42.5</tt></pre><br />While we're on the subject of the mode, when you're writing a text file it's a good idea to specify text mode there as well. On Unix-like systems (Linux, OS X, etc) it doesn't make any difference. On Windows it'll cause the '\n' newlines you write to be written as two characters, carriage return, line feed, as is the standard Windows line end convention.<br /><br /><tt >tfile = open("/home/pi/Desktop/tempdata.txt","at")</tt>]]>
		</description>
	</item>
	<item>
		<title>RaspberryPi</title>
		<link>https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=165705#Comment_165705</link>
		<guid isPermaLink="false">https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=165705#Comment_165705</guid>
		<pubDate>Fri, 25 Jan 2013 08:09:22 +0000</pubDate>
		<author>SteamyTea</author>
		<description>
			<![CDATA[Thanks Ed<br /><br />Going to be back on it in an hour or so, once I have that working I can then try a loop so that it logs every few seconds.  That should be fun.]]>
		</description>
	</item>
	<item>
		<title>RaspberryPi</title>
		<link>https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=165722#Comment_165722</link>
		<guid isPermaLink="false">https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=165722#Comment_165722</guid>
		<pubDate>Fri, 25 Jan 2013 11:02:16 +0000</pubDate>
		<author>Ed Davies</author>
		<description>
			<![CDATA[Raspberry Pi thermal imaging. No, not making thermal images with a Pi but thermal images of a Pi:<br /><br /><a href="http://www.adafruit.com/blog/2013/01/25/raspberry-pi-thermal-images-piday-raspberrypi-raspberry_pi/" target="_self" rel="nofollow">http://www.adafruit.com/blog/2013/01/25/raspberry-pi-thermal-images-piday-raspberrypi-raspberry_pi/</a><br /><br />Interesting idea for seeing where electronic boxes and stuff are using energy. Obvious, really, but thermal imaging plumbing, etc, could be helpful, too.]]>
		</description>
	</item>
	<item>
		<title>RaspberryPi</title>
		<link>https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=165734#Comment_165734</link>
		<guid isPermaLink="false">https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=165734#Comment_165734</guid>
		<pubDate>Fri, 25 Jan 2013 11:59:04 +0000</pubDate>
		<author>Ed Davies</author>
		<description>
			<![CDATA[<blockquote ><cite >Posted By: SteamyTea</cite>Is it possible to put the modprode w1-gpio and modprobe w1-therm commands into the Python script at the very begining?</blockquote><br />Yes, use the subprocess.call function to run an external program. Easier, use subprocess.check_call to run the external program and check its return code is zero (i.e., it worked). In simple cases it just takes an array of strings as the parameter, one string for each â€œtokenâ€œ in the command line.<br /><pre ><tt >from subprocess import check_call<br /><br />check_call(["modprobe", "w1-gpio"])</tt></pre><br />This throws an exception for me because I haven't got that module installed (not having GPIO on my laptop). When I use it with a module I have got it works fine.]]>
		</description>
	</item>
	<item>
		<title>RaspberryPi</title>
		<link>https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=165735#Comment_165735</link>
		<guid isPermaLink="false">https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=165735#Comment_165735</guid>
		<pubDate>Fri, 25 Jan 2013 12:01:13 +0000</pubDate>
		<author>SteamyTea</author>
		<description>
			<![CDATA[I put my finger on the black squares to see which is the hottest <img src="/newforum/extensions/Vanillacons/smilies/standard/bigsmile.gif" alt=":bigsmile:" title=":bigsmile:" /><br /><br />Just spent way to long playing with it, but got the code sort after your help Ed, thanks.<br /><br />Also managed to get an LED flashing every 6 seconds as a test of looping.  Found out that indenting is not always indenting (4 spaces is better than a tab apparently).<br /><br />Next thing to do is combine the temperature reading with a while loop.<br /><br />I was so excited that I got a (or is it an) LED working that I videoed it and posted it up on Youtube.<br />I also had cheese and crackers for 11sies <img src="/newforum/extensions/Vanillacons/smilies/standard/cool.gif" alt=":cool:" title=":cool:" /><br /><br /><a href="http://youtu.be/ARvWrpwbuj0" target="_self" rel="nofollow">http://youtu.be/ARvWrpwbuj0</a><br /><br />Must now get on with what I was meant to be doing 2 hours ago (my lit review) but will leave my light flashing.<br /><br />Shall look at the subprocess call tonight]]>
		</description>
	</item>
	<item>
		<title>RaspberryPi</title>
		<link>https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=165736#Comment_165736</link>
		<guid isPermaLink="false">https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=165736#Comment_165736</guid>
		<pubDate>Fri, 25 Jan 2013 12:01:13 +0000</pubDate>
		<author>Ed Davies</author>
		<description>
			<![CDATA[<blockquote ><cite >Posted By: SteamyTea</cite>The other thing is that when it writes to the tempdata.txt file a terminal window telling me that it all went alright opens up which has to be closed before I can read the file (or reload it). What is that about?</blockquote><br />Sorry, no idea. How are you starting your program?]]>
		</description>
	</item>
	<item>
		<title>RaspberryPi</title>
		<link>https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=165737#Comment_165737</link>
		<guid isPermaLink="false">https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=165737#Comment_165737</guid>
		<pubDate>Fri, 25 Jan 2013 12:06:06 +0000</pubDate>
		<author>Ed Davies</author>
		<description>
			<![CDATA[<blockquote ><cite >Posted By: SteamyTea</cite>Found out that indenting is not always indenting (4 spaces is better than a tab apparently).</blockquote><br />Either is good but it's best to be consistent - always use tabs or always use spaces. Personally I have my editor set up to expand tabs to spaces as I type them.]]>
		</description>
	</item>
	<item>
		<title>RaspberryPi</title>
		<link>https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=165738#Comment_165738</link>
		<guid isPermaLink="false">https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=165738#Comment_165738</guid>
		<pubDate>Fri, 25 Jan 2013 12:12:24 +0000</pubDate>
		<author>SteamyTea</author>
		<description>
			<![CDATA[I am starting it from Geany, if I want to start if from the .py file, do I have to compile it first (whatever that does) and do I have to make it executable?  Does either of them stop me editing it after?<br /><br />Edit:<br /><br />Just made the led file 'executable' and the terminal screen does not pop up now but the light keeps flashing <img src="/newforum/extensions/Vanillacons/smilies/standard/bigsmile.gif" alt=":bigsmile:" title=":bigsmile:" />]]>
		</description>
	</item>
	<item>
		<title>RaspberryPi</title>
		<link>https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=165748#Comment_165748</link>
		<guid isPermaLink="false">https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=165748#Comment_165748</guid>
		<pubDate>Fri, 25 Jan 2013 13:37:55 +0000</pubDate>
		<author>djh</author>
		<description>
			<![CDATA[<blockquote ><cite >Posted By: Ed Davies</cite><blockquote ><cite >Posted By: SteamyTea</cite>Is it possible to put the modprode w1-gpio and modprobe w1-therm commands into the Python script at the very begining?</blockquote><br />Yes, use the subprocess.call function to run an external program.</blockquote><br />Err, I don't think this is recommended! For most external programs, yes, but not for the likes of modprobe.<br /><br />modprobe can usually only be run by root, and generally the logging script shouldn't be, so it should fail in any case. But modprobe is changing the system configuration and isn't something an application should be doing.<br /><br />Steamy, read up about how to use the modprobe.d files to load these kernel modules when your pi starts up.<br /><br />http://linux.die.net/lkmpg/x44.html<br />http://linux.die.net/man/5/modprobe.conf<br />http://linux.die.net/man/8/modprobe]]>
		</description>
	</item>
	<item>
		<title>RaspberryPi</title>
		<link>https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=165755#Comment_165755</link>
		<guid isPermaLink="false">https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=165755#Comment_165755</guid>
		<pubDate>Fri, 25 Jan 2013 14:32:51 +0000</pubDate>
		<author>SteamyTea</author>
		<description>
			<![CDATA[I had a little fiddle with it and could not get it to start, so that may be the problem.<br /><br />There is a Python for the RPi called RPi.GPIO, I used to it make the led flash.  Should I try loading that and setting pin 4 to read instead?]]>
		</description>
	</item>
	<item>
		<title>RaspberryPi</title>
		<link>https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=165768#Comment_165768</link>
		<guid isPermaLink="false">https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=165768#Comment_165768</guid>
		<pubDate>Fri, 25 Jan 2013 15:44:57 +0000</pubDate>
		<author>Ed Davies</author>
		<description>
			<![CDATA[<blockquote ><cite >Posted By: SteamyTea</cite>I am starting it from Geany, if I want to start if from the .py file, do I have to compile it first (whatever that does)</blockquote> <br />No, Python will create the .pyc by itself if it feels like it. You can just run the .py file.<br /><br /><blockquote >and do I have to make it executable?</blockquote><br />Yes, if you want to run your program directly as a command. <tt ><span style="color:red" >$</span> chmod a+x myloggingscript.py</tt><br /><br />Alternatively, you can just run it with <tt ><span style="color:red" >$</span> python myloggingscript.py</tt>.<br /><br /><blockquote >Does either of them stop me editing it after?</blockquote><br />No, you can still edit it as long as you have rw access.<br /><br />PS, djh is right about it being better to keep the modprobe stuff out of the script. Still, if you need root privileges to access the GPIO pins anyway it's not such a big deal. Do you?]]>
		</description>
	</item>
	<item>
		<title>RaspberryPi</title>
		<link>https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=165774#Comment_165774</link>
		<guid isPermaLink="false">https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=165774#Comment_165774</guid>
		<pubDate>Fri, 25 Jan 2013 16:14:39 +0000</pubDate>
		<author>SteamyTea</author>
		<description>
			<![CDATA[As far as I know I do need to be logged in as root.<br />At this point in time being root or not does not worry me as I am only playing, maybe later when I want to do some more serious stuff it may become important.<br /><br />When I tried putting it in it just said there was an error at line 7.  After a bit of playing about it was loading but then getting errors at various lines of the modprobe module.  Maybe that is why they developed the RPi.GPIO.  Shall have to look it up when I get back later.]]>
		</description>
	</item>
	<item>
		<title>RaspberryPi</title>
		<link>https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=165895#Comment_165895</link>
		<guid isPermaLink="false">https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=165895#Comment_165895</guid>
		<pubDate>Sun, 27 Jan 2013 08:43:53 +0000</pubDate>
		<author>SteamyTea</author>
		<description>
			<![CDATA[Right<br />Found out how to load the w1 (one wire drivers) at start up, just a case of editing the modules file, does not make tightvncserver start, maybe that has a different name.<br />Also found out that the RPi.GPIO module does not support 1wire yet but it may later.<br />With this subprocess thingy I should be able to look at the w1/devices directory and get the unique ID for each sensor and somehow put that into my scrip as a variable so save having to manually edit the scrip each time I change a sensor.  Is that and easy thing to do?<br />I also get a fake reading (-0.062) instead of the temperature reading, is this something to do with the CRC from the sensor?]]>
		</description>
	</item>
	<item>
		<title>RaspberryPi</title>
		<link>https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=165906#Comment_165906</link>
		<guid isPermaLink="false">https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=165906#Comment_165906</guid>
		<pubDate>Sun, 27 Jan 2013 10:21:57 +0000</pubDate>
		<author>Ed Davies</author>
		<description>
			<![CDATA[<blockquote ><cite >Posted By: SteamyTea</cite>With this subprocess thingy I should be able to look at the w1/devices directory and get the unique ID for each sensor and somehow put that into my scrip as a variable so save having to manually edit the scrip each time I change a sensor.  Is that and easy thing to do?</blockquote><br />You could use a call to one of the functions in the subprocess module to run ls and look at its output as per your previous method. That'd be a rather perverse way to do it, though.<br /><br />There are various ways of wandering around the file system in Python. Here are examples of two. I don't have a <tt >w1</tt> directory in <tt >/sys/bus/</tt> so these work higher up the tree from what you'd want.<br /><pre ><tt >>>> import os<br />>>> os.listdir('/sys/bus')<br />['platform', 'pci', 'rapidio', 'spi', 'i2c', 'eisa', 'MCA', 'acpi', 'pnp', 'scsi', 'mdio_bus', 'usb', 'serio', 'mmc', 'sdio', 'event_source', 'pci_express', 'isa', 'ssb', 'hid', 'pcmcia']<br />>>> import glob<br />>>> glob.glob('/sys/bus/*')<br />['/sys/bus/platform', '/sys/bus/pci', '/sys/bus/rapidio', '/sys/bus/spi', '/sys/bus/i2c', '/sys/bus/eisa', '/sys/bus/MCA', '/sys/bus/acpi', '/sys/bus/pnp', '/sys/bus/scsi', '/sys/bus/mdio_bus', '/sys/bus/usb', '/sys/bus/serio', '/sys/bus/mmc', '/sys/bus/sdio', '/sys/bus/event_source', '/sys/bus/pci_express', '/sys/bus/isa', '/sys/bus/ssb', '/sys/bus/hid', '/sys/bus/pcmcia']</tt></pre><br />I think with glob you could even do <tt >glob.glob("/sys/bus/w1/devices/28-*/w1_slave")</tt> to directly get the devices you need to access all of your temperature sensors, ignoring any other 1-wire devices on the bus(es).]]>
		</description>
	</item>
	<item>
		<title>RaspberryPi</title>
		<link>https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=165911#Comment_165911</link>
		<guid isPermaLink="false">https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=165911#Comment_165911</guid>
		<pubDate>Sun, 27 Jan 2013 11:08:04 +0000</pubDate>
		<author>SteamyTea</author>
		<description>
			<![CDATA[Ed<br />You ever thought of teaching this, or write a book on it.<br /><br />I shall have a look at what you have done above and see if I can get it to do some things.  I suppose when I have listed the temperature sensors with os.dirlist I can use the line and text split to isolate the directory names and then assign a variable to those directories to be read.<br /><br />I have managed to get it to log from 2 sensors now, which is half way to making a temperature comparator, just have to master the IF statement in Python and get it to turn my LED on and off, then I may put a couple more sensors on and stick it up on the home made MVHR in the loft.<br /><br />Trip to Maplins during the week I think to see what connectors and stuff they have in there.]]>
		</description>
	</item>
	<item>
		<title>RaspberryPi</title>
		<link>https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=165919#Comment_165919</link>
		<guid isPermaLink="false">https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=165919#Comment_165919</guid>
		<pubDate>Sun, 27 Jan 2013 11:42:03 +0000</pubDate>
		<author>Ed Davies</author>
		<description>
			<![CDATA[:-)<br /><br />But the books have already been written. The one I have to hand all the time is the O'Reilly book &lt;i&gt;Python in a Nutshell&lt;/i&gt; by Alex Martelli. I'd thoroughly recommend it to anybody who wants to learn Python if they already know a few other languages.<br /><br />For introductory programming books using Python, I know there are a few around but haven't looked at any so can't say anything useful. However, &lt;i&gt;Python for Kids&lt;/i&gt; looks interesting. My 13-year old niece was talking about how some other girls in her class had been learning to program on Raspberry Pis and lamenting that access to computers you can do that sort of thing on is not like it used to be in schools. I just laughed at her. She has a fairly powerful desktop with a gorgeous widescreen monitor, an iPhone and an iPad all of which would be just fine for getting some programming experience. Might get her that book next time I go to visit. Might be a good book for adults, too.<br /><br /><a href="http://boingboing.net/2012/12/18/python-for-kids-a-playful-int.html" target="_self" rel="nofollow">http://boingboing.net/2012/12/18/python-for-kids-a-playful-int.html</a>]]>
		</description>
	</item>
	<item>
		<title>RaspberryPi</title>
		<link>https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=165953#Comment_165953</link>
		<guid isPermaLink="false">https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=165953#Comment_165953</guid>
		<pubDate>Sun, 27 Jan 2013 16:29:38 +0000</pubDate>
		<author>borpin</author>
		<description>
			<![CDATA[I wish I had the time to fiddle with my Pi......]]>
		</description>
	</item>
	<item>
		<title>RaspberryPi</title>
		<link>https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=165956#Comment_165956</link>
		<guid isPermaLink="false">https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=165956#Comment_165956</guid>
		<pubDate>Sun, 27 Jan 2013 17:33:31 +0000</pubDate>
		<author>Nick Parsons</author>
		<description>
			<![CDATA[Splendid piece on Woman's Hour last week, on R4, with a splendidly clued-up girl programming a Pi and some similar basic computer like there was no tomorrow. I think she could teach!]]>
		</description>
	</item>
	<item>
		<title>RaspberryPi</title>
		<link>https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=165961#Comment_165961</link>
		<guid isPermaLink="false">https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=165961#Comment_165961</guid>
		<pubDate>Sun, 27 Jan 2013 19:16:37 +0000</pubDate>
		<author>SteamyTea</author>
		<description>
			<![CDATA[<blockquote ><cite >Posted By: borpin</cite>I wish I had the time to fiddle with my Pi......</blockquote>I would say fiddle with mine but would only get you into trouble.<br /><br /><blockquote ><cite >Posted By: Nick Parsons</cite>Splendid piece on Woman's Hour last week</blockquote>Watch my video if your interested in my comments about Woman' Hour:<br />http://youtu.be/ARvWrpwbuj0]]>
		</description>
	</item>
	<item>
		<title>RaspberryPi</title>
		<link>https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=166305#Comment_166305</link>
		<guid isPermaLink="false">https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=166305#Comment_166305</guid>
		<pubDate>Thu, 31 Jan 2013 08:01:13 +0000</pubDate>
		<author>Triassic</author>
		<description>
			<![CDATA[If you're struggling with you pie you'll soon be able to ask the kids for help -<br /><br /> 15,000 Raspberry Pis for UK schools â€“ thanks Google!<br /><br />Todayâ€™s been a bit unlike most Tuesdays at the Raspberry Pi Foundation. Today weâ€™ re the recipients of a very generous grant from Google Giving, which will provide 15,000 Ra spberry Pi Model Bs for schoolkids around the UK.]]>
		</description>
	</item>
	<item>
		<title>RaspberryPi</title>
		<link>https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=166306#Comment_166306</link>
		<guid isPermaLink="false">https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=166306#Comment_166306</guid>
		<pubDate>Thu, 31 Jan 2013 08:15:49 +0000</pubDate>
		<author>SteamyTea</author>
		<description>
			<![CDATA[Nothing quite like getting the kids to do the work. <img src="/newforum/extensions/Vanillacons/smilies/standard/wink.gif" alt=":wink:" title=":wink:" />]]>
		</description>
	</item>
	<item>
		<title>RaspberryPi</title>
		<link>https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=166356#Comment_166356</link>
		<guid isPermaLink="false">https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=166356#Comment_166356</guid>
		<pubDate>Thu, 31 Jan 2013 18:25:02 +0000</pubDate>
		<author>wookey</author>
		<description>
			<![CDATA[Yeah the 13-year geek-girl was great. More like that please. <br /><br />As you've discovered steamy, the correct way to get modules loaded automatically is to put them in /etc/modules/<br /><br />(and trying to load them in your python program, whilst possible, is definitely not right).<br /><br />If you want to read 1-wire devices easily the simplest way is to install owfs. That will expose your devices over http (owserver) or as a virtual filesystem (owfs). There are also python bindings, so you can easily enumerate, read, configure. But you can of course do your own low-level access via the kernel interface, as you are doing,  if you prefer.]]>
		</description>
	</item>
	<item>
		<title>RaspberryPi</title>
		<link>https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=166360#Comment_166360</link>
		<guid isPermaLink="false">https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=166360#Comment_166360</guid>
		<pubDate>Thu, 31 Jan 2013 19:27:24 +0000</pubDate>
		<author>SteamyTea</author>
		<description>
			<![CDATA[What is a python binding, is it some sort of bridge that allows me to read the sensor?  Does it need me to use W1-GPIO as as well?<br /><br />I intuitively understand writing or reading to a numbered 'pin' as that is almost mechanical, it is all those fiddle % " " , . () and [] I struggle with.  Seems to me that they are used randomly, but I am sure they are not.]]>
		</description>
	</item>
	<item>
		<title>RaspberryPi</title>
		<link>https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=166363#Comment_166363</link>
		<guid isPermaLink="false">https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=166363#Comment_166363</guid>
		<pubDate>Thu, 31 Jan 2013 21:35:00 +0000</pubDate>
		<author>Ed Davies</author>
		<description>
			<![CDATA[If you've only got a few lines of code accessing the 1-wire bus then I don't see any compelling reason to use owfs. If you later expand it to something more complicated which you don't want to be dependent on the details of Pi GPIO (because you might want to port it to other systems) then owfs would give a useful level of abstraction. It'd probably also help if you wanted to have multiple processes accessing the 1-wire bus or wanted to get at the 1-wire bus across your network.<br /><br />Yes, a Python binding is a library (typically written in C) which allows Python code to call some other library. On Ubuntu the Python binding for owlib is in the package python-ow (i.e., <tt >sudo apt-get install python-ow</tt>, other packages which might be helpful are <tt >owserver</tt> and <tt >ow-shell</tt>). Use with <tt >import ow</tt>. Had a little play but must admit I couldn't figure out how to enumerate the devices on the bus - but maybe that's because I don't any real 1-wire devices to hand so owserver is simulating a fake bus for me (which is kind of it).<br /><br />Yes, you'd need to use w1-gpio as well. Owfs does its own access to all the normal serial port and USB 1-wire adapters (and having w1 modules loaded breaks things, IIRC) but for GPIO owfs delegates all the work to w1.<br /><br />As I say, I'd ignore owfs for now and concentrate on getting interesting stuff done. But it's worth keeping in mind for later.]]>
		</description>
	</item>
	<item>
		<title>RaspberryPi</title>
		<link>https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=166364#Comment_166364</link>
		<guid isPermaLink="false">https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=166364#Comment_166364</guid>
		<pubDate>Thu, 31 Jan 2013 22:53:03 +0000</pubDate>
		<author>Ed Davies</author>
		<description>
			<![CDATA[Should have said, though, that owfs does have the advantage that your code doesn't need to run with root privileges. Again, if you've just got a little script writing a log file on a machine which isn't Internet connected then that's not a big deal. If you're doing something in a web server or something then it needs thinking about.]]>
		</description>
	</item>
	<item>
		<title>RaspberryPi</title>
		<link>https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=166789#Comment_166789</link>
		<guid isPermaLink="false">https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=166789#Comment_166789</guid>
		<pubDate>Wed, 06 Feb 2013 16:46:58 +0000</pubDate>
		<author>Triassic</author>
		<description>
			<![CDATA[Raspberry Pi Announces $25 Camera Module<br /><br />Technical details are blurry. The exact sensor size is unknown, but five megapixels is the likely size according to official comments on RPi forums. Makers wonâ€™t be able to change lenses, add physical filters, or even zoom, but the camera module will be capable of HD video capture. Proposed applications for the new module are focused on robotics, home automation, and aerial applications where potential crashes favor low-cost solutions. Priced at $25, it will cost the same as the newly released Model A board â€” much cheaper and easier to replace than an iPhone or DSLR should an airborne project inadvertently â€œzoom inâ€ to a crash landing.]]>
		</description>
	</item>
	<item>
		<title>RaspberryPi</title>
		<link>https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=178750#Comment_178750</link>
		<guid isPermaLink="false">https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=178750#Comment_178750</guid>
		<pubDate>Thu, 27 Jun 2013 13:50:20 +0100</pubDate>
		<author>Triassic</author>
		<description>
			<![CDATA[I was wondering how the raspberry pie was going. Anyone got any good home automation projects, ideas or code to share?]]>
		</description>
	</item>
	<item>
		<title>RaspberryPi</title>
		<link>https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=178754#Comment_178754</link>
		<guid isPermaLink="false">https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=178754#Comment_178754</guid>
		<pubDate>Thu, 27 Jun 2013 14:03:35 +0100</pubDate>
		<author>Seret</author>
		<description>
			<![CDATA[Not  done anything interesting like that Triassic but I did just break down and buy one to replace my old HTPC. It's absolutely cracking, and cost less than the parts from my old machine will get on Ebay.]]>
		</description>
	</item>
	<item>
		<title>RaspberryPi</title>
		<link>https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=178763#Comment_178763</link>
		<guid isPermaLink="false">https://www.greenbuildingforum.co.uk/newforum/comments.php?DiscussionID=9179&amp;Focus=178763#Comment_178763</guid>
		<pubDate>Thu, 27 Jun 2013 15:30:18 +0100</pubDate>
		<author>SteamyTea</author>
		<description>
			<![CDATA[I got some code written that allows me to log the CurrentCost data, shall post the image up sometime and put a link to it.<br /><br />Right this is the image, use your favourite way to load it onto an SM card after unzipping it.<br /><br />It should work as soon as it is switched on as long as the CurrentCost is plugged in with the USB cable<br /><br />Normal Pi password<br /><br />To stop and start and clear the data:<br />service serial stop<br />rm /var/log/serial/data.csv<br />rm /var/log/serial/hist.csv<br />touch /var/log/serial/data.csv<br />touch /var/log/serial/hist.csv<br />service serial start<br /><br /><a href="https://www.dropbox.com/s/xhhpr71u87re24f/RPI%20with%20CurrentCost.zip" target="_self" rel="nofollow">https://www.dropbox.com/s/xhhpr71u87re24f/RPI%20with%20CurrentCost.zip</a><br /><br />And if anyone knows how it all works and how I can get it to work with my RTC instead of the CC device time I would be very grateful]]>
		</description>
	</item>
	
		</channel>
	</rss>