Go to advanced search

by cazz
Wed Apr 24, 2019 1:59 pm
Forum: Graphics, sound and multimedia
Topic: Stop and Play music with omxplayer
Replies: 0
Views: 130

Stop and Play music with omxplayer

Hi I have make two bash file and a textfile to control my music on a Raspberry Pi start.sh #!/bin/sh cd /home/pi/ while true; do for v in ./sommar/*; do omxplayer -o hdmi $v; done; done & pid=$!; echo $pid > pid.txt; stop.sh #!/bin/sh cd /home/pi/ value=`cat pid.txt` echo "$value"; kill $value; it w...
by cazz
Fri Apr 05, 2019 6:20 pm
Forum: Gaming
Topic: Raspberry Pi and analog joystick and Space invader
Replies: 4
Views: 543

Re: Raspberry Pi and analog joystick and Space invader

ohh sorry it was very late and I was very tired when I did write this (Is not a good idea to write when you are tired)

it is a joystick with micro switches
by cazz
Thu Apr 04, 2019 9:23 pm
Forum: Gaming
Topic: Raspberry Pi and analog joystick and Space invader
Replies: 4
Views: 543

Raspberry Pi and analog joystick and Space invader

Hi I have create and build a Arcade machine with RetroPi and USB joystick and button that I did buy on ebay. Everything works fine but it was a little to easy ;) The building of the acrade case did take the most of the time and not the retropie but it was fun. But I have a very old atari/c64) joysti...
by cazz
Wed Mar 13, 2019 6:02 am
Forum: Other programming languages
Topic: Play music with bash
Replies: 5
Views: 440

Re: Play music with bash

mm yes I know, just try it now a little.
Right now is only music player that running bash on this raspberry pi
by cazz
Tue Mar 12, 2019 2:46 pm
Forum: Other programming languages
Topic: Play music with bash
Replies: 5
Views: 440

Re: Play music with bash

Thanks for the replay

I think I have got it to work now and is

Code: Select all

kill $(pgrep bash)
and it stop playing the after the song is finnish
by cazz
Tue Mar 12, 2019 1:29 pm
Forum: Other programming languages
Topic: Play music with bash
Replies: 5
Views: 440

Play music with bash

