Go to advanced search

by henrikl2000
Fri Jun 19, 2020 8:15 am
Forum: General discussion
Topic: RPI-4, Buster, broken with ./.config/lxsession/LXDE-pi/autostart
Replies: 12
Views: 915

Re: RPI-4, Buster, broken with ./.config/lxsession/LXDE-pi/autostart

I had exactly the same issue. My Pi 4 would not autorun a Python script at boot.
I use Mqtt in my Python script.
Wait for network solved my issue

Thank's a lot
by bkeyport
Fri Jun 19, 2020 7:17 am
Forum: Troubleshooting
Topic: External Power Light using GPIO
Replies: 3
Views: 162

External Power Light using GPIO

... switch has a LED light ring that can be turned on by a GPIO output ... the switch itself. I've got a script set up to turn the light on ... as soon as it's possible in the boot sequence. Where would I put the ... going to use yet): #!/usr/bin/env python import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) ...
by peterm2
Sun Jun 14, 2020 11:27 am
Forum: Troubleshooting
Topic: Raspbios and WiFi Access Point
Replies: 4
Views: 296

Raspbios and WiFi Access Point

... ssh, and also downloaded the python/HTML files into it. 2. Boot on Ethernet in R-PI card B-rev2, and ... install python3-flask Put the shell script in Home directory and also in RC.local ... it. 4. Install Access point software. At this point follow my previous post: ...
by pfletch101
Thu Jun 11, 2020 11:41 pm
Forum: Troubleshooting
Topic: python file won't run on boot from crontab
Replies: 13
Views: 580

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 ...
by modsbyus
Tue Jun 02, 2020 3:53 pm
Forum: Troubleshooting
Topic: Problem getting script to start on boot with systemctl service
Replies: 18
Views: 517

Re: Problem getting script to start on boot with systemctl service

... 2 11:28:58 Gaston-ups systemd[1]: Started Generator Monitoring Service. Jun 2 11:28:58 Gaston-ups ... Started xrdp daemon. Jun 2 11:28:58 Gaston-ups python[577]: The generator monitoring script has started Jun 2 11:28:58 Gaston-ups python[577]: ...
by modsbyus
Fri May 29, 2020 11:03 pm
Forum: Troubleshooting
Topic: Problem getting script to start on boot with systemctl service
Replies: 18
Views: 517

Re: Problem getting script to start on boot with systemctl service

Okay, I added the print statements as requested. When I run sudo -i cd /home/pi && python -u /usr/local/bin/GenRunState.py ... The generator monitoring script has started In loop Generator Off ... Sent In loop In loop In loop After boot When I check systemctl status GenRunState ...
by modsbyus
Fri May 29, 2020 1:02 pm
Forum: Troubleshooting
Topic: Problem getting script to start on boot with systemctl service
Replies: 18
Views: 517

Problem getting script to start on boot with systemctl service

... can help me. I am trying to get a python script to start and run on boot. I have attempted to do this using CRON, init.d, rc.local, ...
by thagrol
Mon May 25, 2020 9:45 pm
Forum: Troubleshooting
Topic: Automatic python script execution on startup only works partially
Replies: 7
Views: 449

Re: Automatic python script execution on startup only works partially

... get all of my code running after bootup. Please have a look at the structure of my python script: - import a lot of modules including opencv ...
by Jim Danner
Mon May 25, 2020 11:34 am
Forum: Raspberry Pi OS
Topic: Running a python script at boot time - problem with module
Replies: 2
Views: 168

Re: Running a python script at boot time - problem with module

You could try having your script run on behalf of the user pi (instead of the root user, who runs services by default). In your unit file /etc/systemd/system/freezer.service, under the [Service] header, you add User=pi and then reload ...
by BaconOnAStick
Sun May 24, 2020 10:11 pm
Forum: Troubleshooting
Topic: Raspberry Pi Zero W LED python script freezes after some time
Replies: 6
Views: 201

Raspberry Pi Zero W LED python script freezes after some time

... sensor and an LED Strip to create some automated closet lights. Basically, ... off. I'm using crontab to run the python script at boot. The problem is that usually after about ...
by mik3y
Sun May 24, 2020 8:56 pm
Forum: Advanced users
Topic: New project: Berrypatch: Leveraging docker for easy & repeatable app installs
Replies: 0
Views: 126

New project: Berrypatch: Leveraging docker for easy & repeatable app installs

... background There are a lot of great projects you can run on RPi, and ... Some of these things run python, some it's ruby. Some things ... for a config file, add a startup script somewhere as root, and so on. ... and making sure they launch on boot always stay running. Lastly, docker/docker-compose ...
by GregH2O
Sun May 24, 2020 2:44 pm
Forum: Raspberry Pi OS
Topic: Running a python script at boot time - problem with module
Replies: 2
Views: 168

Re: Running a python script at boot time - problem with module

... a launcher.sh from https://www.instructables.com/id/Raspberry-Pi-Launch-Python-script-on-startup/ That runs, and that calls my .py script, but if I open launcher.log, I get ...
by GregH2O
Sun May 24, 2020 10:32 am
Forum: Raspberry Pi OS
Topic: Running a python script at boot time - problem with module
Replies: 2
Views: 168

Running a python script at boot time - problem with module

... and Linux. I am trying to get a Python script to run at boot, and following commands from here: https://raspberrypi.stackexchange.com/questions/108694/how-to-start-a-python-script-at-boot ...
by grayerbeard
Sun May 24, 2020 10:16 am
Forum: AIY Projects
Topic: Setting voice kit to run at boot does not work - Unit not found
Replies: 1
Views: 680

