Node based Emberprovider with REST API
docker pull olzzon/rest-ember-gateway:develop
Run as Ember Client:
sudo docker run --mount source=rest-ember-vol,target=/opt/rest-ember-gateway/storage -e emberIp="192.168.9.9" -e emberPort="9000" -e loggerIp='0.0.0.0' -e loggerPort=9300 -e loggerFileLevel='error' --network="host" --restart always olzzon/rest-ember-gateway:develop
Run as Ember Server: (copy your treefile.json to /opt/rest-ember-gateway)
sudo docker run -v /opt/rest-ember-gateway:/opt/rest-ember-gateway/storage -e emberFile="vsm.json" -e emberPort="9000" -e loggerIp='0.0.0.0' -e loggerPort=9300 -e loggerFileLevel='error' --network="host" olzzon/rest-ember-gateway:develop
Running Docker with Elastic Search: Set env vars: loggerIp=xx.xx.xx.xx and loggerPort=xxxx and loggerLevel='info'
if you wish to log to logfile instead of kibana: Set env var: -e loggerFileLevel='info' (no kibana args will default to: 0.0.0.0:9200 logger level='info')
yarn
yarn start --emberIp="192.168.9.9" --emperPort="9000"
Client mode:
--emberIP="192.168.2.2"
If ip address are added the program will run as client on another machines Ember Server
The full embertree and storage of this is available if you run with this argument:
--cachedClient
the EmberTree from the equipment will be store in "storage/embertree.json"
The program will run as an emberServer and this argument will define the emberTree file:
--fileName="your-ember-tree.json"
if no fileName are added it will search for storage/embertree.json
To create a test EmberTree run:
yarn ts-node createMocks.ts
Get the full ember tree and state: (This is only avilable in --cachedClient mode)
/state GET full
/state GET path="R3LAYVRX4/Ex/GUI/FaderSlot_1/FaderPosition"
/setvalue POST path="R3LAYVRX4/Ex/GUI/FaderSlot_1/FaderPosition" value=12
/setmatrix POST path="0.1.0" src=2 dest=1
```