This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pymodbus.constants import Endian | |
from struct import pack, unpack | |
from pymodbus.constants import Endian | |
from pymodbus.utilities import pack_bitstring | |
from pymodbus.utilities import unpack_bitstring | |
from pymodbus.exceptions import ParameterException | |
from pymodbus.client.sync import ModbusSerialClient as ModbusClient | |
from pymodbus.transaction import ModbusSocketFramer as ModbusFramer | |
import datetime | |
import time |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib.pyplot as plt | |
import matplotlib.dates as md | |
import numpy as np | |
import datetime as dt | |
import time | |
data = np.genfromtxt('/home/milan/Projects/Summer_Project/AC/Data/data_1.csv',delimiter=',',names=['time1','date','temperature','humidity']) | |
#data2 = np.genfromtxt('/home/milan/Projects/Summer_Project/AC/Data/data_2.csv',delimiter=',',names=['time2','power']) | |
time = data['time1'] | |
humidity = data['humidity'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import json | |
import pprint | |
import csv | |
file = open( "filename_destination2.csv", "w") | |
files_in_dir = os.listdir('/home/shailja/readfiles') | |