This code was primarily written by Ahmad Mojiri, for the HILTCRC project HILT.RP2.001 "Green hydrogen supply modelling for industry".
Add instructions here.
To install the Dash-based GUI for this project on a new server or virtual machine, using the following steps:
-
Install needed system packages:
sudo apt install htop byobu apache2 libapache2-mod-wsgi-py3 git man minizinc python3-pip
-
Install needed python packages (for the root user)
sudo pip3 install dash pandas
-
Install NREL's System Advisor Model, version 2021-12-01
wget -Osam.run https://sam.nrel.gov/download/version-2021-12-01/65-sam-2020-11-29-for-linux/file.html sudo ./sam.run
This will install the files in
/opt/SAM/2020-11-29
(there seems to be a problem with the version numbers here!) -
Install Minizinc from the official packages (Ubuntu's version may be missing some features)
-
Edit the file
apache2/indust.re.conf
to indicate the locations where the repository is located on your machine (we used/srv/indust.re
) -
Create a symlink to the above file, then enable the site, via
cd /etc/apache/sites-available sudo ln -s /path/to/apache2/indust.re.conf sudo a2ensite indust.re
-
Restart apache,
systemctl restart apache2
-
Open the (ServerAlias as listed in
apache2/indust.re.conf
) site in your browser. -
Chek
apache2/indust.re.conf
for the location of the error log files. In case of the presence of{APACHE_LOG_DIR}
in the path to error log file, the location is configured using APACHE_LOG_DIR environment variable, which is defined in /etc/apache2/envvars. -
Once you find the full path to the error log file, use
tail -f
to monitor the errors generated by apache: e.g.sudo tail -f /var/log/apache2$SUFFIX/indust.re-error.log
.