Go to advanced search

by pfletch101
Sun Aug 30, 2020 7:15 pm
Forum: Beginners
Topic: RealVNC can't handle special characters in Raspbian passwords
Replies: 7
Views: 301

Re: RealVNC can't handle special characters in Raspbian passwords

What keyboard are you using? What were the special characters it didn't like? Using a UK keyboard. The characters I removed are ! and %. It must be at least one of them but I haven't double-checked. :) Presumably, they're not in your password. Now people know these characters are not in my password...
by pfletch101
Sat Aug 29, 2020 11:09 pm
Forum: Troubleshooting
Topic: Unable to run a Python script
Replies: 21
Views: 514

Re: Unable to run a Python script

And I'm connected to my Pi by an Ethernet cable which goes from the Pi into a WiFi extender which is plugged into a power strip, which is plugged into my wall. Unfortunately, my experience is that WiFi extenders (I assume that you are actually using an Access Point as a WiFi bridge) are given to in...
by pfletch101
Sat Aug 29, 2020 10:47 pm
Forum: Beginners
Topic: Using crontab schedule a script that loops
Replies: 19
Views: 636

Re: Using crontab schedule a script that loops

Er it always works for me on a headless pi, so it can’t be unreliable? What fails if you run it like that? Running scripts from cron with @reboot generally works either if they don't try to access any resources outside the Pi (e.g. other local or remote systems, or sensors with significant initiali...
by pfletch101
Sat Aug 29, 2020 10:37 pm
Forum: Beginners
Topic: RealVNC can't handle special characters in Raspbian passwords
Replies: 7
Views: 301

Re: RealVNC can't handle special characters in Raspbian passwords

In case it helps others, RealVNC doesn't like special characters in Raspbian passwords. It complains that the user ID or password is wrong. After several hours of scratching my head, I removed any special characters from the password and it just worked. It doesn't inspire confidence in the security...
by pfletch101
Sat Aug 29, 2020 9:25 pm
Forum: Beginners
Topic: Using crontab schedule a script that loops
Replies: 19
Views: 636

Re: Using crontab schedule a script that loops

Won’t a simple @reboot in crontab work? e.g. @reboot python3 -u /home/pi/scripts/neo.py >> /home/pi/scripts/neo.log 2>&1 I have found that to be unreliable. Adding to etc/rc.local has also been unreliable. Running from systemd is generally the best way to handle a script that needs to start at rebo...
by pfletch101
Fri Aug 14, 2020 8:15 pm
Forum: Troubleshooting
Topic: How to automatically restart the pi every day?
Replies: 45
Views: 66601

Re: How to automatically restart the pi every day?

Hi, I did a cron job yesterday to reboot every night, Now trying to see if it has rebooted I get a list of 20-30 "reboots" with same time: "" the "who -b" says "system boot Jan 1 01:00"...feels this is some clock issue. The command "last reboot" gives the list will all the same: "reboot system boot...
by pfletch101
Sun Jul 05, 2020 8:27 pm
Forum: Troubleshooting
Topic: failure to connect to raspberry using VNC Viewer
Replies: 10
Views: 1954

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: 436

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: 3060

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: 3060

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: 350

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: 352

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: 693

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: 583

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: 583

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: 404

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: 571

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: 10
Views: 629

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: 216

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: 688

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: 334

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: 688

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: 531

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: 531

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: 214

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...

Go to advanced search