Go to advanced search

by bonzadog
Sat Mar 27, 2021 1:06 pm
Forum: Other programming languages
Topic: Installing Rust on Pi 4, 32 bit Pi OS.
Replies: 11
Views: 3640

Re: Installing Rust on Pi 4, 32 bit Pi OS.

After some 50 odd years writing Programmes I like an easy life. I have some catching up to do maybe. After 40 years programming I like an easy life too. In fact I always have done. That is why I have always avoided big, ugly, complex IDEs and striven to do everything on the command line, automating...
by bonzadog
Thu Mar 25, 2021 3:30 pm
Forum: Other programming languages
Topic: Installing Rust on Pi 4, 32 bit Pi OS.
Replies: 11
Views: 3640

Re: Installing Rust on Pi 4, 32 bit Pi OS.

I would like to see a decent IDE for Rust . Is there one, I cannot find it under duckduckgo Use Visual Studio Code (Not "Visual Studio"): https://code.visualstudio.com/ VS Code is a cross-platform and open source (mostly) programmers editor. There are hundreds of easily installable extens...
by bonzadog
Thu Mar 25, 2021 2:30 pm
Forum: Other programming languages
Topic: Installing Rust on Pi 4, 32 bit Pi OS.
Replies: 11
Views: 3640

Re: Installing Rust on Pi 4, 32 bit Pi OS.

I do everything first on my ubuntu laptop using MS code which has excellent help (drastic reduction in compiler messages!). I use cargo to compile on command line. Generally things will work on the RPi if they work on my laptop (and also cross compile to windows etc). This is the way I will work to...
by bonzadog
Thu Mar 25, 2021 2:09 pm
Forum: Other programming languages
Topic: Installing Rust on Pi 4, 32 bit Pi OS.
Replies: 11
Views: 3640

Re: Installing Rust on Pi 4, 32 bit Pi OS.

Thank you for the RUST installation procedure on the RPi - work well.

I would like to see a decent IDE for Rust . Is there one, I cannot find it under duckduckgo
by bonzadog
Sun Jan 03, 2021 1:28 pm
Forum: General discussion
Topic: need to upgrade python
Replies: 13
Views: 4971

Re: need to upgrade python

3.1.2020 Hello, Raspbarry pi BUSTER I downloaded python3.7 compiled it, and it runs correctly. Python3.5 is also callable. pi@rpi226:~ $ pip3 install numpy DEPRECATION: Python 3.5 reached the end of its life on September 13th, 2020. Please upgrade your Python as Python 3.5 is no longer maintained. p...
by bonzadog
Thu Sep 24, 2020 3:12 pm
Forum: Troubleshooting
Topic: Cron is not starting my python MQTT script correctly
Replies: 25
Views: 1897

Re: Cron is not starting my python MQTT script correctly

Set Wait for network on boot using raspi-config . Basically it was looping around the connect, needed a break on successful connect. I called it bonza.py and start it at reboot from pi's cron with: crontab -e @reboot python3 -u ~/forum/bonza.py >> ~/forum/bonza.log 2&1 I dropped the log file st...
by bonzadog
Thu Sep 24, 2020 11:17 am
Forum: Troubleshooting
Topic: Cron is not starting my python MQTT script correctly
Replies: 25
Views: 1897

Re: Cron is not starting my python MQTT script correctly

No, it is indeed a Raspberry Pi problem. I was not clear in stating what I was doing. I started the programming under Windows ( I use WING IDE) THEN I move to the Raspberry Pi. Unfortunately I published the Windows version of my programme and not the Raspberry pi version. However, the only differen...
by bonzadog
Thu Sep 24, 2020 10:12 am
Forum: Troubleshooting
Topic: Cron is not starting my python MQTT script correctly
Replies: 25
Views: 1897

Re: Cron is not starting my python MQTT script correctly

um,yes, I am using Unix system on Windows (Sorry) So it's a windows related issue not a Pi one. Probably not even a python one. Either way why on earth did you think it was apropriate to ask for help in the "using the raspberry Pi > troubleshooting" subforum? If by "Unix system on Wi...
by bonzadog
Wed Sep 23, 2020 5:47 pm
Forum: Troubleshooting
Topic: Cron is not starting my python MQTT script correctly
Replies: 25
Views: 1897