Hi I have this code to play mp3 files on the TV from a folder. while true; do for v in ./mymusic/*; do omxplayer -o hdmi $v; done; done I run this code manual But now I want to use crontab to start and stop the music. but when I trying with kill $(pgrep omxplayer) it just stop the music that playing...
by cazz
Fri Dec 14, 2018 7:43 pm
Forum: Python
Topic: MQTT and Python
Replies: 4
Views: 256

Re: MQTT and Python

Hmm ok
by cazz
Fri Dec 14, 2018 7:14 pm
Forum: Python
Topic: MQTT and Python
Replies: 4
Views: 256

Re: MQTT and Python

hmm ok but for me the sender (A) is just a client and the reciver (B) is server (broker)

Does that mean that B also have to need to run a client?
by cazz
Fri Dec 14, 2018 3:40 pm
Forum: Python
Topic: MQTT and Python
Replies: 4
Views: 256

MQTT and Python

Hi I send from another raspberry ON/OFF info to the raspberry that I have install paho-mqtt and it going to play radio with omxplayer but I have to ask becurse it feel a little strange that I reading The raspberry I sending is that the client or the server?? I have work a little with python but neve...
by cazz
Thu Nov 15, 2018 10:18 pm
Forum: Graphics, sound and multimedia
Topic: show image and movie from the terminal
Replies: 1
Views: 2531

show image and movie from the terminal

Hi. I have use fbi to make a slideshow to show image on a screen. I have also use omxplayer to do the same thing. Now I going to help someone to see if I can do both, the omxplayer does not have support for show image so I was thinking about to try this. Make a script that run fbi and show all the i...
by cazz
Fri Nov 02, 2018 9:28 am
Forum: Graphics, sound and multimedia
Topic: PiTesting for Multimedia system
Replies: 0
Views: 184

PiTesting for Multimedia system

Hi Right now I have build with a old raspberry pi (I think it is the first generation) a a PiTesting system. It is very easy build. with batch script and some video clip I have build so it it start a first clip to see the color and some other visual effect of the TV/Projector that is connect to the ...
by cazz
Thu Nov 01, 2018 10:38 am
Forum: Troubleshooting
Topic: cannot connect Raspberry with hostname
Replies: 6
Views: 248

Re: cannot connect Raspberry with hostname

Well no I do not edit HOST file, have not need to do that Well yes it have Apple iTunes on my computer. /etc/resolv.conf # Generated by resolvconf domain domain.se nameserver x.x.x.x nameserver x.x.x.x /etc/dhcpcd.conf # Inform the DHCP server of our hostname for DDNS. thehostnameoftheraspberry # Ex...
by cazz
Thu Nov 01, 2018 6:59 am
Forum: Troubleshooting
Topic: cannot connect Raspberry with hostname
Replies: 6
Views: 248

cannot connect Raspberry with hostname

Hi I have a the latest version of Raspian on a Raspberry Pi, I have also activate SSH and only way for me to connect from my windows computer with Putty to the Raspberry Pi is to use the IP address. I have some older Raspberry Pi that running a very older Raspian and there I have no problem to use t...
by cazz
Sat Oct 06, 2018 10:57 am
Forum: Other programming languages
Topic: Control a kiosk mode screen with bash and python
Replies: 2
Views: 3716

Re: Control a kiosk mode screen with bash and python

Thanks for the replay
I Think I try first to use one HTML page with Javascript that I can use to change page in a DIV to start with.
by cazz
Thu Oct 04, 2018 9:39 pm
Forum: Other programming languages
Topic: Control a kiosk mode screen with bash and python
Replies: 2
Views: 3716

Control a kiosk mode screen with bash and python

Hi I have a raspberry running on a screen and Chromium in kiosk mode. It work greate and now I have even add 3 other tab of webpage that I like to Control with a tiny keyboard that have 6 button on. When I press "1" it show a in the terminal, "2" show b …….. I have think about use javascript and use...
by cazz
Sat Sep 29, 2018 9:50 pm
Forum: Beginners
Topic: kiosk mode for vivaldi?
Replies: 0
Views: 205

kiosk mode for vivaldi?

Is it possible to start Vivaldi browser in kioskmode?
by cazz
Sat Sep 29, 2018 9:02 pm
Forum: Advanced users
Topic: run command and script from SSH to desktop
Replies: 2
Views: 270

Re: run command and script from SSH to desktop

ahh thanks alot :)
by cazz
Sat Sep 29, 2018 6:54 pm
Forum: Advanced users
Topic: run command and script from SSH to desktop
Replies: 2
Views: 270

run command and script from SSH to desktop

Hi Sometime when I work with script and command it have happend it does not like when I run it from SSH and I have to then run it from the "real" keyboard and monitor. It make it hard sometime to easy work with the script and command. For example, right now I work with python and pynput to simulate ...
by cazz
Fri Sep 28, 2018 10:55 pm
Forum: Python
Topic: use Python to change website
Replies: 2
Views: 302

use Python to change website

Hi I know how to make it to show a webpage import webbrowser webbrowser.open('http://example.com') But can I use the same if I want to change the webpage and show fullscreen? I do not want to open another browser because after a while I going to have alot of browser. I maybe can close it or use "kil...
by cazz
Tue Sep 25, 2018 6:22 pm
Forum: Advanced users
Topic: Control a raspberry pi
Replies: 0
Views: 329

Control a raspberry pi

HI I know I can Control a raspberry Pi with SSH and also VNC But is that something more? I was thinking to connect a Raspberry Pi to a monitor that is on a wall behind my default monitor that I connect to my workstation. But I like easy open web browser or other nice things from my workstation on th...
by cazz
Thu Jun 28, 2018 3:47 pm
Forum: Graphics, sound and multimedia
Topic: use omxplayer to streaming youtube
Replies: 7
Views: 2548

Re: use omxplayer to streaming youtube

Ahhh it try to download the file :D
I just want to stream it, not download it but that is ok I did take a webcam source instead.
by cazz
Thu Jun 28, 2018 10:57 am
Forum: Graphics, sound and multimedia
Topic: use omxplayer to streaming youtube
Replies: 7
Views: 2548

Re: use omxplayer to streaming youtube

Thanks for the replay

Is same thing it play 2 sec then freeze 1 sec and then stop

I trying to stream this video to a Raspberry Pi
https://www.youtube.com/watch?v=RtU_mdL2vBM
by cazz
Thu Jun 28, 2018 9:27 am
Forum: Graphics, sound and multimedia
Topic: use omxplayer to streaming youtube
Replies: 7
Views: 2548

use omxplayer to streaming youtube

Hi
I have install omxplayer and also use youtube-dl to get the address.
When I run

Code: Select all

omxplayer -s -o local "<address>"
it start to stream but just for some second, after that is exit the omxplayer

Is it some easy way from terminal to show youtube streaming.
by cazz
Thu Feb 01, 2018 1:42 pm
Forum: Python
Topic: Python and button
Replies: 2
Views: 417

Python and button

Hi With help of this nice guide http://razzpisampler.oreilly.com/ch07.html I trying to do a project. I have use a magnetocontact to my door and when I run the code it show "Button Pressed" but have some problem and no idea how to fix that. When I close the door it send one "Button Pressed" but when ...
by cazz
Wed Jan 10, 2018 8:56 pm
Forum: Python
Topic: Run Python in the background
Replies: 3
Views: 1663

Re: Run Python in the background

ohh thanks alot, did not think about crontab and @reboot I have try it before but never got it to work but then I did not know that was importen to have blank line after. Good to know about the version, we have from the first raspberry to the latest version of raspberry pi and the example I going to...

Go to advanced search