Go to advanced search

by pcmanbob
Mon Feb 10, 2020 2:30 pm
Forum: Troubleshooting
Topic: crontab launch a sh file at boot not working in buster
Replies: 2
Views: 225

Re: crontab launch a sh file at boot not working in buster

... launcher.sh has been made executable. Also change the last line of your script to include " & " #!/bin/sh # launcher.sh # navigate to home directory, then to this directory, then execute python script, then back home cd / cd /home/pi/homesecurity python startup.py & python ...
by JohnnyCyp
Mon Feb 10, 2020 1:24 pm
Forum: Troubleshooting
Topic: crontab launch a sh file at boot not working in buster
Replies: 2
Views: 225

crontab launch a sh file at boot not working in buster

... version i cant launch my sh file at the boot of raspberry pi. In stretch version ... then to this directory, then execute python script, then back home cd / cd /home/pi/homesecurity ...
by chuckf201
Tue Feb 04, 2020 7:04 pm
Forum: General discussion
Topic: Start python script during boot
Replies: 4
Views: 953

Re: Start python script during boot

After spending hours on the forums my python3 script never executed although it executed in a shell SO...I added 'sleep 15' to the beginning of the rc.local and it worked fine at boot up. Problem solved.
by neilgl
Fri Jan 31, 2020 8:53 pm
Forum: General discussion
Topic: Start python script during boot
Replies: 4
Views: 953

Re: Start python script during boot

My pizeroW running Stretch LITE with OLED screen attached via i2C shows a message after 26 seconds from power on (power from poundland 2000mAh USB phone charger) and waiting for network to start, so it could be quicker. Script runs at reboot via crontab.
by PieterG
Thu Jan 30, 2020 1:42 pm
Forum: Beginners
Topic: alternative I2C pins for display / start-stop button
Replies: 0
Views: 406

alternative I2C pins for display / start-stop button

... configure.... sorry if my explanation doesn't meet the actual standards ... added dtoverlay=gpio-shutdown to /boot/config.txt reboot and it works ... need other pins for halt using a python script? [edit: so it seems...] ( I also ...
by bkeister
Tue Jan 28, 2020 2:51 pm
Forum: Troubleshooting
Topic: i2c interface randomly fails
Replies: 0
Views: 167

i2c interface randomly fails

... 3 running stretch: Si7201 temperature/humidity sensor ADS1115 analog-digital ... They are each running a separate python script that sends data to InfluxDB that ... each have a service that starts up at boot via systemctl. I notice through journalctl ...
by Botspot
Thu Jan 23, 2020 1:26 pm
Forum: General discussion
Topic: start up automatically
Replies: 2
Views: 208

Re: start up automatically

... 2 questions: How do I make a script open on startup? And How do ... option is to make a folder at .config/autostart. The reason being, ... folder will run automatically on boot. (ok technically when the graphical ... delete the .desktop file. In your python script simply delete /home/pi/.config/autostart/myscript-autostart.desktop. ...
by GlowInTheDark
Mon Jan 20, 2020 10:46 am
Forum: General programming discussion
Topic: Python + Crontab with TTY?
Replies: 14
Views: 1664

Re: Python + Crontab with TTY?

... why it doesn't work. The fact that the "cd" command did run (you say ... wasn't necessary to switch it to "Boot to Console" mode, although, if ... I assume that you did test the script generated by "autoexpect" and ... onscreen? Presumably, if the Python script "didn't run", there would ...
by Paulon8080
Mon Jan 20, 2020 10:20 am
Forum: General programming discussion
Topic: Python + Crontab with TTY?
Replies: 14
Views: 1664

Re: Python + Crontab with TTY?

... ***I edited this as at first it wasn't working - but this ... that doesn't survive a reboot, so you have to do it after every ... changes to your code as in my python script is a particular folder with a text ...
by GlowInTheDark
Mon Jan 20, 2020 12:13 am
Forum: General programming discussion
Topic: Python + Crontab with TTY?
Replies: 14
Views: 1664

Re: Python + Crontab with TTY?

... here we go. First, I'm assuming that the changing of the text font size ... that doesn't survive a reboot, so you have to do it after every ... program to generate a script that will do the sudo dpkg-reconfigure ... in tty1) ./do_ConsoleFont python myscript.py;; esac Now, reboot ...
by iznobe
Fri Jan 17, 2020 10:43 am
Forum: Networking and servers
Topic: [ SOLVED ] state of GPIO after boot
Replies: 2
Views: 209

[ SOLVED ] state of GPIO after boot

... when i restart my pi GPIO state are changed . i write a bash script and a cron task to close and open ... script seems to be a good choice or python , i ' m not sure . the problems ... to tell the pi to load the script at boot . i 'm on a pi3b and the OS is stretch ...
by dgordon42
Sun Jan 12, 2020 6:22 pm
Forum: General discussion
Topic: How to use Bluetooth and UART both.
Replies: 10
Views: 1142

Re: How to use Bluetooth and UART both.

... on a Pi 4B4G running an up to date Raspbian Buster to see what happens. To test, I use the following Python3 script: #!/usr/bin/env python3 # -*- coding: ... line to the bottom of the original '/boot/config.txt' file. enable_uart=1 I ...
by gordon77
Fri Jan 03, 2020 1:41 pm
Forum: Beginners
Topic: Controlling what is displayed on screen
Replies: 1
Views: 179

