Go to advanced search

by pfletch101
Sun Jul 05, 2020 8:27 pm
Forum: Troubleshooting
Topic: failure to connect to raspberry using VNC Viewer
Replies: 10
Views: 1327

Re: failure to connect to raspberry using VNC Viewer

This time last year, I had similar problems develop on a setup both ends of which had previously been stable and working for more than a year. It turned out that the (then) latest version of RealVNC client for Windows had a bug which fairly consistently caused such problems. RealVNC sent me a beta v...
by pfletch101
Tue Jun 30, 2020 8:46 pm
Forum: Beginners
Topic: Use Pi OS to access sd card reader and config.txt on another Pi OS sd card
Replies: 9
Views: 328

Re: Use Pi OS to access sd card reader and config.txt on another Pi OS sd card

I wanted to change the config.txt on a backup Pi OS sd card using a usb card reader and it will not work on the raspberry. I can access this on a windows PC or even a rock64 running armbian. When I try it in Pi OS it does not mount anything or show up in file manager. It gives me the warning when I...
by pfletch101
Tue Jun 30, 2020 7:17 pm
Forum: General discussion
Topic: Getting shock from micro hdmi port when connected to tv hdmi port
Replies: 66
Views: 2332

Re: Getting shock from micro hdmi port when connected to tv hdmi port

It's important to note that 110/120V systems are in fact ±55V/60V with reference to earth. That is true in some European construction sites where isolation transformers are center-earthed to provide reduced low voltage . It is not generally true in native 120V countries. To provide for high power l...
by pfletch101
Tue Jun 30, 2020 2:48 pm
Forum: General discussion
Topic: Getting shock from micro hdmi port when connected to tv hdmi port
Replies: 66
Views: 2332

Re: Getting shock from micro hdmi port when connected to tv hdmi port

There may be countries where that will be the case, but only some, most often you can plug in the plug either way. I don't think US plugs have any protection for plugging in plugs "backwards". At least none of the ones I have ever seen did. The only ones I have ever seen were unpolarised as are the...
by pfletch101
Tue Jun 23, 2020 2:44 pm
Forum: Troubleshooting
Topic: Raspi 4 power issue
Replies: 6
Views: 303

Re: Raspi 4 power issue

Dear all, I am having troubles with powering my brand new Raspberry Pi 4. If I insert more that 2 usb devices and power it up, that it won't boot and a red led will start blinking. The funny thing is that these 3 usb devices that I want to use with the raspberry doesn't require to be powered by him...
by pfletch101
Tue Jun 23, 2020 2:23 pm
Forum: General discussion
Topic: Fan or heatsink to use Pi4 with a 3D printer in a closed enclosure
Replies: 6
Views: 254

Re: Fan or heatsink to use Pi4 with a 3D printer in a closed enclosure

Assuming the enclosure is to stabilize print temperature and possibly cut down on noise, just how hot are we talking about. The Pi will thermally protect it self so you don't have to worry about damaging it. However, I suspect you don't want it shutting down mid print. Certainly a fan will help, bu...
by pfletch101
Mon Jun 22, 2020 8:35 pm
Forum: Beginners
Topic: Python on RPiOS
Replies: 15
Views: 473

Re: Python on RPiOS

I have downloaded a couple of books on learning Python and how to write some basic programs. How do you start Python on RPiOS. Enter python at the system command line for Python 2, or python3 at the system command line for Python 3. These will give you the relevant version of python's command line....
by pfletch101
Sun Jun 21, 2020 3:25 am
Forum: Beginners
Topic: Does Appending to a File That Doesn't Exist Create A File?
Replies: 8
Views: 392

Re: Does Appending to a File That Doesn't Exist Create A File?

