Go to advanced search

by TheMisssionGlitch
Wed Aug 19, 2020 3:42 pm
Forum: Python
Topic: erroneous characters on 20X4 LCD
Replies: 4
Views: 202

erroneous characters on 20X4 LCD

I have a Pi model 3 that runs a python script at boot to display cpu temp/time/ip address. works really ...
by thagrol
Mon Aug 17, 2020 11:47 am
Forum: Python
Topic: Run a python code at boot on a Pi zero.
Replies: 3
Views: 131

Re: Run a python code at boot on a Pi zero.

Does your python program require user input from a terminal? If ... willing to live with the downside: Set you Pi to boot to command line and automatically login. Add your python script to your user's .bashrc The downside is that a fresh copy ...
by lastsaneman
Sun Aug 16, 2020 1:21 am
Forum: Python
Topic: Run a python code at boot on a Pi zero.
Replies: 3
Views: 131

Run a python code at boot on a Pi zero.

Hello. I am new to Raspberry Pi/Python code. I have been trying to get a python script to run at boot for a robot I made. The script works perfectly ...
by WiFi
Thu Aug 13, 2020 7:45 pm
Forum: Beginners
Topic: Leave bot running while terminal is closed
Replies: 5
Views: 200

Re: Leave bot running while terminal is closed

... bash command below to decouple my python script from the terminal session: nohup ... The script rgbsend.py does not generate any file output. The programm is still ... that the program is working. A reboot does not work - the RPi hangs at reboot. ...
by kitkats
Mon Aug 10, 2020 2:22 am
Forum: Troubleshooting
Topic: Autostarting Scripts in Virtual Environment on Boot
Replies: 1
Views: 82

Autostarting Scripts in Virtual Environment on Boot

... Buster. I am trying to automatically activate a Python virtual environment and run 2 separate python scripts(inside of the virtual environment) ... the terminal has to open automatically on boot first for the environment to activate ...
by Spile
Sun Aug 02, 2020 1:22 pm
Forum: Networking and servers
Topic: Using the Raspberry Pi instead of a Dynamic DNS service
Replies: 1
Views: 140

Using the Raspberry Pi instead of a Dynamic DNS service

... excellent PiVpn/Wireguard combination, I needed to ensure that I could ... API provided by CPanel. A small python script (written by Sebastian Wyngaard) ... allow time for the pi to complete its boot and initiate the network and also ...
by KneadToKnow
Fri Jul 31, 2020 3:24 pm
Forum: Beginners
Topic: Getting Kaffeine to run automatically after reboot
Replies: 0
Views: 138

Getting Kaffeine to run automatically after reboot

... as a DVR. I'd like to be sure that anything that might cause my Pi to reboot doesn't cost me a day's worth of ... Lots of guidance on how to run a Python script at boot, but nothing on how specifically ...
by Raspy_D
Fri Jul 31, 2020 7:07 am
Forum: Python
Topic: python with environment variable running at boot
Replies: 5
Views: 314

Re: python with environment variable running at boot

Thanks a lot ghp. I'll try as soon as I can.
I tryed making it start with several methods (crontab, normal end as root, systemd, etc)
the WorkingDirectory should be the one where my python script is, correct?
by ghp
Fri Jul 31, 2020 5:39 am
Forum: Python
Topic: python with environment variable running at boot
Replies: 5
Views: 314

Re: python with environment variable running at boot

Hello, the term "start at boot" is ambiguous. It can be - start with ... service file: [Unit] Description=My Script Service After=multi-user.target [Service] Type=idle ExecStart=/usr/bin/python /home/pi/myscript.py Environment="prog_path=/home/pi/programfldr/prog_path" ...
by Raspy_D
Thu Jul 30, 2020 10:05 pm
Forum: Python
Topic: python with environment variable running at boot
Replies: 5
Views: 314

python with environment variable running at boot

Hi to all, I know that the web is full of guides on how to start a python script at the boot, but I'm here to ask your help since I've unsuccessfully ...
by gogreenpower
Wed Jul 29, 2020 6:29 am
Forum: Python
Topic: [SOLVED] Script doesn't work correctly when auto launched
Replies: 4
Views: 292

[SOLVED] Script doesn't work correctly when auto launched

... .bashrc and cron to have my script run at startup. While I have been successful ... (currently enabled) echo Running at boot sudo python /home/pi/scripts/video_player.py What ...
by George Reid
Mon Jul 27, 2020 5:16 pm
Forum: General programming discussion
Topic: How can I locate the source of an auto start python script?
Replies: 4
Views: 476

How can I locate the source of an auto start python script?

About 4 years ago I got 1-wire python code working and recording the ... start automatically when the pi rebooted. It has worked fine writting ... Recently I updated the python script and wanted to change the auto-start ... I can't find an active location. At the time I would have been looking ...
by RaspbianUser1
Mon Jul 20, 2020 11:51 am
Forum: General discussion
Topic: Auto start a python program silently
Replies: 9
Views: 256

Auto start a python program silently

