Mittwoch, 28. September 2016

in autumn some #wood work would work

This 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.


...was an easy task: some sanding and drilling and some of my dried plants...



Samstag, 9. April 2016

Renewed 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.



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.


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. 

Mittwoch, 6. April 2016

google earth moved my car

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.

Mittwoch, 30. März 2016

An early project



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. 
Back then you were able to repair a telephone. Microphone and speaker could be easily replaced.., no soldering required.

Montag, 15. Februar 2016

Part 5: install #pilight on your #pi and controll your lightswitches

TinkerTable 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.


installing pilight:

# pilight
https://www.pilight.org/get-started/installation/
run as sudo:
    sudo su
add the apt to the repository:
    nano /etc/apt/sources.list
add this line:
    deb https://apt.pilight.org/ stable main

you'll need a key:
    wget -O - https://apt.pilight.org/pilight.key | apt-key add -

now update the apt package list
    apt-get update
this produced an error so I first installed that driver:
    sudo apt-get install apt-transport-https
and again:
    apt-get update
and install pilight
    apt-get install pilight
Pilight will start itself at boot time
YEAH!

a good guide to pilight in german:
https://raspberry.tips/hausautomatisierung/raspberry-pi-pilight-mit-433mhz-modulen-zur-hausautomatisierung/

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)
https://wiki.pilight.org/doku.php/config

stop pilight before editing the file:
    sudo service pilight stop
you can start it with
    sudo service pilight start

the config.json looks like
{
"devices": {
"living": {
"protocol": [ "intertechno_old" ],
"id": [{
"id": 0,
"unit": 0
}],
"state": "off"
},
"kitchen": {
"protocol": [ "intertechno_old" ],
"id": [{
"id": 2,
"unit": 0
}],
"state": "off"
},
"corridor": {
"protocol": [ "intertechno_old" ],
"id": [{
"id": 1,
"unit": 0
}],
"state": "on"
},
"bedroom": {
"protocol": [ "intertechno_old" ],
"id": [{
"id": 0,
"unit": 3
}],
"state": "on"
}
},
"rules": {},
"gui": {
"living": {
"name": "Wohnzimmer",
"group": [ "janhimself" ],
"media": [ "all" ]
},
"kitchen": {
"name": "Kueche",
"group": [ "janhimself" ],
"media": [ "all" ]
},
"corridor": {
"name": "Flur",
"group": [ "janhimself" ],
"media": [ "all" ]
},
"bedroom": {
"name": "TinkerTable",
"group": [ "janhimself" ],
"media": [ "all" ]
}
},
"settings": {
"log-level": 6,
"pid-file": "/var/run/pilight.pid",
"log-file": "/var/log/pilight.log",
"webserver-enable": 1,
"webserver-root": "/usr/local/share/pilight/",
"webserver-http-port": 5001,
"webserver-cache": 1
},
"hardware": {
"433gpio": {
"sender": 4,
"receiver": 1
}
},
"registry": {
"pilight": {
"version": {
"current": "7.0"
}
}
}
}

Sonntag, 14. Februar 2016

Part 4: old printer as wireless network printer using #cups and your #raspberry pi

TinkerTable has a built in HP Deskjet 940c printer, old but reliable and with this setup it's a super useful wireless network printer:


install cups for printing
    sudo apt-get install cups
give user permission to print
    sudo usermod -a -G lpadmin pi 

to print remotely enable:
sudo cupsctl --share-printers --remote-admin

from a browser log into your cups server: <YOURPISIP>:631/admin
add your printer to cups, (log in with your pi account) and default values in the cups management console

Install your printer on your windows pc
-->Devices and Printers--> Add Printer--> Printer isn't listed --> Select a shared printer by name--> http://<myPi IP Address>:631/printers/HPDeskjet940c

Samstag, 13. Februar 2016

Part 3 of: one button scan to dropbox with your #raspberry pi: buttons

This is just a short one: you'll need to install the gpio stuff so that your python scripts can make use of them:

now if you don't have it already on your pi: install python
    sudo apt-get update
    sudo apt-get install python-dev
    sudo apt-get install python-rpi.gpio
you need the gpio thingy to controll your pi with buttons and let some leds light up


And you'll need some soldering...
I've added 5 LEDs and 5 Buttons and three switches (of which only one is connected to the pi) 
and here's my wiring diagram :D 
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!