tag:blogger.com,1999:blog-91159408647840905992024-02-07T03:27:06.180+01:00janhimselfUnknownnoreply@blogger.comBlogger549125tag:blogger.com,1999:blog-9115940864784090599.post-24733454872202533562016-09-28T22:45:00.000+02:002016-09-29T01:05:41.031+02:00in autumn some #wood work would workThis spring I've found this piece of wood while cycling through the woods and as autum has come, I thought it would be nice to make something out of wood which would fit into my house.<br>
<br>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2J3GTyNbutsNdIpPz_rMklztetGU3HO8qKmagElS665ci7lz1PYFd7QETUVrUxd_0MBjs8JHFmbLo70ubdYIQtjfjVGNZ9RI9JqjPYOWJaJCugC_YxJ8HxsbMsdzv5xq5MROCs1ak4Y7U/s1600/treeWallBracketSM.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2J3GTyNbutsNdIpPz_rMklztetGU3HO8qKmagElS665ci7lz1PYFd7QETUVrUxd_0MBjs8JHFmbLo70ubdYIQtjfjVGNZ9RI9JqjPYOWJaJCugC_YxJ8HxsbMsdzv5xq5MROCs1ak4Y7U/s320/treeWallBracketSM.gif" width="239"></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br></div>
<div class="separator" style="clear: both; text-align: left;">
...was an easy task: some sanding and drilling and some of my dried plants...</div>
<div class="separator" style="clear: both; text-align: left;">
<br></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8us-19RmNUBVDvUPnOnc8ukwtQ7CzNGP7p_RgPr_zuwgkbFp_SC0BDzTNgKncDEFSpSVloYytWsL4abDkJgcz3sJciGCxVrY5XOYzxqu1S76AdpE_XmvYTdDLY2sX1Z3PkA3HHkSzuEIX/s1600/2016-09-28+21.29.36.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8us-19RmNUBVDvUPnOnc8ukwtQ7CzNGP7p_RgPr_zuwgkbFp_SC0BDzTNgKncDEFSpSVloYytWsL4abDkJgcz3sJciGCxVrY5XOYzxqu1S76AdpE_XmvYTdDLY2sX1Z3PkA3HHkSzuEIX/s320/2016-09-28+21.29.36.jpg" width="240"></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br></div>
<br>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-9115940864784090599.post-47689417568246549732016-04-09T17:45:00.000+02:002016-04-09T17:45:01.365+02:00Renewed my Dremel's batteries - For some time now my beloved Dremel had some battery problems. I could work with it for something like 5 minutes which is way to little.<br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMZdf8mm3gf2CLlJ98QboaSU7EygchT9yeoyFPatY3NCU3FwLoApy8G9USxE03ORrHvF9y6-uZAOSz8geTlu2-poMkHrSmPbFPyxpCXzVG_c1CLtwtde13fnTd0bpoBFfHfnJWAETt16Ss/s1600/2016-04-09+15.32.03.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMZdf8mm3gf2CLlJ98QboaSU7EygchT9yeoyFPatY3NCU3FwLoApy8G9USxE03ORrHvF9y6-uZAOSz8geTlu2-poMkHrSmPbFPyxpCXzVG_c1CLtwtde13fnTd0bpoBFfHfnJWAETt16Ss/s320/2016-04-09+15.32.03.jpg" width="320" /></a></div>
<br />
<br />
So today I tried to open up the battery pack which was the easiest part. Then I bought some NiMH batteries with those little flags for soldering onto them, because it's hard to solder any wires directly to a battery pole.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQxYC8MKe6om7AEA_A1g4CYia-QN0GZMljZTpyDEiGiq7YF8MNF9SttEihjUG0c7H-wnIiTqPKlwRnAOnBLrJWi_vSDizq_MHeWHyP3YutTyfQuiwtLrHjCrbRVu4KU5rZwc8MrU7QhOe-/s1600/2016-04-09+15.31.54.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQxYC8MKe6om7AEA_A1g4CYia-QN0GZMljZTpyDEiGiq7YF8MNF9SttEihjUG0c7H-wnIiTqPKlwRnAOnBLrJWi_vSDizq_MHeWHyP3YutTyfQuiwtLrHjCrbRVu4KU5rZwc8MrU7QhOe-/s320/2016-04-09+15.31.54.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Those eneloops are NiMH, the original batteries might have been NiCd so the charger might overcharge the eneloops... have to unplug them before... not perfect but hopefully it will work. </div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGKSAOoR98ERxMynVr_5QIt1c8h8MT8-V7oqsaIZkYODL1eapL6btXtHjqKN66YH4AOdP6qaYSHoY5-k8t7vQAlej9jhFa8D0kdVfdMl23zGf8wGRtrJIitgeQHqQq48kS7BbOPiaG7v_0/s1600/2016-04-09+17.12.11.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGKSAOoR98ERxMynVr_5QIt1c8h8MT8-V7oqsaIZkYODL1eapL6btXtHjqKN66YH4AOdP6qaYSHoY5-k8t7vQAlej9jhFa8D0kdVfdMl23zGf8wGRtrJIitgeQHqQq48kS7BbOPiaG7v_0/s320/2016-04-09+17.12.11.jpg" width="320" /></a></div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-9115940864784090599.post-17946605364855745852016-04-06T21:01:00.000+02:002016-04-06T21:01:13.846+02:00google earth moved my car<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkdboTu7AZlZmBoPviwr8m-FWgr7KkRvsjElSShBm94NMlcKskF7Jo52CbHT1qrc2dUEZjwCXpLfpwHF0H2U0a4y_JOjAyHhshkVYhSidtmMJuoS8GUJI4qAyoqmxzm3m5isphQdmYFWYk/s1600/image001.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="280" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkdboTu7AZlZmBoPviwr8m-FWgr7KkRvsjElSShBm94NMlcKskF7Jo52CbHT1qrc2dUEZjwCXpLfpwHF0H2U0a4y_JOjAyHhshkVYhSidtmMJuoS8GUJI4qAyoqmxzm3m5isphQdmYFWYk/s320/image001.png" width="320" /></a></div>
since last summer I can't park in front of my house anymore. That's why my car stands out of town and I think that's why google updated their google earth pictures to show the actual position of my good old van.<br />
<br />Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-9115940864784090599.post-74737153207020160222016-03-30T00:02:00.001+02:002016-03-30T00:02:34.488+02:00An early project<div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirN4OvaU6DiMrTt2BqSFmCXLd-oiUscNsNvfULXvpthReA5ohoxsXskC-QbsSY_K27TBer1haaGlnR8-zmgTkwQpl-EsoheYyXv74bkj9RwmCZf9XPt1JyYbVnI-pnwhdYs87Bjjpu44pu/s640/blogger-image--965083934.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><br><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirN4OvaU6DiMrTt2BqSFmCXLd-oiUscNsNvfULXvpthReA5ohoxsXskC-QbsSY_K27TBer1haaGlnR8-zmgTkwQpl-EsoheYyXv74bkj9RwmCZf9XPt1JyYbVnI-pnwhdYs87Bjjpu44pu/s640/blogger-image--965083934.jpg"></a></div><div class="separator" style="clear: both;"><br></div><div class="separator" style="clear: both;">Found this note last weekend in the desk of my childhood when I was looking for a small screw to get my mums sewing machine working again. I was always harvesting screws and stuff ... Besides the screw I found those mics and speakers of old telephones which I have used to built a communication device in the late 80s. </div><div class="separator" style="clear: both;">Back then you were able to repair a telephone. Microphone and speaker could be easily replaced.., no soldering required.</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-9115940864784090599.post-89227521794438712502016-02-15T00:03:00.000+01:002016-02-15T00:03:13.930+01:00Part 5: install #pilight on your #pi and controll your lightswitchesTinkerTable switches on and off one of my lights in my flat when I come home or leave home (using IFTTT and geofences and pilight and a python script. And it provides a nice website to switch my lights on and off using my mobile.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjllbZ6bwS_l1vZFwJ5x1anPoS0hsGPkweG15DLeWm1FhAuYzoR0BqqT6Kb92aymE-1hcubvkSILIhIoQak1yBmu726kwmH_fEvprcwLyOfNbhFIXGI1NPTZeTPPaYC5x5cFSk_PG_5afd-/s1600/pilight.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjllbZ6bwS_l1vZFwJ5x1anPoS0hsGPkweG15DLeWm1FhAuYzoR0BqqT6Kb92aymE-1hcubvkSILIhIoQak1yBmu726kwmH_fEvprcwLyOfNbhFIXGI1NPTZeTPPaYC5x5cFSk_PG_5afd-/s320/pilight.PNG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
installing pilight:</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
# pilight<br />
https://www.pilight.org/get-started/installation/<br />
run as sudo:<br />
sudo su<br />
add the apt to the repository:<br />
nano /etc/apt/sources.list<br />
add this line:<br />
deb https://apt.pilight.org/ stable main<br />
<br />
you'll need a key:<span class="Apple-tab-span" style="white-space: pre;"> </span><br />
wget -O - https://apt.pilight.org/pilight.key | apt-key add -<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span><br />
now update the apt package list<br />
apt-get update<br />
this produced an error so I first installed that driver:<br />
sudo apt-get install apt-transport-https<br />
and again:<br />
apt-get update<br />
and install pilight<br />
apt-get install pilight<br />
Pilight will start itself at boot time<br />
YEAH!<br />
<br />
a good guide to pilight in german:<br />
<a href="https://raspberry.tips/hausautomatisierung/raspberry-pi-pilight-mit-433mhz-modulen-zur-hausautomatisierung/">https://raspberry.tips/hausautomatisierung/raspberry-pi-pilight-mit-433mhz-modulen-zur-hausautomatisierung/</a><br />
<br />
you've got to make some changes to the config json file (in the older pilight version there where extra files for hardware and config and settings)<br />
<a href="https://wiki.pilight.org/doku.php/config">https://wiki.pilight.org/doku.php/config</a><br />
<br />
stop pilight before editing the file:<br />
sudo service pilight stop<br />
you can start it with<br />
sudo service pilight start<br />
<br />
the config.json looks like<br />
{<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"devices": {<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"living": {<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"protocol": [ "intertechno_old" ],<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"id": [{<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"id": 0,<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"unit": 0<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>}],<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"state": "off"<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>},<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"kitchen": {<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"protocol": [ "intertechno_old" ],<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"id": [{<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"id": 2,<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"unit": 0<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>}],<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"state": "off"<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>},<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"corridor": {<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"protocol": [ "intertechno_old" ],<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"id": [{<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"id": 1,<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"unit": 0<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>}],<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"state": "on"<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>},<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"bedroom": {<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"protocol": [ "intertechno_old" ],<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"id": [{<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"id": 0,<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"unit": 3<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>}],<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"state": "on"<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>}<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>},<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"rules": {},<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"gui": {<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"living": {<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"name": "Wohnzimmer",<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"group": [ "janhimself" ],<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"media": [ "all" ]<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>},<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"kitchen": {<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"name": "Kueche",<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"group": [ "janhimself" ],<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"media": [ "all" ]<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>},<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"corridor": {<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"name": "Flur",<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"group": [ "janhimself" ],<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"media": [ "all" ]<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>},<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"bedroom": {<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"name": "TinkerTable",<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"group": [ "janhimself" ],<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"media": [ "all" ]<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>}<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>},<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"settings": {<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"log-level": 6,<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"pid-file": "/var/run/pilight.pid",<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"log-file": "/var/log/pilight.log",<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"webserver-enable": 1,<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"webserver-root": "/usr/local/share/pilight/",<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"webserver-http-port": 5001,<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"webserver-cache": 1<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>},<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"hardware": {<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"433gpio": {<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"sender": 4,<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"receiver": 1<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>}<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>},<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"registry": {<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"pilight": {<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"version": {<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"current": "7.0"<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>}<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>}<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>}<br />
}<br />
<br />Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-9115940864784090599.post-31329255412349932082016-02-14T22:37:00.000+01:002016-02-14T22:37:02.665+01:00Part 4: old printer as wireless network printer using #cups and your #raspberry pi<div>
TinkerTable has a built in HP Deskjet 940c printer, old but reliable and with this setup it's a super useful wireless network printer:<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJxiVakYkrB_9KwWLeGAOoaUWJlrVKyB6hMVmCT-FATIvJGRaVwinNMkLSTdsk2g-VQx1XD_ySoAh4Es6-7DbZs5X9fYfSPN71oBQU_yAiNNYRfeqGECNlgFGWsgUoMhxirmYZRDG9CJjf/s1600/2016-02-12+22.17.41.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJxiVakYkrB_9KwWLeGAOoaUWJlrVKyB6hMVmCT-FATIvJGRaVwinNMkLSTdsk2g-VQx1XD_ySoAh4Es6-7DbZs5X9fYfSPN71oBQU_yAiNNYRfeqGECNlgFGWsgUoMhxirmYZRDG9CJjf/s320/2016-02-12+22.17.41.jpg" width="320" /></a></div>
<br /></div>
<div>
<br /></div>
<div>
<div>
install cups for printing</div>
<div>
sudo apt-get install cups</div>
<div>
</div>
<div>
give user permission to print</div>
<div>
sudo usermod -a -G lpadmin pi </div>
<div>
<br /></div>
<div>
to print remotely enable:</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>sudo cupsctl --share-printers --remote-admin</div>
<div>
<br /></div>
<div>
from a browser log into your cups server: <YOURPISIP>:631/admin</div>
<div>
add your printer to cups, (log in with your pi account) and default values in the cups management console</div>
<div>
<br /></div>
<div>
Install your printer on your windows pc</div>
<div>
-->Devices and Printers--> Add Printer--> Printer isn't listed --> Select a shared printer by name--> http://<myPi IP Address>:631/printers/HPDeskjet940c</div>
<div>
(its http NOT https)<br />
<br />
One helpful resource was:<br />
<a href="http://www.gaducated.com/raspberry-pi-print-and-scan-server-part-2-print-and-airprint-configuration/" target="_blank">http://www.gaducated.com/raspberry-pi-print-and-scan-server-part-2-print-and-airprint-configuration/ </a></div>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-9115940864784090599.post-14222680560302877392016-02-13T00:14:00.000+01:002016-02-13T00:14:01.264+01:00Part 3 of: one button scan to dropbox with your #raspberry pi: buttonsThis is just a short one: you'll need to install the gpio stuff so that your python scripts can make use of them:<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjs_d_yD5-XDPETg_sDbJMAsckPJA0J2l336NNTp2uwJvhm_0PHt_pC4WBeK6ckYmJEIiObnw4LL-ArKUJukb04osmta3GFi45OQg78d_OqmzP08S-gfnB8bK7_viZ7i_iB0GFj8KqxbZgr/s1600/DSC_2250.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjs_d_yD5-XDPETg_sDbJMAsckPJA0J2l336NNTp2uwJvhm_0PHt_pC4WBeK6ckYmJEIiObnw4LL-ArKUJukb04osmta3GFi45OQg78d_OqmzP08S-gfnB8bK7_viZ7i_iB0GFj8KqxbZgr/s320/DSC_2250.jpg" width="320" /></a></div>
<br />
now if you don't have it already on your pi: install python<br />
sudo apt-get update<br />
sudo apt-get install python-dev<br />
sudo apt-get install python-rpi.gpio<br />
you need the gpio thingy to controll your pi with buttons and let some leds light up<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0ON2lEcpbXiVBHCoifm8ZLhfylb1jTChyRsI4RkSIApRVC4BpwdUFwJMY8tnh-EBhr3MpWcfBVlhOTHXhqYwLBBUXZ6M3-gE-VX9Gj54oJtMRQK9pOWR6A68lhp_VxKkl57qwqYnNc5KL/s1600/DSC_2249.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0ON2lEcpbXiVBHCoifm8ZLhfylb1jTChyRsI4RkSIApRVC4BpwdUFwJMY8tnh-EBhr3MpWcfBVlhOTHXhqYwLBBUXZ6M3-gE-VX9Gj54oJtMRQK9pOWR6A68lhp_VxKkl57qwqYnNc5KL/s320/DSC_2249.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
And you'll need some soldering...</div>
<div class="separator" style="clear: both; text-align: left;">
I've added 5 LEDs and 5 Buttons and three switches (of which only one is connected to the pi) </div>
<div class="separator" style="clear: both; text-align: left;">
and here's my wiring diagram :D </div>
<div class="separator" style="clear: both; text-align: left;">
You'll need some resistors for the red, green and yellow LEDs and some pullup resistors for the buttons (not sure if they are called pull down resistors in my case as they connect the pins so ground while the button is open...).... pull down.... pull down resistors!</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijJafGu7nNrtddKFjnwZqyxC_2UhXBIiIStTtHZflek1ytysNdkW17YGzi2uI3pSSMBZYtCJvwdczRIeclR1Ew1aN9AgfNF9YAWXHq63tVRK_xfn0NFG60Nq6I65Gk9wLi7MygAPF7CfTR/s1600/scan_19-02-14_00-06-25.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijJafGu7nNrtddKFjnwZqyxC_2UhXBIiIStTtHZflek1ytysNdkW17YGzi2uI3pSSMBZYtCJvwdczRIeclR1Ew1aN9AgfNF9YAWXHq63tVRK_xfn0NFG60Nq6I65Gk9wLi7MygAPF7CfTR/s320/scan_19-02-14_00-06-25.jpg" width="231" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-9115940864784090599.post-39323961520735030082016-02-12T00:11:00.000+01:002016-02-12T00:11:00.237+01:00Part 2 of: one button scan to dropbox with your #raspberry piThe dropbox part ist very useful: Andrea Fabrizi's script is very easy to use. I do also use it with my timelapse projects. But first mission was to get my snailMails scanned and saved digitally:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqUrP24iw_pMXrfERhMr9QpdrNsdnxQK7mjQX2qYwUo6iE0KOJeN46CjutnTm-F07rFCg8Ah7xEZ3NxRFm2X58qQUimwKiOmUzNszYK0NSXqU8wZcCpTOMNxzySdcVJjppdiED7V5jbDo5/s1600/DSC_2372.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqUrP24iw_pMXrfERhMr9QpdrNsdnxQK7mjQX2qYwUo6iE0KOJeN46CjutnTm-F07rFCg8Ah7xEZ3NxRFm2X58qQUimwKiOmUzNszYK0NSXqU8wZcCpTOMNxzySdcVJjppdiED7V5jbDo5/s320/DSC_2372.jpg" width="320" /></a></div>
# dropbox-Uploader<br />
I used Andrea Fabrizis Dropbox script:<br />
https://github.com/andreafabrizi/Dropbox-Uploader/blob/master/dropbox_uploader.sh<br />
get the bash script here:<br />
https://github.com/andreafabrizi/Dropbox-Uploader/blob/master/dropbox_uploader.sh<br />
sudo apt-get install git-core<br />
follow these steps:<br />
https://github.com/andreafabrizi/Dropbox-Uploader<br />
git clone: https://github.com/andreafabrizi/Dropbox-Uploader/<br />
or just: curl "https://raw.github.com/andreafabrizi/Dropbox-Uploader/master/dropbox_uploader.sh" -o dropbox_uploader.sh<br />
<br />
give the execution permission to the script (make sure your in the right directory)<br />
chmod +x dropbox_uploader.sh<br />
./dropbox_uploader.sh<br />
<br />
follow the steps that the script wants you to do... setting up a dropbox api and so on...Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-9115940864784090599.post-13599977032395757132016-02-11T00:04:00.000+01:002016-02-11T00:04:07.591+01:00Part 1 of: one button scan to dropbox with your #raspberry piMy tinkerTable works as a document management system... kind of.<br />
That's why there's a button which starts the scanner and saves the scan to dropbox.<br />
<br />
Here's what you need for the scanning part:<br />
<br />
sane<br />
make sure your scanner is supported:<br />
http://www.sane-project.org/sane-mfgs.html<br />
<br />
Install sane:<br />
sudo apt-get update<br />
sudo apt-get install sane<br />
allow user to scan:<br />
usermod -a pi -G scanner<br />
this didn't work with the raspberry pi model b, but scanning worked anyhow.<br />
<br />
check scanning:<br />
scanimage -L<br />
<br />
this didn't work, but I got a result using<br />
scanimage > test.ppm<br />
<br />
imagemagic is needed to convert images:<br />
sudo apt-get install imagemagick<br />
<br />
I've found lot's of help here:<br />
http://www.gaducated.comUnknownnoreply@blogger.com0tag:blogger.com,1999:blog-9115940864784090599.post-78140028894233459732016-02-09T00:13:00.000+01:002016-02-09T00:13:40.745+01:00How To prevent your pi's screen from going to sleepIf you don't want your screen to shut down try this:<br />
<br />
sudo nano /etc/kbd/config<br />
<br />
edit these two lines:<br />
<br />
BLANK_TIME=0<br />
POWERDOWN_TIME=0<br />
<br />
and then, if you realize that this didn't work, try:<br />
<br />
sudo nano /etc/lightdm/lightdm.conf<br />
<br />
in the section [SeatDefault] insert this line:<br />
<br />
xserver-command=X -s 0 dpms<br />
<br />
(And: How To prevent yourself from going to sleep: ssh into your pi)Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-9115940864784090599.post-13094267600413523222015-12-05T10:00:00.000+01:002015-12-11T11:10:42.391+01:00If I would need steel? #bicyle touring<div class="separator" style="clear: both; text-align: center;">
</div>
<div style="text-align: left;">
If I would need a bike next year.... </div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxBXqiBnFsuB2-Twff6rDTzTSrdrHVUVGre1mpu6AvVvVdMVkQKA7Vs_NkUYWI6ytw9kC7VhSN9Q-5C33s9pSo8YZiA0NKU9vw0rYVBldBWTRbk1fZ5d0s1vUQcnGzLApInEiO2NkBGY_D/s1600/croix-de-fer-20.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="196" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxBXqiBnFsuB2-Twff6rDTzTSrdrHVUVGre1mpu6AvVvVdMVkQKA7Vs_NkUYWI6ytw9kC7VhSN9Q-5C33s9pSo8YZiA0NKU9vw0rYVBldBWTRbk1fZ5d0s1vUQcnGzLApInEiO2NkBGY_D/s320/croix-de-fer-20.jpg" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://www.genesisbikes.co.uk/bikes/adventure/b-road/croix-de-fer-20" target="_blank">Genesis Croix De Fer</a> </div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgT1p_gArtf-TGNAnCt4ADOmSFeWL2ikEVomdW37CZ_iwhXrTGDEfOe0O6XE8kN3DOr1MB-hC9RVeJUs8KnmF8JUAZnrMYliTw3gN-aZaHrrSRe7Mxu01k3c5jY187zoyHKyJ9euXBnNi5F/s1600/Marrakesh_Drop_Black_profile.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="188" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgT1p_gArtf-TGNAnCt4ADOmSFeWL2ikEVomdW37CZ_iwhXrTGDEfOe0O6XE8kN3DOr1MB-hC9RVeJUs8KnmF8JUAZnrMYliTw3gN-aZaHrrSRe7Mxu01k3c5jY187zoyHKyJ9euXBnNi5F/s320/Marrakesh_Drop_Black_profile.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://salsacycles.com/bikes/marrakesh/2016_marrakesh_deore_drop_bar" target="_blank">Salsa Marrakesh Drop Bar</a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6Vg0RCKDqntEzm4NolHTtE-uW9LdD9jhPNtC9Lw2YDUb3gNVonRdyLI0B1ja_1NwD0zN5jC5Xq7pUhkvjacK3CDLzbLvwsilu5DlaBC8Lk190aekq5DiEyY-o6D3ybrodXu1TABJq8zSM/s1600/brandmeister-randonneur1_2014.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="213" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6Vg0RCKDqntEzm4NolHTtE-uW9LdD9jhPNtC9Lw2YDUb3gNVonRdyLI0B1ja_1NwD0zN5jC5Xq7pUhkvjacK3CDLzbLvwsilu5DlaBC8Lk190aekq5DiEyY-o6D3ybrodXu1TABJq8zSM/s320/brandmeister-randonneur1_2014.jpg" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://www.hartje-fahrrad.de/portfolio-items/brandmeister-randonneur/" target="_blank">Hartje Brandmeister Randonneur</a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivfzLgAy5dizBiP_-_utL3zIW5cvB2UAOqBhNRCVBWK7WhCY-geWjFsiL_BsL31y4YzVLUlWmXRiylfibqYWEZ-GFKYyYGKLGbtvgqLBBFNP4IKBIiQZICNnPhhVHyBRD-loMxNCGicvxx/s1600/sutra.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="190" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivfzLgAy5dizBiP_-_utL3zIW5cvB2UAOqBhNRCVBWK7WhCY-geWjFsiL_BsL31y4YzVLUlWmXRiylfibqYWEZ-GFKYyYGKLGbtvgqLBBFNP4IKBIiQZICNnPhhVHyBRD-loMxNCGicvxx/s320/sutra.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://www.konaworld.com/sutra.cfm" target="_blank">Kona Sutra</a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlFUSEceEk203ZrdJjf3F4aCQufK8-rg2fINXrFJQaT5FVbUOoN6kMBs-u_c5cskKMmaF1UaGjOrUPs_F7Qj57FGsPtzXAJdZ76_FJl4G4ND0UorfzPNuhyphenhyphen6YJRybm3tFe9VFtxaA2AuIB/s1600/AWOL.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="191" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlFUSEceEk203ZrdJjf3F4aCQufK8-rg2fINXrFJQaT5FVbUOoN6kMBs-u_c5cskKMmaF1UaGjOrUPs_F7Qj57FGsPtzXAJdZ76_FJl4G4ND0UorfzPNuhyphenhyphen6YJRybm3tFe9VFtxaA2AuIB/s320/AWOL.PNG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://www.specialized.com/de/de/bikes/adventure/awol/awol" target="_blank">Specialized AWOL Comp</a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjt_GuYVMzXr3j6VNDpdr64yS_acd5rtsu6efChbyx-agb2mfP93bPEIdtQMsIUEepfjpNoKXbpoxjHJmDM2Y9ZQLdbGjZYyZ2pOnKaIG-6ybvJMDTkcGNbGdq0U2-pFpX4GHQxIqUtUb2k/s1600/disc-trucker-15_sv_930x390.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="134" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjt_GuYVMzXr3j6VNDpdr64yS_acd5rtsu6efChbyx-agb2mfP93bPEIdtQMsIUEepfjpNoKXbpoxjHJmDM2Y9ZQLdbGjZYyZ2pOnKaIG-6ybvJMDTkcGNbGdq0U2-pFpX4GHQxIqUtUb2k/s320/disc-trucker-15_sv_930x390.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://surlybikes.com/bikes/disc_trucker" target="_blank">Surly Disc Trucker</a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
But I still love to take my Stevens out into the woods. It takes me to work every day, we had fun going to The Hague together and I enjoyed even the sometimes painful ride to Copenhagen.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhyGX52Uo-RVhjvcpF9mrAiAQPFHn36Zg2mQPW65_TG5kiq9VtGuJ1vO_dqyWb1h_Dcx0v9Iu8ZiYphjfp1f0_zDzIdFmI56mrdDNKxIcE5_TsVnRa_7DtRMiaNVLL6ZPeu8J7_75jt2ol/s1600/7x_lite_disc_gent_101_0193.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="189" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhyGX52Uo-RVhjvcpF9mrAiAQPFHn36Zg2mQPW65_TG5kiq9VtGuJ1vO_dqyWb1h_Dcx0v9Iu8ZiYphjfp1f0_zDzIdFmI56mrdDNKxIcE5_TsVnRa_7DtRMiaNVLL6ZPeu8J7_75jt2ol/s320/7x_lite_disc_gent_101_0193.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-9115940864784090599.post-47355693606111547482015-10-24T22:53:00.000+02:002015-10-24T22:53:40.834+02:00Market Research: Shoes & Footwear - Results & FindingsIt was time to get me a pair of new shoes. As always it was a long process to find the best solution. First there are my own needs. My personal list of problems my shoes have to solve in their life is the basis. Then a thorough market research has to be made. There are thousands if not millions of models and types of shoes which have to be taken into account here! And then there are blue Vans Sk8-High...<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjc72MLQiSRwwRHVCFzKl_meMiLJIsT0h_QBfQVmn2p4N39qHL5Lbve-v5sAP-QJb7zAQGTIw4ZUuXZZPs9gTvUjnUoUtiCjaCPTODP1WRyZHHIKOh-UmSSX7DxFj1a4hlEQDtqIcNVR0l4/s1600/IMG_2396.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjc72MLQiSRwwRHVCFzKl_meMiLJIsT0h_QBfQVmn2p4N39qHL5Lbve-v5sAP-QJb7zAQGTIw4ZUuXZZPs9gTvUjnUoUtiCjaCPTODP1WRyZHHIKOh-UmSSX7DxFj1a4hlEQDtqIcNVR0l4/s320/IMG_2396.JPG" width="320" /></a></div>
<br />
<a href="http://janhimself.blogspot.de/2012/05/and-again-new-vans.html">2012-05-30:</a><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibDi1vevHrr9RyUWy0Mxvp3oNRdrG9D0W3OFFV9DBiK3iak2Ku1F8qFgzMtx_YkqrmWbmg4HH7WuW3KOFKN-xVuBrzaWrdyaTqsSdKGk-an05U9j_9VF1d_gZgsfKBkocrWMZFy5NyBfWi/s1600/DSC_0204.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibDi1vevHrr9RyUWy0Mxvp3oNRdrG9D0W3OFFV9DBiK3iak2Ku1F8qFgzMtx_YkqrmWbmg4HH7WuW3KOFKN-xVuBrzaWrdyaTqsSdKGk-an05U9j_9VF1d_gZgsfKBkocrWMZFy5NyBfWi/s320/DSC_0204.JPG" width="320" /></a></div>
<br />
<a href="http://janhimself.blogspot.de/2008/08/neu-alt.html" target="_blank">2008-08-16:</a><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaI6Y8j-tlVcLPtpKmJWGsK2PtJRMut1eo9T2MvSczzZNmUlqDGOdY2xCwFch0IKPgXqhcJdDqhNALBZ2CLbmRz5X9J5zQX-wGeACZVRGKXk9jF3Wdf6YmiMD8ztueRIWtvUWogReG4twt/s1600/alte+und+neue+vans+%25281%2529.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaI6Y8j-tlVcLPtpKmJWGsK2PtJRMut1eo9T2MvSczzZNmUlqDGOdY2xCwFch0IKPgXqhcJdDqhNALBZ2CLbmRz5X9J5zQX-wGeACZVRGKXk9jF3Wdf6YmiMD8ztueRIWtvUWogReG4twt/s320/alte+und+neue+vans+%25281%2529.JPG" width="320" /></a></div>
<br />
<br />
<br />
<br />Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-9115940864784090599.post-12478740554476895682015-10-23T14:51:00.000+02:002015-10-23T14:51:01.225+02:0038.224 lines of Music as txtI like to listen to music and I like to track everything. That's why I now have 38.224 lines in a txt file representing the music I listened to over the last 22 month and it's also why most of my friends think I'm kind of weird.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1_2-EIWh3F2PmRrVDYx_vBy2HV7r1fqEbIs9OF1eB6VSPIQGv14mz0zOczxez3oCrJlP6H9iSmOIlSOLaCb2qHLjy6tFrNK1e2gLS_lVswrz7YoyItC-c4dtiv-ZgeI_mWnofqofXhOrP/s1600/ScrobbleLoggerCSV.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="173" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1_2-EIWh3F2PmRrVDYx_vBy2HV7r1fqEbIs9OF1eB6VSPIQGv14mz0zOczxez3oCrJlP6H9iSmOIlSOLaCb2qHLjy6tFrNK1e2gLS_lVswrz7YoyItC-c4dtiv-ZgeI_mWnofqofXhOrP/s320/ScrobbleLoggerCSV.PNG" width="320" /></a></div>
<br />
Here's how:<br />
The basic is Spotify as <a href="http://janhimself.blogspot.de/2013/12/please-find-out-what-spotify-says-that.html" target="_blank">my streaming music service of choice.</a> Spotify allows you to scrobble all the music you've listened to over to <a href="http://last.fm/">last.fm</a>. You'll find that somewhere in your spotify settings.<br />
Now to collect all this data for myself, to play around with it and get happy, I needed my own list. Using an IFTTT recipe, everytime a new 'scrobble' was made at last.fm, a line was added to a google spreadsheet. Unfortunately google somehow added a new file every 2000 lines so that I decided today to tinker all those files into one txt file and to change the IFTTT recipe to dropbox (<a href="https://ifttt.com/recipes/336198-last-fm-scobbles-saved-to-dropbox" target="_blank">Here's the recipe</a>). While I'm writing this, the recipe creates a second file in dropbox too...<br />
<br />
Here's what:<br />
Having all those lines of pure music data as a txt file, you can easily import it into your spreadsheed.<br />
Using a little pivot table I found out that I've been listening to 2212 different artists, Alt-J at first place, followed by Turbostaat:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgG2DcC7vgp5RiAJ-q48i8cjq_PFqKQJGqJOzpPzgWD47a1qmqUQTC58_PyBG0kCM-q2EDmCX3OeRMAw0ihgvyqtMMJNa_RNoOACQgS5fTnIrqr-S6tNHm7LTA5yvdbbvKshsZ56XQlzdFZ/s1600/ScrobbleLoggerArtists.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgG2DcC7vgp5RiAJ-q48i8cjq_PFqKQJGqJOzpPzgWD47a1qmqUQTC58_PyBG0kCM-q2EDmCX3OeRMAw0ihgvyqtMMJNa_RNoOACQgS5fTnIrqr-S6tNHm7LTA5yvdbbvKshsZ56XQlzdFZ/s1600/ScrobbleLoggerArtists.PNG" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
My most-played song over the last 22 month was <a href="http://www.last.fm/music/Solander/_/All+Opportunities" target="_blank">All Opportunities by Solander</a>.<br />
I didn't even realize that It's On is a song of both Broncho and Pins:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8M73UO0L8i9BRMYO6SpeVEMZ6XKKVdRuHG9LHAHgSgVrCEkOO5xaHBNPhZtUGozunIGt9KO4JJIa1OnilxcRujFAUmxaiPzdnIssUfVsvv2361IUE26N4NXkLnsMDDt0Ihf6JgR4Nx89Z/s1600/ScrobbleLoggerSongs.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="248" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8M73UO0L8i9BRMYO6SpeVEMZ6XKKVdRuHG9LHAHgSgVrCEkOO5xaHBNPhZtUGozunIGt9KO4JJIa1OnilxcRujFAUmxaiPzdnIssUfVsvv2361IUE26N4NXkLnsMDDt0Ihf6JgR4Nx89Z/s320/ScrobbleLoggerSongs.PNG" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
What I double checked is this chart: it shows songs played per day. And there are days when I listened to more than 200 songs:<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-eIXqGY1xGg-cI8-W3hU-li6B1Lix3ZtWrGBO-StR0j-VOGk-0OdR3kDigTsjBurFhvR4Gis5RU49Ar-4QxSQuWDO1DKpG0pRB-JHu9N1JhDA0yo9-ncOsD8PAZeXIk-4-1ydJ3_0zkFO/s1600/ScrobbleLoggerSongsPerDay.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="166" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-eIXqGY1xGg-cI8-W3hU-li6B1Lix3ZtWrGBO-StR0j-VOGk-0OdR3kDigTsjBurFhvR4Gis5RU49Ar-4QxSQuWDO1DKpG0pRB-JHu9N1JhDA0yo9-ncOsD8PAZeXIk-4-1ydJ3_0zkFO/s400/ScrobbleLoggerSongsPerDay.PNG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
By hour of day:<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVMziwaDTyzPZbQnQF6BhQVl-UPl_yKmjqotf0ChI2ZTH3pIOHZFKpDCzySx8r4zHnJ32iCN579R8QlOGehe4vpEYthXxWAu2bjdKuPzKvCwCQm7E1zEYcuwnfFJ3BM6zWFEfFX8DfUcI_/s1600/ScrobbleLoggerSongsByHourOfDay.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="166" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVMziwaDTyzPZbQnQF6BhQVl-UPl_yKmjqotf0ChI2ZTH3pIOHZFKpDCzySx8r4zHnJ32iCN579R8QlOGehe4vpEYthXxWAu2bjdKuPzKvCwCQm7E1zEYcuwnfFJ3BM6zWFEfFX8DfUcI_/s400/ScrobbleLoggerSongsByHourOfDay.PNG" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
Now I could cluster artists by hour... or day of week ... or I could go outside, enjoy the sun, have some coffee ...<br />
<br />Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-9115940864784090599.post-48851171095391891412015-10-22T21:39:00.000+02:002015-10-22T21:39:11.535+02:00Ride your bike as fast as an Elephant walks?<iframe allowfullscreen="" frameborder="0" height="281" mozallowfullscreen="" src="https://player.vimeo.com/video/142179343" webkitallowfullscreen="" width="500"></iframe>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-9115940864784090599.post-75566222577183784812015-10-10T10:02:00.001+02:002015-10-10T10:02:11.965+02:00Sorting my apps...<div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhr5QHlZ-xV0qyvjKvSIVeC8siW5TJQ25Yu_rusOXa1LHwnS9Y7pIMgrW9633uRJPnM5qU9dwe1wKFGK0UK2Nx2jVlcFb_lPiq4FV2Z7z_UA1pk8VtfKi-_dtXh2obeL2vsIZdnD7C0sa_u/s640/blogger-image-838783909.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhr5QHlZ-xV0qyvjKvSIVeC8siW5TJQ25Yu_rusOXa1LHwnS9Y7pIMgrW9633uRJPnM5qU9dwe1wKFGK0UK2Nx2jVlcFb_lPiq4FV2Z7z_UA1pk8VtfKi-_dtXh2obeL2vsIZdnD7C0sa_u/s640/blogger-image-838783909.jpg"></a></div>So the first train was late and I missed the next connection. Made the most out of it and color sorted all the apps.<div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKDQA50ogi9_edZ4O42uCFjAfoE1wLQmxEczzLQVmORA_SG8_qax5L366xb4HVW7j6njntKe7FAXVbtkO1O_f6s4NnSInovQjYDML_fvPy74DLu10JPE58YMmIy5vW41lGLLZWew5F4gPR/s640/blogger-image--49753507.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKDQA50ogi9_edZ4O42uCFjAfoE1wLQmxEczzLQVmORA_SG8_qax5L366xb4HVW7j6njntKe7FAXVbtkO1O_f6s4NnSInovQjYDML_fvPy74DLu10JPE58YMmIy5vW41lGLLZWew5F4gPR/s640/blogger-image--49753507.jpg"></a></div><div class="separator" style="clear: both;"><br></div><div class="separator" style="clear: both;"><br><div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKDQA50ogi9_edZ4O42uCFjAfoE1wLQmxEczzLQVmORA_SG8_qax5L366xb4HVW7j6njntKe7FAXVbtkO1O_f6s4NnSInovQjYDML_fvPy74DLu10JPE58YMmIy5vW41lGLLZWew5F4gPR/s640/blogger-image--49753507.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzKYgzyCTcMmfW60kA_jqUXb6nL-N-_2jxw676e4OfbCJf0FTieQDpk4a63aGnso2FgxkmwsZbQv-0B4lqkrx6Liz_XAdbORMCdmLhiB_Oun2MD4hTp3NDE1Ff9kbgT3bBz_sc2pkb83-U/s640/blogger-image-2100540479.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzKYgzyCTcMmfW60kA_jqUXb6nL-N-_2jxw676e4OfbCJf0FTieQDpk4a63aGnso2FgxkmwsZbQv-0B4lqkrx6Liz_XAdbORMCdmLhiB_Oun2MD4hTp3NDE1Ff9kbgT3bBz_sc2pkb83-U/s640/blogger-image-2100540479.jpg"></a></div></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-9115940864784090599.post-39829304167259480622015-05-03T23:51:00.000+02:002015-05-03T23:51:06.582+02:00Maybe C*omeone is interested in this new video of @thedjangos ;)Just found out that Django Django's new album is out now.<br />
<br />
<iframe allowfullscreen="" frameborder="0" height="315" src="https://www.youtube.com/embed/HxK7yP8NPSQ?rel=0" width="560"></iframe><br />
<br />
That will help me to survive Monday I think...Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-9115940864784090599.post-24653055409922678682015-03-15T22:19:00.003+01:002015-03-15T22:19:55.141+01:00#Robot Wars Video<iframe allowfullscreen="" frameborder="0" height="315" src="https://www.youtube.com/embed/vsDj1u2iBhk?rel=0" width="560"></iframe><br />
<br />
Just found this one over at <a href="http://hackaday.com/2015/03/15/mini-robot-wars-looks-fun-and-only-slightly-scary/" target="_blank">hackaday</a> and<br />
I hope there will be something like it here in my area tooUnknownnoreply@blogger.com0tag:blogger.com,1999:blog-9115940864784090599.post-14506462085739690132015-01-21T22:56:00.000+01:002015-01-21T22:57:32.798+01:00#Raspberry Pi Timelapse project<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzqW9mshffh5k1uPpU4ANPiBSVt46hEcArLMK2mzW-nkXnQuo7EILbRBLyqgwyb3hs1EqZfrS8DVKSMEEpoWxuC-6nY4-mfBiW5BEjmHoJu6MHIcDKxfrHp9Uan6knu-srXB5yn-wVfgZf/s1600/tinkerPic_19-01-15_22-52-21.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzqW9mshffh5k1uPpU4ANPiBSVt46hEcArLMK2mzW-nkXnQuo7EILbRBLyqgwyb3hs1EqZfrS8DVKSMEEpoWxuC-6nY4-mfBiW5BEjmHoJu6MHIcDKxfrHp9Uan6knu-srXB5yn-wVfgZf/s1600/tinkerPic_19-01-15_22-52-21.jpg" height="213" width="320" /></a></div>
<br />
<div>
Someone gave me a "Magic Garden" as a present this Christmas! So I headed to my local dealer to get me a <a href="http://www.raspberrypi.org/products/camera-module/" target="_blank">Pi Cam</a> to play around with it as I now really really had a valuable yet scientific job to do!<br />
<br />
Here's the result:<br />
<br />
<br />
<iframe allowfullscreen="" frameborder="0" height="315" src="//www.youtube.com/embed/KSK0PyJqwl8" width="560"></iframe>
<br />
<div style="text-align: center;">
<br /></div>
<br />
And this is what I've done:<br />
<br />
I cut a little slot into the pi case for the flat cable. Then I found some parts of a lamp and a lighter and a film canister - screwed and glued it together to have a solid and flexible stand for it. While writing these lines I am thinking abount some buttons to start my scripts and shutdown the device ...<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEha4UwQgs9JGj9PggP1uMG1hI9GqMis8YHHKwJ75vQxACIZD0VfCzBiwhuBQedIbFriRp_qjPYyvm9zgVyvC5rxw56MAc_ivwCNJLOmpRBdoZQ8u8aaNNROxU2zpzR4tvTTDDNa15AY9MAr/s1600/IMG_0875.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEha4UwQgs9JGj9PggP1uMG1hI9GqMis8YHHKwJ75vQxACIZD0VfCzBiwhuBQedIbFriRp_qjPYyvm9zgVyvC5rxw56MAc_ivwCNJLOmpRBdoZQ8u8aaNNROxU2zpzR4tvTTDDNa15AY9MAr/s1600/IMG_0875.JPG" height="240" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Next thing was to follow this tutorial to get that thing working: <a href="http://www.raspberrypi.org/learning/python-picamera-setup/" target="_blank">python-picamera-setup</a></div>
<div class="separator" style="clear: both; text-align: left;">
As the pi runs headless through its life, I wanted it to either copy the pictures to a dropbox folder or to a usb stick plugged into the pi. </div>
<div class="separator" style="clear: both; text-align: left;">
For the dropbox part I followed raspi.tv here: <a href="http://raspi.tv/2013/how-to-use-dropbox-with-raspberry-pi" target="_blank">how-to-use-dropbox-with-raspberry-pi</a></div>
<div class="separator" style="clear: both; text-align: left;">
Some googling helped me to find out how to mount a usb stick to my pi <a href="http://www.raspberrypi-spy.co.uk/2014/05/how-to-mount-a-usb-flash-disk-on-the-raspberry-pi/" target="_blank">how-to-mount-a-usb-flash-disk-on-the-raspberry-pi</a> Most important was to change the fstab: adding the sticks uuid and so on:</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMGwjEqdBbVA_X8T73P7108hYpSNHrsEGXizoowTyr3NxUQOE06OB_LpP0ghVQOZNuRwUcPh0QJmn8s9-cvwLmX69p2YIRh-NnHJLg-rjc79n9VD2sHk4-Jdteb12zKfBFsg-2BBvifRdw/s1600/mountUSBStickToPi.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMGwjEqdBbVA_X8T73P7108hYpSNHrsEGXizoowTyr3NxUQOE06OB_LpP0ghVQOZNuRwUcPh0QJmn8s9-cvwLmX69p2YIRh-NnHJLg-rjc79n9VD2sHk4-Jdteb12zKfBFsg-2BBvifRdw/s1600/mountUSBStickToPi.PNG" height="139" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
Using the above mentioned tutorials I came out with two little python scripts:<br />
(note to myself: needs some errorhandling if the dropbox upload fails)<br />
<br />
<br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">-----------------tinkerCam.py-----------------</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">#! /usr/bin/env python</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"># taking a picture and uploading it to dropbox</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"># uses Andrea Fabrizis Dropbox Upload www.andreafabrizi.it</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><br /></span>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">from subprocess import call</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">import time</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">import datetime</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">import picamera</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><br /></span>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><br /></span>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">pictureDir = '/home/pi/tinkerCam/pictures/'</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">ts = time.time()</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">fileNameShort = 'tinkerPic_' + datetime.datetime.fromtimestamp(ts).strftime('%d-%m-%y_%H-%M-%S') + '.jpg'</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><br /></span>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">uploader = '/home/pi/Dropbox-Uploader/dropbox_uploader.sh'</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">upconfig = '/home/pi/Dropbox-Uploader/.dropbox_uploader'</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><br /></span>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">camera = picamera.PiCamera()</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">fileName = pictureDir + fileNameShort</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><br /></span>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">camera.capture(fileName)</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><br /></span>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">cmd = uploader + ' -f ' + upconfig + ' upload ' + fileName + ' /tinkerCam/' + fileNameShort</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">call([cmd], shell = True)</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><br /></span>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">#copy file to usbStick</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">stickDir = '/media/stick/tinkerCam/'</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">cmd = 'mv ' + fileName + ' ' + stickDir+fileNameShort</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">print cmd</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">#call([cmd], shell = True)</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><br /></span>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">#clean up</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">cmd='rm ' + fileName</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">call([cmd], shell = True)</span><br />
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">print 'finished' </span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><br /></span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><br /></span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><br /></span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">-----------------tinkerTimelapse.py-----------------</span></div>
<div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">#! /usr/bin/env python</span></div>
<div>
</div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">from subprocess import call</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">import time</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">import datetime</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">import picamera</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><br /></span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">uploader = '/home/pi/Dropbox-Uploader/dropbox_uploader.sh'</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">upconfig = '/home/pi/Dropbox-Uploader/.dropbox_uploader'</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">usbPath = '/media/stick/tinkerTimelapse/'</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">dropboxPath = '/tinkerCamTimelapse/'</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">tempPath = '/home/pi/tinkerCam/'</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><br /></span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">def toDropbox(fileNameShort):</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span class="Apple-tab-span" style="white-space: pre;"> </span>cmd = uploader + ' -f ' + upconfig + ' upload ' + tempPath + fileNameShort + ' ' + dropboxPath + fileNameShort</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span class="Apple-tab-span" style="white-space: pre;"> </span>call([cmd], shell = True)</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span class="Apple-tab-span" style="white-space: pre;"> </span>#clean up</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span class="Apple-tab-span" style="white-space: pre;"> </span>cmd = 'rm ' + tempPath + fileNameShort</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span class="Apple-tab-span" style="white-space: pre;"> </span>call([cmd], shell = True)</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><br /></span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">def capturePic(frame, fileNameShort):</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span class="Apple-tab-span" style="white-space: pre;"> </span>with picamera.PiCamera() as cam:</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span class="Apple-tab-span" style="white-space: pre;"> </span>time.sleep(2)</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span class="Apple-tab-span" style="white-space: pre;"> </span>picPath = tempPath + fileNameShort</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span class="Apple-tab-span" style="white-space: pre;"> </span>print 'capturePic:', picPath</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span class="Apple-tab-span" style="white-space: pre;"> </span>cam.capture(picPath)</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><br /></span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">def constructFileName():</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span class="Apple-tab-span" style="white-space: pre;"> </span>ts = time.time()</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span class="Apple-tab-span" style="white-space: pre;"> </span>fileNameShort = 'tinkerPic_' + datetime.datetime.fromtimestamp(ts).strftime('%d-%m-%y_%H-%M-%S') + '.jpg'</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span class="Apple-tab-span" style="white-space: pre;"> </span>return fileNameShort</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><br /></span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">#user interface</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">picDays = raw_input('How many days will be captured?: ')</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">framesPerHour = raw_input('How many pictures per hour?: ')</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">frames = int(framesPerHour) * 24 * int(picDays)</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">saveTo = raw_input('Save to? [dropbox, usb]: ')</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><br /></span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">#capture images</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">for frame in range(frames):</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span class="Apple-tab-span" style="white-space: pre;"> </span>start = time.time()</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span class="Apple-tab-span" style="white-space: pre;"> </span>fileNameShort = constructFileName()</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span class="Apple-tab-span" style="white-space: pre;"> </span>fileName = tempPath + fileNameShort</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span class="Apple-tab-span" style="white-space: pre;"> </span>capturePic(frame, fileNameShort)</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span class="Apple-tab-span" style="white-space: pre;"> </span>if saveTo == 'dropbox' or saveTo == 'd':</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span class="Apple-tab-span" style="white-space: pre;"> </span>toDropbox(fileNameShort)</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span class="Apple-tab-span" style="white-space: pre;"> </span>if saveTo == 'usb' or saveTo == 'u':</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span class="Apple-tab-span" style="white-space: pre;"> </span>cmd = 'mv ' + tempPath + fileNameShort + ' ' + usbPath + fileNameShort</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span class="Apple-tab-span" style="white-space: pre;"> </span>call([cmd], shell = True)<span class="Apple-tab-span" style="white-space: pre;"> </span></span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span class="Apple-tab-span" style="white-space: pre;"> </span>print 'Picture taken: ', frame</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><span class="Apple-tab-span" style="white-space: pre;"> </span>time.sleep(int(60 * 60 / int(framesPerHour)) - (time.time() - start))</span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;"><br /></span></div>
<div>
<span style="font-family: Courier New, Courier, monospace; font-size: x-small;">print 'finished' </span></div>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-9115940864784090599.post-91789218562723563922015-01-21T21:16:00.002+01:002015-01-21T21:16:25.811+01:00WTF - "solving three cubes while juggling them"<iframe allowfullscreen="" frameborder="0" height="315" src="//www.youtube.com/embed/K_gHa2x2OQA" width="420"></iframe><br />
<br />
I found this video here at <a href="http://www.booooooom.com/2015/01/14/wtf-video-day-solving-three-rubiks-cubes-juggling/" target="_blank">bo(lots of os)m</a> ....Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-9115940864784090599.post-53273129587565821332014-12-13T23:48:00.002+01:002014-12-13T23:48:50.032+01:00Concert: TurbostaatDear reader, what should I say...<br />
<br />
6 month after giving a concert in Wiesbaden Turbostaat are back in Frankfurt with their double concert today and tomorrow.<br />
<br />
So it was <a href="http://www.stadtderangst.de/" target="_blank">Turbostaat </a>that made my day ... :P<br />
<br />
<br />
<iframe allowfullscreen="" frameborder="0" height="315" src="//www.youtube.com/embed/uQuDiKDxZzQ" width="560"></iframe>
<br />
<iframe allowfullscreen="" frameborder="0" height="315" src="//www.youtube.com/embed/-Cqv7T225XQ" width="560"></iframe>
<br />
<iframe allowfullscreen="" frameborder="0" height="315" src="//www.youtube.com/embed/xA33RCtYRk4" width="560"></iframe>
<br />
<iframe allowfullscreen="" frameborder="0" height="315" src="//www.youtube.com/embed/TyZYA_G-9iE" width="560"></iframe>
<iframe allowfullscreen="" frameborder="0" height="315" src="//www.youtube.com/embed/a0MDWJiyz2w" width="560"></iframe>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-9115940864784090599.post-76723609015271251022014-12-07T22:38:00.001+01:002014-12-07T22:38:15.046+01:00Also my favorite bridge here<iframe allowfullscreen="" frameborder="0" height="315" src="//www.youtube.com/embed/Hh6wxuYMda0" width="560"></iframe><br />
<br />
Found this video at <a href="http://www.stadtkindfrankfurt.de/2014/12/03/jason-paul-klettert-auf-die-deutschherrnbruecke-in-frankfurt/">www.stadtkindfrankfurt.de</a>, one of my favourite sources for all things Frankfurt. Next time I'll consider climbing that bridge instead of walking up the stairs ...Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-9115940864784090599.post-17270273087096354402014-12-05T23:59:00.000+01:002014-12-06T00:13:21.365+01:00Concert: PS I Love You supported by The Rural Alberta Advantage<iframe allowfullscreen="" frameborder="0" height="315" src="//www.youtube.com/embed/EFVnf4Z5INw" width="560"></iframe><br />
<br />
I didn't know The Rural Alberta Advantage at all until I realized that they were supported by PS I Love You on their tour. And as I wanted to go to PS I Love You anyways I gave them a chance and Paul Banwatt really did his job as drummer of that band, taking the audience with them.<br />
Speaking of Pauls here: Paul Saulnier and Benjamin Nelson are PS I Love You and for me they were supported by The RAA. Saulnier's guitar and voice together with Nelsons drums...!<br />
<br />
<iframe allowfullscreen="" frameborder="0" height="315" src="//www.youtube.com/embed/NnqylUrnS1I" width="560"></iframe>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-9115940864784090599.post-79344053787802600402014-12-03T07:48:00.001+01:002014-12-06T00:13:21.373+01:00Concert: Jaga Jazzist<div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUXqxfb4cdAekissDY5m1ousew2_LcOdAS_sa2J-peL_K2zfiXOsUDEV7d4oM5qyknbT1u-JdbbSbzoLwyttpQoU6eXngkR98rfm-pPxkb0-6usZbSSU1moaW27v0CxY1B9RGHReyksKSd/s640/blogger-image--1541705383.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUXqxfb4cdAekissDY5m1ousew2_LcOdAS_sa2J-peL_K2zfiXOsUDEV7d4oM5qyknbT1u-JdbbSbzoLwyttpQoU6eXngkR98rfm-pPxkb0-6usZbSSU1moaW27v0CxY1B9RGHReyksKSd/s640/blogger-image--1541705383.jpg"></a></div><div class="separator" style="clear: both;"><br></div><div class="separator" style="clear: both;">Three years ago I've been at a concert of Jaga Jazzist with one girl I met at the couch surfing meeting. I loved the sound, bought the CD, took the music with me on my trip to Prague. It became part of a change in my live... So it was no question to go to the concert at Hafen2 last night. Lot's of old songs, some new ones... Nice light things on the stage (I wondered if these used arduinos to control the LEDs)</div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-9115940864784090599.post-84393625761561859972014-11-30T22:29:00.001+01:002014-11-30T22:29:11.514+01:00Science! <iframe allowfullscreen="" frameborder="0" height="315" src="//www.youtube.com/embed/J9b0J29OzAU" width="560"></iframe>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-9115940864784090599.post-81367169655187241832014-11-27T22:36:00.000+01:002014-11-27T22:36:23.460+01:00Damn - I want to have that robot<iframe allowfullscreen="" frameborder="0" height="315" src="//www.youtube.com/embed/a3pTw0jmxlg" width="560"></iframe><br />
<br />
It's like the good old days of Frogger!Unknownnoreply@blogger.com0