Code Monkey home page Code Monkey logo

energyplusapihelper's Introduction

Hi there ๐Ÿ‘‹

My live CV with a bunch of information can be found here: https://myoldmopar.github.io/cv/.

How about some live GitHub stats!? (not that anyone is counting)

My Live GitHub stats

Top Langs

energyplusapihelper's People

Contributors

myoldmopar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

energyplusapihelper's Issues

add in whole building power to 08_server_advanced.py

Hi,

Is it possible to add in whole building power to the flask app get_api_data route?

@app.route('/api/data/', methods=['GET'])
def get_api_data():
    global runner

    print("runner attributes:")
    attributes = vars(runner)
    
    for attr_name, attr_value in attributes.items():
        print(f"{attr_name}: {attr_value}")
    
    return {
        "output": runner.eplus_output.decode('utf-8'),
        "progress": runner.eplus_progress + 1,
        "outdoor_data": runner.outdoor_data,
        "zone_temp_data": runner.zone_temperatures
    }

Would one have to add this into this function where runner is defined:

def thread_function():
    global runner
    runner = RunConfig()
    state = runner.api.state_manager.new_state()
    runner.api.exchange.request_variable(state, "Site Outdoor Air DryBulb Temperature", "Environment")

The variable for Whole Building Power?

ERROR: No matching distribution found for pyenergyplus

Hello,

Am trying to run the 08_server_advanced.py from the demos on Windows 10. I had this up and running a few months ago where it worked just fine I think using Python 3.10. Am trying it out again and run into the an issue below, the pip install energyplus_api_helpers went just fine but get this error when running the file:

> py  .\energyplus_api_helpers\demos\08_server_advanced.py        
Traceback (most recent call last):
  File "C:\Users\bbartling\OneDrive - Slipstream\Desktop\EnergyPlusAPIHelper\energyplus_api_helpers\demos\08_server_advanced.py", line 28, in <module>
    runner = RunConfig()
             ^^^^^^^^^^^
  File "C:\Users\bbartling\OneDrive - Slipstream\Desktop\EnergyPlusAPIHelper\energyplus_api_helpers\demos\08_server_advanced.py", line 12, in __init__
    self.api = self.e.get_api_instance()
               ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\bbartling\AppData\Local\Programs\Python\Python311\Lib\site-packages\energyplus_api_helpers\import_helper.py", line 45, in get_api_instance
    from pyenergyplus.api import EnergyPlusAPI
ModuleNotFoundError: No module named 'pyenergyplus'
PS C:\Users\bbartling\OneDrive - Slipstream\Desktop\EnergyPlusAPIHelper> py -m pip install pyenergyplus                                  
ERROR: Could not find a version that satisfies the requirement pyenergyplus (from versions: none)
ERROR: No matching distribution found for pyenergyplus

Thanks for any tips

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.