This is intended to facilitate the collection of BACnet functions in a format for use with the Google IoT Core toolkit Google IoT Core
The configuration is consumed from the Google IoT device configuration file in JSON format. This should enable the necessary descriptors to become available to the device for each point. The configuration is updated on every read interval (Defaults to 60s).
-
Download the Google CA for signing the JWT Token Google Root PEM
-
Create Device Key-Pairs Google Key Pair Creation Docs
-
Place key files into directory if you wish to use docker or modify code as needed to reference your keys. By default the keys look in the source directory
-
Update Google IoT parameters as needed for the device
# Google IoT Core device variables
project_id = '' # Google Project Name
registry_id = '' # Google IoT Registry Name
iot_device_id = '' # Google IoT Core Device
Google IoT Core Registry and Devices
Documentation to create the necessary registries and devices you will need to control the PubSub message flows and configuration updates for the BACnet Driver.
- Add write functionality
- Move to threading for each device
- Standardize the configuration consumption for points
- Allow configuration options for payload formatting
bacpypes==0.17.0
google-api-python-client==1.6.5
google-auth-httplib2==0.0.3
google-auth==1.4.1
cryptography==2.1.4
paho-mqtt==1.3.1
pyjwt==1.6.0
netifaces==0.10.6
BACpypes BACnet package BACpypes.
Google Packages for IoT Google API Docs.
Paho MQTT Python Driver Paho MQTT Python