Skip to content

A python/flash rest api backend for extracted data from Powerfactory 15.1.7

License

Notifications You must be signed in to change notification settings

pierpuccini/ems-api

Repository files navigation

description
How to install Ems-api and Ems-ui onto your windows machine

Installation & Usage

View Properly at

https://pierpuccini.gitbook.io/ems-api/

Pre requisites & Installation for Ems-api

Ems-api

Note: DigSilents Powerfactory can only be run on a Windows machine. If you happen to be on a Unix based system, there are various virtualization tools in order to get windows setup. In the Help section you'll find some helpful tips with debugging on your unix machine while running the service in Windows.

  • Windows 10
  • DigSilent 15.1.7 This can be checked by in the menu bar going to Help>About PowerFactory... And at the top you'll find the PowerFactory version.
  • Python 3.3.2 This can be checked this by running python in your terminal.
  • Pip and setuptools Note: Since python 3.3.2 is no longer suported, Pip and setuptools can no longer be downloaded by tradicional methods e.g. get-pip.py. In order to get pip and setup tools, please follow the steps from: https://stackoverflow.com/questions/56798617/how-to-install-pip-for-python-3-3-on-windows
  • For Flask and dependencies run:
pip install Flask Flask-Jsonpify Flask-RESTful

{% hint style="warning" %} If your INSTALLATION_DIRECTORY for PowerFactory is different than C:\Program Files (x86) please correct that path in resources>powerfactory.py on line 7. {% endhint %}

Run the app

In order to run the app, navigate via CMD to its installation directory and do the following

venv\Scripts\activate
set FLASK_APP=app.py
flask run

Now open up the provided url and port and feel free to use the api at your will.

{% hint style="info" %} In order to change the host and port add -h HOST -p PORT {% endhint %}

About

A python/flash rest api backend for extracted data from Powerfactory 15.1.7

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published