Go to advanced search

by B.Goode
Thu Oct 10, 2019 4:30 pm
Forum: Troubleshooting
Topic: Running .py file from boot using rc.local
Replies: 19
Views: 380

Re: Running .py file from boot using rc.local

I check the .csv file that the code writes an output to and there is no update in the information on it.

Where, precisely, in your filesystem are you expecting to find the output file ph.csv ?
by B.Goode
Thu Oct 10, 2019 4:05 pm
Forum: Troubleshooting
Topic: Running .py file from boot using rc.local
Replies: 19
Views: 380

Re: Running .py file from boot using rc.local

There is still no startup of the program upon boot


How do you know that?


And perhaps share copies of your modified versions of /etc/rc.local and /home/pi/Desktop/pH_Files_and_Data/DFRobot_PH_Read.py
by B.Goode
Thu Oct 10, 2019 3:10 pm
Forum: General discussion
Topic: Can't light led
Replies: 19
Views: 506

Re: Can't light led

I know that the circuit is OK as it worked on the old pi


What model is the 'new' RPi?

Maybe you have made the same mistake transferring the led to all the new boards? Used Pin 9 (ground) or Pin 13 (BCM GPIO #27) instead of Pin 11?
by B.Goode
Thu Oct 10, 2019 1:31 pm
Forum: General discussion
Topic: ubuntu server headless install (wifi only access) PI 3 B+
Replies: 3
Views: 122

Re: ubuntu server headless install (wifi only access) PI 3 B+

all i wanted to create a web server for my small projects. So although 'off topic' for the thread title, it is worth pointing out that the Raspberry Pi recommended and supported Raspbian Buster Operating System is capable of being used to deploy a simple web server, and that setting up an RPi3B+ wi...
by B.Goode
Thu Oct 10, 2019 1:19 pm
Forum: Troubleshooting
Topic: RPI4 ACT light blinks once and doensnt boot
Replies: 5
Views: 161

Re: RPI4 ACT light blinks once and doensnt boot

Welcome to the Raspberry Pi forums. I have a RPI4 2GB and it was working fine, but then when I tried to boot it once, the ACT light blinked once and didnt boot. I have tried different power cords, power supplies, new MicroSD cards with different OS's installed, reflashing the EEPROM, which failed as...
by B.Goode
Thu Oct 10, 2019 1:13 pm
Forum: General discussion
Topic: PI4 Buster Lite and electron
Replies: 3
Views: 129

Re: PI4 Buster Lite and electron

Gtk-WARNING **: cannot open display: :0 An unmodified installation of the Raspbian Buster Lite Operating System does not have the components needed to create and run an X-Windows Server. So when GTk tries to connect to a display to render the output from your code it fails. If you need to run X-Win...
by B.Goode
Thu Oct 10, 2019 1:06 pm
Forum: General discussion
Topic: Misleading info on google search
Replies: 10
Views: 283

Re: Misleading info on google search

As usual, XKCD has it covered...

https://xkcd.com/386/
by B.Goode
Thu Oct 10, 2019 11:47 am
Forum: General programming discussion
Topic: Programming languages support
Replies: 37
Views: 1378

Re: Programming languages support

Smalltalk is considerably faster than python and offers easy access to gpio, web services, client-server, OS access, excellent developer tools, actual, real, portability, a sensible language and generally a lot of good things. There has been a Smalltalk available for ARM since before it was origina...
by B.Goode
Thu Oct 10, 2019 11:10 am
Forum: Weather station
Topic: Sense hat project.
Replies: 2
Views: 162

Re: Sense hat project.

Welcome to the Raspberry Pi forums. I have this project, that requires me to make the sense-hat light up when temperature is below 20°. But I have no idea how I can make my sense-hat light up when below a certain temperature. Sry for bad explenation. See this Raspberry Pi documentation : https://pro...
by B.Goode
Thu Oct 10, 2019 10:17 am
Forum: Beginners
Topic: A relay turns a light on/off, how to detect a burnt light ? [solved]
Replies: 40
Views: 1016

Re: A relay turns a light on/off, how to detect a burnt light ?

( Contribution removed retrospectively. )
by B.Goode
Thu Oct 10, 2019 10:12 am
Forum: Troubleshooting
Topic: Start a Python Script from boot
Replies: 35
Views: 17089

Re: Start a Python Script from boot

DougieLawson wrote:
Thu Oct 10, 2019 10:06 am

Or better add

Code: Select all

#!/use/bin/python
as the first line of your program


Code: Select all

#!/usr/bin/python
by B.Goode
Thu Oct 10, 2019 9:49 am
Forum: General discussion
Topic: Can't light led
Replies: 19
Views: 506

Re: Can't light led

Hi, I have the same issue, in fact, we are working together on this... We are following the CamJam Edukit 1 LEDs document for the circuit diagrams and The circuit from the CamJam worksheet will not work with the code you have posted. Other than what was probably a distracting and unhelpful interven...
by B.Goode
Thu Oct 10, 2019 8:01 am
Forum: General discussion
Topic: Raspberry pi robot
Replies: 11
Views: 343

Re: Raspberry pi robot

... and to supplement what @RPiMike has pointed out - The gpiozero Python library has built-in support for the sort of hardware setup you have. There is a simple 'Recipe' here, in Section 2.22 - https://gpiozero.readthedocs.io/en/stable/recipes.html#robot (It is very likely that the Project referred...
by B.Goode
Thu Oct 10, 2019 7:35 am
Forum: Raspbian
Topic: Which Raspbian version is best for Pi3 Model B?
Replies: 5
Views: 306

Re: Which Raspbian version is best for Pi3 Model B?

Which version of Raspbian should I be using? Do I upgrade to the latest version? I cannot find advice on the Pi.org pages, or elsewhere, advising recommended Raspbian for each model. At the top of https://www.raspberrypi.org/downloads/ - Raspbian is our official operating system for all models of t...
by B.Goode
Wed Oct 09, 2019 7:03 pm
Forum: Automation, sensing and robotics
Topic: Control 12v solenoid valve using Raspberry Pi
Replies: 10
Views: 33486

Re: Control 12v solenoid valve using Raspberry Pi

is it a mains pressure water supply you wish to turn on/off with the solenoid valve??
The problem was resolved 6 years ago... !
by B.Goode
Wed Oct 09, 2019 6:58 pm
Forum: Troubleshooting
Topic: Running .py file from boot using rc.local
Replies: 19
Views: 380

Re: Running .py file from boot using rc.local

Another issue to add to your list..

Code: Select all

sys.path.append('../')
#/home/pi/Desktop/pH_Files_and_Data/DFRobot_PH_Read.py
You will not end up at that location if you run this as the root user during startup.
by B.Goode
Wed Oct 09, 2019 5:43 pm
Forum: Python
Topic: Disordered list on raspberry pi and not on mac
Replies: 6
Views: 260

Re: Disordered list on raspberry pi and not on mac

Hi guy ! At first sorry if my english make your eyes bleeding :mrgreen: :mrgreen: I want to expose my problem here as i didn't find an answer ... i'm making a script that pick up JSON file from URL, take the information I need and put them on a list scontext = ssl.SSLContext(ssl.PROTOCOL_TLS) url =...
by B.Goode
Wed Oct 09, 2019 4:52 pm
Forum: Troubleshooting
Topic: Running .py file from boot using rc.local
Replies: 19
Views: 380

Re: Running .py file from boot using rc.local

I used the method of starting a program from boot used on https://www.dexterindustries.com/howto/run-a-program-on-your-raspberry-pi-at-startup/ , but afterward nothing occurs. Has anyone else ran into the same issues? afterward nothing occurs 'Nothing'? Does it fail to boot at all? Or just fail to ...
by B.Goode
Wed Oct 09, 2019 4:44 pm
Forum: Python
Topic: Writing to a text file in a specific line.
Replies: 10
Views: 357

Re: Writing to a text file in a specific line.

Good afternoon! ;) I have a variable, it takes a certain value. I know that the value of this variable should always be on the third line in my text file. Always the third line. It doesn’t matter what is now contained in the third line. When a variable changes its value, you just need to open the f...
by B.Goode
Wed Oct 09, 2019 4:26 pm
Forum: General discussion
Topic: USB power to run Raspberry Pi
Replies: 5
Views: 199

