Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question
1

Running Eppy (E+) on a web server

asked 2022-10-09 04:44:20 -0500

Debayan93's avatar

updated 2022-10-09 04:45:19 -0500

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

edit retag flag offensive 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

1 Answer

Sort by ยป oldest newest most voted
1

answered 2022-12-13 18:01:01 -0500

santoshphilip's avatar

updated 2022-12-14 16:32:40 -0500

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Careers

Question Tools

3 followers

Stats

Asked: 2022-10-09 04:44:20 -0500

Seen: 161 times

Last updated: Dec 14 '22