4

I want to use the Pi for standalone home automation.

As such, the Pi must boot up automatically and run a Java program.

I am running Debian Wheezy hardfloat.

I have little Linux experience, what is the best way of doing this?

Also, how safe is the sd card if the power supply fails?

What is the best way to shutdown safely?

kitcope
  • 57
  • 1
  • 2
  • 8
    Your last question is answered here. Also, your question seems to be composed of three different problems - how to run java application on RaspberryPi (answered here), how to run application at bootup (answered here) and if it's safe for SD card to turn device off. Am I missing something? – Krzysztof Adamski Oct 15 '12 at 10:58

3 Answers3

3

Z-Wave looks like a good choice now, and there are many ways to use it with Pi. Everyone is building some Z-Wave enabled device so you can now interface almost anything in your home. It's something like an enhanced wireless version of good old X10. Protocol can be found here, devices can be Pi controlled via USB sticks, and you can make your own devices if you need to (modules can be bought for example on Digikey, but chip is not open design).

Here are some Raspberry Pi examples:

X10 upgrade project example is here.

avra
  • 1,273
  • 8
  • 9
  • Got another link for the protocol available? :) Your link is broken. – Dave Feb 08 '13 at 15:14
  • It seams that site is dead for some time. You can browse it's old version here: http://web.archive.org/web/20120716054304/http://www.digiwave.dk/en/programming/an-introduction-to-the-z-wave-protocol. Links with more Z-Wave info: http://code.google.com/p/open-zwave, https://github.com/ekarak/Thrift4OZW, http://razberry.zwave.me/hardware.php – avra Feb 12 '13 at 11:17
0

I am working exactly on that ! Had the same question, could not find a good answer, so I made my own Java API (called Hans Java API), which makes it very use for a Java application to implement home automation using FS20, HMS and FHT based devices - you can see more details here: www.paulo-lima.org/hans

0

To run an application at boot-time, you can use crontab. Add a line like:

@reboot pi java /home/pi/myapp.jar

This will run the command java /home/pi/myapp.jar at reboot as the user pi.

sdenton4
  • 371
  • 2
  • 4