Return-Path: Received: from post.thorcom.com (post.thorcom.com [195.171.43.25]) by klubnl.pl (8.14.4/8.14.4/Debian-8+deb8u2) with ESMTP id w3BHTiPd031682 for ; Wed, 11 Apr 2018 19:29:45 +0200 Received: from majordom by post.thorcom.com with local (Exim 4.14) id 1f6JTp-0005MC-Bz for rs_out_1@blacksheep.org; Wed, 11 Apr 2018 18:24:21 +0100 Received: from [195.171.43.32] (helo=relay1.thorcom.net) by post.thorcom.com with esmtp (Exim 4.14) id 1f6JTj-0005M3-09 for rsgb_lf_group@blacksheep.org; Wed, 11 Apr 2018 18:24:15 +0100 Received: from resqmta-ch2-04v.sys.comcast.net ([2001:558:fe21:29:69:252:207:36]) by relay1.thorcom.net with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1f6JTf-0000Vl-Oo for rsgb_lf_group@blacksheep.org; Wed, 11 Apr 2018 18:24:13 +0100 Received: from resomta-ch2-15v.sys.comcast.net ([69.252.207.111]) by resqmta-ch2-04v.sys.comcast.net with ESMTP id 6JSwfaKBTKNik6JTbfIudg; Wed, 11 Apr 2018 17:24:07 +0000 X-DKIM-Result: Domain=comcast.net Result=Signature OK DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20161114; t=1523467447; bh=qnLTjyXGDBaCUHTUP5OXdiBy9lQOTDBzbPZncrTSLpM=; h=Received:Received:Reply-To:Subject:To:From:Message-ID:Date: MIME-Version:Content-Type; b=duOlkNEIaInQa7FyOkTUxxiaUyFLF6EsQQ9OmDt/1s5uAZJn+ovbCXHYnUvQ2Ye0j vjJn/uWOAZrn0TVWw+pFe2HBVMpcVjWRyP0LKLoL1w6z+ydLDgbL6fhY5/oRbDNl/M lEZUHlfcr9cX6QCq0qyT2/X8i/Pd/HZi80Jcv2X6hh8UrIp4ga5yYn7zYVlu1uy30z 33LGSdHpCLXkaIuS2or196upu5Q3Nr14pGk7gnxAWWdF5BLOK2uUl5WhThTOpKQM+u XBTY4O7TdVAuwuU3dKx/Qm38D6EidMkTdgGf2xpXQij8ee/rIb9F8NbOuteRQb7djH RJtdTHxlg6lJg== Received: from [192.168.10.244] ([73.230.224.26]) by resomta-ch2-15v.sys.comcast.net with SMTP id 6JTZfYK8pCP4V6JTZfvSiM; Wed, 11 Apr 2018 17:24:07 +0000 To: rsgb_lf_group@blacksheep.org References: <1215299641.20180411111636@gmail.com> From: Roger Rehr W3SZ Message-ID: <4655ab7f-9c87-4ce0-f577-b3273286347e@comcast.net> Date: Wed, 11 Apr 2018 13:24:05 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US X-CMAE-Envelope: MS4wfI1C57htSD163gjYrWciVmjPJF9qiAeVU03bL4+PgOP/5EBk40zmw8baK947DYmL0XGRM3eEr29Ao9QWVxXJ41UgnZDtIOiDrcYls7OcRPxQmn7SRML9 pdfg4X8K5Kv9Ujgf3vsRTtcwWUhqTJx4B8plGGaN5Aq0goelWsBTRJjupqy60rc3kKAkdgqZYz5/rQ== X-Spam-Score: 0.0 (/) X-Spam-Report: Spam detection software, running on the system "relay1.thorcom.net", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Thanks Peter, Concise and Elegant! 73, [...] Content analysis details: (0.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (w3sz[at]comcast.net) 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid X-Scan-Signature: 33d261536bb1467bb13d5764461d5ec4 Subject: Re: LF: Windows software to drive a relay at a given time? Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on post.thorcom.com X-Spam-Level: X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.63 X-SA-Exim-Scanned: Yes Sender: owner-rsgb_lf_group@blacksheep.org Precedence: bulk Reply-To: rsgb_lf_group@blacksheep.org X-Listname: rsgb_lf_group X-SA-Exim-Rcpt-To: rs_out_1@blacksheep.org X-SA-Exim-Scanned: No; SAEximRunCond expanded to false Thanks Peter, Concise and Elegant! 73, Roger W3SZ On 4/11/2018 1:03 PM, P. W. Schnoor wrote: > Hi Chris, > > On 11.04.2018 12:16, you wrote: >> ... >> Software to close a relay at a given time, perhaps via the serial port? >> ... > > Seven lines of "Python" and a relay circuit connected to com1, RTS-pin: > > # import libraries: > import serial # see https://pythonhosted.org/pyserial/ > import time   # needed for time delay ("sleep()") > > # Create a connection object to com1: > com = serial.Serial('com1', baudrate=9600, bytesize=serial.EIGHTBITS, > parity=serial.PARITY_NONE, stopbits=serial.STOPBITS_ONE, timeout=1, > xonxoff=0, rtscts=0 ) > > com.setRTS(True)  # CLICK! > > time.sleep(60)    # Wait 60 sec. or whatever > > com.setRTS(False) # CLACK! > > com.close() > # END > > Use the standard system tool "Windows Task Scheduler" to run it at a > given time. I did not check it on Windows, but on Linux (device name > changed and using cron) it works driving an old rtty-relay > ("Kleinpolrelais") from Siemens directly. > > Peter, df3lp >