smartrics / dadsjokes-connector

and IOTICS connector to create digital twins of dad's jokes' generators

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dadsjokes-connector

An IOTICS connector to create digital twins of dad's jokes' generators

Build

Build with:

mvn package

The jar file is created in target/ and the dependencies copied in target/lib.

Run

Export the following environment variable with the appropriate values as documented in IOTICS Docs.

USER_SEED=<your user seed>
USER_KEYNAME=<your user key name>
AGENT_SEED=<this agent seed>
AGENT_KEYNAME=<this agent key name>
SPACE=<your space>.iotics.space
SHARE_PERIOD_SEC=<default 60s>

Copy the ffi library at lib/lib-iotics-id-sdk.so into the lib directory where all your dependencies are.

Use the following command line:

java -Djava.library.path=./lib -classpath "dadsjokes-1.0-SNAPSHOT.jar:lib/*" smartrics.iotics.connector.Main

Run as a service

Unpack the connector tarball in /opt/iotics/dadsjokes-connector with the following structure

/opt/iotics/dadsjokes-connector
| dadsjokes-1.0-SNAPSHOT.jar
| env
| run.sh
| env
| lib/

with lib/ containing all the dependencies.

Configure your environment variables in the env file. Copy bin/dadsjokes-connector.service into /etc/systemd/system/ and modify it accordingly.

About

and IOTICS connector to create digital twins of dad's jokes' generators

License:Apache License 2.0


Languages

Language:Java 97.7%Language:Shell 2.3%