I am looking to run a python script for a LCD i intend on buying, I can ... want to know if I can auto start it at boot and have it not be a window as it ruins ...
by DavidInvenio
Tue Jul 14, 2020 4:16 am
Forum: Other programming languages
Topic: Linux shell script to control pi motor hat
Replies: 6
Views: 986

Re: Linux shell script to control pi motor hat

... let me know and I will be glad to share what I know and what code I've written. But a disclaimer: ... various values - this was just pure bash, no python involved - also setting the PWM range and ... is one or more new variables available in /boot/config.txt related to managing gpio states/etc ...
by benkolar21
Sat Jul 11, 2020 12:33 am
Forum: Troubleshooting
Topic: GPIO input unresponsive at startup
Replies: 2
Views: 65

GPIO input unresponsive at startup

... to be having some difficulty with booting up into a simple arbitrary python script the uses a GPIO input. I'm using a Pi ... program was run, this worked just fine at boot-up, so I proceeded to add the button ...
by jtlandreneau
Thu Jul 09, 2020 5:00 am
Forum: Troubleshooting
Topic: dtoverlay not working for script at boot
Replies: 3
Views: 103

dtoverlay not working for script at boot

... pi project I am trying to run a python script at boot to play a .wav file. the .wav is played on ...
by MNNRD
Mon Jul 06, 2020 7:55 pm
Forum: Troubleshooting
Topic: Zero W - Unreliable WiFi Connection
Replies: 0
Views: 39

Zero W - Unreliable WiFi Connection

... a Pi ZW a few months ago. Unfortunately, the humid air got to it and ... it's wifi connectivity. It'll boot fine, connect to the wifi network ... but just in case I had it run a python script to print a timestamp every 5 seconds ...
by Ravi_Meva
Mon Jul 06, 2020 5:04 pm
Forum: General discussion
Topic: Running python script from crontab
Replies: 1
Views: 90

Running python script from crontab

... 8 GB RAM, Raspbian OS. I have one python script which uses many modules like TensorFlow, ... that. sudo crontab -e (nano editor) At the end of that file, I have added this line. @reboot python3 path/script.py & and then I have ...
by Kostr
Sat Jul 04, 2020 1:44 pm
Forum: Graphics, sound and multimedia
Topic: Old-style TV from the raspberry Pi
Replies: 0
Views: 98

Old-style TV from the raspberry Pi

... is connected to Raspberry Pi. At the USB hard drive there are folders ... with video in it. At the startup python script calculates overall time of all the ... fine except some issues: - Raspberry boots ~40 seconds, it is kinda long. Could ...
by Ram.Sh
Wed Jul 01, 2020 3:37 pm
Forum: Troubleshooting
Topic: [CLOSED] systemd+ffmpeg=losing my mind! pls pls help
Replies: 11
Views: 437

[CLOSED] systemd+ffmpeg=losing my mind! pls pls help

... last few weeks, I try to run a Python script with FFmpeg command at boot; when running the Py script from CLI all is ...
by bhakti
Fri Jun 26, 2020 7:41 am
Forum: Troubleshooting
Topic: Script in rc.local fails to run when no WiFi access
Replies: 34
Views: 1154

Re: Script in rc.local fails to run when no WiFi access

... copy of raspberry pi OS and boot the pi from that, then copy your program to it and try ... also a running Pi 3 Model B I can run script on also. And whittling down the python script until it's just a blinking blink ...
by GlowInTheDark
Thu Jun 25, 2020 12:04 pm
Forum: Troubleshooting
Topic: Script in rc.local fails to run when no WiFi access
Replies: 34
Views: 1154

Re: Script in rc.local fails to run when no WiFi access

You are right. That said, I think this results from two things: 1) That ... to the log file (when you do "print" or whatever in Python), but because of buffering, those messages don't ... is: chmod 755 /sys/kernel/debug ) I use other "at boot" mechanisms to launch long-term processes.
by DougieLawson
Wed Jun 24, 2020 1:23 pm
Forum: Troubleshooting
Topic: Script in rc.local fails to run when no WiFi access
Replies: 34
Views: 1154

Re: Script in rc.local fails to run when no WiFi access

Where's the & on the end of that python line? Funny - I like how you made the & all big and ... a systemd service for it and get that started during boot up (at the right time if it needs things like the network, ...
by bhakti
Wed Jun 24, 2020 12:25 pm
Forum: Troubleshooting
Topic: Script in rc.local fails to run when no WiFi access
Replies: 34
Views: 1154

Re: Script in rc.local fails to run when no WiFi access

OK. Just a recap: - Script works fine, either using cron ... no difference. - When WiFi off, boot process gets into a loop and the ... works regardless of WiFi on/ off status, there has to be a connection with my python script, which is currently called ...
by bhakti
Wed Jun 24, 2020 9:15 am
Forum: Troubleshooting
Topic: Script in rc.local fails to run when no WiFi access
Replies: 34
Views: 1154

Re: Script in rc.local fails to run when no WiFi access

... have to do some more digging. What you've shown could be the result of your python script exiting with a non-zero return code. ... seen that when there is no WiFi, the boot up process gets stuck in a loop. It starts ...

Go to advanced search