Go to advanced search

by bserce123
Thu Jul 20, 2017 5:36 pm
Forum: General discussion
Topic: relaying sound via realvnc
Replies: 0
Views: 201

relaying sound via realvnc

This realvnc has been a revelation using a raspi2B at the sending end and a ZeroW at the viewing end, both viewing and controlling the serving end from terminal. The sending end raspi2 has no speakers, keyboard or mouse. We should like to play alarm signals on our hdmi speakers at the viewing end, p...
by bserce123
Mon Jul 10, 2017 1:49 pm
Forum: General discussion
Topic: importing a .py script into another script
Replies: 2
Views: 404

Re: importing a .py script into another script

NotRequired wrote:You should not add ".py" to your import section. Look here for more info on python modules: https://docs.python.org/3/tutorial/modules.html
Many thanks for that, it is exactly what I needed, I had previously been reading up 'import' and had got horribly lost.
by bserce123
Mon Jul 10, 2017 1:36 am
Forum: General discussion
Topic: importing a .py script into another script
Replies: 2
Views: 404

importing a .py script into another script

I am trying to learn how to call one .py script from another. I have a python script 'hiya.py'. This contains only one line:- print('hello you'). From the terminal the command python3 hiya.py displays 'hello you'. So i have another script 'doit.py' which has two lines:- import hiya.py python3 hiya.p...
by bserce123
Fri Jul 07, 2017 5:24 pm
Forum: General discussion
Topic: Mozill certificates problem?
Replies: 2
Views: 394

Re: Mozill certificates problem?

DougieLawson wrote:Press the "Q" key when you see that stuff.
Thank you for that. Next time I see it, I will. Meantime, having rebooted yet again, I'm not finding anything (yet?) apparently stopping me using Raspi as is, and time presses right now.
by bserce123
Wed Jul 05, 2017 9:34 pm
Forum: General discussion
Topic: Mozill certificates problem?
Replies: 2
Views: 394

Mozill certificates problem?

Updating and Upgrading a Raspi3, the process keeps stopping at 'ca-certificates (20141019+deb8u2) stable; urgency=medium' followed by several lines of (to me meaningless) entries, and ending with a colon. After leaving this for half and hour or so, twice now, having rebooted, I am at a loss to know ...
by bserce123
Mon Jun 19, 2017 7:43 pm
Forum: Other programming languages
Topic: Pascal?
Replies: 46
Views: 12873

Re: Pascal?

DavidS wrote:Ultibo for the Pi is what has piqued my interest in Pascal again but, in all honesty, only as a means to an end.
Is this an outstanding invitation to 'join the club'? We're currently trying to install and activate Ultibo on a Raspberry3.
by bserce123
Thu Jun 15, 2017 11:07 pm
Forum: General discussion
Topic: Yellow lightning icon
Replies: 32
Views: 3606

Re: Yellow lightning icon

We used to have mains power cuts, sometimes lasting for hours, but there has been a major improvement in the past year or so and no noticeable brown-out Apart from the fair number of mentions of the lightning icon which are thrown up on this forum's search facility, pages upon pages of various respo...
by bserce123
Thu Jun 15, 2017 9:12 pm
Forum: General discussion
Topic: Yellow lightning icon
Replies: 32
Views: 3606

Re: Yellow lightning icon

All the questions are, I am sure, very interesting should one have a workshop with electronic testing equipment, but as a user, in a jungle, with no electronic small-part retail resources available, the practicality of giving a technical response is asymptotic to zero. Virtually all we have to go on...
by bserce123
Thu Jun 15, 2017 2:03 pm
Forum: General discussion
Topic: Yellow lightning icon
Replies: 32
Views: 3606

Re: Yellow lightning icon

Have you tried another power supply? That lighting bolt icon goes on if the 4.6v voltage detector is triggered SSR will only draw a few ma at 3V3 GPIO, typically they work from 3-32V We can't substitue the power supply with any speed, Raspi bits are not on sale in Belize, and it takes weeks from UK...
by bserce123
Thu Jun 15, 2017 6:36 am
Forum: General discussion
Topic: Yellow lightning icon
Replies: 32
Views: 3606

Re: Yellow lightning icon

Check the documentation for the amount of current that can be drawn from GPIO pins. It's quite limited. Thank you for that. But - another 'but', I'm afraid - isn't it correct that according to the 'how-to's, operating these SSR's with their in-built transistor and light drivers is within the capaci...
by bserce123
Thu Jun 15, 2017 1:20 am
Forum: General discussion
Topic: Yellow lightning icon
Replies: 32
Views: 3606

Yellow lightning icon

We are using a Raspi 2.4-amp 220-v mains-input power suppy to power our Raspi, which uses GPIO to switch on and off a solid-state relay which in turn drives a 220-v water pump. It is controlled remotely by VNCConnect over our domestic network. The yellow lightning 'under-voltage' power alarm keeps f...
by bserce123
Tue Jun 06, 2017 4:40 pm
Forum: General discussion
Topic: What is my correct locale?
Replies: 9
Views: 2414

Re: What is my correct locale?

Excellent. So rather than use the NOOBS->Debian->Menu->Preferences->Raspberry Pi Configuration ->Localisation->Set Locale->Country route, which loses me after that, looking for Belize, which so far as I can see is not there, you say I should use from Menu->Accessories->Terminal 'sudo raspi-config' ...
by bserce123
Mon Jun 05, 2017 11:26 pm
Forum: General discussion
Topic: What is my correct locale?
Replies: 9
Views: 2414

Re: What is my correct locale?

