Questions tagged [script]

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

31 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
53 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 ...
2
votes
1answer
63 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 ...
2
votes
0answers
40 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 ...
1
vote
0answers
130 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://...
1
vote
0answers
34 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 ...
1
vote
1answer
409 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....
1
vote
0answers
74 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 /...
1
vote
0answers
43 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 ...
1
vote
2answers
45 views

Web App on computer : Ssh connection to PI + script execution possible?

I'm sort of new with web app programming so sorry if it is obvious for you guys! I appreciate the time you take for me ! I tried to explain my problem the best I could in the title! :p I am building ...
1
vote
1answer
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, ...
1
vote
2answers
1k views

Boot script to check for dirty bit/corruption on a USB stick or SD card

I posted this question on the Raspberry Pi forum but got no activity. If it is a dumb question or something else, please say so... While not often, I do experience power outages which stop one of my ...
1
vote
0answers
69 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 ...
1
vote
1answer
285 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 ...
1
vote
0answers
248 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 ...
1
vote
0answers
7k 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://<...
1
vote
0answers
275 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 ...
0
votes
1answer
22 views

How can I fix “atomic” related issues in my build?

I'm trying to build gRPC using this tutorial (https://lzqblog.top/2018-11-08/Cross-compile-gRPC-for-ARM/) but I still get "atomic" related issues (undefined reference: __atomic_fetch_add_8 )....
0
votes
1answer
62 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 ...
0
votes
0answers
165 views

Fuse Mount Option “-nonempty” is Not Working

I have a setup where I need to log quite a bit of data on my Raspberry Pi. I have a 128GB USB stick that mounts to a folder called external where all my scripts/programs log to. This works well, ...
0
votes
1answer
384 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 ...
0
votes
0answers
47 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 ...
0
votes
0answers
25 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: ...
0
votes
2answers
165 views

Trouble getting picam to take a photo on boot (init..d method)

I want the camera on my pi (Rpi 3B+) to take a picture every time it boots up. I've read through several other questions of people trying to do similar things, but I haven't ever found the script that ...
0
votes
1answer
822 views

start omxplayer with matchbox window manager

I have a RPI 3 with Raspbian Jessie, set up to boot in cli mode, autologin with user pi. I have installed matchbox window manager because it's lighter than lxde and I use only chromium and omxplayer. ...
0
votes
0answers
66 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 ??
0
votes
2answers
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 ...
0
votes
0answers
799 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 ...
0
votes
0answers
264 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 ??...
0
votes
2answers
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 ...
-1
votes
2answers
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 ...
-3
votes
1answer
473 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/...