Home Automation
|
19th Nov, 2013, 11:51 PM
Post: #1
|
|||
|
|||
Home Automation
Hello! I'm a bit new to Xbian and coding, but I'll try to make myself understood.
So I'm doing this project at school. I have a eGalax touch screen hooked up to my RPi. Via the GPIO of the Pi I have jumper cables hooked up to a relay board. I want to use the touch screen to control the relay board. So first off I flashed the RPi with Raspbian and made a simple Python script to make sure I could control the relay. Everything went just fine. So now I've been chasing for some kind of UI to be able to control the relay in Xbian(or XBMC overall) instead. I need a few things to be clear. Is Xbian running as superuser? Is there anyway to make it run as superuser? Is there any other way to access the GPIO without running as superuser? And the last question, is there anyone out there, who is able to make a simple addon to control the GPIO pins, or at least know how it could be made?! Thanks in advanced, Arvid |
|||
20th Nov, 2013, 12:04 AM
Post: #2
|
|||
|
|||
Re: Home Automation
When you say XBian root do you mean the user or XBMC?
I would take a look at @CurlyMo project: http://wiki.pilight.org/doku.php Not exactly what your after since it's aim is wireless, although it could be made to work in your situation. Please read rules and do a search before you post! | FAQs | How to post log file? | Can't find an answer? Contact us. |
|||
20th Nov, 2013, 02:41 AM
Post: #3
|
|||
|
|||
RE: Home Automation
(20th Nov, 2013 12:04 AM)f1vefour Wrote: When you say XBian root do you mean the user or XBMC?Thanks for reply! Uhm, root as if I were able to access the GPIO pins via an addon, does that help? Sorry for bad knowledge.. Thanks a lot for the link! At least it seems possible! (Hurray!) |
|||
20th Nov, 2013, 02:57 AM
Post: #4
|
|||
|
|||
RE: Home Automation
If you need root in an addon,
maybe you can do a wrapper script, call it from addon with sudo, and add the script in sudoers, it won't need to run xbmc in root. Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here |
|||
20th Nov, 2013, 05:23 AM
Post: #5
|
|||
|
|||
RE: Home Automation
(20th Nov, 2013 12:04 AM)f1vefour Wrote: When you say XBian root do you mean the user or XBMC?pilight does not only do wireless, but also wired devices like 1-wire sensors, relays and such. pilight - modular domotica solution
|
|||
20th Nov, 2013, 05:57 AM
Post: #6
|
|||
|
|||
Re: RE: Home Automation
(20th Nov, 2013 05:23 AM)CurlyMo Wrote:(20th Nov, 2013 12:04 AM)f1vefour Wrote: When you say XBian root do you mean the user or XBMC?pilight does not only do wireless, but also wired devices like 1-wire sensors, relays and such. I meant controlling the devices wirelessly. Please read rules and do a search before you post! | FAQs | How to post log file? | Can't find an answer? Contact us. |
|||
20th Nov, 2013, 06:29 AM
Post: #7
|
|||
|
|||
RE: Home Automation
Just like i said, you can do all that with pilight as it is able to control relay's and has an integrated webclient.
pilight - modular domotica solution
|
|||
20th Nov, 2013, 07:39 PM
Post: #8
|
|||
|
|||
RE: Home Automation
Also consider WebIOPI.
I am looking at this over Christmas break and hope to get some things working then. I already have some sensors working with it. Skywatch |
|||
20th Nov, 2013, 08:03 PM
Post: #9
|
|||
|
|||
RE: Home Automation
The difference is that it's not specialized in domotica which pilight is.
pilight - modular domotica solution
|
|||
20th Nov, 2013, 10:52 PM
Post: #10
|
|||
|
|||
RE: Home Automation
(20th Nov, 2013 02:57 AM)belese Wrote: If you need root in an addon,This seems like it could be working idea. I'll be looking for some plugin to modify, since I'm not capable of doing one from scratch(I think). (20th Nov, 2013 06:29 AM)CurlyMo Wrote: Just like i said, you can do all that with pilight as it is able to control relay's and has an integrated webclient.Pilight seems awesome, but does it have an addon so you could install it directly to XBIAN? Or do I have to build my own addon based on the webclient? (20th Nov, 2013 07:39 PM)Skywatch Wrote: Also consider WebIOPI. Seems to be quite the same thing as pilight. Also webbased. Do you control your relay with the PI, or do you use a WEBGUI running on a different computer? Thanks again for all your answers guys! |
|||
20th Nov, 2013, 11:48 PM
Post: #11
|
|||
|
|||
RE: Home Automation
First it's pilight not Pilight.
Check this thread for xbmc integration: http://www.pilight.org/Thread-My-setup-XBMC-event-based-lighting Installing into XBian can be done by using the pilight apt repo. WebIOPI is not the same as pilight. webIOPI controls basic hardware interfaces. pilight lets you also control hardware interfaces but also includes many protocols to decode various wired and wireless protocols. pilight also offers a JSON API so you can use various GUIs to control your devices. There are already people working on mobile phone apps, there is a cross-platform java GUI and just like webIOPI a integrated webserver / GUI. In pilight, the hardware interfaces, protocols, and clients (through the API) are fully modular. It's written in C so low-profile and fast. You can check http://wiki.pilight.org for a full description. pilight - modular domotica solution
|
|||
21st Nov, 2013, 03:36 AM
Post: #12
|
|||
|
|||
RE: Home Automation
This is not a problem - Prefix removed |
|||
28th Nov, 2013, 01:53 AM
Post: #13
|
|||
|
|||
RE: Home Automation
I have some 2.4GHz transceivers on order. Will pilight come with NRf24L01+ drivers or code installed ready to use?
Just curious as it's been a while since you started on this porject. Cheers Skywatch |
|||
28th Nov, 2013, 05:48 AM
Post: #14
|
|||
|
|||
RE: Home Automation
No, but hardware support is modular but easily created.
pilight - modular domotica solution
|
|||
5th Feb, 2014, 09:35 AM
Post: #15
|
|||
|
|||
RE: Home Automation
(20th Nov, 2013 11:48 PM)CurlyMo Wrote: First it's pilight not Pilight. So, I'm bringing up this old thread again, as I'm picking up the project. I've been looking at both pilight and webIOPI. WebIPOI has a terrible looking UI and poor cross-platform compatibility. So, I've decided to use pilight. Thanks for the link CurlyMo, but I'm looking for a UI. I want to be able to press a specific button to light a certain lamp. I guess I have to intergrate the UI into Xbian by myself, but maybe you could help me set it up so I can control the relayboard from the webUI? Thanks in advance |
|||
« Next Oldest | Next Newest »
|