CenterForTheBuiltEnvironment / comfort_tool

CBE Thermal Comfort Tool for ASHRAE-55
http://comfort.cbe.berkeley.edu
Other
90 stars 39 forks source link

Using JSON string #5

Closed bill-orange closed 6 years ago

bill-orange commented 7 years ago

Rather than using the interactive model, can I pass a JSON string to the python code and get a ASHRAE reply? If so how.

chriswmackey commented 7 years ago

@bill-orange ,

I'm sure that someone could write a short script pretty quickly that parses a json and calculates comfort. You could use either the Python or the JavaScript functions for thermal comfort on this github to do so as a json is easily read-able in both languages. The specifics of the script would depend on how you structure you json, though. Is there a specific reason why you ask about this?

-Chris

thoyt commented 6 years ago

The interactive sites is driven by the JavaScript thermal comfort functions, so there's no need for an internal API that would take JSON as input. It could be created using the Python functions as a backend.