# OemGateway Configuration file example # Copy this as oemgateway.conf (or any custom name) and edit settings # Each listener and each buffer has # - a [[name]]: a unique string # - a type: the name of the class it instantiates # - a set of init_settings (depends on the type) # - a set of runtime_settings (depends on the type) # Both init_settings and runtime_settings sections must be defined, # even if empty. Init settings are used at initialization, and runtime # settings are refreshed on a regular basis. # All lines beginning with a '#' are comments and can be safely removed. #################### # Gateway settings # #################### [gateway] # loglevel must be one of DEBUG, INFO, WARNING, ERROR, and CRITICAL # see here : http://docs.python.org/2/library/logging.html loglevel = DEBUG ############# # Listeners # ############# [listeners] # This listener manages the RFM2Pi module #[[RFM2Pi]] # type = OemGatewayRFM2PiListener # [[[init_settings]]] # com_port = /dev/ttyUSB0 # [[[runtime_settings]]] # sgroup = 210 # frequency = 4 # baseid = 15 # sendtimeinterval = 0 # This listener gets data from a socket #[[Socket]] # type = OemGatewaySocketListener # [[[init_settings]]] # port_nb = 50011 # [[[runtime_settings]]] # This listener manages the serial [[Serial]] type = OemGatewaySerialListener [[[init_settings]]] com_port = /dev/ttyUSB0 [[[runtime_settings]]] ########### # Buffers # ########### [buffers] # The two following buffers instantiate the same class, # that formats the data for an emoncms instance. # One sends the data to a local instance, the other one # to a distant one. # If active is set to False, the buffer neither records nor sends any data, # but it holds unsent data until active becomes True. [[emoncms_local]] type = OemGatewayEmoncmsBuffer [[[init_settings]]] [[[runtime_settings]]] domain = localhost apikey = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx protocol = http:// active = False path = /emoncms [[emoncms_remote]] type = OemGatewayEmoncmsBuffer [[[init_settings]]] [[[runtime_settings]]] domain = emoncms.org apikey = xxxxxxxxxxxxxxx your own apikey xxxxxxxxxxxxxxxxxx protocol = http:// active = True path =