Basic Installation

This section covers some key steps to get you started.

Prerequisites

There are some software components that need to be installed prior to starting.

  1. pattoo only runs on Python 3.6 or higher

Let’s install the software.

Installation

Follow these steps.

  1. Install git on your system.

  2. Select and create the parent directory in which you want to install pattoo-agent-bacnet.

    $ mkdir -p /installation/parent/directory
    $ cd /installation/parent/directory
    
  3. Clone the repository to the parent directory using the git clone command. You can also choose to downloading and unzip the file in the parent directory. The repository can be found at: https://github.com/PalisadoesFoundation/pattoo-agent-bacnet.

Note The repository should not be cloned to a directory with /home in its path

$ cd /installation/parent/directory
$ git clone https://github.com/PalisadoesFoundation/pattoo-agent-bacnet.git
  1. Enter the /installation/parent/directory/pattoo-agent-bacnet directory with the pattoo-agent-bacnet files.

  2. Install the below packages from the pip_requirements document in the pattoo-agent-bacnet root directory for a seamless installation using the

    $ pip3 install --user PattooShared
    $ pip3 install --user virtualenv
    
  3. Use the Configuration Guide to create a working configuration.

  4. Follow the configuration steps for each daemon as explained in the Agent Documentation.

Running the installation

Run the code block below to install the BACnet agent

$ sudo setup/install.py install all

Stopping, Starting and Restarting daemons

By default, the installation starts the daemons, and restarts them if they are already running, however, if you desire to start, stop or restart the system daemon for the BACnet agent after the installation the following code blocks should assist:

Starting daemon
$ sudo systemctl start pattoo_agent_bacnetipd.service
Stopping daemon
$ sudo systemctl stop pattoo_agent_bacnetipd.service
Restarting daemon
$ sudo systemctl restart pattoo_agent_bacnetipd.service

Modifying configuration files

Navigate to the /etc/pattoo directory to modify the pattoo_agent_bacnetipd.yaml configuration file for the BACnet agent using your desired text editor, with the code block below:

$ cd /etc/pattoo