Re: Cron is not starting my python MQTT script correctly

try: log=open("d:/logfile.txt","w") except: print ("Opening log file failed") exit() Unless you're running on windows that will always throw an exception. "d:/logfile.txt" is not a valid linux path. It would fail regardless of whether you're running the scrip...
by bonzadog
Wed Sep 23, 2020 2:25 pm
Forum: Troubleshooting
Topic: Cron is not starting my python MQTT script correctly
Replies: 25
Views: 1897

Re: Cron is not starting my python MQTT script correctly

OK here is the trial verion ----------------------------------------------------------------------------------------------------------------- # Improvement : coming up soon # Status - cannot get this to start in CRON # WORKS ON CLI python3 /home/pi(Heartbeat.py # # Import package import paho.mqtt.cl...
by bonzadog
Wed Sep 23, 2020 11:45 am
Forum: Troubleshooting
Topic: Cron is not starting my python MQTT script correctly
Replies: 25
Views: 1897

Re: Cron is not starting my python MQTT script correctly

I should have told you haw my script works. On start the Programme loops ( a 5 sec delay in the loop) until a Network is available. So when the System starts the programme will wait until a Network is available. The Python programme doesn't even get started. So there must be something fundamentally ...
by bonzadog
Tue Aug 25, 2020 2:30 pm
Forum: Troubleshooting
Topic: Cron is not starting my python MQTT script correctly
Replies: 25
Views: 1897

Re: Cron is not starting my python MQTT script correctly

I have exactly the same problem. Using a Raspberry Pi 3B using the OS BUSTER entry in crontab -e @reboot python3 /home/pi/mqtt-publish-heartbeat.py > /home/pi/mqtt-pub-hb1.log & pub-hb1.log shows Error on connecting to Broker : 192.168.178.109 at 2020-08-25 16:21:58 BUT executing on the command ...
by bonzadog
Tue Jul 21, 2020 4:05 pm
Forum: Beginners
Topic: sata storae board (+ case)
Replies: 0
Views: 107

sata storae board (+ case)

by bonzadog
Tue Jul 21, 2020 4:02 pm
Forum: Beginners
Topic: Teamviewer on Raspberry Pi? [obsolete]
Replies: 10
Views: 4412

Re: Teamviewer on Raspberry Pi?

I see a LOT of Teamviewer users complaining about being incorrectly classified as a commercial user. When this happens one needs to fill out a form or each ID and wait for a while until the IDs get unblocked.

So if you are on a local WLAN then use VHC to connect - that works very well.
by bonzadog
Sat Jun 20, 2020 6:55 am
Forum: Other projects
Topic: PAN/TILT for the new Rpi Camera
Replies: 0
Views: 244

PAN/TILT for the new Rpi Camera

20.6.2020

Is there a new Pan/Tilt for the new Raspberry Pi Camera?

Thanks for any tips.

BD
by bonzadog
Thu Apr 30, 2020 7:23 am
Forum: Other projects
Topic: Raspberry Pi cluster
Replies: 4
Views: 443

Raspberry Pi cluster

I must ask a rather naive question.
I see that there is the possibility to create a Rpi cluster.
But can one run on two Rpi two different programmes in such a way that one Rpi can wait for the computation process
from a second or more Rpi?

Bd
by bonzadog
Tue Apr 07, 2020 12:04 pm
Forum: General discussion
Topic: Raspberry Pi 4 boot-over-USB with NVMe drive
Replies: 33
Views: 21718

Re: Raspberry Pi 4 boot-over-USB with NVMe drive

TLDR: I used https://jamesachambers.com/raspberry-pi-4-usb-boot-config-guide-for-ssd-flash-drives/ as a guide for setting up boot-over-USB on the RPi4. I used an externally powered USB3 hub for attaching a Samsung EVO 970 Plus 1 TB NVMe through a USB-to-NVMe bridge as the original RPi4 power supply...
by bonzadog
Tue Apr 07, 2020 7:31 am
Forum: General discussion
Topic: Raspberry Pi 4 boot-over-USB with NVMe drive
Replies: 33
Views: 21718

