First time here? Check our help page!
1

Running Eppy (E+) on a web server

Hello community,

Currently, I am working on a project which contains some Eppy scripts to modify E+ .idf files and perform simulations & corresponding visualizations which are based on some user prompts.

However, to deploy the project as a web app, it requires running E+ (due to Eppy) on a server instead of running on my local system. I was wondering if anyone has experience in deploying a web app through commercial solutions like Streamlit Share, Heroku, GCP etc. which runs E+ simulations.

Any suggestions and guidance are welcomed.

Best regards,

Debayan

Debayan93's avatar
121
Debayan93
asked 2022-10-09 04:44:20 -0500, updated 2022-10-09 04:45:19 -0500
edit flag offensive 0 remove flag close merge delete

Comments

1

I have run eppy and EnergyPlus on Amazon EC2 without a problem.

JasonGlazer's avatar JasonGlazer (2022-10-10 06:41:27 -0500) edit
add a comment see more comments

1 Answer

1

In eppy, idf.run() will run on any machine that has eppy installed and E+ installed.

Service like Heroku (Platform as a service) generally will NOT allow you to install E+

Considering this limitation, my solution has been to:

Run it two machines

  1. Run the web server on Heroku (or something similar).
  2. Install and run E+ on a separate machine on AWS or linode.com (call it the E+Machine)
  3. The Webserver sends the input files over the internet to the E+Machine to be simulated
  4. Once the simulation is complete, the E+Machine sends the results back to the web server that does something with the results

Take a look at zeppy. It may help you with steps 3 and 4 above

Running it on a single machine

You can run everthing on a single machine on ASW or linode.com - both webserver and simulation. You lose the ease of deployment that "Platform as a service" Heroku gives you. But it makes everything else simpler, as you don't have to deal with the communication betwen two machines.

santoshphilip's avatar
961
santoshphilip
answered 2022-12-13 18:01:01 -0500, updated 2022-12-14 16:32:40 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments