alarm does not send email

249 views
Skip to first unread message

Steve2Q

unread,
Jul 13, 2015, 8:36:42 PM7/13/15
to weewx...@googlegroups.com
Hello: I installed the version of alarm.py that is on GitHub. When I start Weewx, the log show that my expression (inTemp > 80) is True, but I have not received an email. There are no errors shown in syslog. I am running 3.1.0.

Thanks, Steve

Thomas Keffer

unread,
Jul 13, 2015, 8:41:56 PM7/13/15
to weewx-user
You're not giving much in the way of details.

What did you put in weewx.conf?

You may not think there is anything in the log, but if you ran with debug=1, it will show whether the alarm service loaded.

If it loaded, it will show whether or not the alarm was set, or there was an error in the expression you used.

Otherwise, there isn't much I can tell you from the little information you provided.

-tk



On Mon, Jul 13, 2015 at 5:36 PM, Steve2Q <ste...@gmail.com> wrote:
Hello: I installed the version of alarm.py that is on GitHub. When I start Weewx, the log show that my expression (inTemp > 80) is True, but I have not received an email. There are no errors shown in syslog. I am running 3.1.0.

Thanks, Steve

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Steve2Q

unread,
Jul 13, 2015, 9:43:27 PM7/13/15
to weewx...@googlegroups.com
Tom: here is the information:

debug =1 yields following (for one archive period):


The following are [Engine] and [Alarm] from weewx.conf:

Jul 13 21:35:46 raspi2 weewx[2335]: engine: Initializing weewx version 3.1.0
Jul 13 21:35:46 raspi2 weewx[2335]: engine: Using Python 2.7.3 (default, Mar 18 2014, 05:13:23) #012[GCC 4.6.3]
Jul 13 21:35:46 raspi2 weewx[2335]: engine: pid file is /var/run/weewx.pid
Jul 13 21:35:46 raspi2 weewx[2449]: engine: Using configuration file /home/weewx/weewx.conf
Jul 13 21:35:46 raspi2 weewx[2449]: engine: Initializing engine
Jul 13 21:35:46 raspi2 weewx[2449]: engine: Loading station type Ultimeter (weewx.drivers.ultimeter)
Jul 13 21:35:46 raspi2 weewx[2449]: ultimeter: driver version is 0.13
Jul 13 21:35:46 raspi2 weewx[2449]: ultimeter: using serial port /dev/ttyUSB0
Jul 13 21:35:46 raspi2 weewx[2449]: ultimeter: open serial port /dev/ttyUSB0
Jul 13 21:35:46 raspi2 weewx[2449]: engine: Loading service weewx.engine.StdTimeSynch
Jul 13 21:35:46 raspi2 weewx[2449]: engine: Finished loading service weewx.engine.StdTimeSynch
Jul 13 21:35:46 raspi2 weewx[2449]: engine: Loading service weewx.engine.StdConvert
Jul 13 21:35:46 raspi2 weewx[2449]: engine: StdConvert target unit is 0x1
Jul 13 21:35:46 raspi2 weewx[2449]: engine: Finished loading service weewx.engine.StdConvert
Jul 13 21:35:46 raspi2 weewx[2449]: engine: Loading service weewx.engine.StdCalibrate
Jul 13 21:35:46 raspi2 weewx[2449]: engine: Finished loading service weewx.engine.StdCalibrate
Jul 13 21:35:46 raspi2 weewx[2449]: engine: Loading service weewx.engine.StdQC
Jul 13 21:35:46 raspi2 weewx[2449]: engine: Finished loading service weewx.engine.StdQC
Jul 13 21:35:46 raspi2 weewx[2449]: engine: Loading service weewx.wxservices.StdWXCalculate
Jul 13 21:35:46 raspi2 weewx[2449]: engine: Finished loading service weewx.wxservices.StdWXCalculate
Jul 13 21:35:46 raspi2 weewx[2449]: engine: Loading service weewx.engine.StdArchive
Jul 13 21:35:46 raspi2 weewx[2449]: engine: Archive will use data binding wx_binding
Jul 13 21:35:46 raspi2 weewx[2449]: engine: Record generation will be attempted in 'software'
Jul 13 21:35:46 raspi2 weewx[2449]: engine: Using archive interval of 120 seconds
Jul 13 21:35:46 raspi2 weewx[2449]: engine: Use LOOP data in hi/low calculations: 1
Jul 13 21:35:46 raspi2 weewx[2449]: engine: Using binding 'wx_binding' to database 'archive/weewx.sdb'
Jul 13 21:35:46 raspi2 weewx[2449]: engine: Starting backfill of daily summaries
Jul 13 21:35:46 raspi2 weewx[2449]: engine: Daily summaries up to date.
Jul 13 21:35:46 raspi2 weewx[2449]: engine: Finished loading service weewx.engine.StdArchive
Jul 13 21:35:46 raspi2 weewx[2449]: engine: Loading service weewx.restx.StdStationRegistry
Jul 13 21:35:46 raspi2 weewx[2449]: restx: StationRegistry: Station will be registered.
Jul 13 21:35:46 raspi2 weewx[2449]: engine: Finished loading service weewx.restx.StdStationRegistry
Jul 13 21:35:46 raspi2 weewx[2449]: engine: Loading service weewx.restx.StdWunderground
Jul 13 21:35:46 raspi2 weewx[2449]: restx: Wunderground-RF: Data for station KFLBOYNT40 will be posted
Jul 13 21:35:46 raspi2 weewx[2449]: engine: Finished loading service weewx.restx.StdWunderground
Jul 13 21:35:46 raspi2 weewx[2449]: engine: Loading service weewx.restx.StdPWSweather
Jul 13 21:35:46 raspi2 weewx[2449]: restx: PWSWeather: Data for station KFLBOYNT40 will be posted
Jul 13 21:35:46 raspi2 weewx[2449]: engine: Finished loading service weewx.restx.StdPWSweather
Jul 13 21:35:46 raspi2 weewx[2449]: engine: Loading service weewx.restx.StdCWOP
Jul 13 21:35:46 raspi2 weewx[2449]: restx: CWOP: Data will not be posted. Missing option: 'station'
Jul 13 21:35:46 raspi2 weewx[2449]: engine: Finished loading service weewx.restx.StdCWOP
Jul 13 21:35:46 raspi2 weewx[2449]: engine: Loading service weewx.restx.StdWOW
Jul 13 21:35:46 raspi2 weewx[2449]: restx: WOW: Data will not be posted: Missing option 'station'
Jul 13 21:35:46 raspi2 weewx[2449]: engine: Finished loading service weewx.restx.StdWOW
Jul 13 21:35:46 raspi2 weewx[2449]: engine: Loading service weewx.restx.StdAWEKAS
Jul 13 21:35:46 raspi2 weewx[2449]: restx: AWEKAS: Data will not be posted: Missing option 'username'
Jul 13 21:35:46 raspi2 weewx[2449]: engine: Finished loading service weewx.restx.StdAWEKAS
Jul 13 21:35:46 raspi2 weewx[2449]: engine: Loading service weewx.engine.StdPrint
Jul 13 21:35:46 raspi2 weewx[2449]: engine: Finished loading service weewx.engine.StdPrint
Jul 13 21:35:46 raspi2 weewx[2449]: engine: Loading service weewx.engine.StdReport
Jul 13 21:35:46 raspi2 weewx[2449]: engine: Finished loading service weewx.engine.StdReport
Jul 13 21:35:46 raspi2 weewx[2449]: engine: Loading service examples.alarm.MyAlarm
Jul 13 21:35:46 raspi2 weewx[2449]: alarm: Alarm set for expression: 'inTemp > 78.0'
Jul 13 21:35:46 raspi2 weewx[2449]: engine: Finished loading service examples.alarm.MyAlarm
Jul 13 21:35:46 raspi2 weewx[2449]: engine: Starting up weewx version 3.1.0
Jul 13 21:35:46 raspi2 weewx[2449]: engine: Station does not support reading the time
Jul 13 21:35:46 raspi2 weewx[2449]: engine: Starting main packet loop.
Jul 13 21:35:46 raspi2 weewx[2449]: ultimeter: Failed attempt 1 of 10 to get readings: Unexpected buffer length 13
Jul 13 21:36:26 raspi2 weewx[2449]: manager: added record 2015-07-13 21:36:00 EDT (1436837760) to database 'archive/weewx.sdb'
Jul 13 21:36:26 raspi2 weewx[2449]: manager: added record 2015-07-13 21:36:00 EDT (1436837760) to daily summary in 'archive/weewx.sdb'
Jul 13 21:36:27 raspi2 weewx[2449]: alarm: Alarm expression "inTemp > 78.0" evaluated True at 2015-07-13 21:36:00 EDT (1436837760)
Jul 13 21:36:27 raspi2 weewx[2449]: reportengine: Running reports for latest time in the database.
Jul 13 21:36:27 raspi2 weewx[2449]: reportengine: Running report StandardReport
Jul 13 21:36:27 raspi2 weewx[2449]: reportengine: Found configuration file /home/weewx/skins/Standard/skin.conf for report StandardReport
Jul 13 21:36:27 raspi2 weewx[2449]: restx: PWSWeather: Published record 2015-07-13 21:36:00 EDT (1436837760)
Jul 13 21:36:32 raspi2 weewx[2449]: restx: StationRegistry: Published record 2015-07-13 21:36:00 EDT (1436837760)
Jul 13 21:36:37 raspi2 weewx[2449]: cheetahgenerator: Generated 14 files for report StandardReport in 9.26 seconds
Jul 13 21:36:39 raspi2 weewx[2449]: genimages: Generated 12 images for StandardReport in 1.89 seconds
Jul 13 21:36:39 raspi2 weewx[2449]: reportengine: copied 9 files to /home/weewx/public_html
Jul 13 21:36:39 raspi2 weewx[2449]: reportengine: Running report SteelSeries
Jul 13 21:36:39 raspi2 weewx[2449]: reportengine: Found configuration file /home/weewx/skins/ss/skin.conf for report SteelSeries
Jul 13 21:36:39 raspi2 weewx[2449]: reportengine: copied 6 files to /home/weewx/public_html/ss
Jul 13 21:36:41 raspi2 weewx[2449]: cheetahgenerator: Generated 2 files for report SteelSeries in 1.40 seconds
Jul 13 21:36:45 raspi2 weewx[2449]: genimages: Generated 9 images for SteelSeries in 4.42 seconds
Jul 13 21:36:45 raspi2 weewx[2449]: reportengine: Running report FTP
Jul 13 21:36:45 raspi2 weewx[2449]: reportengine: Found configuration file /home/weewx/skins/Ftp/skin.conf for report FTP
Jul 13 21:36:45 raspi2 weewx[2449]: ftpupload: Attempting connection to www.photokinetics.org
Jul 13 21:36:45 raspi2 weewx[2449]: ftpupload: Connected to www.photokinetics.org
Jul 13 21:36:46 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/dayrx.png
Jul 13 21:36:46 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/index.html
Jul 13 21:36:46 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/daypond.png
Jul 13 21:36:47 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/daytempdew.png
Jul 13 21:36:47 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/daybarometer.png
Jul 13 21:36:47 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/dayrain.png
Jul 13 21:36:47 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/favicon.ico
Jul 13 21:36:48 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/mobile.html
Jul 13 21:36:48 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/week.html
Jul 13 21:36:48 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/daytempchill.png
Jul 13 21:36:48 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/daywinddir.png
Jul 13 21:36:49 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/month.html
Jul 13 21:36:49 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/daywindvec.png
Jul 13 21:36:49 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/weewx.css
Jul 13 21:36:50 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/dayinside.png
Jul 13 21:36:50 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/dayradiation.png
Jul 13 21:36:50 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/year.html
Jul 13 21:36:50 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/dayuv.png
Jul 13 21:36:51 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/mobile.css
Jul 13 21:36:51 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/daywind.png
Jul 13 21:36:51 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/NOAA/NOAA-2015.txt
Jul 13 21:36:52 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/NOAA/NOAA-2015-07.txt
Jul 13 21:36:52 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/ss/dayrainrate.png
Jul 13 21:36:52 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/ss/index.html
Jul 13 21:36:52 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/ss/daybarometer.png
Jul 13 21:36:53 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/ss/dayrain.png
Jul 13 21:36:53 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/ss/gauge-data.txt
Jul 13 21:36:54 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/ss/dayouttemphum.png
Jul 13 21:36:54 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/ss/daywinddir.png
Jul 13 21:36:54 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/ss/daywindvec.png
Jul 13 21:36:54 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/ss/dayinouthum.png
Jul 13 21:36:55 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/ss/dayinouttemp.png
Jul 13 21:36:55 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/ss/daywind.png
Jul 13 21:36:55 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/ss/css/gauges-ss.css
Jul 13 21:36:56 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/ss/scripts/RGraph.rose.min.js
Jul 13 21:36:56 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/ss/scripts/steelseries_tween.min.js
Jul 13 21:36:57 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/ss/scripts/gauges.js
Jul 13 21:36:57 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/ss/scripts/RGraph.common.core.min.js
Jul 13 21:36:57 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/ss/scripts/language.min.js
Jul 13 21:36:58 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/RSS/weewx_rss.xml
Jul 13 21:36:58 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/smartphone/custom.js
Jul 13 21:36:58 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/smartphone/index.html
Jul 13 21:36:59 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/smartphone/wind.html
Jul 13 21:36:59 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/smartphone/barometer.html
Jul 13 21:36:59 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/smartphone/temp_outside.html
Jul 13 21:36:59 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/smartphone/rain.html
Jul 13 21:37:00 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/smartphone/radar.html
Jul 13 21:37:00 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/smartphone/icons/icon_iphone_x2.png
Jul 13 21:37:00 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/smartphone/icons/icon_ipad_x1.png
Jul 13 21:37:00 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/smartphone/icons/icon_iphone_x1.png
Jul 13 21:37:01 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/smartphone/icons/icon_ipad_x2.png
Jul 13 21:37:01 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/backgrounds/band.gif
Jul 13 21:37:01 raspi2 weewx[2449]: reportengine: ftp'd 52 files in 16.02 seconds
Jul 13 21:37:01 raspi2 weewx[2449]: reportengine: Running report RSYNC
Jul 13 21:37:01 raspi2 weewx[2449]: reportengine: Found configuration file /home/weewx/skins/Rsync/skin.conf for report RSYNC
Jul 13 21:37:01 raspi2 weewx[2449]: reportengine: rsync upload not requested. Skipped.
Jul 13 21:38:01 raspi2 weewx[2449]: manager: added record 2015-07-13 21:38:00 EDT (1436837880) to database 'archive/weewx.sdb'
Jul 13 21:38:01 raspi2 weewx[2449]: manager: added record 2015-07-13 21:38:00 EDT (1436837880) to daily summary in 'archive/weewx.sdb'
Jul 13 21:38:02 raspi2 weewx[2449]: restx: StationRegistry: wait interval (120 < 604800) has not passed for record 2015-07-13 21:38:00 EDT (1436837880)
Jul 13 21:38:02 raspi2 weewx[2449]: reportengine: Running reports for latest time in the database.
Jul 13 21:38:02 raspi2 weewx[2449]: reportengine: Running report StandardReport
Jul 13 21:38:02 raspi2 weewx[2449]: reportengine: Found configuration file /home/weewx/skins/Standard/skin.conf for report StandardReport
Jul 13 21:38:02 raspi2 weewx[2449]: restx: PWSWeather: Published record 2015-07-13 21:38:00 EDT (1436837880)
Jul 13 21:38:06 raspi2 weewx[2449]: cheetahgenerator: Generated 14 files for report StandardReport in 3.29 seconds
Jul 13 21:38:07 raspi2 weewx[2449]: genimages: Generated 12 images for StandardReport in 1.83 seconds
Jul 13 21:38:07 raspi2 weewx[2449]: reportengine: copied 0 files to /home/weewx/public_html
Jul 13 21:38:07 raspi2 weewx[2449]: reportengine: Running report SteelSeries
Jul 13 21:38:07 raspi2 weewx[2449]: reportengine: Found configuration file /home/weewx/skins/ss/skin.conf for report SteelSeries
Jul 13 21:38:07 raspi2 weewx[2449]: reportengine: copied 0 files to /home/weewx/public_html/ss
Jul 13 21:38:08 raspi2 weewx[2449]: cheetahgenerator: Generated 2 files for report SteelSeries in 0.21 seconds
Jul 13 21:38:09 raspi2 weewx[2449]: genimages: Generated 9 images for SteelSeries in 1.62 seconds
Jul 13 21:38:09 raspi2 weewx[2449]: reportengine: Running report FTP
Jul 13 21:38:09 raspi2 weewx[2449]: reportengine: Found configuration file /home/weewx/skins/Ftp/skin.conf for report FTP
Jul 13 21:38:09 raspi2 weewx[2449]: ftpupload: Attempting connection to www.photokinetics.org
Jul 13 21:38:10 raspi2 weewx[2449]: ftpupload: Connected to www.photokinetics.org
Jul 13 21:38:10 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/dayrx.png
Jul 13 21:38:10 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/index.html
Jul 13 21:38:10 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/daypond.png
Jul 13 21:38:11 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/daytempdew.png
Jul 13 21:38:11 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/daybarometer.png
Jul 13 21:38:11 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/dayrain.png
Jul 13 21:38:11 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/mobile.html
Jul 13 21:38:12 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/week.html
Jul 13 21:38:12 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/daytempchill.png
Jul 13 21:38:12 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/daywinddir.png
Jul 13 21:38:13 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/month.html
Jul 13 21:38:13 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/daywindvec.png
Jul 13 21:38:13 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/dayinside.png
Jul 13 21:38:13 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/dayradiation.png
Jul 13 21:38:14 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/year.html
Jul 13 21:38:14 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/dayuv.png
Jul 13 21:38:14 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/daywind.png
Jul 13 21:38:15 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/NOAA/NOAA-2015.txt
Jul 13 21:38:15 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/NOAA/NOAA-2015-07.txt
Jul 13 21:38:15 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/ss/dayrainrate.png
Jul 13 21:38:16 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/ss/index.html
Jul 13 21:38:16 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/ss/daybarometer.png
Jul 13 21:38:16 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/ss/dayrain.png
Jul 13 21:38:16 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/ss/gauge-data.txt
Jul 13 21:38:17 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/ss/dayouttemphum.png
Jul 13 21:38:17 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/ss/daywinddir.png
Jul 13 21:38:17 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/ss/daywindvec.png
Jul 13 21:38:18 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/ss/dayinouthum.png
Jul 13 21:38:18 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/ss/dayinouttemp.png
Jul 13 21:38:18 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/ss/daywind.png
Jul 13 21:38:19 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/RSS/weewx_rss.xml
Jul 13 21:38:19 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/smartphone/index.html
Jul 13 21:38:19 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/smartphone/wind.html
Jul 13 21:38:20 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/smartphone/barometer.html
Jul 13 21:38:20 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/smartphone/temp_outside.html
Jul 13 21:38:20 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/smartphone/rain.html
Jul 13 21:38:20 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/smartphone/radar.html
Jul 13 21:38:20 raspi2 weewx[2449]: reportengine: ftp'd 37 files in 11.27 seconds
Jul 13 21:38:20 raspi2 weewx[2449]: reportengine: Running report RSYNC
Jul 13 21:38:20 raspi2 weewx[2449]: reportengine: Found configuration file /home/weewx/skins/Rsync/skin.conf for report RSYNC
Jul 13 21:38:21 raspi2 weewx[2449]: reportengine: rsync upload not requested. Skipped.
Jul 13 21:39:39 raspi2 weewx[2449]: restx: Wunderground-RF: Failed upload attempt 1: Exception <urlopen error [Errno -2] Name or service not known>
Jul 13 21:40:01 raspi2 weewx[2449]: manager: added record 2015-07-13 21:40:00 EDT (1436838000) to database 'archive/weewx.sdb'
Jul 13 21:40:01 raspi2 weewx[2449]: manager: added record 2015-07-13 21:40:00 EDT (1436838000) to daily summary in 'archive/weewx.sdb'
Jul 13 21:40:02 raspi2 weewx[2449]: restx: StationRegistry: wait interval (240 < 604800) has not passed for record 2015-07-13 21:40:00 EDT (1436838000)
Jul 13 21:40:02 raspi2 weewx[2449]: reportengine: Running reports for latest time in the database.
Jul 13 21:40:02 raspi2 weewx[2449]: reportengine: Running report StandardReport
Jul 13 21:40:02 raspi2 weewx[2449]: reportengine: Found configuration file /home/weewx/skins/Standard/skin.conf for report StandardReport
Jul 13 21:40:02 raspi2 weewx[2449]: restx: PWSWeather: Published record 2015-07-13 21:40:00 EDT (1436838000)
Jul 13 21:40:05 raspi2 weewx[2449]: cheetahgenerator: Generated 14 files for report StandardReport in 3.25 seconds
Jul 13 21:40:07 raspi2 weewx[2449]: genimages: Generated 12 images for StandardReport in 1.79 seconds
Jul 13 21:40:07 raspi2 weewx[2449]: reportengine: copied 0 files to /home/weewx/public_html
Jul 13 21:40:07 raspi2 weewx[2449]: reportengine: Running report SteelSeries
Jul 13 21:40:07 raspi2 weewx[2449]: reportengine: Found configuration file /home/weewx/skins/ss/skin.conf for report SteelSeries
Jul 13 21:40:07 raspi2 weewx[2449]: reportengine: copied 0 files to /home/weewx/public_html/ss
Jul 13 21:40:07 raspi2 weewx[2449]: cheetahgenerator: Generated 2 files for report SteelSeries in 0.24 seconds
Jul 13 21:40:09 raspi2 weewx[2449]: genimages: Generated 9 images for SteelSeries in 1.64 seconds
Jul 13 21:40:09 raspi2 weewx[2449]: reportengine: Running report FTP
Jul 13 21:40:09 raspi2 weewx[2449]: reportengine: Found configuration file /home/weewx/skins/Ftp/skin.conf for report FTP
Jul 13 21:40:09 raspi2 weewx[2449]: ftpupload: Attempting connection to www.photokinetics.org
Jul 13 21:40:09 raspi2 weewx[2449]: ftpupload: Connected to www.photokinetics.org
Jul 13 21:40:10 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/dayrx.png
Jul 13 21:40:10 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/index.html
Jul 13 21:40:10 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/daypond.png
Jul 13 21:40:11 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/daytempdew.png
Jul 13 21:40:11 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/daybarometer.png
Jul 13 21:40:11 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/dayrain.png
Jul 13 21:40:11 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/mobile.html
Jul 13 21:40:12 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/week.html
Jul 13 21:40:12 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/daytempchill.png
Jul 13 21:40:12 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/daywinddir.png
Jul 13 21:40:12 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/month.html
Jul 13 21:40:13 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/daywindvec.png
Jul 13 21:40:13 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/dayinside.png
Jul 13 21:40:13 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/dayradiation.png
Jul 13 21:40:14 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/year.html
Jul 13 21:40:14 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/dayuv.png
Jul 13 21:40:14 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/daywind.png
Jul 13 21:40:14 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/NOAA/NOAA-2015.txt
Jul 13 21:40:15 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/NOAA/NOAA-2015-07.txt
Jul 13 21:40:15 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/ss/dayrainrate.png
Jul 13 21:40:15 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/ss/index.html
Jul 13 21:40:16 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/ss/daybarometer.png
Jul 13 21:40:16 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/ss/dayrain.png
Jul 13 21:40:16 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/ss/gauge-data.txt
Jul 13 21:40:17 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/ss/dayouttemphum.png
Jul 13 21:40:17 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/ss/daywinddir.png
Jul 13 21:40:17 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/ss/daywindvec.png
Jul 13 21:40:17 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/ss/dayinouthum.png
Jul 13 21:40:18 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/ss/dayinouttemp.png
Jul 13 21:40:18 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/ss/daywind.png
Jul 13 21:40:18 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/RSS/weewx_rss.xml
Jul 13 21:40:19 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/smartphone/index.html
Jul 13 21:40:19 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/smartphone/wind.html
Jul 13 21:40:19 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/smartphone/barometer.html
Jul 13 21:40:20 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/smartphone/temp_outside.html
Jul 13 21:40:20 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/smartphone/rain.html
Jul 13 21:40:20 raspi2 weewx[2449]: ftpupload: Uploaded file photokinetics.org/Weather/smartphone/radar.html
Jul 13 21:40:20 raspi2 weewx[2449]: reportengine: ftp'd 37 files in 11.18 seconds
Jul 13 21:40:20 raspi2 weewx[2449]: reportengine: Running report RSYNC
Jul 13 21:40:20 raspi2 weewx[2449]: reportengine: Found configuration file /home/weewx/skins/Rsync/skin.conf for report RSYNC
Jul 13 21:40:20 raspi2 weewx[2449]: reportengine: rsync upload not requested. Skipped.
Jul 13 21:40:41 raspi2 weewx[2449]: restx: Wunderground-RF: Failed upload attempt 1: Exception <urlopen error [Errno -2] Name or service not known>
Jul 13 21:41:01 raspi2 weewx[2449]: restx: Wunderground-RF: Failed upload attempt 1: Exception <urlopen error [Errno -2] Name or service not known>


[Engine]
    # This section configures the engine.
   
    [[Services]]
        # These are the services the engine should run:
        prep_services = weewx.engine.StdTimeSynch,
        data_services = ,
        process_services = weewx.engine.StdConvert, weewx.engine.StdCalibrate, weewx.engine.StdQC, weewx.wxservices.StdWXCalculate
        archive_services = weewx.engine.StdArchive,
        restful_services = weewx.restx.StdStationRegistry, weewx.restx.StdWunderground, weewx.restx.StdPWSweather, weewx.restx.StdCWOP, weewx.restx.StdWOW, weewx.restx.StdAWEKAS
        report_services = weewx.engine.StdPrint, weewx.engine.StdReport, examples.alarm.MyAlarm

[Alarm]
        expression = "inTemp > 78.0"
        time_wait = 3600
        smtp_host = smpt.gmail.com
        smtp_user = xxxxxx
        smtp_password =xxxxxxx
        mailto = xxx...@gmail.com
        from = xxx...@gmail.com
        subject = "Indoor Temp: T > 78 degrees"


Thanks, Steve

Thomas Keffer

unread,
Jul 13, 2015, 10:00:53 PM7/13/15
to weewx-user
There's something about your system that is preventing an outgoing SMTP email. Try this, using the python interpreter (you type what's in bold).

python
>>> import smtplib
>>> s = smtplib.SMTP('smtp.gmail.com')
>>> s.ehlo()
>>> s.starttls()
>>> s.ehlo()
>>> s.login('your_user_name', 'your_password')

It's also possible that you have two-step authentication set on your gmail account, so it's not accepting the login.

-tk

gjr80

unread,
Jul 13, 2015, 11:46:17 PM7/13/15
to weewx...@googlegroups.com
smtp_host = smpt.gmail.com might be causing the problem? You might get better mileage with smtp_host = smtp.gmail.com ?

Gary

Thomas Keffer

unread,
Jul 14, 2015, 12:10:23 AM7/14/15
to weewx-user
Good eye, Gary! Yes, that's probably it.

-tk

On Mon, Jul 13, 2015 at 8:46 PM, gjr80 <gjrod...@gmail.com> wrote:
smtp_host = smpt.gmail.com might be causing the problem? You might get better mileage with smtp_host = smtp.gmail.com ?

Gary

Steve2Q

unread,
Jul 14, 2015, 11:13:58 AM7/14/15
to weewx...@googlegroups.com
Gary..yes, good eye! Can't tell you how long I checked the program and did not see that error. I changed it and ran the program before implementing Tom's suggestion. Unfortunately, I still received no email. I then started entering the Python code and when I entered the 2nd line (>>> s = smtp.SMTP('smtp.gmail.com'), it returned the following:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/smtplib.py" line 249, in _init_
(code,msg) = self.connect(host, port)
File "/usr/lib/python2.7/smtplib.py" line 309, in connect
self.sock = self._get_socket(host, port, self.timeout)
File "/usr/lib/python2.7/smtplib.py" line 284, in _get_socket
return socket.create_connection((port, host), timeout)
File "/usr/lib/python2.7/smtplib.py" line 571, in create_connection
raise err
socket.error [Errno 97] Address family not supported by protocol


I have to add that I do have a cronjob which successfully sends an email to the same address at 0001 to notify me that an archive backup was completed.

Steve

Thomas Keffer

unread,
Jul 14, 2015, 11:42:10 AM7/14/15
to weewx-user
Hi, Steve

Seems to be a configuration problem. My guess is that gmail needs a different port number. You could try

s=smtp.SMTP('smtp.gmail.com', 587)

other ports to try are 465 or 25.

It's also possible that gmail is resolving to an IPV6 address, which may or may not be supported on your machine and/or Internet provider.

-tk


Dave Webb KB1PVH

unread,
Jul 14, 2015, 12:07:28 PM7/14/15
to weewx...@googlegroups.com

One note on Gmail. You may need to downgrade your Gmail security settings to allow third party access. I had a problem with some ham radio applications being blocked from sending emails.

Dave-KB1PVH

Sent from my Samsung S4

Steve2Q

unread,
Jul 14, 2015, 5:31:47 PM7/14/15
to weewx...@googlegroups.com
Thanks, Dave..tried that and still no go. I also tried the other suggestions. With debut = 1, no error messages are in the log file.

I tried the following command:  echo “Test text” | mail -s “Test Mail”me@gmail.com   and this sent an email successfully.

This is the contents of    
/etc/ssmtp/ssmtp.conf

#
# Config file for sSMTP sendmail
#
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
root=postmaster

# The place where the mail goes. The actual machine name is required no
# MX records are consulted. Commonly mailhosts are named mail.domain.com
mailhub=smtp.gmail.com:587

# Where will the mail seem to come from?
#rewriteDomain=

# The full hostname
hostname=raspi2

# Are users allowed to set their own From: address?
# YES - Allow the user to specify their own From: address
# NO - Use the system generated From: address

AuthUser=m...@gmail.com
AuthPass=PASSWORD
FromLineOverride=YES
UseSTARTTLS=YES

More ideas?  I don't know if ssmpt is relevant to this discussion, but it is involved with sending an email out of Weewx.  Perhaps change any references for smtp to ssmtp?


Steve  N2QLQ

gjr80

unread,
Jul 14, 2015, 10:42:29 PM7/14/15
to weewx...@googlegroups.com
Hmm, this got me wondering as I use the lowBattery service (which uses very similar code to alarm.py) to alert me if my console battery is low, never had an email from it so thought I would check it. Turns out I never re-installed it when I cut from RPi to Odroid, but that is another story.

Anyway, lowBattery works and sends emails from/to my non-gmail hosted accounts fine. Thought I would try sending through my gmail account. Used smtp_host = smtp.gmail.com:587 in weewx.conf and it worked fine. Looked back though the posts above and did not see anything that confirmed this had been tried?

As an aside using the python command line code that Tom mentioned for me kept on giving an error, no matter what host address or port I used.

>>> s = smtplib.SMTP('smtp.gmail.com:587')

Traceback (most recent call last):
 
File "<stdin>", line 1, in <module>

 
File "/usr/lib/python2.7/smtplib.py", line 249, in __init__
   
(code, msg) = self.connect(host, port)
 
File "/usr/lib/python2.7/smtplib.py", line 309, in connect
   
self.sock = self._get_socket(host, port, self.timeout)
 
File "/usr/lib/python2.7/smtplib.py", line 284, in _get_socket
   
return socket.create_connection((port, host), timeout)
 
File "/usr/lib/python2.7/socket.py", line 553, in create_connection
   
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
socket
.gaierror: [Errno -2] Name or service not known

Gary


On Wednesday, 15 July 2015 07:31:47 UTC+10, Steve2Q wrote:
Thanks, Dave..tried that and still no go. I also tried the other suggestions. With debut = 1, no error messages are in the log file.

I tried the following command:  echo “Test text” | mail -s “Test Mail”me...@gmail.com   and this sent an email successfully.


This is the contents of    
/etc/ssmtp/ssmtp.conf


#
# Config file for sSMTP sendmail
#
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
root=postmaster

# The place where the mail goes. The actual machine name is required no
# MX records are consulted. Commonly mailhosts are named mail.domain.com
mailhub=smtp.gmail.com:587

# Where will the mail seem to come from?
#rewriteDomain=

# The full hostname
hostname=raspi2

# Are users allowed to set their own From: address?
# YES - Allow the user to specify their own From: address
# NO - Use the system generated From: address

AuthUser=m...@gmail.com
AuthPass=PASSWORD
FromLineOverride=YES
UseSTARTTLS=YES

Steve2Q

unread,
Jul 14, 2015, 11:41:48 PM7/14/15
to weewx...@googlegroups.com
Gary...Thank you!!  Adding the :587 to weewx.conf did the trick. I did not think to do this as I thought it would be taken care of when running the Python command line.

This group is great. Now back to trying to get the lightning detector working!

Steve


Thomas Keffer

unread,
Jul 15, 2015, 12:40:43 AM7/15/15
to weewx-user
Hmmm, I'm glad this is working out for you, but I must admit to being a bit mystified why the alarm example works, when typing in basically the same code from the command line, including the suggestion of trying port 587, did not work.

-tk

gjr80

unread,
Jul 15, 2015, 12:57:10 AM7/15/15
to weewx...@googlegroups.com
This prompted me to have another look why my command line python didn't work. Tried to ping a server from my online weewx machine and it could not resolve the address. Thought that explains why s=smtplib.SMTP('smtp.gmail.com:587') did not work from the python command line. Got onto my spare RPi and it could ping no problems and of course the smtplib...etc command worked fine from the command line. The funny thing is the very same machine that would not work at the python command line runs lowBattery fine and sends python generated emails just fine. Clearly I have some sort of issue with my network or maybe there is something different about python command line compared to running a python script.

Gary

Thomas Keffer

unread,
Jul 15, 2015, 9:24:08 AM7/15/15
to weewx-user
Or, maybe it's the smtp.SMTP('smtp.gmail.com:587') syntax versus the smtp.SMTP('smtp.gmail.com, 587) syntax?

