Re: [Dorset] Setting up an NTP Server in a Closed Network

2017-08-24 Thread Terry Coles
On Wednesday, 23 August 2017 19:42:02 BST Terry Coles wrote: > On Wednesday, 23 August 2017 18:10:45 BST Terry Coles wrote: > > I then executed 'sudo ntpd -q' after logging into buttspi. I've put the > > screenshot of the results at: > > > > http://hadrian-way.co.uk/M

Re: [Dorset] Setting up an NTP Server in a Closed Network

2017-08-23 Thread Terry Coles
On Wednesday, 23 August 2017 18:10:45 BST Terry Coles wrote: > I then executed 'sudo ntpd -q' after logging into buttspi. I've put the > screenshot of the results at: > > http://hadrian-way.co.uk/Misc/Butts_Pi_Screenshot.png > > As you can see, the sync is quicker, but it s

Re: [Dorset] Setting up an NTP Server in a Closed Network

2017-08-23 Thread Terry Coles
On Wednesday, 23 August 2017 18:10:45 BST Terry Coles wrote: > I then executed 'sudo ntpd -q' after logging into sumppi. I've

Re: [Dorset] Setting up an NTP Server in a Closed Network

2017-08-23 Thread Terry Coles
On Wednesday, 23 August 2017 15:44:18 BST Terry Coles wrote: > I've done a bit more research and discovered that it's not systemd that > allows services to start in parallel, but upstart. Raspbian Stretch does > use upstart, so I'm thinking that putting a delay in the ntp start

Re: [Dorset] Setting up an NTP Server in a Closed Network

2017-08-23 Thread Terry Coles
On Wednesday, 23 August 2017 14:30:12 BST Terry Coles wrote: > Raspberry Pi Stretch is running systemd but the ntpd service file is > installed in /etc/init.d. From this, I'm assuming that if I made a copy of > the ntp.service file and put a delay into it, that would work, but will >

Re: [Dorset] Setting up an NTP Server in a Closed Network

2017-08-23 Thread Terry Coles
chniques allow services to start in parallel, but I'm not sure if this applies to services that would have been started by init in days of yore. What do you think? -- Terry Coles -- Next meeting: Bournemouth, Tuesday, 2017-09-05 20:00 Meets, Mailing list, IRC, LinkedIn, .

Re: [Dorset] Setting up an NTP Server in a Closed Network

2017-08-22 Thread Terry Coles
other, ... That's pretty much what we've been doing. Thanks for your help. -- Terry Coles -- Next meeting: Bournemouth, Tuesday, 2017-09-05 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ New thread: mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING Reporting bugs well: http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR

Re: [Dorset] Setting up an NTP Server in a Closed Network

2017-08-21 Thread Terry Coles
On Monday, 21 August 2017 16:32:12 BST Terry Coles wrote: > For the Client we've added: > > server 192.168.0.2 > > to the server pool. > > For the Server we've added: > > restrict 192.168.0.0 mask 255.255.255.0 > > and: > >broadcast 192.

Re: [Dorset] Setting up an NTP Server in a Closed Network

2017-08-21 Thread Terry Coles
On Monday, 21 August 2017 17:30:18 BST Terry Coles wrote: > > Add the following two lines to your servers config. > > > > server 127.127.1.0 > > fudge 127.127.1.0 stratum 12 > > Hmmm. I tried that and still nogo. Should that have been 127.0.0.1? (I &g

Re: [Dorset] Setting up an NTP Server in a Closed Network

2017-08-21 Thread Terry Coles
) > This tells the server to use the system clock as a reference at stratum > 12. System clock on a Pi is a poor choice since the Pi doesn't have an > RTC so will get clobbered on every power cycle but it should get you > going. I forgot to mention; I have included a RASClock RTC

[Dorset] Setting up an NTP Server in a Closed Network

2017-08-21 Thread Terry Coles
examined the output of ntpq -pn, but it doesn't reveal anything to me that seems untoward, except that the both the Master and Remote Pis list 192.168.0.2 as the remote. See: http://hadrian-way.co.uk/Misc/Pi_NTP_Screenshot.png Any ideas? -- Terry Coles -- Next meeting

Re: [Dorset] Book on Python's Flask.

2017-08-07 Thread Terry Coles
h script as you allow it. > This email's also in part a test because lug.org.uk disappeared from DNS > for a while due to Nominet issues with validating the registrant, so if > anyone had bounces, that's why and it should be OK now. It arrived :-) -- Terry

