Go to advanced search

by jbudd
Sat Mar 30, 2019 10:59 pm
Forum: Beginners
Topic: Stuck on a Tutorial
Replies: 36
Views: 460

Re: Stuck on a Tutorial

I am glad that you resolved your problem. I suspect that the reason people asked for your IP address was that an address such as 169.254.n.n would be a pointer to one cause of connection problems. You are quite right not to disclose personal information without considering the consequences but it is...
by jbudd
Sat Mar 30, 2019 4:24 pm
Forum: Beginners
Topic: Network bandwidth tracker etc
Replies: 2
Views: 80

Re: Network bandwidth tracker etc

I don't think Pi-Hole will give you bandwidth stats. It blocks ads though, so it does reduce your data usage. Can you use Pi-Hole or other custom DNS server for parental control? It all depends. Like everyone else, your ISP is keen to track your internet activity so they can sell you to advertisers,...
by jbudd
Sat Mar 30, 2019 1:39 pm
Forum: Beginners
Topic: Getting started. Something wrong
Replies: 14
Views: 373

Re: Getting started. Something wrong

Whatever operating system is on your SD card, it's not the official Raspbian. Raspbian does not have the root login enabled by default. Raspbian does have the raspi-config script (/usr/bin/raspi-config) These commands may be informative: [email protected]:~ $ uname -a Linux ZeroPi 4.14.98+ #1200 Tue Feb 12 ...
by jbudd
Fri Mar 29, 2019 1:18 am
Forum: General discussion
Topic: Pi Speed test
Replies: 8
Views: 268

Re: Pi Speed test

Does such a script or program exist for this application? Certainly it's possible. One of my Pi's has a Node-Red flow to display a page of Wifi performance stats, including Speedtest. However, the download speed achieved by the Pi is always slower than my PC gets (both over wifi) so it is not a ver...
by jbudd
Thu Mar 28, 2019 1:34 pm
Forum: Troubleshooting
Topic: FIXED unable to flash raspbian FAKE SD CARD
Replies: 10
Views: 193

Re: unable to flash raspbian

Might be worth checking the sha-256 hash (is that the right word?) of your downloaded image, though I see you have checked it can be unzipped. What computer are you using to flash the card - Windows, mac, ...? And what version of Pi is it? If it's an SD card related issue you could experimentally us...
by jbudd
Thu Mar 28, 2019 1:16 pm
Forum: General discussion
Topic: Pi 4 questions
Replies: 166
Views: 6526

Re: Pi 4 questions

Pushing slightly at the door marked "Secret" jamesh, do you have a working prototype on your desk yet?
by jbudd
Thu Mar 28, 2019 12:50 pm
Forum: General discussion
Topic: Pi 4 questions
Replies: 166
Views: 6526

Re: Pi 4 questions

Just imagine how many oil wells and power stations we could dispense with if all of the 200/300 watt PCs currently displaying call centre scripts and other undemanding office tasks were replaced by 10 watt Raspberry Pi 5s. First you reintroduced children (of all ages) to computing, now save the plan...
by jbudd
Thu Mar 28, 2019 12:34 pm
Forum: Troubleshooting
Topic: FIXED unable to flash raspbian FAKE SD CARD
Replies: 10
Views: 193

Re: unable to flash raspbian

Download Raspbian from https://www.raspberrypi.org/downloads/raspbian/ . Install it with Etcher. Download Raspbian from https://www.raspberrypi.org/downloads/raspbian/ . Install it with Etcher. Download Raspbian from https://www.raspberrypi.org/downloads/raspbian/ . Install it with Etcher. You do no...
by jbudd
Wed Mar 27, 2019 3:36 pm
Forum: General discussion
Topic: Pi 4 questions
Replies: 166
Views: 6526

Re: Pi 4 questions

I realise I'm showing my ignorance here, but what are all these brightly coloured equine references?

I checked in my original Pi boxes but there's nothing horsey there, not even rocking horse droppings.
by jbudd
Wed Mar 27, 2019 9:44 am
Forum: Beginners
Topic: Monitor Battery Charge using Lipo Reader
Replies: 4
Views: 179

Re: Monitor Battery Charge using Lipo Reader

The Pijuice, a UPS for the Pi, has a chip to monitor the battery level, however they have recently implemented a different method which uses just the battery voltage and which appears to give better results. The method is described here https://github.com/PiSupply/PiJuice/files/2659410/IEEKSPC_2017_...
by jbudd
Sun Mar 24, 2019 7:45 pm
Forum: General programming discussion
Topic: What options do I have to issue commands remotely
Replies: 4
Views: 305

Re: What options do I have to issue commands remotely

Three possibilities, no doubt there are many more. Email: The Pi monitors the email account, your phone app sends mail. MQTT: The Pi subscribes to a topic eg "kd7vea/wherami", your phone publishes the message. You need an MQTT broker, which could run on the Pi, but that would only work when you are ...
by jbudd
Sat Mar 23, 2019 11:26 am
Forum: Troubleshooting
Topic: mount: /dev/sda2 is write-protected, mounting read-only. mount: cannot mount /dev/sda2 read-only
Replies: 5
Views: 173

Re: mount: /dev/sda2 is write-protected, mounting read-only. mount: cannot mount /dev/sda2 read-only

I have managed to mount it with mount -o ro,noload /dev/sda2 wibble.
It looks like cp will continue after a read error so I may be able to recover most files...

Next I'm going to try copying it to another drive with dd and fsck that drive.
by jbudd
Sat Mar 23, 2019 12:46 am
Forum: Troubleshooting
Topic: mount: /dev/sda2 is write-protected, mounting read-only. mount: cannot mount /dev/sda2 read-only
Replies: 5
Views: 173

