Go to advanced search

by pcmanbob
Tue Dec 10, 2019 12:41 pm
Forum: General discussion
Topic: Open terminal with python
Replies: 9
Views: 472

Re: Open terminal with python

Are you wanting your python code to run at pi boot ? if so you need to use the " /etc/xdg/lxsession/LXDE-pi/autostart ...
by rin67630
Tue Dec 10, 2019 5:04 am
Forum: Graphics programming
Topic: 3,5" LCD Display NOT used as a desktop...
Replies: 20
Views: 2010

Re: 3,5" LCD Display NOT used as a desktop...

... his LCD so I can see exactly what it has done to his system. ... I see a few of those scripts installs "fbcp" and if that is ... just avoid starting "fbcp" on every boot and then have full control over ... not use them at all, but use a python library that writes lines, shapes ...
by hydra3333
Mon Dec 02, 2019 1:23 am
Forum: Media centres
Topic: Notes while installing Plex Media Server on a Pi4-4Gb/Buster
Replies: 4
Views: 4028

Notes while installing Plex Media Server on a Pi4-4Gb/Buster

... went wrong" and it stays that way. When a Netflix video is cast ... Remember to ALWAYS set the Pi to boot to GIU, EVEN IF later running ... # but we’re going to use a python script for that. # You first need your ...
by blueberrypiz
Sat Nov 30, 2019 7:08 pm
Forum: Beginners
Topic: Unable to get Text To Speech working at auto start after boot up
Replies: 1
Views: 126

Unable to get Text To Speech working at auto start after boot up

... months now for a project. Basically my project consists of running a python script/program which needs to be run automatically when the pi is powered on. I have tried ...
by topguy
Mon Nov 18, 2019 12:25 pm
Forum: Python
Topic: Run Python Script (w/ Modules) at Startup
Replies: 11
Views: 557

Re: Run Python Script (w/ Modules) at Startup

... to see what happens in the terminal ? "rc.local" is good for running scripts in the "background" regardless of whether you boot to desktop or not. The script is started early before the desktop is started, that is ...
by SauerkrautGod
Sun Nov 17, 2019 10:28 pm
Forum: Python
Topic: Run Python Script (w/ Modules) at Startup
Replies: 11
Views: 557

Re: Run Python Script (w/ Modules) at Startup

... tin. I'm currently working on a python script that involves using the opencv module ... I'm trying to have that script run on boot. I tried the rc.local technique but ... python3 /home/pi/Desktop/filename.py At boot up. I do admit I have little to ...
by B.Goode
Sun Nov 17, 2019 8:17 pm
Forum: Python
Topic: Run Python Script (w/ Modules) at Startup
Replies: 11
Views: 557

Re: Run Python Script (w/ Modules) at Startup

... it says on the tin. I'm currently working on a python script that involves using the opencv module and I'm trying to have that script run on boot. I tried the rc.local technique but it doesn't seem to ...
by OldPCGuy
Sat Nov 16, 2019 7:02 pm
Forum: Python
Topic: At Startup Multiple Script Instance
Replies: 1
Views: 284

At Startup Multiple Script Instance

... systemd service to launch my python script at boot to read a sensor and publish via MQTT to my ...
by SauerkrautGod
Sat Nov 16, 2019 11:12 am
Forum: Python
Topic: Run Python Script (w/ Modules) at Startup
Replies: 11
Views: 557

Run Python Script (w/ Modules) at Startup

Exactly what it says on the tin. I'm currently working on a python script that involves using the opencv module and I'm trying to have that script run on boot. I tried the rc.local technique but it doesn't seem to work.
by neilgl
Sat Nov 09, 2019 10:31 pm
Forum: Beginners
Topic: Remote Access to Rasbian Lite
Replies: 5
Views: 301

Re: Remote Access to Rasbian Lite

... On the PC, add ssh file to "boot" on that microSD, and wpa_supplicant for the ... putty onto the PC first) Get your python script to start at boot up using crontab -e ...
by squiregeek
Tue Oct 29, 2019 8:21 pm
Forum: Python
Topic: Python script at boot can't find pytz
Replies: 2
Views: 432

Re: Python script at boot can't find pytz

Thank you ghp. I'm on a different computer and can't curt and paste. The lack of '/usr...' was a typo on my part. It should read:

Code: Select all

ExecStart=/usr/bin/python3 /home/pi/XXXX-ctrl.py
Good catch. I'm proofreading more carefully. And I'm learning how to properly format these posts.
by ghp
Tue Oct 29, 2019 8:08 pm
Forum: Python
Topic: Python script at boot can't find pytz
Replies: 2
Views: 432

Re: Python script at boot can't find pytz

Possibly the path wrong ?
ExecStart=usr/bin/python3 should be ExecStart=/usr/bin/python3 ??
by squiregeek
Tue Oct 29, 2019 7:17 pm
Forum: Python
Topic: Python script at boot can't find pytz
Replies: 2
Views: 432

Python script at boot can't find pytz

