The HMI for the Mi5 Briefcase
- Download and install Node.js (tested with v0.10.0 - see in the HMI SVN repository hmi/programs for installer)
- Download an clone the repository. Make sure you have the briefcase-branche
- In a command line window, browse in the repository and execute
npm install// this installs the required node modules for the HMInpm intsall forever -g// this installs the forever module globally- Run
HMI_Start.cmdorHMI_Forever.cmd
Note: The forever module and file is kind of a dirty hack. Whenever the HMI crashes,
it automatically gets restarted.
Note: If you use the HMI_Forever.cmd and kill it, make sure you also end the node.exe
process in the task manager. The process keeps running (thanks to forever),
and then can lead to a PORT conflict, when restarting.
You can also run the HMI using the node command line. Run then:
- node app.js (this will use the live server configuration and Port 80)
It is possible to use different server confiugrations and ports from the command line. For example:
-
node app.js -server=hmitest -port=3000
-
node app.js -server=hmitest (this will use Port 80)
Last Update: 2015-03-04 Thomas Frei