Ago control install debian wheezy

From ago control wiki
(Difference between revisions)
Jump to: navigation, search
(start / stop / autostart services)
(start / stop / autostart services)
Line 73: Line 73:
 
* agozwave.service
 
* agozwave.service
  
 +
 +
== Final steps ==
 +
If you do not have additional hardware like Z-Wave or 1-Wire you can start the '''ago simulator''' to simulate some devices. You need to check it out from SVN.
 +
apt-get install subversion
 +
cd /usr/src
 +
svn co http://svn.agocontrol.com/svn/ agocontrol
 +
 +
Start the simulator:
 +
python /usr/src/agocontrol/agocontrol/devices/agosimulator.py
 +
 +
=== Access the web interface ===
 +
http://127.0.0.1:8000/
 +
 +
'''Hint:''' You may change "127.0.0.1" to your hostname or ip-address.
 +
 +
 +
systemctl start agoevent.service
  
 
== systemd Service HowTo ==
 
== systemd Service HowTo ==

Revision as of 20:59, 15 November 2012

Contents

ago control Install Debian Wheezy

Please mind we use systemd.

Installation of ago control packages

Add Sources

echo "deb http://mirror.at.agocontrol.com/debian wheezy main" >> /etc/apt/sources.list

Install ago control

apt-get update
apt-get install agocontrol agocontrol-admin

Optional packages for hardware and extra feature support:

  • agocontrol-cloud - ago Cloud automation system suport on cloud.agocontrol.com
  • agocontrol-owfs - Device for 1-Wire Hardware
  • agocontrol-zwave - Device for Z-Wave Hardware
  • agocontrol-meloware - Device for Meloware iPhone App


Configuring qpidd at installation dialog

Please enter the password for the Qpid daemon administrator. Administrator password:

type any password you want

edit config file (optional)

The config file is located here:

/etc/opt/agocontrol/config.ini

If you want to use udev rules for devices change devices to this:

[zwave]
device=/dev/usbzwave

[owfs]
device=/dev/usbowfs

add udev rules (optional)

echo '# OWFS 1 Wire USB Adapter LinkUSBi
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct} =="6001", SYMLINK+="usbowfs", RUN+="/bin/systemctl restart agoowfs.service"

# Vera Z-Wave USB Stick - Cygnal Integrated Products, Inc.
SUBSYSTEMS=="usb", ATTRS{idVendor}=="10c4", ATTRS{idProduct} =="ea60", SYMLINK+="usbzwave", RUN+="/bin/systemctl restart agozwave.service"'> /etc/udev/rules.d/99-agocontrol.rule

start / stop / autostart services

Enable autostart for services at boot up Configue service autostart

systemctl enable agoresolver.service
systemctl enable agoadmin.service
systemctl enable agotimer.service
systemctl enable agoscenario.service
systemctl enable agoevent.service

Optional Devices

systemctl enable agozwave.service
systemctl enable agoowfs.service

Please mind to reboot for testing

reboot

available possible services

  • agoresolver.service
  • agotimer.service
  • agoscenario.service
  • agoevent.service
  • agoowfs.service
  • agozwave.service


Final steps

If you do not have additional hardware like Z-Wave or 1-Wire you can start the ago simulator to simulate some devices. You need to check it out from SVN.

apt-get install subversion
cd /usr/src
svn co http://svn.agocontrol.com/svn/ agocontrol

Start the simulator:

python /usr/src/agocontrol/agocontrol/devices/agosimulator.py

Access the web interface

http://127.0.0.1:8000/

Hint: You may change "127.0.0.1" to your hostname or ip-address.


systemctl start agoevent.service

systemd Service HowTo

start services
systemctl start agoresolver.service

stop services

systemctl stop agoresolver.service

restart services

systemctl restart agoresolver.service

enable autostart services

systemctl enable agoresolver.service

check if service is enabled

systemctl is-enabled agoresolver.service

list all systemd services with status

systemctl list-units
Personal tools