Jump to content

Metropolis Microservices/RidgeRun Services/Engagement Analytics: Difference between revisions

Line 238: Line 238:
=== Using Standalone Application ===
=== Using Standalone Application ===


The display service can also be used outside of the docker container. You can install it by running the following command from the project directory:
The engagement analytics service can also be used outside of the docker container. You can install it by running the following command from the project directory:


<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
Line 247: Line 247:


<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
usage: display [-h] [--port PORT] [--host HOST] [--config_file CONFIG_FILE]
engagement-analytics --help
usage: engagement-analytics [-h] [--port PORT] [--host HOST] --config-file CONFIG_FILE [--retry]


options:
optional arguments:
   -h, --help            show this help message and exit
   -h, --help            show this help message and exit
   --port PORT          Port for server
   --port PORT          Port for server
   --host HOST          Server ip address
   --host HOST          Server ip address
   --config_file CONFIG_FILE
   --config-file CONFIG_FILE
                         JSON file with streams and heatmap configuration
                         Configuration JSON file
  --retry              Keep trying to start the server if it fails initially
</syntaxhighlight>
</syntaxhighlight>


To start the service in address 127.0.0.1 and port 5052 just run:
To start the service in address 127.0.0.1 and port 5053 just run:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
display-service
engagement-analytics
</syntaxhighlight>
</syntaxhighlight>


If you want to serve in a different port or address, use the '''--port''' and '''--host''' options.
If you want to serve in a different port or address, use the '''--port''' and '''--host''' options.


If you want to start with a configuration, you can use the '''--config_file''' argument to specify the path to your configuration.
If you want to start with a configuration, you can use the '''--config-file''' argument to specify the path to your configuration.


<noinclude>
<noinclude>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.