Re: Controlling what is displayed on screen

Take a look at python with pygame, tkinter etc.

Set the python script to run at boot, and try and stop any users from stopping it running.
by Ram.Sh
Fri Jan 03, 2020 11:03 am
Forum: Troubleshooting
Topic: [SOLVED] need help: py script plays to BT, no sound when load from rc.local
Replies: 4
Views: 440

[SOLVED] need help: py script plays to BT, no sound when load from rc.local

... files without any problem from Py scripts running through Thonny, the ... using to reproduce this case: a Python script that makes sure that BT in connected and ... fullPath = '/home/pi/Desktop/PyTests/boot.ogg' volume_play = 0.5 for i in range(5): ...
by GlowInTheDark
Wed Dec 25, 2019 4:49 pm
Forum: Python
Topic: crontab and gspread module
Replies: 4
Views: 368

Re: crontab and gspread module

... for your response. I can say that cron is very obscure to me. As I ... are another ways of running a python script on boot. I will try the rc.locals and systemd. ...
by ethanol100
Wed Dec 25, 2019 11:09 am
Forum: Camera board
Topic: 8mp camera, class 10 sd, need two shots full res, fast
Replies: 10
Views: 876

Re: 8mp camera, class 10 sd, need two shots full res, fast

Capturing h264 video at full resolution is not possible. ... to gpu_mem=196 in the file "/boot/config.txt". Reboot and try to execute the python script. You can have a look at the output of ...
by DigiBalm
Tue Dec 24, 2019 3:45 pm
Forum: General discussion
Topic: [SOLVED] Raspberry Pi 4 + x750 safe shutdown when battery low?
Replies: 24
Views: 1742

Re: Raspberry pi safe shutdown on low battery when LED turns off?

Can you post the Python script (Use [ code] ... [/code] tags)? Then ... RonR suggests. Sure! Let me just say that I am a complete noob when it comes to ... echo '#!/bin/bash SHUTDOWN=4 REBOOTPULSEMINIMUM=200 REBOOTPULSEMAXIMUM=600 ...
by lpfullmetal
Thu Dec 19, 2019 4:06 pm
Forum: Troubleshooting
Topic: Rpi4 LXDE-PI Autostart not working
Replies: 1
Views: 199

Rpi4 LXDE-PI Autostart not working

I have a RPI4 with the latest Raspbian image and for the last ... What I want to do is have my python script start running at boot. Now i can use a RPI3 and have it autostart, ...
by sballin
Sun Dec 15, 2019 9:21 pm
Forum: Troubleshooting
Topic: Segfault in command line interactive apps
Replies: 6
Views: 352

Segfault in command line interactive apps

... with ssh and got the "Last login at..." message followed by the connection ... some live updating. For example, "python" segfaults, but "python script.py" produces output correctly. Here ... a while. I have fsck.repair=yes in /boot/cmdline.txt. I'm guessing that replacing ...
by MoreZeroThanAce
Sun Dec 15, 2019 3:41 pm
Forum: Troubleshooting
Topic: Help setting up Hyperpixel GPIO tft screen to display python output alongside HDMI for Raspberry Pi 3 B+
Replies: 0
Views: 51

Help setting up Hyperpixel GPIO tft screen to display python output alongside HDMI for Raspberry Pi 3 B+

... currently working on a project that uses a 12” HDMI monitor as a normal ... display will only need to display Python outputs, so that I can get a ... goal would be to be able to boot Retropie from a USB that can use ... need to have the python script active at the same time. I’d ...
by RetroRevive
Wed Dec 11, 2019 7:00 pm
Forum: Python
Topic: Python script stops after 1 minute after boot
Replies: 5
Views: 453

Re: Python script stops after 1 minute after boot

So it's quite an obvious problem - once you know what it is! I just tried your code on my RPi and (after I struggled to get the internal ... seriously programmed anything for a longer period of time. Especially in Python. You got me interested again, tnx!
by paddyg
Wed Dec 11, 2019 6:50 pm
Forum: Python
Topic: Python script stops after 1 minute after boot
Replies: 5
Views: 453

Re: Python script stops after 1 minute after boot

So it's quite an obvious problem - once you know what it is! I just tried your code on my RPi and (after I struggled to get the internal pull-up to work at all, not sure what that's about. More investigation needed) I had exactly your problem. Then ...
by RetroRevive
Wed Dec 11, 2019 5:22 pm
Forum: Python
Topic: Python script stops after 1 minute after boot
Replies: 5
Views: 453

Re: Python script stops after 1 minute after boot

... getting it to work with crontab or other start at boot methods until you have it working completely reliably ... As I have noticed, there are no issues with the script (tried keeping it running 5-10 minutes) while not ...
by paddyg
Tue Dec 10, 2019 10:14 pm
Forum: Python
Topic: Python script stops after 1 minute after boot
Replies: 5
Views: 453

Re: Python script stops after 1 minute after boot

... don't even think about getting it to work with crontab or other start at boot methods until you have it working completely reliably from the terminal (not via Thonny)
by rodink
Tue Dec 10, 2019 12:43 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 ...

Go to advanced search