Re: USB power to run Raspberry Pi

I have a 2A USB supply available. Which Pi models can be USB powered please? In addition to what an Engineer/Moderator has already said, there is a table of power requirements for various RPi boards published by Raspberry Pi themselves here: https://www.raspberrypi.org/documentation/faqs/#pi-power
by B.Goode
Wed Oct 09, 2019 4:14 pm
Forum: General discussion
Topic: Connecting multiple sensors to Raspberry Pi 4 B
Replies: 1
Views: 76

Re: Connecting multiple sensors to Raspberry Pi 4 B

Welcome to the Raspberry Pi forums. I have a Raspberry Pi Project in mind but I'm completely new to this matter and have literally no idea. My plan is to create a transportable Weather Station (which includes a temperature sensor, air pressure Sensor, air pollution sensor and a solar UV-Rating senso...
by B.Goode
Wed Oct 09, 2019 4:05 pm
Forum: General discussion
Topic: Communication over ethernet cable between 2 pi's
Replies: 1
Views: 86

Re: Communication over ethernet cable between 2 pi's

Welcome to the Raspberry Pi forums. hello, greetings for the day i have doubt in import socket to connect server/client we need (ip,port) like a way to access the data at both client or server there is mysocket.accept() which is tuple return value is (conn, address) my question is can we assign addr...
by B.Goode
Wed Oct 09, 2019 3:43 pm
Forum: Beginners
Topic: Does a Buster image created on Pi 3B+ run on Pi4?
Replies: 7
Views: 173

Re: Does a Buster image created on Pi 3B+ run on Pi4?

If I got B.Goode right, this should be the case. Correct?

That seems to be in accord with what @drgeoff and @jerrm also said. Just spreading the kudos. (Or the blame, in case there is some detail that hasn't been made clear... )
by B.Goode
Wed Oct 09, 2019 3:24 pm
Forum: Beginners
Topic: Does a Buster image created on Pi 3B+ run on Pi4?
Replies: 7
Views: 173

Re: Does a Buster image created on Pi 3B+ run on Pi4?

Another answer, not disagreeing with @drgeoff, but looking at a little detail... . I recently upgraded the Pi3B+ to raspbian Buster Does that mean you installed a fresh download of Raspbian Buster onto its own micro SD card and used that in your RPi 3b+ instead? That should work in an RPi4. Or does ...
by B.Goode
Wed Oct 09, 2019 3:07 pm
Forum: Troubleshooting
Topic: Rasbian is not starting up after update
Replies: 5
Views: 162

Re: Rasbian is not starting up after update

Which version of Raspbian were you using? The "dist-upgrade" may be upgrading the major OS version from stretch to buster. ... Do not use the "dist-upgrade" unless told to do so by an experienced user and make a backup of your SD card prior to attempting this command. Really? That is directly contr...

Go to advanced search