Closed bill-orange closed 6 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
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.
Rather than using the interactive model, can I pass a JSON string to the python code and get a ASHRAE reply? If so how.