Go to advanced search

by rpdom
Fri Aug 17, 2018 5:06 am
Forum: Beginners
Topic: Cpu load test linux -how busy is the cpu - test methods & tools
Replies: 2
Views: 67

Re: Cpu load test linux -how busy is the cpu - test methods & tools

The "top" command will show system usage stats. "man top" for full usage info - there is a lot of it.
by rpdom
Thu Aug 16, 2018 7:54 pm
Forum: Python
Topic: noobie needs help getting data from XML webpage
Replies: 3
Views: 47

Re: noobie needs help getting data from XML webpage

drdyer9051 wrote:
Thu Aug 16, 2018 7:18 pm
i pip installed it but could not get it to work :oops:
no module named 'bs4'

Code: Select all

  sudo apt-get install python-bs4

edit... it will work with python but not python3
You need to install the Python 3 version

Code: Select all

sudo apt-get install python3-bs4
by rpdom
Thu Aug 16, 2018 6:19 am
Forum: Raspbian
Topic: Bad checksum after apt update
Replies: 3
Views: 88

Re: Bad checksum after apt update

Free space on your SD card? The downloaded file sizes are smaller than the expected size.

What does the command

Code: Select all

df -h /
show?

Also, what size of card are you using?
by rpdom
Thu Aug 16, 2018 5:35 am
Forum: Networking and servers
Topic: Local DNS
Replies: 7
Views: 130

Re: Local DNS

bertlea wrote:
Thu Aug 16, 2018 2:45 am
I think rpdom meant if you put that name in your Mac, you can use that name to access the Pi from this particular Mac.
Exactly. Hence my reference to /etc/hosts under MacOS. I'm sure it can be done. Almost everyone else in my office uses Macs, and I'm sure some of them have updated hosts files.
by rpdom
Thu Aug 16, 2018 5:18 am
Forum: Beginners
Topic: Meaning of "InRelease"
Replies: 2
Views: 74

Re: Meaning of "InRelease"

Hit means that the version of the file on the server matches the one already on the system, so there is no need to download it again. InRelease is the name of the file to be downloaded. The InRelease file contains details about the repository and a list of checksums for the index files in it. If InR...
by rpdom
Wed Aug 15, 2018 6:07 pm
Forum: Networking and servers
Topic: Local DNS
Replies: 7
Views: 130

Re: Local DNS

