FastyBird IoT triggers node for triggers storage & automation services
This package is auto-updated.
Last update: 2021-09-22 12:27:41 UTC
Triggers node is a core microservice for managing & running automation logic and exposing it for clients.
FastyBird triggers node is an Apache2 licensed distributed microservice, developed in PHP with Nette framework.
NOTE: If you don't want to install it manually, try docker image
$ composer create-project --no-dev fastybird/triggers-node path/to/install $ cd path/to/install
Everything required will be then installed in the provided folder
This microservice has one console command.
$ vendor/bin/fb-console fb:node:server:start
This command is to start build in web server which is listening for incoming http api request messages from clients and is listening for new data from exchange bus from other microservices.
Docker image: fastybird/triggers-node
$ docker run -d -it --name triggers fastybird/triggers-node:latest
$ docker build --tag=triggers-node . $ docker run -d -it --name triggers-node triggers-node
This microservice is preconfigured for default connections, but your infrastructure could be different.
Configuration could be made via environment variables:
||RabbitMQ host address|
||RabbitMQ access port|
||MySQL server version|
||MySQL host address|
||MySQL access port|
||MySQL database name|
||HTTP server host address|
||HTTP server access port|
||Security token signature string|
NOTE: In case you are not using docker image or you are not able to configure environment variables, you could edit configuration file
This microservice is using database, and need some initial data to be inserted into it. This could be done via shell command:
$ vendor/bin/fb-console fb:initialize
This console command is interactive and will ask for all required information.
After this steps, microservice could be started with server command
Thank you for testing, reporting and contributing.
For release info check release page