rhouse | Home Automation using Ruby
kandi X-RAY | rhouse Summary
kandi X-RAY | rhouse Summary
Rhouse allows you to enhance your LinuxMCE home automation system using ruby. The gem builds on top of LinuxMCE( ) and provides for taping into the it’s c++ core using ruby. Using this gem, you will be able to intercept various device events, such as lights, Tv, sensors… and take necessary action using ruby. It packs a light web service component that allows you to control devices in your home from from anywhere around the world….
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Connect to IRC server
- Wait to receive events
- Applies the log file .
- return array of albums
- Returns a list of commands for this template .
- return array of files
- Used internally to log a SQL server .
- Checks if the album matches the album information
- Find a command by name
- Find a command by name
rhouse Key Features
rhouse Examples and Code Snippets
Community Discussions
Trending Discussions on Internet of Things (IoT)
QUESTION
I have js files Dashboard and Adverts. I managed to get Dashboard to list the information in one json file (advertisers), but when clicking on an advertiser I want it to navigate to a separate page that will display some data (Say title and text) from the second json file (productadverts). I can't get it to work. Below is the code for the Dashboard and next for Adverts. Then the json files
...ANSWER
Answered 2020-May-17 at 23:55The new object to get params in React Navigation 5 is:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install rhouse
Install LinuxMCE - http://wiki.linuxmce.org/index.php/LinuxMCE-0810_alpha2
Make sure you have all the latest updates
> sudo apt-get update
> sudo apt-get dist-upgrade
In order to intercept device events, you will need to register a virtual device with the LinuxMCE core. This device will be the connecting point with the Rhouse gem to intercept the events and make them available to ruby.
Setting up the event interceptor device
From a web browser login and enter the linuxMCE admin console http://my_mce_box/lmce-admin/index.php
From the green menu bar choose Advanced → Configuration → Devices
On the tree on the left - select CORE
Click on Create Child Device
Set Description to 'Event Interceptor'
Click 'Pick device template'
Select Device Category 'Logic Handler' (id=142)
Select Device Template as 'Generic #1' (id=1725)
Click on 'Pick Device Template' button
You should now have a new device created note the device id 'Device Info #xxx' xxx is the ID
Click the 'View' button next to device template
In Command Line enter rh_interceptor Will revisit this later but this is going to be the rh_interceptor exec installed by Rhouse
Install Beanstalkd (http://xph.us/software/beanstalkd/)
On my installation I have configured beanstalkd to be automatically launched upon OS start. The daemon is setup using port 7777. I have provided my lame init.d script in scripts/beanstalk in the gem.
You will need to configure your ruby env on that box. It does come with ruby (1.8.7 ) installed but on my install I have updated rubygems to 1.3.1. sudo gem install derailed-rhouse. From the steps above we now need to tell linuxMCE where to find the newly installed rh_interceptor ruby script. * ssh into you linuxMCE box * cd /usr/pluto/bin * Create a link as root - ln -s /usr/bin/rh_interceptor This will tell linuxMCE to launch the interceptor with the correct device configured in setup with the correct id xxx. * Rhouse expects the environment variable 'RH_ENV' to be set. Edit your .bashrc script and add the following line: * export RH_ENV=production This will setup the Rhouse environment to production in order to connect to the right database and correct configuration on your install box. * Restart linuxMCE * Either from a shell or from the pluto admin console * Wizard → Restart → Reboot. Upon successfull restart you should 'hopefully' see the rh_interceptor as a running process. If not take a look at the pluto log file in /var/log/pluto/pluto.log and see if there was any errors launching the rh_interceptor script.
sudo gem install derailed-rhouse
> ps -elf | grep rh
/usr/bin/ruby1.8 /usr/pluto/bin/rh_interceptor -d 35 -r localhost -l /var/log/pluto/35_rh_interceptor.log
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page