Questions tagged [script]

non-compiled programs written in scripting languages (e.g. perl, python or tcl) or command line interpreters such as Unix shell.

42 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2 votes
0 answers
309 views

Running Simple Script On Every Boot

Want to run a bash script start.sh with one command that executes tmux and ffmpeg at startup on my Raspberry Pi 4B. The RPi OS loads the Desktop, but to interact with the process only need a terminal (...
nino's user avatar
  • 21
2 votes
0 answers
227 views

Sending an image from Pi Camera continuously to a display

I want to send 6 images per minute from the Pi Camera continuously to any display. Like for say I have the camera that is at my house but I want to send the images to my work computer. The end goal ...
kassidylynnk's user avatar
2 votes
1 answer
116 views

Traffic Light Led Change During NOAA Satellite Script?

I have the following script that downloads and processes NOAA satellites. I'd really like some external LEDs to indicate the following; When the script is running, turn or blink red When the script ...
dandspach's user avatar
2 votes
0 answers
42 views

Script on boot up is not updating between calls

I wrote a simple script in order to log the date and time of every Pi boot into a text file. I placed the script into /etc/rc.local in order to have it execute on boot. Here's the script: #!/bin/sh ...
R. Llamado's user avatar
2 votes
0 answers
9k views

OMXPlayer script exiting with "have a nice day"

I am trying to open up an rtsp stream on system boot. I have enabled auto login, which works well. I just cant get the script to work, even in isolation #!/bin/sh -x omxplayer -n -1 rtsp://<...
user804396's user avatar
1 vote
2 answers
220 views

Can't get Cron to run python script

I'm trying to set up porkbun dynamic dns python script to run at reboot via Cron (later I'd like to run it hourly, but baby steps...) following porkbun's tutorial https://www.youtube.com/watch?v=...
APEX's user avatar
  • 11
1 vote
0 answers
115 views

Script only works after opening browser and closing it

I have a script to open 2 webpages one on each monitor. The end of the script selects one of the pages and enters in login credentials. The script works great and I have it working with systemctl to ...
Logan's user avatar
  • 11
1 vote
1 answer
645 views

Send GPIO trigger(s) at specific video timecode(s)?

Just starting out in the wonderful world of RPi maker projects, scored a Model 2b v.1.1, installed the latest Raspbian and now ready for my first project :-) What I want to build is a video player for ...
iGadget's user avatar
  • 11
1 vote
0 answers
400 views

Custom Dualshock 4 Script/Program

I've got a Pi 3b that I originally planned to be a dedicated Steam Link. I already followed these instructions to set up a DS4 controller to control it, and it's working just fine so far: https://...
JustCallmeSPED's user avatar
1 vote
0 answers
39 views

shell script does not invoke define variable in autostart script

I try to use the raspberry pi for power point presentation. I want to run this as auto ( I mean once the raspberry pi started or rebooted the power point presentation should run). Basically it works ...
Sara Shan's user avatar
1 vote
1 answer
795 views

Retrieve data from Smart Plug via Raspberry Pi (need help with python script)

I am using a tutorial from BeardMonkey in order to retrieve and store the measured data from a smart plug (a smart plug is monitoring the power consumption of my kettle at the moment) https://www....
xoani's user avatar
  • 305
1 vote
0 answers
132 views

Calling a program from /etc/rc.local

I have a simple script that adjusts the monitor's brightness that is set to run on startup. #!/bin/bash gpio -g 18 1024 gpio -g mode pwm gpio pwmc 1000 gpio -g 18 800 I am calling this script from /...
user942937's user avatar
1 vote
0 answers
48 views

Unwanted calls of program with GPIO

