All things related to HVAC

User Tools

Site Tools


Graphivac Server Installation

Graphivac server runs on Java, meaning it can work on Linux, Windows and Mac.


Make sure you have Java on your machine. (preferably 8 or higher)

To do so, open a command window and type

 java -version 

You should see the current Java installed, if any:

Graphivac Server

The entire Graphivac server is contained within a single .jar file.

This makes it surprisingly easy to update: just download the latest compiled version and overwrite the .jar file. (Your license and configurations are stored separately and will continue to work as expected.)

The application can be started with the following command:

 java -jar graphivac-server.jar <port number> 

(where <port number> is the port you want to use.)

After a few seconds, the server should be up and running. You can now take your browser and go to:

 http://localhost:<port number> 

NB: When downloading new versions, you might need to rename the java file.

Adding Graphivac as a Service

You might want to make sure the Graphivac server always starts as soon as the server boots, or that it restores itself in case of a crash.

For this, you'll have to add Graphivac as a service.

Start by creating a file named “graphivac.conf”.

Open it and paste the following:

description "Graphivac Server"
author "Christian Fortin, HVAC.IO"
start on runlevel [2345]
stop on runlevel [!2345]
#Respawn the process if it crashes
#If it respawns more than 10 times in 60 seconds stop
respawn limit 10 60
expect fork
#replace PATH-TO-THE-JAR with something like /home/hvacio/graphivac
#replace PORT with the desired port number
    java -jar graphivac-server.jar PORT &
end script

Now, once you replaced PATH-TO-THE-JAR and PORT with their correct values, move the file to /etc/init:

sudo mv graphivac.conf /etc/init/graphivac.conf

That's it! Now reboot and Graphivac should start automatically.

To get more info about Upstart and services, see http://upstart.ubuntu.com/cookbook/.

suppliers/hvac.io/graphivac/installation.txt · Last modified: 2020/07/23 08:28 (external edit)