dccmanual4
=Using MultiTRX with Device Control Center 4.0=
Introduction and overview
Device Control Center is an open source application made with Python to demonstrate the capabilities of the MultiTRX. It is not part of the MultiTRX-product.
Installation
Compared to DCC 3, the software is now split into a daemon and a web part (written in PHP). The web part must be hosted by a web server (eg. apache).
You will need the following software for the DCC daemon to work:
- Python 2.x (2.7 recommended)
- Matplotlib (used for making temperature plots in DCC)
- NumPy
- pySerial
For all platforms, start by unzipping the DCC-software from skagmo.com and place it on a suitable location.
Linux
Luckily for the Linux users out there, DCC is a lot easier to install and use in Linux. Simply open a terminal and use a packet manager to install the necessary software:
- //sudo aptitude install python2.7//
- //sudo aptitude install python-matplotlib//
- //sudo aptitude install python-numpy//
- //sudo aptitude install python-serial//
Windows
In Windows, you'll have to work around the simplicity of a packet management system. Start by downloading and installing [[http://www.python.org/ftp/python/2.7/python-2.7.msi|Python.]] Next, install Matplotlib by [[http://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.0.1/matplotlib-1.0.1.win32-py2.7.exe/download|downloading]] and following the instructions. [[http://sourceforge.net/projects/numpy/files/NumPy/1.6.1/numpy-1.6.1-win32-superpack-python2.7.exe/download|Download]] a similar installer for NumPy and install it. At last, install [[http://sourceforge.net/projects/pyserial/files/pyserial/2.5/pyserial-2.5.win32.exe/download|pySerial]].
Configuration and use
Windows-specific preparations
You will need an editor that can do UTF-8-encoding. Download an editor like textpad, which can be found [[http://download.textpad.com/download/v54/txpeng542.exe|here.]] To edit UTF-8-encoded files, go to //file// -> //open//, then make sure //Encoding:// is set to //UTF-8// before opening a file.
Configuration
Daemon
Open the file called config.txt in the DCC installation directory. This file describes all settings and devices in your system. Most of the settings here are self explaning, so just modify and copy devices from the example file included in the download.
Web-interface
Edit the index.php-file or simply copy/paste from this index-file to integrate DCC in your already existing home page.
Start the DCC daemon
In Windows, simply double click //dccd.py//, and a window should open. If it disappears instantly there is something wrong. Start the program from the command-prompt to see the error message. In Linux, type //python dccd.py// when in the DCC-directory to start the application.
Follow new posts
Get one email when I publish a new post. Unsubscribe any time.
Your address is stored by Buttondown and only used for these emails. You'll get a confirmation email first. Or follow via RSS
Comments