NubeIO / rubix-bacnet-server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Startings of bash install

NubeDev opened this issue · comments

wget https://github.com/NubeDev/bacnet-flask/archive/v1.1.1.zip && unzip v1.1.1.zip && rm v1.1.1.zip && cd bacnet-flask-1.1.1
sudo apt-get install python3-venv -y && python3 -m venv venv && source venv/bin/activate
pip install --upgrade pip && pip install -r requirements.txt && pip install -r requirements.txt
# rename the dir
mv $PWD/bacnet-flask-1.1.1/ $PWD/bacnet-flask
# update ip and device ID, use the device ip for the device ID
cp $PWD/settings/config.example.ini  $PWD/settings/config.ini
ip addr | grep eth0 | grep inet
nano settings/config.ini
# test the bacnet stack starts
python run.py
# install the service
sudo cp systemd/nubeio-bacnet-server.service /etc/systemd/system/ && sudo systemctl daemon-reload && sudo systemctl enable nubeio-bacnet-server.service && sudo journalctl -f -u nubeio-bacnet-server.service
git clone --depth 1 https://github.com/NubeDev/bacnet-flask
cd bacnet-flask/
sudo apt-get install python3-venv -y && python3 -m venv venv && source venv/bin/activate
pip install --upgrade pip && pip install -r requirements.txt && pip install -r requirements.txt
# update ip and device ID, use the device ip for the device ID
cp $PWD/settings/config.example.ini  $PWD/settings/config.ini
ip addr | grep eth0 | grep inet
nano settings/config.ini
# test the bacnet stack starts
python run.py
# install the service
sudo cp systemd/nubeio-bacnet-server.service /etc/systemd/system/ && sudo systemctl daemon-reload && sudo systemctl enable nubeio-bacnet-server.service && sudo journalctl -f -u nubeio-bacnet-server.service
# check its running
sudo systemctl restart nubeio-bacnet-server.service
sudo journalctl -f -u nubeio-bacnet-server.service