This bot is a pre step to build a smart city, where connected cars communicate with parking positions using the Web of Needs technology.
In order to work properly it is needed to implement a client software. Until there is a connected car standard, every provider can implement solutions based on there ecosystem and software stack.
The Bot is a Spring Boot Application.
- Openjdk 8 - the method described here does not work with the Oracle 8 JDK!
- Maven framework set up
cd bot-skeleton
export WON_NODE_URI="https://hackathonnode.matchat.org/won"
mvn clean package
java -jar target/bot.jar
Now go to What's new to find your bot, connect and create an atom to see the bot in action.
- Create a run configuration for the class
won.bot.skeleton.SkeletonBotApp
- Add the environment variables
WON_NODE_URI
pointing to your node uri (e.g.https://hackathonnode.matchat.org/won
without quotes)
to your run configuration.
- Run your configuration
If you get a message indicating your keysize is restricted on startup (JCE unlimited strength encryption policy is not enabled, WoN applications will not work. Please consult the setup guide.
), refer to Enabling Unlimited Strength Jurisdiction Policy to increase the allowed key size.
WON_KEYSTORE_DIR
path to folder wherebot-keys.jks
andowner-trusted-certs.jks
are stored (needs write access and folder must exist)
Once the skeleton bot is running, you can use it as a base for implementing your own application.
- Download or clone this repository
- Add config files
Please refer to the general Bot Readme for more information on Web of Needs Bot applications.
- this bot uses EasyCLI for chat command handling