Post by chet on Apr 10, 2020 10:19:47 GMT -8
Hi team,
When i run the DataLogger.py i get this output error
SDL_Pi_OurWeatherDatalogger Version 3.0
Will work with the INA3221 SwitchDoc Labs Breakout Board
Will work with the ADS1115 SwitchDoc Labs Breakout Board
Will work with OurWeather - Complete Weather Kit
Will work with SwitchDoc Labs WxLink Wireless LInk
Program Started at:2020-04-10 13:13:18
readOURWEATHERData - The time is: 2020-04-10 13:13:18.825711
[u'7.49', u'52.34', u'12.84', u'99294.00', u'254.65', u'3.18', u'5.89', u'0.00', u'126.01', u'2.34', u'10.04', u'4.93', u'15.67', u'0.00', u'337.50', u'0', u'2020-04-10 13:13:09', u'', u'0', u'-1', u'0.00', u'0.00', u'0.00', u'0.00', u'0.00', u'0.00', u'0.00', u'0.00', u'0.00', u'0.00', u'0.00', u'0.00', u'V:0', u'WXLMB ', u'0', u'', u'', u'0', u'', u'', u'0']
writing SQLdata
query=INSERT INTO OURWEATHERTable(timestamp, deviceid, Outdoor_Temperature , Outdoor_Humidity , Indoor_Temperature , Barometric_Pressure , Altitude , Current_Wind_Speed , Current_Wind_Gust , Current_Wind_Direction , Rain_Total , Wind_Speed_Minimum , Wind_Speed_Maximum , Wind_Gust_Minimum , Wind_Gust_Maximum , Wind_Direction_Minimum , Wind_Direction_Maximum , Display_English_Metrice , OurWeather_DateTime , OurWeather_Station_Name , Current_Air_Quality_Sensor , Current_Air_Quality_Qualitative, Battery_Voltage, Battery_Current, Solar_Voltage, Solar_Current, Load_Voltage, Load_Current ) VALUES(UTC_TIMESTAMP(), 1, 7.490, 52.340, 12.840, 99294.000, 254.650, 3.180, 5.890, 0.000, 126.010, 2.340, 10.040, 4.930, 15.670, 0.000, 337.500, 0, "2020-04-10 13:13:09" , "", 0, -1,0.000, 0.000, 0.000,0.000,0.000,0.000)
buildOURWEATHERGraph - The time is: 2020-04-10 13:13:20.496996
2000
query= (SELECT timestamp, deviceid, Outdoor_Temperature, Outdoor_Humidity, OurWeather_Station_Name, id FROM OURWEATHERTable ORDER BY id DESC LIMIT 2000) ORDER BY id ASC
('count of t=', 6)
/usr/lib/python2.7/dist-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The axisbg attribute was deprecated in version 2.0. Use facecolor instead.
warnings.warn(message, mplDeprecation, stacklevel=1)
/usr/lib/python2.7/dist-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: Adding an axes using the same arguments as a previous axes currently reuses the earlier instance. In a future version, a new instance will always be created and returned. Meanwhile, this warning can be suppressed, and the future behavior ensured, by passing a unique label to each axes instance.
warnings.warn(message, mplDeprecation, stacklevel=1)
------OURWEATHERGraphTemperature finished now
buildOURWEATHERGraph - The time is: 2020-04-10 13:13:21.042678
2000
query= (SELECT timestamp, deviceid, Current_Wind_Speed, Current_Wind_Gust, OurWeather_Station_Name, id FROM OURWEATHERTable ORDER BY id DESC LIMIT 2000) ORDER BY id ASC
('count of t=', 6)
Traceback (most recent call last):
File "DataLogger.py", line 161, in <module>
OURWEATHERFunctions.buildOURWEATHERGraphWind(password, GraphSampleCount)
File "/home/kd9jlz/SDL_Pi_OurWeatherDataLogger/OURWEATHERFunctions.py", line 280, in buildOURWEATHERGraphWind
pylab.plot(t, u, color='r',label="Wind Speed (MPH)" ,linestyle="o",marker=".")
File "/usr/lib/python2.7/dist-packages/matplotlib/pyplot.py", line 3261, in plot
ret = ax.plot(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/matplotlib/__init__.py", line 1718, in inner
return func(ax, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/matplotlib/axes/_axes.py", line 1372, in plot
for line in self._get_lines(*args, **kwargs):
File "/usr/lib/python2.7/dist-packages/matplotlib/axes/_base.py", line 404, in _grab_next_args
for seg in self._plot_args(this, kwargs):
File "/usr/lib/python2.7/dist-packages/matplotlib/axes/_base.py", line 394, in _plot_args
seg = func(x[:, j % ncx], y[:, j % ncy], kw, kwargs)
File "/usr/lib/python2.7/dist-packages/matplotlib/axes/_base.py", line 301, in _makeline
seg = mlines.Line2D(x, y, **kw)
File "/usr/lib/python2.7/dist-packages/matplotlib/lines.py", line 396, in __init__
self.set_linestyle(linestyle)
File "/usr/lib/python2.7/dist-packages/matplotlib/lines.py", line 1112, in set_linestyle
"valid values.").format(ls))
ValueError: You passed in an invalid linestyle, `o`. See docs of Line2D.set_linestyle for valid values.
When i run the DataLogger.py i get this output error
SDL_Pi_OurWeatherDatalogger Version 3.0
Will work with the INA3221 SwitchDoc Labs Breakout Board
Will work with the ADS1115 SwitchDoc Labs Breakout Board
Will work with OurWeather - Complete Weather Kit
Will work with SwitchDoc Labs WxLink Wireless LInk
Program Started at:2020-04-10 13:13:18
readOURWEATHERData - The time is: 2020-04-10 13:13:18.825711
[u'7.49', u'52.34', u'12.84', u'99294.00', u'254.65', u'3.18', u'5.89', u'0.00', u'126.01', u'2.34', u'10.04', u'4.93', u'15.67', u'0.00', u'337.50', u'0', u'2020-04-10 13:13:09', u'', u'0', u'-1', u'0.00', u'0.00', u'0.00', u'0.00', u'0.00', u'0.00', u'0.00', u'0.00', u'0.00', u'0.00', u'0.00', u'0.00', u'V:0', u'WXLMB ', u'0', u'', u'', u'0', u'', u'', u'0']
writing SQLdata
query=INSERT INTO OURWEATHERTable(timestamp, deviceid, Outdoor_Temperature , Outdoor_Humidity , Indoor_Temperature , Barometric_Pressure , Altitude , Current_Wind_Speed , Current_Wind_Gust , Current_Wind_Direction , Rain_Total , Wind_Speed_Minimum , Wind_Speed_Maximum , Wind_Gust_Minimum , Wind_Gust_Maximum , Wind_Direction_Minimum , Wind_Direction_Maximum , Display_English_Metrice , OurWeather_DateTime , OurWeather_Station_Name , Current_Air_Quality_Sensor , Current_Air_Quality_Qualitative, Battery_Voltage, Battery_Current, Solar_Voltage, Solar_Current, Load_Voltage, Load_Current ) VALUES(UTC_TIMESTAMP(), 1, 7.490, 52.340, 12.840, 99294.000, 254.650, 3.180, 5.890, 0.000, 126.010, 2.340, 10.040, 4.930, 15.670, 0.000, 337.500, 0, "2020-04-10 13:13:09" , "", 0, -1,0.000, 0.000, 0.000,0.000,0.000,0.000)
buildOURWEATHERGraph - The time is: 2020-04-10 13:13:20.496996
2000
query= (SELECT timestamp, deviceid, Outdoor_Temperature, Outdoor_Humidity, OurWeather_Station_Name, id FROM OURWEATHERTable ORDER BY id DESC LIMIT 2000) ORDER BY id ASC
('count of t=', 6)
/usr/lib/python2.7/dist-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The axisbg attribute was deprecated in version 2.0. Use facecolor instead.
warnings.warn(message, mplDeprecation, stacklevel=1)
/usr/lib/python2.7/dist-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: Adding an axes using the same arguments as a previous axes currently reuses the earlier instance. In a future version, a new instance will always be created and returned. Meanwhile, this warning can be suppressed, and the future behavior ensured, by passing a unique label to each axes instance.
warnings.warn(message, mplDeprecation, stacklevel=1)
------OURWEATHERGraphTemperature finished now
buildOURWEATHERGraph - The time is: 2020-04-10 13:13:21.042678
2000
query= (SELECT timestamp, deviceid, Current_Wind_Speed, Current_Wind_Gust, OurWeather_Station_Name, id FROM OURWEATHERTable ORDER BY id DESC LIMIT 2000) ORDER BY id ASC
('count of t=', 6)
Traceback (most recent call last):
File "DataLogger.py", line 161, in <module>
OURWEATHERFunctions.buildOURWEATHERGraphWind(password, GraphSampleCount)
File "/home/kd9jlz/SDL_Pi_OurWeatherDataLogger/OURWEATHERFunctions.py", line 280, in buildOURWEATHERGraphWind
pylab.plot(t, u, color='r',label="Wind Speed (MPH)" ,linestyle="o",marker=".")
File "/usr/lib/python2.7/dist-packages/matplotlib/pyplot.py", line 3261, in plot
ret = ax.plot(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/matplotlib/__init__.py", line 1718, in inner
return func(ax, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/matplotlib/axes/_axes.py", line 1372, in plot
for line in self._get_lines(*args, **kwargs):
File "/usr/lib/python2.7/dist-packages/matplotlib/axes/_base.py", line 404, in _grab_next_args
for seg in self._plot_args(this, kwargs):
File "/usr/lib/python2.7/dist-packages/matplotlib/axes/_base.py", line 394, in _plot_args
seg = func(x[:, j % ncx], y[:, j % ncy], kw, kwargs)
File "/usr/lib/python2.7/dist-packages/matplotlib/axes/_base.py", line 301, in _makeline
seg = mlines.Line2D(x, y, **kw)
File "/usr/lib/python2.7/dist-packages/matplotlib/lines.py", line 396, in __init__
self.set_linestyle(linestyle)
File "/usr/lib/python2.7/dist-packages/matplotlib/lines.py", line 1112, in set_linestyle
"valid values.").format(ls))
ValueError: You passed in an invalid linestyle, `o`. See docs of Line2D.set_linestyle for valid values.