NubeIO / rubix-bacnet-master

2 stars 0 forks source link

tips getting started #26

Closed bbartling closed 3 years ago

bbartling commented 3 years ago

Can I get a tip on how I can use Rubix-bacnet-master for obtaining temperature sensor values and occupancy status from BAS controllers?

For example, I have Flask App that uses BAC0 in the background, (I think the code may also be somewhat inspired by something on NubeIO git repo) where I can fire off a bunch of synchronous coding style BACnet read requests to a Flask rest endpoint with this.

Its for a building that has a mostly JCI VAV boxes a couple Trane VAV boxes. The requests from the second gist is obtaining a point for occupany in the VAV box but I am also curious about obtaining temperature & temperature setpoints as well.

This may sound like a silly question but there no way for asynchronous requests or abilities to get info from BACnet systems right? I think BAC0 and probably BACpypes (and BACnet) is all synchronous right?

Anyways thanks for any tips getting started. I also have to test this out on a Windows machine for the time being as I dont have a rasp pi or Linux Env in the immediate moment but maybe soon.

bbartling commented 3 years ago

Can you use monkey patch at all to do a bunch of http requests at once? This is a tutorial I am taking on Udemy for asynchronous Python coding. Enabling the gevent monkey patches its crazy how fast the difference is when running the patched_app.py vs not_patched_app.py

The asynchronous requests is still something I have to wrap my head around...