Go to advanced search

by pfletch101
Sun Apr 21, 2019 10:52 pm
Forum: Troubleshooting
Topic: [SOLVED] Needs to have audio cable connected to screen otherwise black screen
Replies: 4
Views: 90

Re: Needs to have audio cable connected to screen otherwise black screen

Sounds as if the screen's DVI input is referenced to the Pi's ground only via the audio cable, which seems consistent with the other information you have given us. One approach would simply be to use a standard audio 'Y' cable to connect the Pi both to a cable to the screen (with its audio turned of...
by pfletch101
Sat Apr 20, 2019 1:24 am
Forum: Advanced users
Topic: Send email on failure or restart of systemd service
Replies: 4
Views: 109

Re: Send email on failure or restart of systemd service

After doing some more Googling around, I found a fairly recent 'recipe' ( see link ) for email notifications from systemd services which included enough detail to allow me to adapt it for my use. My system uses some features of both systemd and shell scripts which may not be well known to those who ...
by pfletch101
Thu Apr 18, 2019 6:19 pm
Forum: Advanced users
Topic: Send email on failure or restart of systemd service
Replies: 4
Views: 109

Re: Send email on failure or restart of systemd service

Easiest is to grab a copy of Nagios. That's been spamming my inbox for months. Thanks! I will take a look at it. [EDIT] Having looked at it, it appears to be an impressive application, but it also seems to be extreme overkill for my relatively simple needs. Also of concern is the following cautiona...
by pfletch101
Thu Apr 18, 2019 3:18 pm
Forum: Advanced users
Topic: Send email on failure or restart of systemd service
Replies: 4
Views: 109

Send email on failure or restart of systemd service

I have a number of services, mostly monitoring environmental sensors, running on my workhorse Pi under systemd, most of which are set up to restart automatically on the (generally rare) occasions when they fail. I also have sendmail running as a mail server on the Pi. I would like to be notified by ...
by pfletch101
Wed Apr 10, 2019 2:54 pm
Forum: General discussion
Topic: Battery charge data log
Replies: 1
Views: 84

Re: Battery charge data log

I would be interested to know what you are trying to do in a bit more detail, because the description of your setup does not totally make sense to me. If you are trying to make the engine-generated power track the power drawn by the dc motor in real time, it is not totally clear why you have a batte...
by pfletch101
Tue Apr 09, 2019 2:46 pm
Forum: Troubleshooting
Topic: Where is the `reboot-required` file placed?
Replies: 5
Views: 264

Re: Where is the `reboot-required` file placed?

I'll hazard a guess that if none of you are aware of the `reboot-required` file, then it simply does not exist/has not been ported to Raspbian. If that's the case, I'd appreciate confirmation, and any suggestions wrt a surrogate would be much appreciated. My practice is to reboot my production syst...
by pfletch101
Sun Apr 07, 2019 9:32 pm
Forum: Troubleshooting
Topic: upgrade kernel 4.14.79 to 4..14.98 breaks rc.local run python script
Replies: 1
Views: 67

Re: upgrade kernel 4.14.79 to 4..14.98 breaks rc.local run python script

You are going to have to show us the script (or the section of it that is failing, if that can be determined) if you want anyone to be able to help you.
by pfletch101
Fri Apr 05, 2019 2:26 pm
Forum: General discussion
Topic: Raspberry Pi is unusable as everyday computer
Replies: 67
Views: 2973

Re: Raspberry Pi is unusable as everyday computer

My Windows 10 gaming laptop boots faster than my Pi (<10 seconds, part of which is a logo display). It boots from a :shock: fast NVMe SSD! Windows !0 does appear to boot much faster than older versions of Windows, especially when booting from an SSD, but some of this apparent speed is "smoke and mi...
by pfletch101
Fri Mar 29, 2019 7:34 pm
Forum: Troubleshooting
Topic: no boot - always red light - rpi3b+
Replies: 9
Views: 199

Re: no boot - always red light - rpi3b+

Thank you for the reply! the rpi has no valid 3.3V. The output is 0.01V. it was just taken out of the box. Is there any fix? or i should contact with the reseller? Assuming that you had done nothing to 'provoke' this (particularly connected nothing to the GPIO connections or run it without a case o...
by pfletch101
Wed Mar 27, 2019 3:06 am
Forum: Python
Topic: Systemd service for python script not writing to file
Replies: 10
Views: 302

Re: Systemd service for python script not writing to file

PhatFil wrote:
Wed Mar 27, 2019 2:37 am
try removing the ampersand to execute the script in background, I think its redundant if using systemd and could be obfuscating stdout from redirection?
Good catch! That may well be the problem.
by pfletch101
Wed Mar 27, 2019 12:56 am
Forum: Python
Topic: Systemd service for python script not writing to file
Replies: 10
Views: 302

Re: Systemd service for python script not writing to file

I would expect this to work, as it stands. However, I have a question and a suggestion: The question - why have you declared the Service's type as 'forking'? This is generally used for a service whose initial executable file exits after setting another process running. I generally use systemd for sy...
by pfletch101
Thu Mar 21, 2019 12:10 am
Forum: Beginners
Topic: Poker Game
Replies: 6
Views: 186

Re: Poker Game

Each player could have a Pi 0W with a Pi display Unfortunately, the Pi0 series do not have a DSI connector for the Pi 7" display. So you will need to identify a non-DSI alternative. That's a pity! I don't have any zeros, so I should have checked that. There's no reason except cost not to use more c...
by pfletch101
Wed Mar 20, 2019 9:11 pm
Forum: General discussion
Topic: Installing an .exe file on raspberry pi 3 b
Replies: 4
Views: 208

Re: Installing an .exe file on raspberry pi 3 b

Since what you are apparently trying to install is presumably some sort of device driver, I would estimate your chances of success in installing the Windows software on a PI (or any Linux machine) as 'slim to none'. You need to find Linux drivers for it. The link that Roken has posted may help you, ...
by pfletch101
Wed Mar 20, 2019 5:20 pm
Forum: General discussion
Topic: Motorcycle Dash/Screen
Replies: 2
Views: 86

Re: Motorcycle Dash/Screen

If you are really planning to replace your speedo/tacho gauge set (rather than mounting your Pi-based screen somewhere adjacent to the existing dials as an auxiliary panel) you should probably first check whether this will involve you in legal complications in your local jurisdiction. I am honestly ...
by pfletch101
Tue Mar 19, 2019 3:34 pm
Forum: Other projects
Topic: Using an RPi to reduce Power Usage, Off Grid.
Replies: 8
Views: 455

Re: Using an RPi to reduce Power Usage, Off Grid.

It took me some time to get down to 2.0KW/h per day power consumption using traditional methods of usage timing, and careful selection of devices that consume power. Now I am working on using an old Raspberry Pi Model B (original 2012 model with full sized SD-Card) with a serial attached Arduino Me...
by pfletch101
Tue Mar 19, 2019 3:24 pm
Forum: General discussion
Topic: SSH fails at a certain Windows PC
Replies: 11
Views: 392

Re: SSH fails at a certain Windows PC

JFI Alternative info for Win 10 machines The need to install Bonjour is no longer required. Win 10 has mDNS built-in. ( I "proved" this when our school computers were replaced with Win 10 machines - they connected to my raspberry pi without Bonjour being installed) Having said that, for most of 201...
by pfletch101
Mon Mar 18, 2019 10:20 pm
Forum: Raspbian
Topic: Poweroff script / systemd [solved]
Replies: 8
Views: 3331

Re: Poweroff script / systemd [solved]

Please do not resurrect 1+ year old posts, especially when they are not relevant to a new question. The power supply you specify (which may or may not give good service with a Pi - my money is on 'not', at least if you stress the Pi!) has a physical power switch in the 5V supply cable. There is no w...
by pfletch101
Mon Mar 18, 2019 3:40 pm
Forum: Beginners
Topic: Poker Game
Replies: 6
Views: 186

Re: Poker Game

Just throwing out ideas: Each player could have a Pi 0W with a Pi display and you could have an additional Pi running the dealer code and 'center' display. They could communicate using MQTT over the local network (though it would be fairly easy to extend this to a system that would work over the int...
by pfletch101
Sat Mar 16, 2019 2:51 pm
Forum: Other projects
Topic: Power for outoor enclosure
Replies: 4
Views: 428

Re: Power for outoor enclosure

Although mains is less dangerous on your side of the Atlantic than on ours, I'd still be advising getting a proper electrician to help. Yes, I've removed the cable from a power strip to install it as you want, and reattached it afterwards (actually, removed and replaced the plug from the other end)...
by pfletch101
Sat Mar 16, 2019 2:23 pm
Forum: General discussion
Topic: RPI 3 WiFi Issue
Replies: 2
Views: 215

Re: RPI 3 WiFi Issue

You don't give us a huge amount of information, but assuming that you are not pushing the edges of your AP's reception area and that everything else on the network seems to be working properly, this sounds most like an IP address conflict. Have you assigned your Pi a 'locally' fixed IP address (i.e....
by pfletch101
Tue Mar 12, 2019 3:13 pm
Forum: General discussion
Topic: Can Pi be powered by stepped sine wave power generated by a UPS?
Replies: 26
Views: 1122

Re: Can Pi be powered by stepped sine wave power generated by a UPS?

Unless you are passing a lot of current, contact resistance of a switch can be ignored, or the switch contact rating has been sized incorrectly. In my years of engineering (much of it analog), I have never seen this as an issue. Passing 2A isn't much current at all. The contact resistance of a high...
by pfletch101
Mon Mar 11, 2019 3:06 pm
Forum: General discussion
Topic: Can Pi be powered by stepped sine wave power generated by a UPS?
Replies: 26
Views: 1122

Re: Can Pi be powered by stepped sine wave power generated by a UPS?

Can a typical consumer UPS like APC BE-550 protect equipments against constantly high voltage levels? But, that doesn't seem like a surge. Yes, but! It does it by switching to battery power, so the consequences for connected equipment are the same as for a power outage - you or the UPS will need to...
by pfletch101
Mon Mar 11, 2019 2:16 pm
Forum: General discussion
Topic: Can Pi be powered by stepped sine wave power generated by a UPS?
Replies: 26
Views: 1122

Re: Can Pi be powered by stepped sine wave power generated by a UPS?

Can a typical consumer UPS like APC BE-550 protect equipments against constantly high voltage levels? But, that doesn't seem like a surge. Yes, but! It does it by switching to battery power, so the consequences for connected equipment are the same as for a power outage - you or the UPS will need to...
by pfletch101
Sat Mar 09, 2019 11:16 pm
Forum: General discussion
Topic: Pi zero W - Goodnight Message on Low Power
Replies: 3
Views: 134

Re: Pi zero W - Goodnight Message on Low Power

What is between your solar panel(s) and your Pi? You cannot (presumably) simply be hooking a panel of reasonably appropriate Voc to the Pi's power inputs! Assuming that there is 'conditioning' circuitry converting the necessarily varying output of solar panels into a steady 5V supply, you should be ...
by pfletch101
Wed Mar 06, 2019 4:19 pm
Forum: Python
Topic: running two functions simultaneously
Replies: 16
Views: 526

Re: running two functions simultaneously

Okay, so the real answer is that you can't. The GIL (global interpreter lock) will prevent exactly what you are trying to do. There are ways around this using multiple shells but let's just avoid that. BTW, this is the one area where python fails and the hacks to get around the GIL are really bad. ...

Go to advanced search