I gang

Raspberry pi script to launch/close program from gpio input

I have a project that is using a Pi and omxplayer to play a specific video file in a public video kiosk of sorts. Up until now I've used a program called Pikeyd to launch omxplayer upon one keypress of a switch connected to gpio, and stop the playback through another switch attached to a separate gpio input.

For reason's I won't get in to I can only use one switch moving forward and I need to launch omxplayer when the switch is closed and maintain the playback as long as the switch remains closed. Once the switch is released I need omxplayer to quit and return to the command line, ready to launch from the beginning of the video file again if the switch is again pressed.

I'm assuming a python script could handle something like this, but I am not really a programmer and don't have a lot of time to figure it out right now. This thread about triggering a camera from gpio looks like it might have some useful tips but Istill wouldn't know how to kill omxplayer upon release of the switch: [url removed, login to view]

I understand there's something called Pexpect that can control other programs to a certain extent but I looked at it and it's beyond my abilities without some help. I will pay somebody to quickly write a python script that can do this.

Færdigheder: Debian, Linux, Python

Se mere: video kiosk raspberry python, need python programmer project, need write play, need programmer python, get help programmer, python raspberry, launch, gpio, c pi, linux programs, kill linux, python video, write linux script, raspberry omxplayer, raspberry camera program, raspberry python php, project need python script, raspberry python gpio, python script write, program somebody, gpio raspberry, raspberry kiosk, using file python, write python script, raspberry php

Om arbejdsgiveren:
( 3 bedømmelser ) woodland hills, United States

Projekt-ID: #6000039

Tildelt til:

eried

Hi, I can build a C# script that does that for your Pi (something similar to python but I am much more used to that so I can build this faster). The bid is for about 10-30 mins testing the thing here in my Pi and about Mere

$77 USD på 1 dag
(10 bedømmelser)
3.9

3 freelancere byder i gennemsnit $114 for dette job

grimeton

Hello, just written another script for the Pi that does something similar with a sound file. I guess the work to make omxplayer work is similar but requires more fine tuning on the GUI side... What I'm not really Mere

$111 USD in 3 dage
(8 bedømmelser)
3.6
Sumon511

I am doing a similar project in raspberry pi with omxplayer.i can do that within few hours. .

$155 USD på 1 dag
(1 bedømmelse)
2.5