Hi Thomas,
Thanks for this I've now got what I think is the log data that you require.
2016-06-18 17:43:24,485 INFO Try to connect to the serial device /dev/ttyUSB0
2016-06-18 17:43:24,490 INFO Connected to the serial device /dev/ttyUSB0
2016-06-18 17:43:24,493 INFO Try to parse config file in config_parse
2016-06-18 17:43:24,509 INFO Parsing config file successful
2016-06-18 17:43:24,511 DEBUG {'database_user': 'measureit', 'database_name': 'measure_it', 'database_passwd': 'measureitpasswd', 'database_host': 'localhost', 'database_port': '3306'}
2016-06-18 17:43:24,514 INFO Try to get sensor list in sensor_list_get
2016-06-18 17:43:24,812 DEBUG Try to execute query: SELECT sensor_id FROM measure_sensors
2016-06-18 17:43:24,818 INFO Get sensor in sensor_list_get Sensor: 0
2016-06-18 17:43:24,820 INFO Get sensor list successful
2016-06-18 17:43:24,823 DEBUG {0: {'watt': 0, 'pvoutput_watt_sum': {}, 'counter': 0, 'pvoutput_batch_string': {}, 'tmpr': 0}}
2016-06-18 17:43:24,826 INFO Try to get systems settings in system_settings_get
2016-06-18 17:43:24,836 DEBUG Try to execute query: SELECT measure_system_setting_name, measure_system_setting_value FROM measure_system
2016-06-18 17:43:24,841 INFO Get system settings successful
2016-06-18 17:43:24,843 DEBUG {'database_name': 'measure_it', 'system_settings_system': 'envi', 'system_settings_tmpr': 'c', 'system_settings_data_save_type': '0', 'language_use': 'en_EN', 'database_port': '3306', 'current_version': '118', 'database_passwd': 'measureitpasswd', 'database_host': 'localhost', 'database_user': 'measureit'}
2016-06-18 17:43:24,846 INFO Try to get sensor settings from sensor_settings_get
2016-06-18 17:43:24,855 DEBUG Try to execute query: SELECT * FROM measure_settings
2016-06-18 17:43:24,863 INFO Sensor 0 Check if there are any PVOutput settings for this sensor
2016-06-18 17:43:24,865 INFO Sensor 0 has no PVOutput settings. Set PVOutput system id to 0
2016-06-18 17:43:24,867 DEBUG {'timezone_diff': 1.0, 'scale_factor': Decimal('1.00'), 'notifications_realtime': {}, 'pvoutput_api': '', 'pvoutput': False, 'notifications': {}, 'lower_limit': 0, 'pvoutput_id': 0, 'type': 0, 'history': 365}
2016-06-18 17:43:24,870 INFO Sensor 30 Check if there are any PVOutput settings for this sensor
2016-06-18 17:43:24,873 INFO Sensor 30 has no PVOutput settings. Set PVOutput system id to 0
2016-06-18 17:43:24,876 DEBUG {'timezone_diff': 0.0, 'scale_factor': Decimal('1.00'), 'notifications_realtime': {}, 'pvoutput_api': '', 'pvoutput': False, 'notifications': {}, 'lower_limit': 0, 'pvoutput_id': 0, 'type': 0, 'history': 365}
2016-06-18 17:43:24,879 INFO Sensor 0 Check if there are any PVOutput settings for this sensor
2016-06-18 17:43:24,881 INFO Sensor 0 has no PVOutput settings. Set PVOutput system id to 0
2016-06-18 17:43:24,884 DEBUG {'timezone_diff': 1.0, 'scale_factor': Decimal('1.00'), 'notifications_realtime': {}, 'pvoutput_api': '', 'pvoutput': False, 'notifications': {}, 'lower_limit': 0, 'pvoutput_id': 0, 'type': 0, 'history': 365}
2016-06-18 17:43:24,887 INFO Get sensor settings successful
2016-06-18 17:43:24,889 DEBUG {0: {'timezone_diff': 1.0, 'scale_factor': Decimal('1.00'), 'notifications_realtime': {}, 'pvoutput_api': '', 'pvoutput': False, 'notifications': {}, 'lower_limit': 0, 'pvoutput_id': 0, 'type': 0, 'history': 365}, 30: {'timezone_diff': 0.0, 'scale_factor': Decimal('1.00'), 'notifications_realtime': {}, 'pvoutput_api': '', 'pvoutput': False, 'notifications': {}, 'lower_limit': 0, 'pvoutput_id': 0, 'type': 0, 'history': 365}}
2016-06-18 17:43:24,892 DEBUG No twitter settings found. Twitter notifications will not be used
2016-06-18 17:43:24,894 DEBUG No email settings found. Email notifications will not be used
2016-06-18 17:43:24,897 DEBUG No notification settings found. Notifications will not be used
2016-06-18 17:43:24,899 INFO Try to run hourly job in cron_timer_hourly
2016-06-18 17:43:24,902 DEBUG Make hourly usage from day_from to day_to: 2016-6-18
2016-06-18 17:43:24,905 DEBUG Make hourly usage from hour_from_from to hour_to in utc time: 15 - 16
2016-06-18 17:43:24,988 DEBUG Try to execute query: select sensor, data, unix_timestamp(time) from measure_watt where time between '2016-6-18 15:00:00' AND '2016-6-18 16:00:00' AND sensor=0
2016-06-18 17:43:25,080 DEBUG Try to execute query: INSERT IGNORE INTO measure_watt_hourly ( sensor, data, hour, time ) VALUES ( "0", "0.166106388889", "15", "2016-6-18" )
2016-06-18 17:43:25,088 DEBUG Execute query successful
2016-06-18 17:43:25,096 INFO Try to run daily job in cron_timer_daily
2016-06-18 17:43:25,103 INFO Try to run about all sensors
2016-06-18 17:43:25,105 INFO Found Sensor 0
2016-06-18 17:43:25,118 DEBUG Try to execute query: select sensor, data, unix_timestamp(time) from measure_watt where time between '2016-06-17 00:00:00' AND '2016-06-18 00:00:00' AND sensor=0
2016-06-18 17:43:26,612 INFO Read data from sensor: 0
2016-06-18 17:43:26,875 DEBUG Try to execute query: INSERT IGNORE INTO measure_watt_daily ( sensor, data, time ) VALUES ( "0", "-2.41133361111", "2016-06-17 00:00:00" )
2016-06-18 17:43:26,882 DEBUG Execute query successful
2016-06-18 17:43:26,896 INFO Sensor data successful collected from sensor: 0
2016-06-18 17:43:26,900 INFO Try to delete old data from sensor: 0
2016-06-18 17:43:26,909 DEBUG Try to execute query: DELETE FROM measure_watt WHERE sensor = 0 AND time < UTC_TIMESTAMP( ) - INTERVAL 365 DAY
2016-06-18 17:43:26,916 DEBUG Execute query successful
2016-06-18 17:43:26,926 DEBUG Try to execute query: DELETE FROM measure_tmpr WHERE time < UTC_TIMESTAMP( ) - INTERVAL 365 DAY
2016-06-18 17:43:27,075 DEBUG Execute query successful
2016-06-18 17:43:27,078 INFO Delete successful from old data from sensor: 0
2016-06-18 17:43:27,080 INFO Try to run weekly job in cron_timer_weekly
2016-06-18 17:43:27,498 INFO Update: No new version found
2016-06-18 17:43:27,505 INFO weekly job in cron_timer_weekly successful
2016-06-18 17:43:27,510 INFO Look if I should restart
2016-06-18 17:43:27,513 INFO No restart file found
2016-06-18 17:43:27,515 INFO Start parsing XML
2016-06-18 17:43:32,454 ERROR Can not connect to the serial device: Traceback (most recent call last):
File "/web/measureit/measureit_system_files/python/data-input.py", line 778, in <module>
line = ser.readline()
File "/usr/lib/python2.7/dist-packages/serial/serialposix.py", line 453, in read
buf = os.read(self.fd, size-len(read))
OSError: [Errno 11] Resource temporarily unavailable
2016-06-18 17:43:32,487 ERROR Can not connect to the serial device: Traceback (most recent call last):
File "/web/measureit/measureit_system_files/python/data-input.py", line 778, in <module>
line = ser.readline()
File "/usr/lib/python2.7/dist-packages/serial/serialposix.py", line 460, in read
raise SerialException('device reports readiness to read but returned no data (device disconnected?)')
SerialException: device reports readiness to read but returned no data (device disconnected?)
2016-06-18 17:43:38,560 ERROR Can not connect to the serial device: Traceback (most recent call last):
File "/web/measureit/measureit_system_files/python/data-input.py", line 778, in <module>
line = ser.readline()
File "/usr/lib/python2.7/dist-packages/serial/serialposix.py", line 453, in read
buf = os.read(self.fd, size-len(read))
OSError: [Errno 11] Resource temporarily unavailable
2016-06-18 17:43:38,573 DEBUG Critical system error occured
2016-06-18 17:43:38,575 DEBUG Alert Message will send at 5000. Current counter is now: 1
2016-06-18 17:43:50,720 ERROR Can not connect to the serial device: Traceback (most recent call last):
File "/web/measureit/measureit_system_files/python/data-input.py", line 778, in <module>
line = ser.readline()
File "/usr/lib/python2.7/dist-packages/serial/serialposix.py", line 453, in read
buf = os.read(self.fd, size-len(read))
OSError: [Errno 11] Resource temporarily unavailable
2016-06-18 17:43:50,726 DEBUG Critical system error occured
2016-06-18 17:43:50,730 DEBUG Alert Message will send at 5000. Current counter is now: 2
2016-06-18 17:43:50,775 ERROR Can not connect to the serial device: Traceback (most recent call last):
File "/web/measureit/measureit_system_files/python/data-input.py", line 778, in <module>
line = ser.readline()
File "/usr/lib/python2.7/dist-packages/serial/serialposix.py", line 460, in read
raise SerialException('device reports readiness to read but returned no data (device disconnected?)')
SerialException: device reports readiness to read but returned no data (device disconnected?)
2016-06-18 17:43:50,777 DEBUG Critical system error occured
2016-06-18 17:43:50,779 DEBUG Alert Message will send at 5000. Current counter is now: 3
2016-06-18 17:43:56,840 ERROR Can not connect to the serial device: Traceback (most recent call last):
File "/web/measureit/measureit_system_files/python/data-input.py", line 778, in <module>
line = ser.readline()
File "/usr/lib/python2.7/dist-packages/serial/serialposix.py", line 453, in read
buf = os.read(self.fd, size-len(read))
OSError: [Errno 11] Resource temporarily unavailable
2016-06-18 17:43:56,861 ERROR Can not connect to the serial device: Traceback (most recent call last):
File "/web/measureit/measureit_system_files/python/data-input.py", line 778, in <module>
line = ser.readline()
File "/usr/lib/python2.7/dist-packages/serial/serialposix.py", line 460, in read
raise SerialException('device reports readiness to read but returned no data (device disconnected?)')
SerialException: device reports readiness to read but returned no data (device disconnected?)
2016-06-18 17:43:56,863 DEBUG Critical system error occured
2016-06-18 17:43:56,866 DEBUG Alert Message will send at 5000. Current counter is now: 4
2016-06-18 17:44:02,937 ERROR Can not connect to the serial device: Traceback (most recent call last):
File "/web/measureit/measureit_system_files/python/data-input.py", line 778, in <module>
line = ser.readline()
File "/usr/lib/python2.7/dist-packages/serial/serialposix.py", line 453, in read
buf = os.read(self.fd, size-len(read))
OSError: [Errno 11] Resource temporarily unavailable
2016-06-18 17:44:09,010 ERROR Can not connect to the serial device: Traceback (most recent call last):
File "/web/measureit/measureit_system_files/python/data-input.py", line 778, in <module>
line = ser.readline()
File "/usr/lib/python2.7/dist-packages/serial/serialposix.py", line 453, in read
buf = os.read(self.fd, size-len(read))
OSError: [Errno 11] Resource temporarily unavailable
2016-06-18 17:44:09,058 ERROR Can not connect to the serial device: Traceback (most recent call last):
File "/web/measureit/measureit_system_files/python/data-input.py", line 778, in <module>
line = ser.readline()
File "/usr/lib/python2.7/dist-packages/serial/serialposix.py", line 460, in read
raise SerialException('device reports readiness to read but returned no data (device disconnected?)')
SerialException: device reports readiness to read but returned no data (device disconnected?)
2016-06-18 17:44:15,101 ERROR Can not connect to the serial device: Traceback (most recent call last):
File "/web/measureit/measureit_system_files/python/data-input.py", line 778, in <module>
line = ser.readline()
File "/usr/lib/python2.7/dist-packages/serial/serialposix.py", line 453, in read
buf = os.read(self.fd, size-len(read))
OSError: [Errno 11] Resource temporarily unavailable
2016-06-18 17:44:19,483 ERROR Can not connect to the serial device: Traceback (most recent call last):
File "/web/measureit/measureit_system_files/python/data-input.py", line 778, in <module>
line = ser.readline()
File "/usr/lib/python2.7/dist-packages/serial/serialposix.py", line 446, in read
ready,_,_ = select.select([self.fd],[],[], self._timeout)
KeyboardInterrupt
2016-06-18 17:44:19,485 DEBUG Critical system error occured
2016-06-18 17:44:19,487 DEBUG Alert Message will send at 5000. Current counter is now: 5
2016-06-18 17:44:20,729 ERROR Can not connect to the serial device: Traceback (most recent call last):
File "/web/measureit/measureit_system_files/python/data-input.py", line 778, in <module>
line = ser.readline()
File "/usr/lib/python2.7/dist-packages/serial/serialposix.py", line 446, in read
ready,_,_ = select.select([self.fd],[],[], self._timeout)
KeyboardInterrupt
2016-06-18 17:44:20,738 DEBUG Critical system error occured
2016-06-18 17:44:20,741 DEBUG Alert Message will send at 5000. Current counter is now: 6
2016-06-18 17:44:21,242 ERROR Can not connect to the serial device: Traceback (most recent call last):
File "/web/measureit/measureit_system_files/python/data-input.py", line 778, in <module>
line = ser.readline()
File "/usr/lib/python2.7/dist-packages/serial/serialposix.py", line 460, in read
raise SerialException('device reports readiness to read but returned no data (device disconnected?)')
SerialException: device reports readiness to read but returned no data (device disconnected?)
2016-06-18 17:44:21,244 DEBUG Critical system error occured
2016-06-18 17:44:21,247 DEBUG Alert Message will send at 5000. Current counter is now: 7
2016-06-18 17:44:27,301 ERROR Can not connect to the serial device: Traceback (most recent call last):
File "/web/measureit/measureit_system_files/python/data-input.py", line 778, in <module>
line = ser.readline()
File "/usr/lib/python2.7/dist-packages/serial/serialposix.py", line 453, in read
buf = os.read(self.fd, size-len(read))
OSError: [Errno 11] Resource temporarily unavailable
2016-06-18 17:44:27,310 DEBUG Critical system error occured
2016-06-18 17:44:27,317 DEBUG Alert Message will send at 5000. Current counter is now: 8
2016-06-18 17:44:27,524 INFO Look if I should restart
2016-06-18 17:44:27,526 INFO No restart file found
2016-06-18 17:44:33,393 ERROR Can not connect to the serial device: Traceback (most recent call last):
File "/web/measureit/measureit_system_files/python/data-input.py", line 778, in <module>
line = ser.readline()
File "/usr/lib/python2.7/dist-packages/serial/serialposix.py", line 453, in read
buf = os.read(self.fd, size-len(read))
OSError: [Errno 11] Resource temporarily unavailable
2016-06-18 17:44:33,399 DEBUG Critical system error occured
2016-06-18 17:44:33,405 DEBUG Alert Message will send at 5000. Current counter is now: 9