Re: Raspberry Pi 4 boot-over-USB with NVMe drive

While I would prefer a direct USB boot, I do not understand the impatient foot tapping. As far as I can tell the only speed difference between a hybrid boot and a direct boot would be in booting itself. Considering how short booting is now with the hybrid boot, I doubt you will see much over a ten ...
by bonzadog
Tue Apr 07, 2020 6:52 am
Forum: General discussion
Topic: Raspberry Pi 4 boot-over-USB with NVMe drive
Replies: 33
Views: 21718

Re: Raspberry Pi 4 boot-over-USB with NVMe drive

While I would prefer a direct USB boot, I do not understand the impatient foot tapping. As far as I can tell the only speed difference between a hybrid boot and a direct boot would be in booting itself. Considering how short booting is now with the hybrid boot, I doubt you will see much over a ten ...
by bonzadog
Tue Apr 07, 2020 6:50 am
Forum: General discussion
Topic: Raspberry Pi 4 boot-over-USB with NVMe drive
Replies: 33
Views: 21718

Re: Raspberry Pi 4 boot-over-USB with NVMe drive

While I would prefer a direct USB boot, I do not understand the impatient foot tapping. As far as I can tell the only speed difference between a hybrid boot and a direct boot would be in booting itself. Considering how short booting is now with the hybrid boot, I doubt you will see much over a ten ...
by bonzadog
Mon Apr 06, 2020 3:07 pm
Forum: General discussion
Topic: Raspberry Pi 4 boot-over-USB with NVMe drive
Replies: 33
Views: 21718

Re: Raspberry Pi 4 boot-over-USB with NVMe drive

LTolledo wrote:
Thu Mar 19, 2020 10:26 pm
....and there is no real-world advantage on booting RPi4B with the root on a NVMe drive....

even if native USB booting does becomes avialable (dont ask when, it will be ready when its ready)....the condition will remain...
Is there no project plan date for the USB Boot -- we all want it.
by bonzadog
Sun Mar 15, 2020 11:36 am
Forum: Advanced users
Topic: /etc/dphys-swapfile CONF_SWAPSIZE Value
Replies: 10
Views: 895

Re: /etc/dphys-swapfile CONF_SWAPSIZE Value

Chromium is another google data collection gatherer and so will never be installed on any of my systems. The Google Chrome browser may well be a "data collection gatherer". The Open Source Chromium Browser is not. It uses the source code from the Chromium browser with the data acquisition...
by bonzadog
Sun Mar 15, 2020 10:12 am
Forum: Advanced users
Topic: /etc/dphys-swapfile CONF_SWAPSIZE Value
Replies: 10
Views: 895

Re: /etc/dphys-swapfile CONF_SWAPSIZE Value

Interesting...thank you. I will try to collate information and read more about this. Chromium is another google data collection gatherer and so will never be installed on any of my systems. Firefox runs well on the RPi but I have been informed that Opera will work but one need to compile it. I will ...
by bonzadog
Sat Mar 14, 2020 7:49 pm
Forum: Advanced users
Topic: /etc/dphys-swapfile CONF_SWAPSIZE Value
Replies: 10
Views: 895

Re: /etc/dphys-swapfile CONF_SWAPSIZE Value

Apart from using Memory what effect would a permanent value of CONF_SWAPSIZE=2048 be. I assume this is the size of the virtual storage? No, its the size of the swap file. The virtual storage is the sum of the swap plus the size of the main (RAM) memory. Where is the defined..?...... Apart from usin...
by bonzadog
Sat Mar 14, 2020 7:40 pm
Forum: Advanced users
Topic: /etc/dphys-swapfile CONF_SWAPSIZE Value
Replies: 10
Views: 895

Re: /etc/dphys-swapfile CONF_SWAPSIZE Value

DougieLawson wrote:
Sat Mar 14, 2020 5:55 pm
It's filesystem space.

Don't change it unless your rootfs is on USB stick, hard drive or SSD.
OK, but booting to an USB HDD at the moment has not yet been released. I have read of other alternatives, but I will
wait for the official RPI.org release.

Go to advanced search