Re: Setting voice kit to run at boot does not work - Unit not found

... used "tmux" to start up voice assistant demo script at start up. Install Tmux using sudo apt install tmux then ... a command to start your version of the example python script in my case #!/bin/bash cd /home/pi/aiy echo ...
by B.Goode
Sat May 23, 2020 1:45 pm
Forum: Other projects
Topic: Inventory or audit my collection of RaspberryPi
Replies: 2
Views: 265

Re: Inventory or audit my collection of RaspberryPi

... an SD card with a little startup script that would collect the specs of the Pi it ... on and log them to a file. I'd boot up each pi in turn using the same ... happy to use rasbian and practice my python This company seems to have a free-to-use ...
by parsl
Sat May 23, 2020 1:33 pm
Forum: Other projects
Topic: Inventory or audit my collection of RaspberryPi
Replies: 2
Views: 265

Inventory or audit my collection of RaspberryPi

... an SD card with a little startup script that would collect the specs of the Pi it ... on and log them to a file. I'd boot up each pi in turn using the same ... happy to use rasbian and practice my python
by klricks
Fri May 22, 2020 8:53 pm
Forum: Troubleshooting
Topic: Automatic python script execution on startup only works partially
Replies: 7
Views: 449

Re: Automatic python script execution on startup only works partially

... 1. How is it possible to place my script in the x startup file? What does that exactly mean? The hacky solution ... clearly get simple scripts to run at bootup but not my python script requiring mqtt connection. Further, ...
by rt10
Wed May 13, 2020 1:34 pm
Forum: Troubleshooting
Topic: script works manually but not on boot
Replies: 2
Views: 126

script works manually but not on boot

I've coded a script on python that takes a picture with my raspi camera whenever ... to make my raspberry pi to run this code on boot. This is what I did in Terminal sudo nano ...
by Mandrake
Wed May 13, 2020 7:09 am
Forum: General discussion
Topic: Console Menu Boot Option - A Thank You How To...
Replies: 0
Views: 110

Console Menu Boot Option - A Thank You How To...

... questions I asked regarding dual booting the Pi, that led me down the following road. I hope ... Pi, and I am your bog-standard desk scripter. Take ecerything forthcoming with ... to being interested in the desktop, python, etc. So here is what I came up ...
by pcmanbob
Sun May 10, 2020 11:02 am
Forum: Raspberry Pi OS
Topic: Make Python Script Show on Startup
Replies: 3
Views: 188

Re: Make Python Script Show on Startup

... your program in the terminal on the desktop at pi boot then you need to use the GUI autostart file. to edit ... this line to the end of existing lines @lxterminal -e python /home/pi/Desktop/Stronghold_CMD_Robotic_Arm.py note ...
by randywatson
Mon May 04, 2020 9:36 pm
Forum: Beginners
Topic: Reset and Shutdown/Power on buttons on Raspberry PI 4
Replies: 11
Views: 4525

Re: Reset and Shutdown/Power on buttons on Raspberry PI 4

... reset with a slight chance of data corruption. To my pleasant suprise ... GLOBAL_EN and the PI4 will boot up. PI4 is running (powered state) ... needed to write a soft shutdown script in Python for the powerbutton during this ...
by onebitcpu
Fri May 01, 2020 8:38 pm
Forum: Python
Topic: Shutting down headless RPi immediately with pushbutton
Replies: 4
Views: 334

Re: Shutting down headless RPi immediately with pushbutton

I wrote a script to do this, with a built in delay ... off via the button. #!/usr/bin/python import RPi.GPIO as GPIO import ... = time.time() print 'Button pushed at',time.ctime(start) while True: time.sleep(.25) ... code in /etc/rc.local to start on boot: (/usr/local/bin/gpio_button.py > ...
by klricks
Thu Apr 30, 2020 6:35 pm
Forum: General programming discussion
Topic: Running a Python Script AFTER X GUI Starts up?
Replies: 32
Views: 94127

Re: Running a Python Script AFTER X GUI Starts up?

I am a bit of an amateur at this, but I only have 2 questions: - Is there a specific method I have to use ... you would enter in the command line. For example to make the browser start at each boot enter: chromium-browser www.raspberrypi.org
by AtTheHakShack
Wed Apr 29, 2020 7:54 pm
Forum: Graphics, sound and multimedia
Topic: GIANT UPDATE: Build FFmpeg and mpv – Automatically in 54 Minutes!
Replies: 278
Views: 155815

FIXED! Build FFmpeg and mpv – Automatically in 54 Minutes!

I finally got Mike's script to work with some updates and ... PI 3B+ with Raspbian Buster. At the bottom of this post is my updated ... the GPU by adding gpu_mem=128 to /boot/config.txt. Otherwise, the script ... command. Finally, since waf is a Python script that needs to be executed ...
by graf_eberstein
Wed Apr 29, 2020 4:14 pm
Forum: Ubuntu
Topic: [URGENT] Adding Flash plug-in to Chromium - Ubuntu 19.10(aarch64) + MATE on RPi4
Replies: 26
Views: 1451

Re: [URGENT] Adding Flash plug-in to Chromium - Ubuntu 19.10(aarch64) + MATE on RPi4

At this point, I'm googling my way around. ... arm64 shell functions for bilibop scripts bilibop-lockfs/eoan 0.5.6 arm64 ... arm64 small screencast creator cbootimage/eoan 1.8-1 arm64 Tools to dump ... fastboot tool firmware-microbit-micropython/eoan 1.0.1-1 all MicroPython runtime ...

Go to advanced search