suppliers:hvac.io:vigilia:installation
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
suppliers:hvac.io:vigilia:installation [2015/09/14 14:36] – [Step 1: Connect to a Vigilia server] frozenlock | suppliers:hvac.io:vigilia:installation [2020/10/02 21:57] – old revision restored (2020/10/01 15:18) 192.151.145.178 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Vigilia Installation ====== | + | ====== Vigilia |
- | //**For self-hosted version only.** To use the HVAC.IO servers instead, | + | //**Requires a Viglia Server licence**. To use the HVAC.IO servers instead, jump to [[.:recording]].// |
The installation is separated in 3 main components: | The installation is separated in 3 main components: | ||
Line 7: | Line 7: | ||
* [[# | * [[# | ||
* [[#Vigilia Server]] | * [[#Vigilia Server]] | ||
- | * [[# | + | * [[.:recording#client_side_loggers|Loggers]] |
They can all be installed on the same machine, or on separate servers and devices, depending on your network architecture. | They can all be installed on the same machine, or on separate servers and devices, depending on your network architecture. | ||
Line 14: | Line 14: | ||
Once this is done, you might want to take a look at [[#Adding Vigilia as a Service]] | Once this is done, you might want to take a look at [[#Adding Vigilia as a Service]] | ||
===== Database ===== | ===== Database ===== | ||
- | For the time being, Vigilia only supports | + | For the time being, Vigilia only supports TokuMX. |
It is a fork of MongoDB, which features mind boggling increase in performance and reduction in the database size. | It is a fork of MongoDB, which features mind boggling increase in performance and reduction in the database size. | ||
(The choice was not made lightly; we tried many databases before settling with this one.) | (The choice was not made lightly; we tried many databases before settling with this one.) | ||
Line 25: | Line 25: | ||
- | Download and install by following the instructions on this [[https:// | + | Download and install by following the instructions on this [[https:// |
Once the database is installed, make sure everything works as intended by running the command | Once the database is installed, make sure everything works as intended by running the command | ||
Line 77: | Line 77: | ||
Now that you have the administrator rights, you should load the license files. | Now that you have the administrator rights, you should load the license files. | ||
- | Go to **Administration** | + | On the upper right, you should see your username. Click on it and go to **Server |
You should see something similar to this: | You should see something similar to this: | ||
{{: | {{: | ||
- | |||
- | |||
- | === Create an Organization === | ||
- | |||
- | Organizations can have multiple members and contain many projects. | ||
- | A member will see all the organization projects. | ||
- | |||
- | Most will not need more than a single organization, | ||
- | |||
- | In the administration page, click on " | ||
- | Click on the " | ||
- | |||
- | Once the organization is created, click on its link. | ||
- | |||
- | {{: | ||
- | |||
- | |||
- | === Create a Project === | ||
- | |||
- | Projects are what contains the recorded data. | ||
- | Inside a project, **all BACnet device IDs must be unique**. | ||
- | |||
- | In your organization page, click on " | ||
- | |||
- | Next, click on the configuration button. | ||
- | |||
- | {{: | ||
- | |||
- | This will bring you to a page with the **project-id** and the **logger-key**. | ||
- | You will need both to configure the logger(s). | ||
- | |||
=== Configure Service (optional) === | === Configure Service (optional) === | ||
- | If you want the application to start automatically when your server boot up, you should make sure to [[#Adding Vigilia as a Service|create a service]], or configure your web server (like Tomcat) to use vigilia-server.jar. | + | If you want the application to start automatically when your server boot up, you should make sure to [[#Adding Vigilia as a Service|create a service]] |
- | + | ||
- | ===== Loggers ===== | + | |
- | + | ||
- | Loggers are software able to scan a BACnet network and send the data back to a Vigilia server. | + | |
- | + | ||
- | The only publicly available logger is Wacnet (min version 1.8). | + | |
- | + | ||
- | To start logging a network, **begin by running Wacnet**. | + | |
- | Then go and configure a few things in the **[[http:// | + | |
- | + | ||
- | ==== Step 1: Connect to a Vigilia server ==== | + | |
- | + | ||
- | The first thing to configure is a Vigilia API URL. This will tell Wacnet where it should send its data. | + | |
- | + | ||
- | It should have the following form: | + | |
- | + | ||
- | < | + | |
- | http://< | + | |
- | </ | + | |
- | + | ||
- | If you are using a port other than 80 or 443, you need to include it into the URL: | + | |
- | + | ||
- | < | + | |
- | http://< | + | |
- | </ | + | |
- | (Where 47900 is your port number) | + | |
- | + | ||
- | Make sure Wacnet can see the provided URL! | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | {{: | + | |
- | + | ||
- | ==== Step 2: Project credentials ==== | + | |
- | + | ||
- | You have to provide a **project ID** and a **logging key/ | + | |
- | Both are available through the project configurations on the Vigilia server. | + | |
- | + | ||
- | Here's an example : | + | |
- | * Project-id : 5371147be4b0222b740851a2 | + | |
- | * Logging key: asdi34h5ha | + | |
- | + | ||
- | Make sure Wacnet has access to the project : | + | |
- | + | ||
- | {{: | + | |
- | + | ||
- | + | ||
- | ==== Start Logging ==== | + | |
- | When Wacnet starts, it searches for Vigilia configurations. If it finds some, **it will start logging automatically**. | + | === Good to Go === |
- | To start the logging without restarting Wacnet, expand | + | Once your Vigilia server is up and running, you can follow |
- | {{: | ||
===== Adding Vigilia as a Service ===== | ===== Adding Vigilia as a Service ===== | ||
Line 184: | Line 103: | ||
- | < | + | < |
description " | description " | ||
Line 219: | Line 138: | ||
To get more info about Upstart and services, see http:// | To get more info about Upstart and services, see http:// | ||
+ | |||
+ | |||
+ | ===== Troubleshooting ===== | ||
+ | |||
+ | ==== Database Crash ==== | ||
+ | |||
+ | If you database is becoming quite large (thousands of files in the dbpath), it's possible that your OS is going to refuse opening that much files simultaneously. | ||
+ | |||
+ | In Linux, you can change the number of allowed files by editing the file ''/ | ||
+ | |||
+ | < | ||
+ | tokumx soft nofile 1000000 | ||
+ | tokumx hard nofile 1000000 | ||
+ | </ | ||
+ | |||
suppliers/hvac.io/vigilia/installation.txt · Last modified: 2020/10/04 01:53 by 173.249.2.13