sudo raspi-config has all the options you need to set that stuff (wifi country, keyboard, locale and tz). Excellent. So rather than use the NOOBS->Debian->Menu->Preferences->Raspberry Pi Configuration ->Localisation->Set Locale->Country route, which loses me after that, looking for Belize, which so...
by bserce123
Mon Jun 05, 2017 5:27 pm
Forum: General discussion
Topic: What is my correct locale?
Replies: 9
Views: 2414

Re: What is my correct locale?

Your correct TZ is America/Belize Set that in sudo dpkg-reconfigure tzdata in a command line window. A belated 'thank you', after going around the mulberry bush umpteen times, I've managed to use the Raspi-config stuff in the recent? NOOBS Debian desktop Menu->Preferences and sudo date *******2017 ...
by bserce123
Sat Jun 03, 2017 7:37 pm
Forum: General discussion
Topic: owning /usr/local/bin
Replies: 19
Views: 2979

Re: owning /usr/local/bin

We've been advised in these forums to have personal projects in usr/local/bin for being called by crontab Bad advice. Cron can execute stuff from anywhere - just put the full executable path in the crontab. For stuff run by root (which it probably is) I think that's good practice anyway - root shou...
by bserce123
Sat Jun 03, 2017 12:43 am
Forum: General discussion
Topic: owning /usr/local/bin
Replies: 19
Views: 2979

Re: owning /usr/local/bin

If you want a bin directory that is easily writable/usable by user pi, do mkdir ~pi/bin to create one under your home directory. /usr/local/bin isn't meant to be writable by everyone. It also sounds like you've mucked up the ownership or permissions of sudo (posting the output of ls -l /usr/bin/sud...
by bserce123
Sat Jun 03, 2017 12:34 am
Forum: General discussion
Topic: owning /usr/local/bin
Replies: 19
Views: 2979

Re: owning /usr/local/bin

You should have VERY good reasons for wanting to change the ownership rights of /usr/local/bin. So tell us what your real problem is. We've been advised in these forums to have personal projects in usr/local/bin for being called by crontab but copying files into that directory or editing them to im...
by bserce123
Fri Jun 02, 2017 6:29 pm
Forum: General discussion
Topic: owning /usr/local/bin
Replies: 19
Views: 2979

owning /usr/local/bin

I've tried chown-ing and chmod-ing and putting sudo in front of it all after rtf-ing manuals for some hours in order to change ownership of my /usr/local/bin directory from root to my current user (pi) but various responses are like 'sudo must be owned by uid 0 and have setuid bit set'. I can see my...
by bserce123
Fri Jun 02, 2017 5:43 pm
Forum: General discussion
Topic: correcting real time after reboot...
Replies: 17
Views: 2715

Re: correcting real time after reboot...

1) I'd be interested to know where in Belize you are. I've been there several times and am pretty familiar with the geography. I kind of envy you. Nearish to Belmopan, between Roaring creek and Camalote, up a longish sideroad towards a small golf course. Hope you enjoyed your time here, it's a bit ...
by bserce123
Fri Jun 02, 2017 5:30 pm
Forum: General discussion
Topic: correcting real time after reboot...
Replies: 17
Views: 2715

Re: correcting real time after reboot...

[SOLVED] the ntp thing has never worked on this raspi, though I have been using the internet on it for a while, and it is permanently connected and had been rebooted umpteen times with Raspbian. Don't ask me why, Raspi should be absolutely updated and upgraded, and I don't know enough to say, but, w...
by bserce123
Fri Jun 02, 2017 12:07 am
Forum: General discussion
Topic: correcting real time after reboot...
Replies: 17
Views: 2715

Re: It is about time . . .

Start with "man ntp". (Actually, start with "man <commandname>" for *any* unfamiliar command. And if tht fails, try "apropos <commandname>".) We are in Belize, Central America, where the jungle reaches our doorstep, technology is notable by its virtual absence and if you love that sort of thing, as ...
by bserce123
Thu Jun 01, 2017 11:51 pm
Forum: General discussion
Topic: Scheduled tasks
Replies: 2
Views: 551

Re: Scheduled tasks

B.Goode wrote:Why not schedule it to run something trivial just 5 minutes into the future as a test?
Why not, indeed.
by bserce123
Thu Jun 01, 2017 11:14 pm
Forum: General discussion
Topic: correcting real time after reboot...
Replies: 17
Views: 2715

Re: It is about time . . .

By default in Raspbian, if the internet is accessible, the Pi will set its clock using ntp. If your Pi isn't (or can't be, in your usage) be connected to the 'net, you can add an RTC module and have that used to set the time at boot. Here's an example of the sort of RTC accuracy that can be had for...
by bserce123
Thu Jun 01, 2017 10:50 pm
Forum: General discussion
Topic: correcting real time after reboot...
Replies: 17
Views: 2715

Re: It is about time . . .

Why not just use ntp like everyone else? If you would kindly point me to this ntp thingy, which hopefully has a 'howto' tutorial you could point to (?), I will certainly give it a try should I not be able to find out how to use the chrony recommended as preferable to it. This raspberrypi stuff sure...
by bserce123
Thu Jun 01, 2017 5:27 pm
Forum: General discussion
Topic: correcting real time after reboot...
Replies: 17
Views: 2715

correcting real time after reboot...

So I learned how to set the 'correct' time on my faithful Raspi, but of course, every time I rebooted it or left it unpowered, on re-booting, the time was wrong again. Has some resident genius found out a way programmatically to interrogate a world clock somewhere and reset the Raspi clock to what i...

Go to advanced search