Alternatively, if it is just the one computer that will be accessing the Pi, you can put an entry in the /etc/hosts file (I think it's still called that in MacOS) for 192.168.x.y and iamaking.
by rpdom
Wed Aug 15, 2018 6:27 am
Forum: Python
Topic: newbie package/import question
Replies: 2
Views: 64

Re: newbie package/import question

You seem to be using Python 3 (which is recommended), so you need to install the matplotlib for that version of Python.

Code: Select all

sudo apt-get install python3-matplotlib
Also, if installing using pip, you would need to use the command pip3.
by rpdom
Mon Aug 13, 2018 6:44 pm
Forum: General discussion
Topic: (Solved)Which models of USB HDD work when connected directly to the PI?
Replies: 13
Views: 340

Re: Which models of USB HDD work when connected directly to the PI?

I've used Seagate Expansion 2TB USB3.0 and an Intenso 2TB USB3.0 drive without any problems.
by rpdom
Sun Aug 12, 2018 5:16 pm
Forum: General discussion
Topic: (Solved) Is using a non powered USB HDD possible with a Pi3B+ ?
Replies: 21
Views: 515

Re: Is using a non powered USB HDD possible with a Pi3B+ ?

Linux will wait for USB drives to ready before starting the boot process. So spin up time is not relevant. If booting from the external drive, Linux hasn't even been loaded at this point. I understand that the internal boot ROM on the 3B+ is slightly different from the one in the 3B. Drives that wo...
by rpdom
Sun Aug 12, 2018 8:10 am
Forum: General discussion
Topic: (Solved) Is using a non powered USB HDD possible with a Pi3B+ ?
Replies: 21
Views: 515

Re: Is using a non powered USB HDD possible with a Pi3B+ ?

It seems to depend on the drive. I have a Pi 3B+ (running headless) that boots and runs happily from a 2TB USB drive using just the official Pi power supply. I also have a Pi 3B and a Pi 2B that use similar 2TB drives for storage, but boot from SD cards. I couldn't get the 3B to boot directly from H...
by rpdom
Sat Aug 11, 2018 5:48 pm
Forum: Raspbian
Topic: Unallocated space on Raspbian
Replies: 9
Views: 204

Re: Unallocated space on Raspbian

TrooperZ wrote:
Sat Aug 11, 2018 5:45 pm
Well, can I reformat them? Will it do any harm?
You can create partitions in that space and try and format them. Depending on the file system you may succeed.
by rpdom
Sat Aug 11, 2018 5:43 pm
Forum: Raspbian
Topic: Unallocated space on Raspbian
Replies: 9
Views: 204

Re: Unallocated space on Raspbian

Too small to be any use. I believe the reason for these gaps is to try and make sure the partitions are aligned to an SD card page boundary for performance reasons.
by rpdom
Fri Aug 10, 2018 6:47 pm
Forum: C/C++
Topic: How do I debug stdin?
Replies: 12
Views: 255

Re: How do I debug stdin?

1. I don really understand this piece of code: do { selected = fgetc(stdin); } while (selected == '\n'); It is something I found in a book and it should somehow make make the loop ignore the LF, but I don't understand why/how it does it - and it looks like it's not really working...? :-/ Can someon...
by rpdom
Fri Aug 10, 2018 5:58 pm
Forum: Troubleshooting
Topic: Issue with Multi-Camera adapter
Replies: 5
Views: 124

Re: Issue with Multi-Camera adapter

Mitek wrote:
Fri Aug 10, 2018 3:01 pm
rpdom, you are a legend !
Hehe. Given that I've forgotten to change my "Location" back to reality, one might even say a Wizzard. (Some people will get it :lol: )
by rpdom
Fri Aug 10, 2018 5:43 pm
Forum: Beginners
Topic: How to detect an old style wired doorbell only - nothing else
Replies: 20
Views: 380

Re: How to detect an old style wired doorbell only - nothing else

My doorbell uses a Pi. The long leads from the button are connected to the 5v from the pi and a resistor to drive the input of an opto-isolator. One side of the output stage of the opto is connected via a resistor to 3.3V and a GPIO. The other side is connected to ground. When the button is pressed ...
by rpdom
Thu Aug 09, 2018 12:23 pm
Forum: Troubleshooting
Topic: jackdbus crashing regularly in raspbian after update.
Replies: 10
Views: 162

Re: jackdbus crashing regularly in raspbian after update.

Which libdbus have you got installed? I think the current package for Raspbian is libdbus-1-3 and the dev version is libdbus-1-dev which is available in Raspbian.
by rpdom
Wed Aug 08, 2018 6:42 pm
Forum: C/C++
Topic: RasberryPi Zero W LED does not turn ON and does not set the GPIO high
Replies: 25
Views: 347

Re: RasberryPi Zero W LED does not turn ON and does not set the GPIO high

Which pin are you using for Ground (0V) when doing your measurements?

Have you tried measuring the 3.3V between pins 1 and 6 to test your meter?
by rpdom
Wed Aug 08, 2018 6:31 pm
Forum: Beginners
Topic: Trying to move hidden contents of hidden folder [SOLVED]
Replies: 4
Views: 120

Re: Trying to move hidden contents of hidden folder

Are . and .. files? . is a short name for the directory itself. .. is a short name for the parent directory. If you do "cd ." you stay exactly where you are. If you do "cd .." you change to the next directory up. The only file I can see in that directory is .lock and you may need to specify the fil...
by rpdom
Wed Aug 08, 2018 6:06 pm
Forum: Troubleshooting
Topic: How to set WiFi on Raspberry pi Zero W
Replies: 29
Views: 382

Re: How to set WiFi on Raspberry pi Zero W

Windows text files end each line with a Carriage Return, then a Line Feed (CRLF). Linux/Unix uses just the Line Feed (LF) code. If you use a Windows format editor you will end up with an unwanted CR on the end of each line, which makes the line invalid. Raspbian will see: country=DE^M (^M is how the...
by rpdom
Wed Aug 08, 2018 5:43 pm
Forum: C/C++
Topic: RasberryPi Zero W LED does not turn ON and does not set the GPIO high
Replies: 25
Views: 347

Re: RasberryPi Zero W LED does not turn ON and does not set the GPIO high

DirkS wrote:
Wed Aug 08, 2018 5:40 pm
I cannot find wiringpi pin 18...
It was on the extra (not-fitted) GPIO header on the later Pi 1B models.
by rpdom
Wed Aug 08, 2018 5:37 pm
Forum: C/C++
Topic: RasberryPi Zero W LED does not turn ON and does not set the GPIO high
Replies: 25
Views: 347

Re: RasberryPi Zero W LED does not turn ON and does not set the GPIO high

I don't see the Pin scheme (Board, BCM, WiringpI) being set in that code. I think the WiringPi library defaults to its own odd naming conventions, in which case WiringPi 18 does not exist on the current boards.
by rpdom
Wed Aug 08, 2018 5:10 pm
Forum: Advanced users
Topic: What value are those parts?
Replies: 36
Views: 918

Re: What value are those parts?

Burngate wrote:
Wed Aug 08, 2018 5:01 pm
Interesting thought. The silk-screen identifiers are irrelevant for assembly
So why do some components have them?
Maybe for occasional manual production checks?
by rpdom
Wed Aug 08, 2018 7:47 am
Forum: Advanced users
Topic: 3B+ trrs jack audio voltage level
Replies: 14
Views: 423

Re: 3B+ trrs jack audio voltage level

jjh76 wrote:
Wed Aug 08, 2018 6:42 am
So, If I were to use a standard stereo or mono audio cable the video would just go to ground?
Yes. The video circuit is designed to cope with that.

I'm not sure that a mono cable will be ok. Probably, but I'd have to check the output circuit to make sure.
by rpdom
Wed Aug 08, 2018 6:40 am
Forum: Troubleshooting
Topic: Issue with Multi-Camera adapter
Replies: 5
Views: 124

Re: Issue with Multi-Camera adapter

Board pin 7 is GPIO 4, which is the default pin used by the w1 (one-wire) driver - if enabled. Make sure you don't have dtoverlay=w1-gpio in /boot/config.txt and the w1_gpio module isn't loaded (unless configured to use another gpio).
by rpdom
Wed Aug 08, 2018 5:49 am
Forum: General discussion
Topic: Powering a USB hub from third-party 5V 2A solder pads
Replies: 10
Views: 286

Re: Powering a USB hub from third-party 5V 2A solder pads

The page you originally linked to is referring to the original Pi model B(1). That had fuses on each of the two USB ports to limit the current to under 140mA. You'd be better off looking at the "Power Requirements" section of the FAQ , which gives a list of each of the major models, the recommended ...

Go to advanced search