Skip to content

Instantly share code, notes, and snippets.

View sansal54's full-sized avatar

sansal54

  • SanKontrol
  • Istanbul, TURKEY
View GitHub Profile
import PID
import time
import os.path
from OmegaExpansion import AdcExp
from OmegaExpansion import pwmExp
pwmExp.setVerbosity(-1)
pwmExp.driverInit()
adc = AdcExp.AdcExp()
@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'