ekmmeters.py
def renderJsonReadsSince(self, timestamp, meter):
        """ Simple since Time_Stamp query returned as JSON records.

        Args:
            timestamp (int): Epoch time in seconds.
            meter (str): 12 character meter address to query

        Returns:
            str: JSON rendered read records.

        """
        result = ""
        try:
            connection = sqlite3.connect(self.m_connection_string)
            connection.row_factory = self.dict_factory
            select_cursor = connection.cursor()
            select_cursor.execute("select * from Meter_Reads where " + Field.Time_Stamp +
                                  " > " + str(timestamp) + " and " + Field.Meter_Address +
                                  "= '" + meter + "';")
            reads = select_cursor.fetchall()
            result = json.dumps(reads, indent=4)

        except:
            ekm_log(traceback.format_exc(sys.exc_info()))
        return result
def renderJsonReadsSince(self, timestamp, meter):
        result = ""
        try:
            connection = sqlite3.connect(self.m_connection_string)
            connection.row_factory = self.dict_factory
            select_cursor = connection.cursor()
            select_cursor.execute("select * from Meter_Reads where " + Field.Time_Stamp +
                                  " > " + str(timestamp) + " and " + Field.Meter_Address +
                                  "= '" + meter + "';")
            reads = select_cursor.fetchall()
            result = json.dumps(reads, indent=4)

        except:
            ekm_log(traceback.format_exc(sys.exc_info()))
        return result
def renderJsonReadsSince ( self , timestamp , meter ) : result = "" try : connection = sqlite3 . connect ( self . m_connection_string ) connection . row_factory = self . dict_factory select_cursor = connection . cursor ( ) select_cursor . execute ( "select * from Meter_Reads where " + Field . Time_Stamp + " > " + str ( timestamp ) + " and " + Field . Meter_Address + "= '" + meter + "';" ) reads = select_cursor . fetchall ( ) result = json . dumps ( reads , indent = 4 ) except : ekm_log ( traceback . format_exc ( sys . exc_info ( ) ) ) return result
Simple since Time_Stamp query returned as JSON records.

        Args:
            timestamp (int): Epoch time in seconds.
            meter (str): 12 character meter address to query

        Returns:
            str: JSON rendered read records.
Simple since Time_Stamp query returned as JSON records .