Re: [Dorset] Kubuntu 17.04 Login Manager Fails to Start X.

2017-07-30 Thread Terry Coles
F1 and > that's the blank screen and flashing cursor. I failed to mention that I tried all those too, plus the other F keys. ;-( -- Terry Coles -- Next meeting: Bournemouth, Tuesday, 2017-08-01 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ New

Re: [Dorset] Kubuntu 17.04 Booting into the Shell Instead of the Desktop

2017-07-30 Thread Terry Coles
On Sunday, 30 July 2017 16:10:50 BST Terry Coles wrote: > There is a History log, but it's huge and has line lengths up to 7000 odd > chars. I'm not sure that I would notice if there was something amiss. Ooops. I should have said 'line lengths up to 70,000 odd

Re: [Dorset] Kubuntu 17.04 Booting into the Shell Instead of the Desktop

2017-07-30 Thread Terry Coles
backwards instead. If that works then one of "d", "l", or "w" > after the "b" might show useful information. I'll give it a try the next time it happens, but it doesn't seem to be reading the keyboard at all by then. I tried Alt Ctrl F1 to get a virtual cons

[Dorset] Next Meeting - One Week Tonight

2017-07-25 Thread Terry Coles
Hi, The next meeting is just one week away at the Broadway, Bournemouth at 20:00 on Tuesday evening, 2017-08-01. See: http://dorset.lug.org.uk/wiki/doku.php?id=meetings:pub#the_broadway Paul, Are you going? Your turn to drive I think. -- Terry Coles -- Next meeting

[Dorset] Downloading Code from Github

2017-07-23 Thread Terry Coles
only 'checked-out' a file if you intended to change it. -- Terry Coles -- Next meeting: Bournemouth, Tuesday, 2017-08-01 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ New thread: mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING Reporting

[Dorset] Using Github as a Bug Tracker

2017-07-20 Thread Terry Coles
are the Manager and staff of the WMT and possibly some of the other volunteers. Any thoughts? -- Terry Coles -- Next meeting: Bournemouth, Tuesday, 2017-08-01 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ New thread: mailto:dorset

[Dorset] Fwd: Re: Backups - what else do I need to do?

2017-06-29 Thread Terry Coles
nts fully since it arrived on the back of a Google 'Summer of Code' some years ago. -- Terry Coles -- Next meeting: Bournemouth, Tuesday, 2017-07-04 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ New thread: mailto:dorset@mailman.lug.org.uk /

[Dorset] Next Meeting - One Week Tonight

2017-06-27 Thread Terry Coles
Hi, The next meeting is just one week away at the Broadway, Bournemouth at 20:00 on Tuesday evening, 2017-07-04. See: http://dorset.lug.org.uk/wiki/doku.php?id=meetings:pub#the_broadway Paul, Are you going? My turn to drive. (It really is this time.) -- Terry Coles

Re: [Dorset] Last Night's Meeting

2017-06-26 Thread Terry Coles
s time is an installable version of Raspbian for the PC. I installed it on VMWare, but I've not been able to get the machine to run with a resolution of more than 640x480, but it does run. Thonny looks nice. -- Terry Coles -- Next meeting: Bournemouth, Tuesday, 2017-07-04 20:00 Meets, M

Re: [Dorset] YAWMT Question

2017-06-22 Thread Terry Coles
a problem with and that's mainly due to my lack of knowledge of the terminology used in the CS world.) -- Terry Coles -- Next meeting: Bournemouth, Tuesday, 2017-07-04 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ New thread: mailto:dorset@ma

Re: [Dorset] YAWMT Question

2017-06-22 Thread Terry Coles
On Thursday, 22 June 2017 12:17:56 BST Terry Coles wrote: > I'm not sure that I understand how this works. Taking the Remote Pi; it > reads the water level and writes the value to a variable. Fine so far, but > how can the Master Pi, then read that variable? That variable is a &

[Dorset] YAWMT Question

2017-06-22 Thread Terry Coles
the Ethernet link. However, my knowledge of database functionality is very much at the systems level, so before I embark on a programme of research, does anyone have any comments on this approach? If there is a better way, I'd like to hear about it. -- Terry Coles -- Next

Re: [Dorset] Last Night's Meeting

2017-06-07 Thread Terry Coles
s. I see that. Interestingly, I could see nothing about local vars, although his examples seem to use the same convention as globals. -- Terry Coles -- Next meeting: Bournemouth, Tuesday, 2017-07-04 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ New thread: mail

[Dorset] Last Night's Meeting

