This is a sample code to interface with GridAPPS-D. Since this code is executed outside of the docker container, it requires gridappsd-python to be installed in the local machine. Please see:
https://github.com/GRIDAPPSD/gridappsd-python
The following steps will run the two sample code inside the directory.
- Clone the EGoT-GridAPPS-D repository
git clone https://github.com/shpoudel/EGoT-GridAPPS-D cd EGoT-GridAPPS-D
- Once inside the directory invoke any one of the following. The first one uses python command directly and the sample_class.py has a class as a callback whereas the second one uses a simple shell script with first argument as feeder node number and simulation id as second argument.
python3 sample_class.py feeder_mrid simulation_id OR ./run.sh 123 6567788