-tk

gjr80

unread,
Jul 15, 2015, 9:32:35 AM7/15/15
to weewx...@googlegroups.com
Nope, tried that one. Actually read up on smtplib and when I saw the [, port] I thought aha! but no, exactly the same deal...

gary@stormbird:~$ python
Python 2.7.3 (default, Mar 14 2014, 17:55:54)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import smtplib
>>> s = smtplib.SMTP('smtp.gmail.com',587)

Traceback (most recent call last):
 
File "<stdin>", line 1, in <module>
 
File "/usr/lib/python2.7/smtplib.py", line 249, in __init__
   
(code, msg) = self.connect(host, port)
 
File "/usr/lib/python2.7/smtplib.py", line 309, in connect
   
self.sock = self._get_socket(host, port, self.timeout)
 
File "/usr/lib/python2.7/smtplib.py", line 284, in _get_socket
   
return socket.create_connection((port, host), timeout)
 
File "/usr/lib/python2.7/socket.py", line 553, in create_connection
   
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
socket
.gaierror: [Errno -2] Name or service not known
>>> s = smtplib.SMTP('smtp.gmail.com:587')
Traceback (most recent call last):
 
File "<stdin>", line 1, in <module>
 
File "/usr/lib/python2.7/smtplib.py", line 249, in __init__
   
(code, msg) = self.connect(host, port)
 
File "/usr/lib/python2.7/smtplib.py", line 309, in connect
   
self.sock = self._get_socket(host, port, self.timeout)
 
File "/usr/lib/python2.7/smtplib.py", line 284, in _get_socket
   
return socket.create_connection((port, host), timeout)
 
File "/usr/lib/python2.7/socket.py", line 553, in create_connection
   
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
socket
.gaierror: [Errno -2] Name or service not known
>>>

I think I will put this down to one of those little mysteries that I will dig into when I get some time...
Reply all
Reply to author
Forward
0 new messages