I configured a Raspberry Pi 2 with a button. I have a script in python, which will call a command, if someone press the button. The command doing a sip phone call to a phone server (cisco ...
mordur's user avatar
  • 11
1 vote
1 answer
1k views

UDEV won't run any script, file or inline

I have a Raspberry Pi 3 model B. I installed Raspbian using NOOBS, and it worked great. I had a project that needed to execute certain actions when a USB device was connected. I learned about udev, ...
Olmectron's user avatar
1 vote
0 answers
79 views

Bluetooth pairing Galaxy Tab

I would like connect my Galaxy TabS2 to my Raspberry Pi. After that, I would like write a script to do it automatically. When I do this with bluetoothctl, I have a message (Pairing Requested) at the ...
morin21's user avatar
  • 11
1 vote
1 answer
363 views

Pi Zero, Retropie on top of Raspbian?

I know you can install RetroPie on top of Raspbian on a Pi 3 but what about a Zero W? Do I need to get a different setup script and install RetroPie or do you just do everything the same way and it ...
kyran bullard's user avatar
1 vote
0 answers
352 views

Homebridge plugin to run scripts and control brightness level

On Mac OS there is a plugin (homebridge-applescript-file-lightbulb) to run applescripts to e.g play music and even with argument from Siri to control "brightness" level. This makes it possible to ...
Tibbe's user avatar
  • 113
1 vote
0 answers
314 views

Raspbian dialog package problems on boot

I made my own UNIX shell script that runs at boot that helps me mount/unmount USB drives. I use the dialog package for my interface. The code works fine when I run it normally but on boot the dialog ...
Harry Saliba's user avatar
0 votes
1 answer
148 views

How to turn monitor on/off? vcgencmd doesn't know about display_power

In times past, I used tvservice to turn the monitor on/off in a script. Now I understand vcgencmd is the current method. I'm running RPi OS 12.4 on a 4GB RPi 5. I installed lib-rasbperrypibin. ...
raindog308's user avatar
0 votes
1 answer
112 views

Run a shell script on first boot

I want to make a script that runs on boot, as I'm making a PowerShell script to install the Raspberry Pi OS. It needs to install some things on boot. How do I make a script to run on first boot and ...
berriz44's user avatar
0 votes
0 answers
21 views

Monitor lightbox project – does this exist yet?

I have a second monitor next to my iMac. What I’d like to do is set up a Pi that simply outputs solid colour to the monitor over HDMI or composite (it has both), thus allowing me to use it as a video ...
Long Peter's user avatar
0 votes
1 answer
52 views

How can I have the raspberry pi run scripts portably?

I am a noobie and just got a raspberry pi yesterday and I want to create a wifi strength device with my raspberry pi. I have a wireless adapter and alreaady made a script for my linux machine. It ...
Lorde213423432e43434's user avatar
0 votes
2 answers
218 views

Script running from terminal after setting pythonpath and running "thonny&" command, but not when thonny ide is opened directly

I am using a Raspberry Pi OS 64-bit to run a script that will capture an image. I have gone through installing the right packages for libcamera for this OS and can run libcamera apps using my terminal....
Uchechi Ugo's user avatar
0 votes
1 answer
142 views

Can the Raspberry Pi detect when the screen turns off for a script?

I’m running a Raspberry Pi in my car with an official screen (link: https://www.amazon.com/dp/B073S3LQ6Q/ref=cm_sw_r_cp_api_i_dl_ZSPC0NJXFQVBZ19PXGCP?_encoding=UTF8&psc=1). It’s for obd. When I ...
Mat's user avatar
  • 1
0 votes
1 answer
86 views

Working ssh tunnel script does not work when executed by 'on boot' techniques

The following works flawlessly, in that it allows me to access a webpage hosted on the Pi at my domain which is hooked up to a google compute vm. pi@raspberrypi:~ $ ./pi_home_reverse_proxy/scripts/...
Monty's user avatar
  • 1
0 votes
0 answers
94 views

command is working on terminal but not in the script

I am using raspbian in headless mode and I am trying to mount USB on USB insertion. Script is executing but USB mount command failing. here is the script, filename is automount.sh (this script gets ...
dev_eng's user avatar
0 votes
0 answers
69 views

Error in autorun script, RASP 3

I need to run a script in lxterminal in boot. The unit is headless, just have a digital button to start the process in the code. I already have a automatic pi user loggin and a .desktop created in ...
Leonardo Muller's user avatar
0 votes
0 answers
209 views

PIR Sensor Counter

Hey guys I'm trying to create a simple script that essentially counts the amount of people that reside within a room, by having an entry sensor and exit sensor and tells you how many are within the ...
Kazi Ilyas's user avatar
0 votes
0 answers
562 views

RPI connected to a smart plug -> how to auto turn off plug after RPI shutdown?

In short: I was wondering if it is possible to send a command to a smart plug when the pi is good to kill it's power. background I'm running a 3d printer which I'm going to control with a rpi 4 using ...
Tim's user avatar
  • 101
0 votes
0 answers
200 views

Howto self-restart a service when network link goes down?

I have a VPN using L2P/IPsec. A service I created establishes the ppp0 interface and tunnel. The service basically executes a shell script that does all the work. I can start/stop the service and all ...
keratos's user avatar
0 votes
0 answers
59 views

Can't run a command using Raspi_Runner

I've setup Raspi_Runner to auto run commands reading from a text file every x minutes. Raspi Runner is a BASH script which runs all your scripts delivered by e-mail. It works good with commands like ...
Sakis's user avatar
  • 23
0 votes
0 answers
32 views

Help with connect / disconnect script

Very noob to Pi programming but am tech savvy. Can somebody help with the 2 questions below: 1) How to I go about setting a script to run boot 2) Can you also help with a script to do the following: ...
Alun Kirk's user avatar
0 votes
0 answers
77 views

I can't find the file "font5x5.py"

I have a serious problem, I've intalled this But in my RPi, I can't find and edit the "font5x5.py". But when I import it with another script, it work. Can you please help a french beginer ??
mathieu900v's user avatar
0 votes
2 answers
3k views

Launch kodi from startup and play track

Sorry if its been answered a lot. I am new to scripting and would like to know where I start to do this. I want to script it myself but would like to know what I need to do to start kodi in ...
Matt's user avatar
  • 1
0 votes
0 answers
832 views

Autorun script blocked me out

I use my Raspberry pi to host a server. I made a script that starts the server and put it to the /etc/rc.local file to autorun it at boot. My problem is that when I start the raspberry it runs the ...
ISIMO66's user avatar
0 votes
0 answers
266 views

online music on XBMC

Is there a functional script for XBMC (on a raspi, obviously) that allows to listen to online music coming from grooveshark , spotify or whatever... needed NO premium or anyhow or pay-for-it account ??...
javirs's user avatar
  • 660
0 votes
2 answers
2k views

play audio stream when bluetooth connects

I have a Raspberry Pi Zero W and want it to use as an Internet Radio. So I wrote a Python script that connects to my bluetooth speaker and starts a stream. Everything works fine, but i always need to ...
Obl Tobl's user avatar
  • 157
-1 votes
1 answer
73 views

New to PI-Automatically move files from sd card to Syncology NAS

My goal: To have video copied from an SD card that is inserted into a Pi 4B using a USB SD Card reader copied to a network share and put in folders based on dates. My scenario. I come home from ...
Emanuel Levy's user avatar
-1 votes
2 answers
66 views

Start script not working

I have a script that starts my GPIO website server. This allows my phone etc to accress the switches that control certain elements in my camper I would like it to start at after boot in the case of ...
John Harney's user avatar
-1 votes
1 answer
549 views

Execute a script on startup in latest NOOBS OS - Raspberry - Pi 3B+

Actually I have went through this stack answer and followed the 3rd Type for running the script on startup, and It works like a charm for previous version of NOOBS. Today I downloaded the latest zip ...
Mohammed Ismail's user avatar
-1 votes
2 answers
1k views

How to run a shell script on rpi3 that required GUI on boot?

I used this page to try to run a shell script when the raspberry pi first turns on. This is the line I added at the bottom of the file(before exit 0): sh /home/pi/alexa_start.sh & I added the ...
shurup's user avatar
  • 183
-3 votes
1 answer
1k views

How to write a script which execute multiple commands on multiple terminal windows

I am trying to make a script on the following basis: Open a terminal window (keep it open) and run cd ~/dir/dir/dir ./exec Open a second terminal window (keep it open) and run /usr/bin/xterm -font/...
Sabri's user avatar
  • 1