OCPP-1.6-CP-Simulator
OCPP-1.6-CP-Simulator copied to clipboard
Mac book cannot run .bat
I find it difficult to run .bat files on mac. What could be an approach to bash
Create run.sh with the following #!/bin/bash ./tpp.sh read -p "Enter Endpoint: " endp read -p "Enter Charge Point ID: " cp clear node gir-ocppjs.js start_cp "$endp" "$cp"
Then create a tpp.sh in the same folder #!/bin/bash npm install
make both executable chmod +x install.sh chmod +x run.sh
Now type ./run.sh
and it should run