RaspbianUser1 wrote:
Sun Jun 21, 2020 1:05 am
Sorry if wrong but im pretty sure it doesn’t make a file but replaced with “a+” instead it does
You are correct - I was having a senior moment!
by pfletch101
Sat Jun 20, 2020 8:53 pm
Forum: Beginners
Topic: Does Appending to a File That Doesn't Exist Create A File?
Replies: 8
Views: 392

Re: Does Appending to a File That Doesn't Exist Create A File?

Yes. Append implies create if the file does not exist. This makes a reasonable amount of sense if you think about it - you are appending to a previously non-existent zero-length file.
by pfletch101
Sat Jun 20, 2020 7:47 pm
Forum: Troubleshooting
Topic: Systemd and the daemon
Replies: 6
Views: 293

Re: Systemd and the daemon

You can give us a lot more information! The complete unit file would be a good start. However, I would also check that neither the unit file nor the code you are running makes assumptions about where they are running - file references should be absolute.
by pfletch101
Sat Jun 20, 2020 7:10 pm
Forum: General discussion
Topic: a case for my pi 4
Replies: 6
Views: 456

Re: a case for my pi 4

I do the same as bjtheone for the 3B that handles environmental monitoring for my house and consequently runs 24/7/365.
by pfletch101
Thu Jun 18, 2020 11:12 pm
Forum: General discussion
Topic: Can I run agnostics from the Terminal
Replies: 7
Views: 345

Re: Can I run agnostics from the Terminal

Going by this I must have very poor MicroSDs. That would be true or is there something I need to know. pi@raspberrypi:~ $ sh /usr/share/agnostics/sdtest.sh Run 1 prepare-file;0;0;9293;18 seq-write;0;0;10146;19 rand-4k-write;0;0;929;232 rand-4k-read;3731;932;0;0 Sequential write speed 10146 KB/sec (...
by pfletch101
Tue Jun 16, 2020 11:53 pm
Forum: Beginners
Topic: Setting up Ad-Hoc Network
Replies: 2
Views: 159

Re: Setting up Ad-Hoc Network

If your non-Pi computer is running a recent version of Windows 10, you will not be able to set up a regular 'ad hoc' WiFi network, because MS has declared them to be insecure and won't allow you to link to something that isn't a WiFi Access Point. I think that there is a workaround for this which re...
by pfletch101
Thu Jun 11, 2020 11:41 pm
Forum: Troubleshooting
Topic: python file won't run on boot from crontab
Replies: 13
Views: 479

Re: python file won't run on boot from crontab

If you are running a script from crontab, it needs to include the full path to any file that it may need to access, since you cannot make any assumptions about where its home directory is. This is FRN (*). First of all, the home directory is what it is. Regardless of where you are, your home direct...
by pfletch101
Thu Jun 11, 2020 9:59 pm
Forum: Python
Topic: ValueError: invalid literal for int() with base 10: 'test'
Replies: 2
Views: 242

Re: ValueError: invalid literal for int() with base 10: 'test'

I think that you need to look up the syntax for message.decode(). It looks to me as if Python is (not unreasonably) telling you that it can't convert an alpha string into an int.
by pfletch101
Thu Jun 11, 2020 9:50 pm
Forum: Troubleshooting
Topic: python file won't run on boot from crontab
Replies: 13
Views: 479

Re: python file won't run on boot from crontab

I found a solution, it looks like you need to include the path to the file. I changed font = ImageFont.truetype(“5x7.ttf”, 8) to font = ImageFont.truetype(“/home/pi/5x7.ttf”, 8) and now it runs on boot. =) If you are running a script from crontab, it needs to include the full path to any file that ...
by pfletch101
Wed Jun 10, 2020 8:15 pm
Forum: Beginners
Topic: Best way to power a raspberry pi 3b+
Replies: 13
Views: 406

Re: Best way to power a raspberry pi 3b+

