-
Notifications
You must be signed in to change notification settings - Fork 6
Windows installation
velserver is written in perl and developped on Linux. But it cal also run on Windows.
I used "Strawberry Perl 5.26.1.1 (64bit)" downloaded from http://strawberryperl.com/. Just install it with default options.
Go to https://github.com/StefCoene/velserver and download the zip file. Direct link: https://github.com/StefCoene/velserver/archive/master.zip).
Extract it to C:\velserver so you have the folder bin as C:\velserver\bin.
Change all occurences of "/home/velbus/velserver" to "C:/velserver" in bin/logger.pl, bin/commands.pl and bin/webserver.pl:
use lib C:/velserver/lib" ;
$global{Config}{BaseDir} = "C:/velserver" ;
If you don't have a mysql server, you can use an internal database to store the information. To do this, rename etc/mysql.cfg to etc/mysql.cfg.disabled.
See also https://github.com/StefCoene/velserver/wiki/TCP-server-for-Velbus
Open config file etc/vebus.cfg and change the HOST and PORT variables to the HOST and PORT where your TCP server for Velbus is running.
As test, run webserver.pl and logger.pl in 2 command prompts. So open a Command Prompt and run 'perl C:/velserver/bin/logger.pl' and in an other Command Prompt 'C:/velserver/bin/logger.pl'.
Make sure the scripts don't give an error. You can abort the scripts.
Download nssm from http://nssm.cc/download.
Once downloaded and extracted, open a Command Prompt, go to the extraced directory and execute 'nssm install.
Create a new services with these settings:
- Path = C:/Strawberry/perl/bin/perl
- Arguments = C:/velserver/bin/logger.pl
- Service name = Velserver_logger
And a second:
- Path = C:/Strawberry/perl/bin/perl
- Arguments = C:/velserver/bin/webserver.pl
- Service name = Velserver_webserver
Go to the services control panel and start the 2 new services.
Voila, done, you should be able to go to http://localhost/ and start using velserver.