Thursday 12 December 2013

SMS Command Server

I've been a little busy with loads of different projects recently and also entering a API competition
So I made this nice little script.


You can text a keyword to the raspberry pi and then it will execute the command associated with it.
It also has for a bit of security only allow from 1 number (could be altered to use an array of numbers)

Please review and let me know!

This does use the textlocal API but I can use the SMSPI api as well to control things :)

Monday 9 December 2013

Turn Off Red LED on Raspberry Pi Ca,

The Pi camera module includes a red LED in one corner of the PCB. This lights up when the camera is active. It’s really useful in giving a visual indication that the camera is doing something and most of the time you will be glad it is there.

In my testing here are some of the reasons it can get in the way :
  • Pi Camera Module Red LEDIt can cause reflections on objects you are trying to photograph giving them a red glow.
  • For nature photography it scares animals.
  • For security applications it may draw unnecessary attention to the device.
  • It consumes power.

To disable the red LED you simply need to add the following line to your config.txt file :
disable_camera_led=1
To edit the config.txt file you can use Nano :
sudo nano /boot/config.txt
Use the arrow keys to scroll to the end of the file and add “disable_camera_led=1″ to the last line. Press “CTRL-x” to quit. If prompted press “Y” followed by “Return” or “Enter”.
Reboot your Pi with “sudo reboot” and when you next use the camera the red LED will be disabled.

Monday 2 December 2013

Kindle As your raspberry pi monitor

I could mod my Kindle so I can now use it as screen for the RaspberryPi. KindleberryPi makes it possible to have a terminal only, but with my guide you can use it as a complete screen!

How-To for Kindle 4 NT:

1) jailbreak your Kindle: http://wiki.mobileread.com/wiki/Kindle4NTHacking#Jailbreak
2) install USBNetwork: http://wiki.mobileread.com/wiki/Kindle4NTHacking#SSH
3) install KindleVNC viewer: http://www.mobileread.com/forums/showthread.php?t=150434
4) now you can connect to your Kindle (the root password doesn't exist, you can type anything) by doing 
CODE: SELECT ALL
sudo ifconfig usb0 192.168.15.2
ssh root@192.168.15.244

5) start the vnc viewer with
CODE: SELECT ALL
/mnt/us/kindlevncviewer/kvncviewer.sh 192.168.15.2:0 &


6) to autostart the Kindle's viewer once the Pi boots up, link to this script (you need to have sshpass and x11vnc installed!):
CODE: SELECT ALL
sudo ifconfig usb0 192.168.15.2
sudo x11vnc -scale 800x600 -display :0 &
sleep 8
sshpass -p asdf ssh root@192.168.15.244 /mnt/us/kindlevncviewer/kvncviewer.sh 192.168.15.2:0 &

with
CODE: SELECT ALL
[Desktop Entry]
Type=Application
Exec=/home/pi/kindlestart.sh

from ~/.config/autostart/kindlestart.desktop (create the folder if it doesn't exist).

Happy hacking!

taken from - http://www.raspberrypi.org/phpBB3/viewtopic.php?f=41&t=62139

Amazon

Donate

Donate Towards More Raspberry PI's for Projects