SoftwareDefinedBuildings / smap

smap - Simple Measurement and Actuation Profile
Other
30 stars 36 forks source link

bacnet driver not working #22

Open BalazsHoranyi opened 8 years ago

BalazsHoranyi commented 8 years ago

I am trying to run the bacnet driver and am getting the following error bacnet_driver

Has anyone run this module before or run into this issue? Please let me know if you need any more information Thanks

gtfierro commented 8 years ago

Read through these comments; you'll need to install the bacnet-stack library, and then you can likely re-run setup.py with the bacnet module support uncommented. Try that and then let me know

BalazsHoranyi commented 8 years ago

Thanks for the quick reply. Where should i put the bacnet-stack-0.6.0 folder? I tired to place it in smap/python and am getting the following error when trying to run python setup.py build bacnet

gtfierro commented 8 years ago

What directory are you running setup.py from? Try running it from within smap/python and not the base directory of the repo

BalazsHoranyi commented 8 years ago

I am running setup.py from smap/python. I can run the swig command by itself though. Here is the complete output from setup.py bacnet_setup Thanks for the help.

BalazsHoranyi commented 8 years ago

So I prefixed python/ to the swig sources in setup.py and that fixed the problem. I was wondering if someone had an example of a bacnet config file. I'm not entirely sure what i am supposed to pass to db for the bacnet driver with open(opts.get('db'), 'r') as fp: self.db = json.load(fp)