Go to advanced search

by Silverlock
Thu Jul 11, 2019 4:49 pm
Forum: General programming discussion
Topic: regex question
Replies: 9
Views: 507

Re: regex question

Try this: dynamic.6.name=wifi_linkqualup dynamic.6.source=iwconfig wlan0 | grep Link dynamic.6.regexp=Link Quality=(\d*)/?\d* dynamic.6.postprocess= dynamic.6.rrd=GAUGE dynamic.7.name=wifi_linkqualdw dynamic.7.source=iwconfig wlan0 | grep Link dynamic.7.regexp=Link Quality=\d*\/?(\d*) dynamic.7.post...
by Silverlock
Wed Jun 26, 2019 5:53 pm
Forum: Raspbian
Topic: Buster bug report thread
Replies: 218
Views: 26171

Re: Buster bug report thread

Short problem description: Audio truncation on playback Steps taken to produce: Downloaded the 2019-06-20 Raspbian Buster Lite zip file. Verified the sha256 sum. Unzipped the img file and dd'd it to a 16GB SanDisk Ultra uSD card. Inserted the card into a 3B with only the following plugged in: HDMI m...
by Silverlock
Mon Jun 24, 2019 6:17 am
Forum: General discussion
Topic: Raspberry Pi 4 Thread - general discussion
Replies: 861
Views: 88342

Re: Pi4 Thread - general discussion

Wow. Just wow.
by Silverlock
Thu Jun 20, 2019 10:18 pm
Forum: Beginners
Topic: How to turn on a LED
Replies: 8
Views: 963

Re: How to turn on a LED

And the breadboard you're using has split ground and power buses. Your ground wire is on one side of the split ground bus, and your resistor to ground is on the other side. Add a jumper between the two ground lines shown inside the red circle and then see what happens.
Separate power buses.jpg
Separate power buses.jpg (186.35 KiB) Viewed 938 times
by Silverlock
Sun Jun 09, 2019 11:38 pm
Forum: Troubleshooting
Topic: espeak and aplay broken
Replies: 9
Views: 1242

Re: espeak and aplay broken

Does this mean I should roll back the kernel then? I've done it once or twice on an x86 linux PC but how is that done on a pi? Thanks P.S. just checked and on the good Sd card I'm running "Linux raspberrypi 4.14.70-v7+ #1144 SMP Tue Sep 18 17:34:46 BST 2018 armv7l GNU/Linux" according to uname -a ....
by Silverlock
Sun Jun 09, 2019 11:33 pm
Forum: Troubleshooting
Topic: espeak and aplay broken
Replies: 9
Views: 1242

Re: espeak and aplay broken

Odd; for me it fails on both audio jack and HDMI, aplay cuts out on "Front cen" in both cases as described ... I forgot about HDMI audio; oops, mea culpa. Okay, it happens with HDMI and the audio jack, but there is at least one USB audio adapter that seems to work fine with the new kernel. It's not...
by Silverlock
Sun Jun 09, 2019 7:40 pm
Forum: Troubleshooting
Topic: espeak and aplay broken
Replies: 9
Views: 1242

Re: espeak and aplay broken

I reported a likely related problem with audio output from the 3.5mm jack in the thread Audio playback truncation with kernel packages 1.20190517-1 . I was able to reproduce the problem you're having with espeak and aplay with kernel 4.19.42-v7+ (package version 1.20190517-1). No audio from espeak, ...
by Silverlock
Sat Jun 08, 2019 5:05 pm
Forum: Python
Topic: [Solved] Extract table data from icon name with BeautifulSoup
Replies: 5
Views: 254

Re: [Solved] Extract table data from icon name with BeautifulSoup

I'm happy to hear that it worked out; you're welcome. Good luck with your project.
by Silverlock
Fri Jun 07, 2019 12:55 am
Forum: Python
Topic: [Solved] Extract table data from icon name with BeautifulSoup
Replies: 5
Views: 254

Re: Extract table data from icon name with BeautifulSoup

Quick & Dirty code fragment:

Code: Select all

for td in html.findAll('td'):
    img=td.find('img')
    if img:
        print img['src'],img['title']
If you've got more than one table on the page, you'd want to find the table first, then do the findAll() on the table rather than the whole file.
by Silverlock
Sun Jun 02, 2019 7:08 am
Forum: Troubleshooting
Topic: Recently upgrade my Raspberry Pi 3 with Raspian and now videos are broken.
Replies: 3
Views: 189

Re: Recently upgrade my Raspberry Pi 3 with Raspian and now videos are broken.

Is this happening in Chromium? If so, see here for the symptom and a solution.
by Silverlock
Fri May 31, 2019 10:50 pm
Forum: Beginners
Topic: crontab always empty, but jobs are running
Replies: 14
Views: 593

Re: crontab always empty, but jobs are running

If there's nothing in the syslog file, I would have to wonder if perhaps cron isn't the culprit.
by Silverlock
Fri May 31, 2019 9:04 pm
Forum: Beginners
Topic: crontab always empty, but jobs are running
Replies: 14
Views: 593

Re: crontab always empty, but jobs are running

Here's a potentially dumb question. Have you looked in /var/log/syslog to see if there's any logging info that might shed light on what's going on?
by Silverlock
Fri May 24, 2019 5:47 pm
Forum: Python
Topic: Python Script Spawned by Cron or Systemd doesn't write files..?
Replies: 2
Views: 573

Re: Python Script Spawned by Cron or Systemd doesn't write files..?

# Save image to disk cv2.imwrite('saved_images/image'+str(count)+'.png', image) The file path that you're trying to write to is relative to the current working directory. Ask yourself: what is the current working directory when you're running it as a cron job? Either change your file path to an abs...
by Silverlock
Tue May 21, 2019 10:13 pm
Forum: Troubleshooting
Topic: Mic with too low volume
Replies: 1
Views: 186

