An interpreter handling measurement program definitions (mpd) written in clojure.
Table of Contents
- java (8 or 11)
- redis (with activated keyspace notification)
All of the mp
state is kept in a redis database.
Since version 0.3.0 cmp relies on
Keyspace Notifications.
Therefore it is necassary to replace in /etc/redis/redis.conf
:
notify-keyspace-events ""
by
notify-keyspace-events AK
and restart the service:
# restart
$ sudo systemctl restart redis.service
# check status
$ sudo systemctl status redis.service
Download the latest version from here.
Set the environment variables (see next section). Start cmp
with:
java -jar cmp-x.y.z-standalone.jar
var |
Description | Example |
---|---|---|
CMP_BUILD_ON_START |
mpds to build on server start | export CMP_BUILD_ON_START="ppc-gas_dosing" export CMP_BUILD_ON_START="se3-servo,se3-cmp_valves,se3-cmp_state" |
CMP_DEVHUB_URL |
url for device requests (Action: TCP, VXI11, MODBUS EXECUTE) |
export CMP_DEVHUB_URL="http://localhost:9009" export CMP_DEVHUB_URL="http://a73434:55555" |
CMP_LT_SRV |
CouchDB server | export CMP_LT_SRV="127.0.0.1" export CMP_LT_SRV="a73434" |
sudo apt install leiningen
zypper ar https://download.opensuse.org/repositories/devel:/languages:/clojure/openSUSE_Leap_15.1/devel:languages:clojure.repo
zypper ref devel_languages_clojure
zypper in leiningen
git clone https://github.com/wactbprot/cmp.git
cd cmp
lein deps
lein repl
- RedisDesktopManager
sudo snap install redis-desktop-manager
- redis-commander
$ npm install -g redis-commander
## --> http://localhost:8081/