The only downsides of using a power supply with a much higher current rating than you need are its likely increased cost and probably its ongoing power usage - power supplies tend to be most efficient near their rated output current. There is a downside with an over-powerful PSU. The Pi3B+ is desig...
by pfletch101
Wed Jun 10, 2020 3:40 pm
Forum: Beginners
Topic: Best way to power a raspberry pi 3b+
Replies: 13
Views: 406

Re: Best way to power a raspberry pi 3b+

Did you set 5V 5A as an optimal output for what you use or it doesnt need to be so precise? Again I'm new in this world so I'm thinking, can 5A be dangerous for the rpi? As I said before I plan on using a 3.5" screen, gps receiver, alfa network card and a little fan attached to the pi A power suppl...
by pfletch101
Tue Jun 09, 2020 4:19 pm
Forum: Troubleshooting
Topic: Raspberry pi run startup python script cannot send HTTP requests
Replies: 3
Views: 140

Re: Raspberry pi run startup python script cannot send HTTP requests

You might try the wait for network on boot option which you can set using GUI config tool or sudo raspi.config I have found that (possibly depending on what you are trying to do over the network) this is not always sufficient. I think that 'wait for network on boot' may only wait until the local ne...
by pfletch101
Tue Jun 09, 2020 2:05 pm
Forum: Automation, sensing and robotics
Topic: On-Grid Solar System - Kw Limiter with Auto Off/On System
Replies: 3
Views: 299

Re: On-Grid Solar System - Kw Limiter with Auto Off/On System

Hi there, I'm looking for some help regarding the conception of such system. Here's the story : A very large house has 20 KW of solar panel on the roof and is connected to the grid. There are no batteries, so the production is either consumed instantly or send to grid, passing through the supplier'...
by pfletch101
Tue Jun 09, 2020 1:23 pm
Forum: Troubleshooting
Topic: Multipath-tools install error
Replies: 2
Views: 143

Re: Multipath-tools install error

Did you execute:

Code: Select all

sudo apt update
sudo apt full-upgrade
immediately or within a short time before installing multipath-tools? Not doing this first can result in all sorts of odd problems when installing other software.
by pfletch101
Tue Jun 09, 2020 1:16 pm
Forum: Troubleshooting
Topic: Raspberry pi run startup python script cannot send HTTP requests
Replies: 3
Views: 140

Re: Raspberry pi run startup python script cannot send HTTP requests

How are you running the script at startup? If you are using cron and have not put in a delay, it is almost certainly running before the network is properly set up and initialized, which typically takes a long time by computer standards (a second to a few seconds). The quick and dirty fix is to have ...
by pfletch101
Mon Jun 08, 2020 6:28 pm
Forum: General discussion
Topic: Future of Raspberry Pi
Replies: 37
Views: 2320

Re: Future of Raspberry Pi

The RPI computer is not exactly user friendly, because the RPI computer uses a Linux OS. I beg to differ. Operating systems like Win 10 are user unfriendly. The user cannot adapt them easily to what the user wants. Updates are controlled by the operating systems owner. Yes, you do not own an operat...
by pfletch101
Fri Jun 05, 2020 9:00 pm
Forum: Advanced users
Topic: Custome Install Script
Replies: 1
Views: 176

Re: Custome Install Script

Hi I use my pi(s) headless. Is there a way I can run a script to do this. As I need to install all this everytime I reinstall. sudo apt-get update && sudo apt-get upgrade -y sudo apt-get install apache2 -y sudo apt-get install php -y sudo apt-get install mariadb-server sudo mysql -u root -p CREATE ...
by pfletch101
Tue Jun 02, 2020 8:50 pm
Forum: General discussion
Topic: How do I properly eject a USB SD Card adapter?
Replies: 13
Views: 634

Re: How do I properly eject a USB SD Card adapter?

I always use the New Partition UUIDs option, but I still don't see the Ejecter after a copy. However I can use the file manager to eject the cloned card or drive ( as I mentioned in my earlier post ). If you don't use the New Partition UUIDs option, you also can't see the written SD in File Manager...

Go to advanced search