Re: Mic with too low volume

I have the same little microphone and used it for quite a while with few problems. It easily picks up normal conversation levels in the same room for a voice assistant (a heavily modified version of Jasper ). I have moved on to a desktop mic in an effort to improve the quality of the speech recognit...
by Silverlock
Sun May 19, 2019 8:50 pm
Forum: Raspbian
Topic: Raspbian 9.9 (Stretch) Weather Plungin for Panel not working..
Replies: 1
Views: 280

Re: Raspbian 9.9 (Stretch) Weather Plungin for Panel not working..

If I recall correctly (and I may not, it's been a while), Yahoo turned off the API that was being used.
by Silverlock
Sat May 18, 2019 6:52 pm
Forum: Raspbian
Topic: Audio playback truncation with kernel packages 1.20190517-1
Replies: 2
Views: 708

Audio playback truncation with kernel packages 1.20190517-1

TL;DR version: audio playback (which was working fine) stops a second or two early after kernel update (package version 1.20190517-1). Background: I have a Pi 3B headless system running Raspbian Stretch Lite, from 2019-04-08-raspbian-stretch-lite.zip downloaded from https://www.raspberrypi.org/downl...
by Silverlock
Fri May 10, 2019 6:42 pm
Forum: Troubleshooting
Topic: WiFi drops out and will not reconnect
Replies: 14
Views: 607

Re: WiFi drops out and will not reconnect

My 2 cents: here's a script that I use (from a @reboot line in the pi user's crontab) to keep the WiFi working. #!/bin/bash sleeptime=120 externalpingip=192.168.0.1 while [ 1 ] do /bin/sleep $sleeptime /bin/ping -c 2 $externalpingip >/dev/null 2>&1 if [ $? != 0 ] then /usr/bin/logger "wlan0 reassoci...
by Silverlock
Sat May 04, 2019 8:49 am
Forum: General discussion
Topic: Getting External CD/DVD Drive to Work on Raspberry Pi?
Replies: 18
Views: 14188

Re: Getting External CD/DVD Drive to Work on Raspberry Pi?

No license required. You will need to download and compile libdvdcss as outlined in the post (though there's a much newer tarball available now - and do a sudo make install at the end, and then reboot). It took me all of 5 minutes to do the download followed by the make, reboot, hook up the drive, p...
by Silverlock
Mon Apr 15, 2019 12:14 am
Forum: General discussion
Topic: when after startup is the time correct?
Replies: 4
Views: 381

Re: when after startup is the time correct?

This shell script scans the tail end of the syslog file for notification that the NTP time synch event has occurred. I found it to be much quicker than waiting for timedatectl to discover that it's happened. #!/bin/bash tail -50 /var/log/syslog|grep -q "Synchronized to time server" status=$? while [...
by Silverlock
Fri Mar 29, 2019 7:33 pm
Forum: Raspbian
Topic: Chromium v72
Replies: 21
Views: 4883

Re: Chromium v72

I noticed that videos (on YouTube and elsewhere) weren't displaying correctly for me with the new version of Chromium. The GPU memory was set at 64MB and resulted in things like the top image. Increasing the GPU memory to 128MB seems to have fixed the problem, as you can see in the bottom image. Thi...
by Silverlock
Sat Mar 09, 2019 7:30 pm
Forum: Graphics, sound and multimedia
Topic: MIDI UART Interface using 6N138 Optocoupler
Replies: 10
Views: 1332

Re: MIDI UART Interface using 6N138 Optocoupler

Hmm. Why did the clock message only cause problems when you were sending lots of key press/release messages, I wonder? In any case, it works now and that's what matters in the end. Congrats! I know my Roland keyboard sent out timing clock messages as well. I ignored them in my adaptor code and didn'...
by Silverlock
Thu Mar 07, 2019 7:32 pm
Forum: Graphics, sound and multimedia
Topic: MIDI UART Interface using 6N138 Optocoupler
Replies: 10
Views: 1332

Re: MIDI UART Interface using 6N138 Optocoupler

Since removing the 10K resistor didn't do anything, it doesn't appear to be a problem of too little gain. It was unlikely anyhow, given that the circuit doesn't give you any problems when you play slowly. But it was worth ruling out. If you have a scope, you could check that the signal on the RxD li...
by Silverlock
Thu Mar 07, 2019 1:25 am
Forum: Graphics, sound and multimedia
Topic: MIDI UART Interface using 6N138 Optocoupler
Replies: 10
Views: 1332

Re: MIDI UART Interface using 6N138 Optocoupler

At a glance, the circuit looks reasonable. It's almost identical to the input side of a MIDI-USB adaptor that I built around a 32u4 Pro Micro (and that's plugged into my rPi now). Just out of curiosity, if you take out the 10K resistor, does anything change?
by Silverlock
Mon Mar 04, 2019 2:16 am
Forum: Raspbian
Topic: OpenSCAD
Replies: 26
Views: 2212

Re: OpenSCAD

I haven't felt the need to go to the USB only boot route either. I've left /boot on the uSD and just moved / over to an HDD. It's not bleeding edge but it works for my purposes.
by Silverlock
Sun Mar 03, 2019 8:58 pm
Forum: Raspbian
Topic: OpenSCAD
Replies: 26
Views: 2212

Re: OpenSCAD

A quick read through Joel_Mckay's build instructions revealed that we both used Qt4 and 2GB swap files in order to build the binary. I've edited my earlier post to use qmake-qt4 rather than qmake. Although they're both the same on my installation, I imagine others might have qmake pointing to the Qt...

Go to advanced search