Skip to content

Instantly share code, notes, and snippets.

@sansal54
sansal54 / poll_modbus_2_influxdb.py
Created January 21, 2017 19:01
InfluxDb Example with Modbus Room Thermostat in Python
import os
import sys
import time
import datetime
import minimalmodbus
from influxdb import InfluxDBClient
minimalmodbus.CLOSE_PORT_AFTER_EACH_CALL=True
PORT_NAME = 'com7'