An IOTICS connector to create digital twins of dad's jokes' generators
Build with:
mvn package
The jar file is created in target/
and the dependencies copied in target/lib
.
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
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.