Re: mount: /dev/sda2 is write-protected, mounting read-only. mount: cannot mount /dev/sda2 read-only

fsck confirms the filesystem is corrupt but it won't fix it unmounted: [email protected]:~ $ sudo fsck -fn /dev/sda2 fsck from util-linux 2.29.2 e2fsck 1.43.4 (31-Jan-2017) Warning: skipping journal recovery because doing a read-only filesystem check. Pass 1: Checking inodes, blocks, and sizes Deleted ...
by jbudd
Sat Mar 23, 2019 12:37 am
Forum: Troubleshooting
Topic: mount: /dev/sda2 is write-protected, mounting read-only. mount: cannot mount /dev/sda2 read-only
Replies: 5
Views: 173

Re: mount: /dev/sda2 is write-protected, mounting read-only. mount: cannot mount /dev/sda2 read-only

[email protected]:~ $ sudo mount -o remount,rw /dev/sda2 /media/pi/root mount: /media/pi/root not mounted or bad option In some cases useful info is found in syslog - try dmesg | tail or so. Nothing was added in /var/log/syslog by that command, but I found this from earlier today (maybe logged during ...
by jbudd
Fri Mar 22, 2019 2:50 pm
Forum: Troubleshooting
Topic: mount: /dev/sda2 is write-protected, mounting read-only. mount: cannot mount /dev/sda2 read-only
Replies: 5
Views: 173

mount: /dev/sda2 is write-protected, mounting read-only. mount: cannot mount /dev/sda2 read-only

My USB flash drive with Raspbian has gone read-only, or perhaps the root filesystem is full. It won't reboot. It seemed to be running OK but I couldn't login to Node-Red. Booting from an SD card in the Pi I can't mount the USB root filesystem [email protected]:~ $ sudo fdisk -l . Disk /dev/sda: 28.7 Gi...
by jbudd
Fri Mar 15, 2019 12:44 am
Forum: Beginners
Topic: Listing the command lines that I have written
Replies: 12
Views: 397

Re: Listing the command lines that I have written

And the Up_Arrow key on the keyboard will recall the preceding command. And steps back repeatedly. Commands recalled in this way can be edited interactively, as though they had just been typed, before being executed by pressing [Return]. In the Korn shell, now out of fashion, you could scroll back ...
by jbudd
Wed Mar 13, 2019 6:59 pm
Forum: Advanced users
Topic: Ping sweep of my network
Replies: 15
Views: 608

Re: Ping sweep of my network

Node-red uses JavaScript. You don't need to go much programming though. You can call other programs from it, I use python or shell scripts for that. How much did the Davicom cost? :-) I once caused much displeasure in a sysadmin department by doing the same monitoring tasks better than the system th...
by jbudd
Wed Mar 13, 2019 6:43 pm
Forum: Advanced users
Topic: Ping sweep of my network
Replies: 15
Views: 608

Re: Ping sweep of my network

Node-red runs on the pi yes. There are Pi specific installation instructions at node-red.org (to get an up to date version) I don't know why your boss wants gpio pins to indicate network device status, it sounds like only half a solution to me. Much better imho for the pi which monitors them to send...
by jbudd
Sun Mar 10, 2019 9:27 am
Forum: Troubleshooting
Topic: Change from Static IP Address to DHCP
Replies: 4
Views: 243

Re: Change from Static IP Address to DHCP

You shouldn't try to edit /etc/dhcp. It's a directory not a file. Get rid of all the changes you made to /etc/dhcpcd.conf. Every line below # Example static IP configuration: should be commented out. Now test each connection method in turn - ethernet cable to your router, home wifi and mobile phone ...
by jbudd
Sun Mar 10, 2019 12:29 am
Forum: General discussion
Topic: Advice on plant watering moisture sensors please...
Replies: 4
Views: 193

Re: Advice, please...

IMHO Raspbian is the best operating system for this. It's designed for the Pi and you can usually get help and advice here. I guess whichever language you are most familiar with is best, but if I was doing it I would consider something like this: Ensure that the area has a good wifi signal, maybe wi...
by jbudd
Sat Mar 09, 2019 1:10 pm
Forum: Advanced users
Topic: Ping sweep of my network
Replies: 15
Views: 608

Re: Ping sweep of my network

You could consider Node-Red for this. It has an easy web based drag and drop interface. A flow to monitor several network devices might look like this Untitled 2.jpg (Though you would probably want to make it a bit fancier, so that the notification tells you which device is down, etc). You can also ...
by jbudd
Sat Mar 09, 2019 11:51 am
Forum: Python
Topic: while loop exits for no apparent reason
Replies: 6
Views: 206

Re: while loop exits for no apparent reason

Try this:

Code: Select all

while (GPIO.input(BTNPin) == False) and (GPIO.input(BT2Pin)== False):
        sleep(0.1)
by jbudd
Sat Mar 09, 2019 12:32 am
Forum: Troubleshooting
Topic: Change from Static IP Address to DHCP
Replies: 4
Views: 243

Re: Change from Static IP Address to DHCP

From my laptop cmd line I can ping the Pi's IP address ... i.e. ping 127.0.0.1 127.0.0.1 is the "loopback" or "localhost" address. You are pinging your laptop from your laptop, not pinging the Pi. It is generally much easier to reserve an IP address for the Pi in your router config web pages. Then,...
by jbudd
Fri Mar 08, 2019 2:03 pm
Forum: General discussion
Topic: Is there a cheap and reliable UPS for raspberry pi 3b+?
Replies: 52
Views: 1753

Re: Is there a cheap and reliable UPS for raspberry pi 3b+?

Man, it must be tough to live in a world where you got to censor ....
Wow, you are a charmer arent you?

Go to advanced search