Print statement added as you required...(correctly I hope) and see output log below:
pi@pi:~/SDL_Pi_SkyWeather2 $ sudo python3 SkyWeather2.py
./SkyWeather2.JSON File exists
using updateWebConfig
##########################################################
SkyWeather2 Weather Station Version 027.6 - SwitchDoc Labs
Program Started at:2022-12-18 08:10:23
##########################################################
Starting pigpio daemon
b''
mmal: mmal_vc_component_create: failed to create component 'vc.ril.camera' (1:ENOMEM)
mmal: mmal_component_create_core: could not create component 'vc.ril.camera' (1)
----------------------
BMP280: Present
SkyCam: Not Present
OLED: Not Present
SunAirPlus/SunControl: Not Present
SolarMAX: Not Present
DustSensor: Not Present
UseBlynk: Disabled
UseWSLIGHTNING: Disabled
UseWSAQI: Disabled
UseWSSKYCAM: Disabled
UseMySQL: Enabled
UseMQTT: Enabled
Check WLAN: Not Present
WeatherUnderground: Not Present
UseWeatherStem: Not Present
----------------------
Traceback (most recent call last):
File "/home/pi/SDL_Pi_SkyWeather2/sendemail.py", line 51, in sendEmail
s.login(config.mailUser, config.mailPassword)
File "/usr/lib/python3.7/smtplib.py", line 730, in login
raise last_exception
File "/usr/lib/python3.7/smtplib.py", line 721, in login
initial_response_ok=initial_response_ok)
File "/usr/lib/python3.7/smtplib.py", line 642, in auth
raise SMTPAuthenticationError(code, resp)
smtplib.SMTPAuthenticationError: (535, b'5.7.8 Username and Password not accepted. Learn more at\n5.7.8
support.google.com/mail/?p=BadCredentials q14-20020a1cf30e000000b003cf6a55d8e8sm7987647wmq.7 - gsmtp')
sendmail exception raised
-----------------
Scheduled Jobs
-----------------
######
creating new MQTT instance
Jobstore default:
patTheDog (trigger: interval[0:00:20], next run at: 2022-12-18 08:10:54 GMT)
readWiredSensors (trigger: interval[0:00:30], next run at: 2022-12-18 08:11:04 GMT)
tick (trigger: interval[0:01:00], next run at: 2022-12-18 08:11:34 GMT)
printState (trigger: interval[0:01:00], next run at: 2022-12-18 08:11:34 GMT)
publish (trigger: interval[0:15:00], next run at: 2022-12-18 08:25:34 GMT)
barometricTrend (trigger: interval[0:15:00], next run at: 2022-12-18 08:25:34 GMT)
writeWeatherRecord (trigger: interval[0:15:00], next run at: 2022-12-18 08:25:34 GMT)
writeITWeatherRecord (trigger: interval[0:15:00], next run at: 2022-12-18 08:25:34 GMT)
connecting to broker
cleanPictures (trigger: cron[day='*', hour='3', minute='4'], next run at: 2022-12-19 03:04:00 GMT)
cleanTimeLapses (trigger: cron[day='*', hour='3', minute='10'], next run at: 2022-12-19 03:10:00 GMT)
buildTimeLapse (trigger: cron[day='*', hour='5', minute='30'], next run at: 2022-12-19 05:30:00 GMT)
-----------------
starting 433MHz scanning
######
processing FT020T Data
This is the raw data: {"time" : "2022-12-18 08:10:45", "model" : "SwitchDoc Labs FT020T AIO", "device" : 12, "id" : 175, "batterylow" : 0, "avewindspeed" : 18, "gustwindspeed" : 23, "winddirection" : 84, "cumulativerain" : 3816, "temperature" : 769, "humidity" : 94, "light" : 86, "uv" : 0, "mic" : "CRC", "mod" : "ASK", "freq" : 433.985, "rssi" : -0.150, "snr" : 34.212, "noise" : -34.363}
Main Weather Sensors Found
Processing F016TH data
This is the raw data: {"time" : "2022-12-18 08:10:50", "model" : "SwitchDoc Labs F016TH Thermo-Hygrometer", "device" : 119, "modelnumber" : 5, "channel" : 1, "battery" : "OK", "temperature_F" : 41.200, "humidity" : 73, "mic" : "CRC", "mod" : "ASK", "freq" : 433.992, "rssi" : -0.138, "snr" : 32.976, "noise" : -33.113}
True
Indoor Weather Sensors Found
------Patting The Dog-------
processing FT020T Data
This is the raw data: {"time" : "2022-12-18 08:11:05", "model" : "SwitchDoc Labs FT020T AIO", "device" : 12, "id" : 175, "batterylow" : 0, "avewindspeed" : 19, "gustwindspeed" : 26, "winddirection" : 134, "cumulativerain" : 3816, "temperature" : 768, "humidity" : 94, "light" : 80, "uv" : 0, "mic" : "CRC", "mod" : "ASK", "freq" : 433.986, "rssi" : -0.163, "snr" : 30.221, "noise" : -30.383}
processing FT020T Data
This is the raw data: {"time" : "2022-12-18 08:11:05", "model" : "SwitchDoc Labs FT020T AIO", "device" : 12, "id" : 175, "batterylow" : 0, "avewindspeed" : 19, "gustwindspeed" : 26, "winddirection" : 134, "cumulativerain" : 3816, "temperature" : 768, "humidity" : 94, "light" : 80, "uv" : 0, "mic" : "CRC", "mod" : "ASK", "freq" : 433.986, "rssi" : -0.163, "snr" : 30.221, "noise" : -30.383}
duplicate found
------Patting The Dog-------
processing FT020T Data
This is the raw data: {"time" : "2022-12-18 08:11:20", "model" : "SwitchDoc Labs FT020T AIO", "device" : 12, "id" : 175, "batterylow" : 0, "avewindspeed" : 23, "gustwindspeed" : 36, "winddirection" : 57, "cumulativerain" : 3816, "temperature" : 768, "humidity" : 94, "light" : 74, "uv" : 0, "mic" : "CRC", "mod" : "ASK", "freq" : 433.985, "rssi" : -0.161, "snr" : 28.761, "noise" : -28.922}
Processing F016TH data
This is the raw data: {"time" : "2022-12-18 08:11:22", "model" : "SwitchDoc Labs F016TH Thermo-Hygrometer", "device" : 88, "modelnumber" : 5, "channel" : 2, "battery" : "OK", "temperature_F" : 60.600, "humidity" : 50, "mic" : "CRC", "mod" : "ASK", "freq" : 433.989, "rssi" : -0.155, "snr" : 28.372, "noise" : -28.527}
True
Tick! The time is: 2022-12-18 08:11:34.416670
-------------
Current State
-------------
-------------
latest MainSensor Reading= 2022-12-18 08:11:22
------Patting The Dog-------
MainDeviceNumber= 90
OutdoorTemperature = 2.67
OutdoorHumidity = 94
latest Indoor Sensor Reading= 2022-12-18 08:11:22
IndoorDeviceNumber= 2
IndoorTemperature = 15.89
IndoorHumidity = 50
Rain60Minutes = 0.0
SunlightVisible = 74
SunlightUVIndex = 0.0
WindSpeed = 2.3
WindGust = 3.6
WindDirection = 57
TotalRain = 381.6
BarometricTemperature = 24.35
BarometricPressure = 99.49235
Altitude = 187.0
BarometricPressureSeaLevel = 101.72724
BarometricTemperature = 24.35
barometricTrend = True
pastBarometricReading = 0
AQI = 0.0
Hour24_AQI = 0.0
WS_AQI = 0.0
WS_Hour24_AQI = 0.0
Main Battery Status = OK
CPU Temperature = 0.0
Serial Number = 175
RSSI = -0.161
SNR = 28.761
NOISE = -28.922
-------------
runRainbow = False
flashStrip = False
runOLED = True
-------------
Last_Event = My Last Event
-------------
batteryVoltage 0
batteryCurrent 0
solarVoltage 0
solarCurrent 0
loadVoltage 0
loadCurrent 0
batteryPower 0
solarPower 0
loadPower 0
batteryCharge 0
SolarMAX Inside Temperature 0.0
SolarMAX Inside Humidity 0.0
SolarMAX Last Received Never
-------------
-------------
-------------
fanState = False
-------------
processing FT020T Data
This is the raw data: {"time" : "2022-12-18 08:11:34", "model" : "SwitchDoc Labs FT020T AIO", "device" : 12, "id" : 175, "batterylow" : 0, "avewindspeed" : 10, "gustwindspeed" : 13, "winddirection" : 56, "cumulativerain" : 3816, "temperature" : 768, "humidity" : 94, "light" : 74, "uv" : 0, "mic" : "CRC", "mod" : "ASK", "freq" : 433.985, "rssi" : -0.160, "snr" : 27.213, "noise" : -27.373}
processing FT020T Data
This is the raw data: {"time" : "2022-12-18 08:11:34", "model" : "SwitchDoc Labs FT020T AIO", "device" : 12, "id" : 175, "batterylow" : 0, "avewindspeed" : 10, "gustwindspeed" : 13, "winddirection" : 56, "cumulativerain" : 3816, "temperature" : 768, "humidity" : 94, "light" : 74, "uv" : 0, "mic" : "CRC", "mod" : "ASK", "freq" : 433.985, "rssi" : -0.160, "snr" : 27.213, "noise" : -27.373}
duplicate found
Processing F016TH data
This is the raw data: {"time" : "2022-12-18 08:11:40", "model" : "SwitchDoc Labs F016TH Thermo-Hygrometer", "device" : 119, "modelnumber" : 5, "channel" : 1, "battery" : "OK", "temperature_F" : 41.200, "humidity" : 73, "mic" : "CRC", "mod" : "ASK", "freq" : 433.991, "rssi" : -0.137, "snr" : 26.822, "noise" : -26.959}
True
processing FT020T Data
This is the raw data: {"time" : "2022-12-18 08:11:50", "model" : "SwitchDoc Labs FT020T AIO", "device" : 12, "id" : 175, "batterylow" : 0, "avewindspeed" : 19, "gustwindspeed" : 23, "winddirection" : 112, "cumulativerain" : 3816, "temperature" : 768, "humidity" : 94, "light" : 83, "uv" : 0, "mic" : "CRC", "mod" : "ASK", "freq" : 433.985, "rssi" : -0.131, "snr" : 26.698, "noise" : -26.829}
------Patting The Dog-------