2017-06-07 Thread Terry Coles
to learn the ropes. On that note, there is one downside - the documentation seems to be extremely comprehensive, but a bit daunting as it's a 294 pp PDF ;-) Anyway, I thought I'd convey my first impressions in case anyone else hadn't come across this tool. -- Terry Coles

Re: [Dorset] Error in Python - UnsupportedOperation: fileno

2017-06-06 Thread Terry Coles
exists, or ./key-dec, or both, and adjust your PWM duty. Those two > files can be created and deleted outside of IDLE by some other means. > Either you with touch(1) and rm(1) in a shell, or a shell script that > creates a file for a second, then deletes it, etc., to give a test > scrip

Re: [Dorset] Error in Python - UnsupportedOperation: fileno

2017-06-06 Thread Terry Coles
ther look. -- Terry Coles -- Next meeting: Bournemouth, Tuesday, 2017-06-06 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ New thread: mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING Reporting bugs well: http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR

[Dorset] Error in Python - UnsupportedOperation: fileno

2017-06-06 Thread Terry Coles
ng? This code would appear to work for others (I see no comments saying it doesn't anyway), so why doesn't it work for me? -- Terry Coles -- Next meeting: Bournemouth, Tuesday, 2017-06-06 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ New th

[Dorset] Next Meeting - One Week Tonight

2017-05-30 Thread Terry Coles
Hi, The next meeting is just one week away at the Broadway, Bournemouth on Tuesday evening at 20:00; 2017-06-06. See: http://dorset.lug.org.uk/wiki/doku.php?id=meetings:pub#the_broadway Paul, Are you going? My turn to drive. -- Terry Coles -- Next meeting

Re: [Dorset] Help on home play project

2017-05-28 Thread Terry Coles
On Sunday, 28 May 2017 11:26:47 BST Terry Coles wrote: > rather than turbines have gained some prominence. There was once a water > mill on the River Allen (in Mill Street would you believe) although that That should be Mill Lane of course. -- Terry Coles -- Next m

Re: [Dorset] Help on home play project

2017-05-28 Thread Terry Coles
On Sunday, 28 May 2017 11:24:21 BST you wrote: > Mustn't forget the need to have it hidden from the visitors as it is not > a feature of the town. Horizontal paddle wheel under a bridge perhaps? Crossed over with my last post! -- Terry Coles -- Next meeting: Bourn

Re: [Dorset] Help on home play project

2017-05-28 Thread Terry Coles
r optical device such as the one Peter W identified the other day. I personally like the optical route, but we'd have more problems with the ingress of dirt with that, so the hall effect sensor may prevail. -- Terry Coles -- Next meeting: Bournemouth, Tuesday, 2017-06-

Re: [Dorset] Help on home play project

2017-05-28 Thread Terry Coles
ame along would block it! That's not to mention that these things are designed to run dry on the outside, run vertically and have a flow rate up to 30 litres / min at a pressure of 1.75 MPa through that tiny pipe. (1.75 MPa is 250 psi by the way :-) ) -- Terry Co

Re: [Dorset] Help on home play project

2017-05-27 Thread Terry Coles
access to a scope? You will be working in the dark if you don't know what the O/P looks like. -- Terry Coles -- Next meeting: Bournemouth, Tuesday, 2017-06-06 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ New thread: mailto:dorset@mailman.

Re: [Dorset] Message for Peter Merchent - Thermal Paste

2017-05-11 Thread Terry Coles
out. This would explain why emailing Peter is so hit and miss; I've had issues before, but emailed him successfully only yesterday. I also get similar symptoms when I email Tim. Presumably the mailservers at their ISPs are more stringent in applying blacklists than everyone else. --

[Dorset] Message for Peter Merchent - Thermal Paste

2017-05-11 Thread Terry Coles
t a 1st Class stamp on it. -- Terry Coles -- Next meeting: Bournemouth, Tuesday, 2017-06-06 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ New thread: mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING Reporting bugs well:

Re: [Dorset] Kubuntu 16.10 -> 17.04 Update/Upgrade Issue

2017-05-11 Thread Terry Coles
On Thursday, 11 May 2017 11:04:40 BST PeterMerchant via dorset wrote: > On 30/04/17 13:06, PeterMerchant via dorset wrote: > > On 19/04/17 10:16, Terry Coles wrote: > >> My copy of Kubuntu 16.10 (and earlier versions) has always had an > >> issue with the graphical up

Re: [Dorset] A New Wimborne Model Town Project Query - Sensing Water Levels and Flow

2017-05-05 Thread Terry Coles
sed he would about a month ago. To be fair, anyone who has bought the latest copy of MagPi can probably guess why. Preparing for this month's freebie must have taken up quite a lot of his time. -- Terry Coles -- Next meeting: Bournemouth, Tuesday, 2017-06-06 20:00 Meet

Re: [Dorset] A New Wimborne Model Town Project Query - Sensing Water Levels and Flow

2017-05-05 Thread Terry Coles
ackground in electronics and an IT student. We are going to take this slowly. -- Terry Coles -- Next meeting: Bournemouth, Tuesday, 2017-06-06 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ New thread: mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE

Re: [Dorset] A New Wimborne Model Town Project Query - Sensing Water Levels and Flow

2017-05-05 Thread Terry Coles
are right and I expect that we will do something like that. I would like to know what the inputs and outputs of the system are going to be before we try to simulate it, that's all :-) > Playing around in the water with sensor design could be in parallel, if > only there was enough volunte

Re: [Dorset] A New Wimborne Model Town Project Query - Sensing Water Levels and Flow

2017-05-04 Thread Terry Coles
e. We need to get the system design nailed down first and we can't do that until we've built and tested some sensors. -- Terry Coles -- Next meeting: Bournemouth, Tuesday, 2017-06-06 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ New thread

Re: [Dorset] A New Wimborne Model Town Project Query - Sensing Water Levels and Flow

2017-05-04 Thread Terry Coles
to know the level of water and the flow at various points around the system. -- Terry Coles -- Next meeting: Bournemouth, Tuesday, 2017-06-06 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ New thread: mailto:dorset@mailman.lug.org.uk / CHECK

Re: [Dorset] A New Wimborne Model Town Project Query - Sensing Water Levels and Flow

2017-05-04 Thread Terry Coles
ter periods of heavy rainfall. In the end, the monitoring and control is more about that scenario than the present one. -- Terry Coles -- Next meeting: Bournemouth, Tuesday, 2017-06-06 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ New thread: ma

Re: [Dorset] A New Wimborne Model Town Project Query - Sensing Water Levels and Flow

2017-05-04 Thread Terry Coles
l the flow of water in and out of the butts. > Also, I wrote my last e-mail before I had looked at the Wimbourne Model > Village web site. I imagined it would be indoors and a lot smaller than > it is! Yes. The Model Minster is too tall for me to work on the Quarter Jack without a

Re: [Dorset] A New Wimborne Model Town Project Query - Sensing Water Levels and Flow

2017-05-03 Thread Terry Coles
On Monday, 1 May 2017 12:26:09 BST Terry Coles wrote: > Has anyone ever done anything like this? Ideally, for level, an ultrasonic > sensor with a good level of water resistance would be ideal (it won't be > immersed, but it will be exposed to rain, mist etc). The capacitive sensor &

Re: [Dorset] A New Wimborne Model Town Project Query - Sensing Water Levels and Flow

2017-05-03 Thread Terry Coles
Share' icon in the right-hand side. I've been using this tool for years and never noticed that ;-) -- Terry Coles -- Next meeting: Bournemouth, Tuesday, 2017-06-06 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ New thread: mailto:dorset@mailman.lug.

Re: [Dorset] A New Wimborne Model Town Project Query - Sensing Water Levels and Flow

2017-05-03 Thread Terry Coles
the River Allen within its boundaries. -- Terry Coles -- Next meeting: Bournemouth, Tuesday, 2017-06-06 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ New thread: mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING Reporting bug

Re: [Dorset] A New Wimborne Model Town Project Query - Sensing Water Levels and Flow

2017-05-03 Thread Terry Coles
ombat flooding at present. > For extra complexity, get the water level of the real rivers from > wherever the above web site gets its data and adjust the levels of the > model rivers accordingly... Now you're pulling my leg :-) -- Terry Coles -- Next meeting: Bournemout

[Dorset] Next Meeting - One Week Tonight

2017-04-25 Thread Terry Coles
Hi, The next meeting is just one week away at the Broadway, Bournemouth on Tuesday evening at 20:00; 2017-05-2. See: http://dorset.lug.org.uk/wiki/doku.php?id=meetings:pub#the_broadway Paul, Are you going? My turn to drive. -- Terry Coles -- Next meeting: Bournemouth

Re: [Dorset] Kubuntu 16.10 -> 17.04 Update/Upgrade Issue

2017-04-19 Thread Terry Coles
h case you can uninstall it to be safer), you can remove > that ppa ( https://askubuntu.com/questions/307/how-can-ppas-be-removed ) > and upgrade just fine. In fact, usually the GUI updater disables PPAs > anyway, so you'll just be doing that step yourself manually. -- Terry Cole

Re: [Dorset] Kubuntu 16.10 -> 17.04 Update/Upgrade Issue

2017-04-19 Thread Terry Coles
or repository creation and user configuration details. E: Failed to fetch http://ppa.launchpad.net/kokoto-java/omgubuntu-stuff/ ubuntu/dists/yakkety/main/binary-amd64/Packages 404 Not Found E: Some index files failed to download. They have been ignored, or old o

[Dorset] Kubuntu 16.10 -> 17.04 Update/Upgrade Issue

2017-04-19 Thread Terry Coles
I've searched the Kubuntu Forums and found nothing. Has anyone else seen this? What does it mean? I'm loathe to go for a full upgrade while I'm getting this message. -- Terry Coles

Re: [Dorset] Can my system run out of memory if my program continuously O/Ps messages to the shell?

2017-04-11 Thread Terry Coles
On Tuesday, 11 April 2017 13:23:36 BST Patrick Wigmore wrote: > On Tuesday, 11 April 2017, at 12:16:44 BST, Terry Coles wrote: > > Thanks. Now I can focus on the overheating. We were trying to > > avoid any holes in the case for ventilation. > > I don't want to jinx it, b

Re: [Dorset] Can my system run out of memory if my program continuously O/Ps messages to the shell?

2017-04-11 Thread Terry Coles
On Tuesday, 11 April 2017 13:00:29 BST Ralph Corderoy wrote: > Do you know what's generating the heat? Infra-red thermometer or > camera? Can anything be added that would conduct the heat from those to > the case or the internal heatsink? At this stage, I'm not completely certain that heat is

Re: [Dorset] Can my system run out of memory if my program continuously O/Ps messages to the shell?

2017-04-11 Thread Terry Coles
On Tuesday, 11 April 2017 11:40:05 BST Ralph Corderoy wrote: > They take buffers and cache out of the equation. 785612 / 16204 = 48 so > you can withstand growth at that rate for quite a few multiples of your > monitoring period, if it's linear. Thanks. Now I can focus on the overheating. We

Re: [Dorset] Can my system run out of memory if my program continuously O/Ps messages to the shell?

2017-04-04 Thread Terry Coles
keep an eye on it for the next few weeks. If they notice any problems, then all they will have to do is power cycle it. If it does become a problem, I'll look again at adding the reboot routine; maybe not every night, but once a week. (I once had a router that did that.) -- T

Re: [Dorset] Can my system run out of memory if my program continuously O/Ps messages to the shell?

2017-04-03 Thread Terry Coles
/dev/urandom. 3. /dev/gpiomem. 4. anon_inode:[eventpoll11] That's it. Does that mean that my instances of /dev/null are killed when the function exits? (I reset the clock to ensure that the functions that use that feature would be run. (They are prevented from running outside Opening Hours)). Ea

Re: [Dorset] Can my system run out of memory if my program continuously O/Ps messages to the shell?

2017-04-03 Thread Terry Coles
I can't make that do anything: terry@OptiPlex:~$ ls -l /proc/$pid/fd Whatever, I'm going to run the program again overnight tonight using screen and dstat and see what I get. -- Terry Coles -- Next meeting: Bournemouth, Tuesday, 2017-04-04 20:00 Meets, Maili

Re: [Dorset] Can my system run out of memory if my program continuously O/Ps messages to the shell?

2017-04-02 Thread Terry Coles
On Sunday, 2 April 2017 15:49:54 BST Terry Coles wrote: > That's a bit of a non-flyer too, because dstat doesn't appear to be > available in the Raspbian repositories. Also, the software is running in > the shell at boot up, so it would be difficult to view two things running. > (Wou

Re: [Dorset] Can my system run out of memory if my program continuously O/Ps messages to the shell?

2017-04-02 Thread Terry Coles
On Sunday, 2 April 2017 14:13:02 BST Terry Coles wrote: > > You could leave your program running in tandem with `dstat -cdngym > > $((60*30))' that produces a line every half an hour and see if anything > > obviously degrades over time. > > That wouldn't be very c

Re: [Dorset] Can my system run out of memory if my program continuously O/Ps messages to the shell?

2017-04-02 Thread Terry Coles
l try it here at home with a copy of the program, but I probably won't be able to leave it running for all that long. -- Terry Coles -- Next meeting: Bournemouth, Tuesday, 2017-04-04 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ New thread: mailto:

[Dorset] Can my system run out of memory if my program continuously O/Ps messages to the shell?

2017-04-02 Thread Terry Coles
references to this on the web. (I suppose the fact that no-one seems to have problems with this is a pointer to a non-problem.) -- Terry Coles -- Next meeting: Bournemouth, Tuesday, 2017-04-04 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ New thread

[Dorset] Next Meeting - One Week Tonight

2017-03-28 Thread Terry Coles
Hi, The next meeting is just one week away at the Broadway, Bournemouth on Tuesday evening at 20:00; 2017-04-04. See: http://dorset.lug.org.uk/wiki/doku.php?id=meetings:pub#the_broadway Paul, Are you going? -- Terry Coles -- Next meeting: Bournemouth, Tuesday, 2017

[Dorset] Wimborne Model Town - Bells Software

2017-03-27 Thread Terry Coles
:-) -- Terry Coles -- Next meeting: Bournemouth, Tuesday, 2017-04-04 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ New thread: mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING Reporting bugs well: http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR

Re: [Dorset] Fwd: My Python Script Only Idles in IDLE

2017-03-27 Thread Terry Coles
However, I will be providing a User Manual, so the information will go in there. -- Terry Coles -- Next meeting: Bournemouth, Tuesday, 2017-04-04 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ New thread: mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING Reporting bugs well: http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR

Re: [Dorset] Python Function Appears to be Entered Twice

2017-03-27 Thread Terry Coles
It's a fair cop. I think I did try it, but then got distracted by debouncing circuits, etc and forgot to respond. -- Terry Coles -- Next meeting: Bournemouth, Tuesday, 2017-04-04 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ New t

Re: [Dorset] My Python Script Only Idles in IDLE

2017-03-26 Thread Terry Coles
On Sunday, 26 March 2017 13:54:10 BST Terry Coles wrote: > Which worked, so I haven't bothered to grab the shell output when it doesn't > work. One final question; related but not really part of this thread. I've chosen to auto run the script using this technique: http://www.raspb

[Dorset] My Python Script Only Idles in IDLE

2017-03-26 Thread Terry Coles
instead of idling as it does in IDLE (excuse the pun). Is this expected behaviour? If so, is there a way round it? Do I need to run an endless loop to keep the script alive? -- Terry Coles -- Next meeting: Bournemouth, Tuesday, 2017-04-04 20:00 Meets, Mailing list, IRC

Re: [Dorset] Access to USB Stick under /media in Raspbian

2017-03-26 Thread Terry Coles
ctory which will ultimately contain the contents of the stick remains in the /media/pi directory, but there is nothing there. I have now mounted the stick in the pi directory and my code is working again. All I need to do now is get it to launch on bootup and make the filesystem read-only. --

[Dorset] Access to USB Stick under /media in Raspbian

2017-03-25 Thread Terry Coles
to fstab and mounting it somewhere in the pi user's home directory, but before I do that, I'd like to know what's going on. -- Terry Coles -- Next meeting: Bournemouth, Tuesday, 2017-04-04 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ New thread

Re: [Dorset] Python Function Appears to be Entered Twice

2017-03-25 Thread Terry Coles
his might occur and he is comfortable that the staff should be able to live with it. Annoying though. -- Terry Coles -- Next meeting: Bournemouth, Tuesday, 2017-04-04 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ New thread: mailto:dorset@mailm

Re: [Dorset] Python Function Appears to be Entered Twice

2017-03-20 Thread Terry Coles
leased. any bounces will be long gone, but more to the point, the cross-talk should be significantly lower and hopefully insufficient to pass the pin threshold voltage. -- Terry Coles -- Next meeting: Bournemouth, Tuesday, 2017-04-04 20:00 Meets, Mailing list, IRC, Linke

Re: [Dorset] Python Function Appears to be Entered Twice

2017-03-20 Thread Terry Coles
gt; software above handle UTC and localtime. Here, I pretend to be in Paris > so there's a winter difference to show. I'll check before I deploy. I don't remember having to do anything to apscheduler to get the time right when I first used it back in August/Sept, so I suspect that it just

Re: [Dorset] Python Function Appears to be Entered Twice

2017-03-20 Thread Terry Coles
. I don't see why it shouldn't. -- Terry Coles -- Next meeting: Bournemouth, Tuesday, 2017-04-04 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ New thread: mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING Reporting bugs well:

Re: [Dorset] Fwd: Python Function Appears to be Entered Twice

2017-03-20 Thread Terry Coles
elping. Otherwise the software is working fine; I had it running all day in my workroom yesterday with chimes every hour and quarter, solenoids clacking every quarter, change rings ringing and organ music going full tilt. My family will be glad to see the back of it :-) -- T

Re: [Dorset] Python Function Appears to be Entered Twice

2017-03-16 Thread Terry Coles
e list, the attachment shows a solution that uses positive logic and pull-downs instead of pull-ups (because the current design is wired that way). It doesn't include the diodes, yet. I'm happy for you to respond to the list. -- Terry Coles -- Next meeting: Bournemouth, T

Re: [Dorset] Python Function Appears to be Entered Twice

2017-03-16 Thread Terry Coles
On Thursday, 16 March 2017 09:41:41 GMT Ralph Corderoy wrote: > As distinct from them being the "0" that you were expecting to be > filtered out because you asked for "rising" edges? Yes. Exactly. -- Terry Coles -- Next meeting: Bournemouth,

Re: [Dorset] Python Function Appears to be Entered Twice

2017-03-16 Thread Terry Coles
n I have a bit more of an understanding of what is going on. -- Terry Coles -- Next meeting: Bournemouth, Tuesday, 2017-04-04 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ New thread: mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE R

Re: [Dorset] Python Function Appears to be Entered Twice

2017-03-15 Thread Terry Coles
s. This was repeatable. -- Terry Coles -- Next meeting: Bournemouth, Tuesday, 2017-04-04 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ New thread: mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING Reporting bugs well: http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR

Re: [Dorset] Python Function Appears to be Entered Twice

2017-03-14 Thread Terry Coles
/Minster_Functions/changerings3.py'. It > wouldn't like 2.7 as the script to run. No. It did work. > sudo strace -tt -o strace.out -f \ > -e trace=process -e trace=file -e trace=desc \ > python2.7 test-callback.py See http://www.hadrian-way.co.uk/Misc/strace.out

Re: [Dorset] Python Function Appears to be Entered Twice

2017-03-14 Thread Terry Coles
each time the file is imported? So I rewrote the last line of the script as: if __name__ == '__main__': add_switch_events() but the code didn't do anything! -- Terry Coles -- Next meeting: Bournemouth, Tuesday, 2017-04-04 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ New thread: mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING Reporting bugs well: http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR

Re: [Dorset] Python Function Appears to be Entered Twice

2017-03-14 Thread Terry Coles
\ > -e trace=process -e trace=file -e trace=desc \changerings3.py strace: Can't stat 'changerings3.py': No such file or directory I'm not sure why it can't find the script; I used tab completion to get the name right. -- Terry Coles -- Next meeting: Bournemouth,

Re: [Dorset] Python Function Appears to be Entered Twice

2017-03-10 Thread Terry Coles
there against the spring and observe what happens? Does the callback > run once with one line printed? Once it's all finished, let the switch > spring back to off; does it call the callback again? Se my response to Patrick. -- Terry Coles -- Next meeting: Bournemout

Re: [Dorset] Python Function Appears to be Entered Twice

2017-03-10 Thread Terry Coles
_detect() statements. The result of this test implies that the program is reacting to a GPIO.FALLING event, but there aren't any programmed. In any case, why does this event only get detected when the two lines aren't commented? -- Terry Coles -- Next meeting: Bournemouth, Tuesday

[Dorset] Python Function Appears to be Entered Twice

2017-03-09 Thread Terry Coles
to change_rings_stop() just after the announcement.) (Please ignore the fact that I am now using aplay instead of mpg321. I couldn't get the message to play at all for some reason and when I did, by using aplay, two came along.) Has anyone any ideas what is going on here? -- Terry

Re: [Dorset] Python Multiprocessing (or Maybe Multithreading)

2017-03-04 Thread Terry Coles
so have a terrific long-term memory and a totally atrocious short-term one. Finally, I am now definitely in the old dog stage of life :-) -- Terry Coles -- Next meeting: Bournemouth, Tuesday, 2017-03-07 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ New threa

Re: [Dorset] Python Multiprocessing (or Maybe Multithreading)

2017-03-04 Thread Terry Coles
ou went and read. :-) > https://docs.python.org/2/tutorial/introduction.html#lists That gives the error: TypeError: cannot concatenate 'str' and 'list' objects I am trying to join 'mpg321' to the list with no other parameters for the moment. -- Terry Coles -- Ne

Re: [Dorset] Python Multiprocessing (or Maybe Multithreading)

2017-03-04 Thread Terry Coles
imple string concatenation. So is there another way to create my space separated list that works, or is my subprocess.Popen() wrong? -- Terry Coles -- Next meeting: Bournemouth, Tuesday, 2017-03-07 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk

Re: [Dorset] Python Multiprocessing (or Maybe Multithreading)

2017-03-03 Thread Terry Coles
hon before I set out to write the code would be a major task in itself. Then I'd probably learn the wrong bits. I have followed some tutorials online, but none of them got down to this stuff. -- Terry Coles -- Next meeting: Bournemouth, Tuesday, 2017-03-07 20:00 Meet

Re: [Dorset] Python Multiprocessing (or Maybe Multithreading)

2017-03-03 Thread Terry Coles
', *.mp3]) (eg no quotes around the *.mp3), I get a syntax error on the asterisk. Can this be escaped somehow? Or is there something else that I've missed? -- Terry Coles -- Next meeting: Bournemouth, Tuesday, 2017-03-07 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://do

Re: [Dorset] Python Multiprocessing (or Maybe Multithreading)

2017-03-03 Thread Terry Coles
On Friday, 3 March 2017 14:03:27 GMT Terry Coles wrote: > On Friday, 3 March 2017 14:00:43 GMT Ralph Corderoy wrote: > > Where do you get your mpg321 program from? A package in the > > distribution? If so, which package, which distribution? Or somewhere > > else? > >

Re: [Dorset] Python Multiprocessing (or Maybe Multithreading)

2017-03-03 Thread Terry Coles
th appear to behave the same. -- Terry Coles -- Next meeting: Bournemouth, Tuesday, 2017-03-07 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ New thread: mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING Reporting bugs well: http://go

Re: [Dorset] Python Multiprocessing (or Maybe Multithreading)

2017-03-03 Thread Terry Coles
On Friday, 3 March 2017 13:40:07 GMT Terry Coles wrote: > On the principle that I don't need the inner while loop (around > mp3_player.poll() ) as you mentioned in an earlier response, I think that > this would work, but someone would have to go over and start the player > again e

Re: [Dorset] Python Multiprocessing (or Maybe Multithreading)

2017-03-03 Thread Terry Coles
n has different themes on different days, so it would be hymns one day and organ music another, and so on. -- Terry Coles -- Next meeting: Bournemouth, Tuesday, 2017-03-07 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ New thread: mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING Reporting bugs well: http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR

Re: [Dorset] Python Multiprocessing (or Maybe Multithreading)

2017-03-03 Thread Terry Coles
erminated) or only once? -- Terry Coles -- Next meeting: Bournemouth, Tuesday, 2017-03-07 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ New thread: mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING Reporting bugs well: http://go

Re: [Dorset] Python Multiprocessing (or Maybe Multithreading)

2017-03-03 Thread Terry Coles
On Friday, 3 March 2017 11:31:44 GMT Ralph Corderoy wrote: > Correct. So `if r not in (0, -15):' looks apt. It does to me too. Thanks. -- Terry Coles -- Next meeting: Bournemouth, Tuesday, 2017-03-07 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org

Re: [Dorset] Python Multiprocessing (or Maybe Multithreading)

2017-03-03 Thread Terry Coles
if we are playing the Playlists in the MP3 Player. I suppose, having a timeout wouldn't gain us much in this instance, because we would still have to wait. -- Terry Coles -- Next meeting: Bournemouth, Tuesday, 2017-03-07 20:00 Meets, Mailing list, IRC, LinkedIn, ...

Re: [Dorset] Python Multiprocessing (or Maybe Multithreading)

2017-03-03 Thread Terry Coles
ntion when you wrote those lines: r = bell_player.wait(): if r: print 'bell_player: mpg321 failed: %#x\n' % r bell_player = None It seems to me that if the mpg321 process exits with -15, that is no more a failure than if it exits with 0, because terminating the pro

Re: [Dorset] Python Multiprocessing (or Maybe Multithreading)

2017-03-02 Thread Terry Coles
On Thursday, 2 March 2017 13:34:19 GMT Terry Coles wrote: > I think that I should be testing for not r in the if statement (because it > works) and adding a timeout. What would be a reasonable timeout in this > case? If I've understood the documentation correctly, it doesn't really

<    5   6   7   8   9   10   11   12   13   14   >