This file contains 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
#!/usr/bin/python -u | |
__version__ = '3.1.1' | |
"""Data collector/processor for Brultech monitoring devices. | |
Collect data from Brultech ECM-1240, ECM-1220, and GEM power monitors. Print | |
the data, save the data to database, or upload the data to a server. | |
Includes support for uploading to the following services: | |
* MyEnerSave * SmartEnergyGroups * xively * WattzOn | |
* PlotWatt * PeoplePower * thingspeak * Eragy |
This file contains 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
#! /usr/bin/python | |
import sys | |
import collections | |
import json | |
import numpy as np | |
import matplotlib.pyplot as plt | |
config = {} | |
eegdata, channels = (collections.OrderedDict() for i in range(2)) |