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?

asked Oct 15, 2012 at 10:55
1
  • 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? Commented Oct 15, 2012 at 10:58

3 Answers 3

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 .

answered Nov 22, 2012 at 14:01
2
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

answered Jan 21, 2014 at 18:05
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.

answered Jan 22, 2014 at 0:49

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.