I have a script that starts at boot. In systemd I have: ExecStart=usr/bin/python3 /home/pi/XXXX-ctrl.py ...
by JohnsUPS
Thu Oct 24, 2019 1:24 am
Forum: Advanced users
Topic: Multiple DS18B20 temperature sensors
Replies: 36
Views: 27754

Re: Multiple DS18B20 temperature sensors

... this has to do with the fact that the temperature sensors are on a ... all of them are recognized during boot up. Now my question - 1) would ... it is detected. Unfortunately my python script stops when less then three sensors ...
by hippy
Wed Oct 23, 2019 6:26 pm
Forum: Raspberry Pi OS
Topic: Start python script automatically on boot
Replies: 7
Views: 551

Re: Start python script automatically on boot

... another way to start it in the script file instead of "python filename.py". Presumably this relates to your other thread where you have now ... ports work whether your program runs at boot or later from the terminal or Thonny. ...
by B.Goode
Wed Oct 23, 2019 4:55 pm
Forum: Raspberry Pi OS
Topic: Start python script automatically on boot
Replies: 7
Views: 551

Re: Start python script automatically on boot

Is starting it in a script a different python than using the thorney one that's in the desktop menu? Yes. python at the shell prompt or in a shell ...
by heitjer
Wed Oct 23, 2019 3:27 am
Forum: Advanced users
Topic: Multiple DS18B20 temperature sensors
Replies: 36
Views: 27754

Re: Multiple DS18B20 temperature sensors

... and had to order a new one. That works again but now my three temp ... up. Here is the details: In the boot/config.txt I have the following: ... it is detected. Unfortunately my python script stops when less then three sensors ...
by Dubman
Tue Oct 22, 2019 1:34 pm
Forum: General discussion
Topic: Getting RPi. Python script to run 24/7 without laptop turned on
Replies: 70
Views: 5867

Re: Getting RPi. Python script to run 24/7 without laptop turned on

... I have a doubt about exactly how /where to create a Unit file: This was from a post that I found ... for our OP. [Unit] Description=My awesome python program After=network.target [Service] ExecStart=/usr/bin/python ... minimum required to get a program running at boot in a pretty self explanatory ...
by stanwin00
Mon Oct 21, 2019 6:42 am
Forum: Beginners
Topic: autoboot script does not function
Replies: 8
Views: 838

autoboot script does not function

... weird problem here as my launcher script runs on boot up and it launches the python script. HOWEVER, whilst there is a gui ... function of the script is not executing at all... When i execute the python script ...
by Botspot
Sat Oct 19, 2019 3:23 pm
Forum: General discussion
Topic: How to use an RPI 3B or 3B+ SD card in a RPI 4B?
Replies: 7
Views: 930

Re: How to use an RPI 3B or 3B+ SD card in a RPI 4B?

... years-worth of customizations to the new version. Two things ... /home/pi/Documents echo '@sudo python /home/pi/Documents/checkmail.py' ... to the built-in socket, and boot up. I soon got fed up with these ... . And recently I released that script - it's called Vdesktop . vdesktop-min.png
by gordon77
Fri Oct 18, 2019 6:53 pm
Forum: Beginners
Topic: How to auto-boot a python3 program in Thonny
Replies: 33
Views: 2739

Re: How to auto-boot a python3 program in Thonny

... I don't believe you need to boot Thonny, just your python3 script. Try using /etc/xdg/lxsession/LXDE-pi/autostart ... e. g. To run a python script add at the end of the file... @ /usr/bin/python3 ...
by topguy
Fri Oct 18, 2019 9:06 am
Forum: Automation, sensing and robotics
Topic: Reading a signal USB port only
Replies: 6
Views: 1316

Re: Reading a signal USB port only

... and use it on the RPi3 with a Python script. You should give more details about ... printer, doing low-level USB communication is not easy. What does the Pi say ... USB ? ( plug the printer in after boot and look at the last lines of the ...
by rpiMike
Wed Oct 16, 2019 9:03 pm
Forum: Troubleshooting
Topic: Raspberry Pi 3 Crashes after 20 mins of python script running
Replies: 16
Views: 986

Re: Raspberry Pi 3 Crashes after 20 mins of python script running

... you can use to test your code directly on your Pi without ssh. Alternatively configure your Pi to start your code at boot up. See https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=254257&p=1552844#p1551894 ...
by B.Goode
Wed Oct 16, 2019 8:48 pm
Forum: Troubleshooting
Topic: Raspberry Pi 3 Crashes after 20 mins of python script running
Replies: 16
Views: 986

Re: Raspberry Pi 3 Crashes after 20 mins of python script running

... you can use to test your code directly on your Pi without ssh. Alternatively configure your Pi to start your code at boot up. See https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=254257&p=1552844#p1551894 ...
by rpiMike
Wed Oct 16, 2019 8:13 pm
Forum: Troubleshooting
Topic: Raspberry Pi 3 Crashes after 20 mins of python script running
Replies: 16
Views: 986

Re: Raspberry Pi 3 Crashes after 20 mins of python script running

Maybe its just ssh or network problems - not your code.

Have you got a keyboard and monitor/tv you can use to test your code directly on your Pi without ssh.

Alternatively configure your Pi to start your code at boot up.

Go to advanced search