Go to advanced search

by Mayki
Tue May 12, 2020 9:51 pm
Forum: Python
Topic: Create Python script
Replies: 0
Views: 141

Create Python script

I need help creating a python script. I would need a script that would run after launching the Raspberry Pi as a service and checking my LG TV. If a TV channel is active, the TV audio output will switch to the speaker. If the TV was switched to HDMI2, the audio output would switch to external ARC. I...
by Mayki
Sun May 10, 2020 6:26 am
Forum: Python
Topic: Help with script
Replies: 3
Views: 207

Re: Help with script

... The script can take 1 optional command line argument which is the full path to the config file so add that in if you need it. I don't know where to write the path. Somewhere in online_checker.py? EDIT: This works. python /home/pi/domoticz/scripts/onlineChecker/online_checker.py /home/pi/domotic...
by Mayki
Sat May 09, 2020 8:39 pm
Forum: Python
Topic: Help with script
Replies: 3
Views: 207

Help with script

Please help. If I run the script from cmd directly in the directory, it works: [email protected]:~ $ cd /home/pi/domoticz/scripts/onlineChecker [email protected]:~/domoticz/scripts/onlineChecker $ python online_checker.py 192.168.0.151 is online, but Domoticz already knew. If I run the command like this, ...
by Mayki
Thu Jan 31, 2019 6:41 pm
Forum: Graphics, sound and multimedia
Topic: fruitbox MP3 jukebox
Replies: 1477
Views: 291405

Re: fruitbox MP3 jukebox

That's a DragonRise USB controller...several people have reported that this has caused them problems. Luckily, I have been working to try and fix these issues...on GitHub there is a beta release which may perhaps help. You can download it like this... cd /home/pi/rpi-fruitbox-master mv ./fruitbox ....
by Mayki
Sun Dec 09, 2018 7:55 pm
Forum: Graphics, sound and multimedia
Topic: fruitbox MP3 jukebox
Replies: 1477
Views: 291405

Re: fruitbox MP3 jukebox

I ordered board I-PAC 2. According to my research should work without problems with Fruitbox and Retropie, it emulates the keyboard. I-PAC 2 it works very well, has no delays in control. Tested. Fruitbox has no problem with him. Zero-Delay DragonRise USB was not a good choice. PS: Can someone give ...
by Mayki
Sun Nov 25, 2018 8:01 am
Forum: Graphics, sound and multimedia
Topic: fruitbox MP3 jukebox
Replies: 1477
Views: 291405

Re: fruitbox MP3 jukebox

@MobileMac:

My fruitbox.db contains 1277 songs. This is certainly not a problem with the number of songs. Make sure all mp3s are in good ID3 tags.
by Mayki
Thu Nov 22, 2018 5:21 pm
Forum: Graphics, sound and multimedia
Topic: fruitbox MP3 jukebox
Replies: 1477
Views: 291405

Re: fruitbox MP3 jukebox

Thank you for your comment, I'll look at it.
by Mayki
Thu Nov 22, 2018 4:19 pm
Forum: Graphics, sound and multimedia
Topic: fruitbox MP3 jukebox
Replies: 1477
Views: 291405

Re: fruitbox MP3 jukebox

I use 3 panels . https://i.imgur.com/pbLNft4l.jpg My skin fruitbox.cfg contains: [status] Contents = status4.txt Output = led.txt status4.txt contains: $IF_SONG_PLAYINGPRÁVĚ HRAJE : $NOW_PLAYING_ARTIST - $NOW_PLAYING_TITLE$END_IF$IF_NOT_SONG_PLAYING$IF_NO_CREDITS** VHOĎ MINCE ** A $END_IF$IF_NOT_SON...
by Mayki
Wed Nov 21, 2018 10:38 pm
Forum: Graphics, sound and multimedia
Topic: fruitbox MP3 jukebox
Replies: 1477
Views: 291405

Re: fruitbox MP3 jukebox

I use one RaspberryPi, HDMI output to the main monitor, the GPIO is connected to the LED Matrix panel that displays the information.
by Mayki
Wed Nov 21, 2018 5:38 pm
Forum: Graphics, sound and multimedia
Topic: fruitbox MP3 jukebox
Replies: 1477
Views: 291405

Re: fruitbox MP3 jukebox

@Mike: Thinking of future enhancements - Is there a way already today to display current playing title together with the artist, scrolling from right to left after x seconds ? Or: is it a feature which requires a lot of programming for you to get it into a next version - if you plan any? Raimund Li...
by Mayki
Fri Nov 16, 2018 6:43 pm
Forum: Graphics, sound and multimedia
Topic: fruitbox MP3 jukebox
Replies: 1477
Views: 291405

Re: fruitbox MP3 jukebox

My Alien Arcade Cabinet with Fruitbox, LED Matrix Marquee and Lightgun https://i.imgur.com/kgD7tvIl.jpg https://i.imgur.com/HhcAwdUl.jpg https://i.imgur.com/xW2lFUal.jpg https://i.imgur.com/bxXR7VSl.jpg https://i.imgur.com/5RIsziHl.jpg https://i.imgur.com/8BCHo0Il.jpg https://i.imgur.com/KK4CxDul.jpg
by Mayki
Sun Nov 04, 2018 6:31 pm
Forum: Graphics, sound and multimedia
Topic: fruitbox MP3 jukebox
Replies: 1477
Views: 291405

Re: fruitbox MP3 jukebox

I ordered board I-PAC 2. According to my research should work without problems with Fruitbox and Retropie, it emulates the keyboard.
by Mayki
Fri Nov 02, 2018 3:06 pm
Forum: Graphics, sound and multimedia
Topic: fruitbox MP3 jukebox
Replies: 1477
Views: 291405

Re: fruitbox MP3 jukebox

Hi Mike - I'm hoping that you might still have some time to look at this delay problem? Just let me know if there's a debug version I should run (on Jessie). Thanks! Scally Snap! Been using the jukebox regulatory and until yesterday it's been fine and all of a sudden the lag reappears from nowhere....
by Mayki
Mon Oct 29, 2018 11:09 pm
Forum: Graphics, sound and multimedia
Topic: fruitbox MP3 jukebox
Replies: 1477
Views: 291405

Re: fruitbox MP3 jukebox

Please help, I create button maps using sudo ./fruitbox --config-buttons the fruitbox.btn file is created in the / home / pi / rpi-fruitbox-master folder, but fruitbox ignores this setting and still uses default key settings. I'm trying to set up the keyboard. Any idea? :( Install system Raspbian St...
by Mayki
Fri Sep 14, 2018 5:19 pm
Forum: Graphics, sound and multimedia
Topic: fruitbox MP3 jukebox
Replies: 1477
Views: 291405

Re: fruitbox MP3 jukebox

Can someone give me a Fruitbox intro (loading) video? I can not get it ...
Thanks... ;)
by Mayki
Sun Sep 09, 2018 12:17 pm
Forum: Other programming languages
Topic: Bash script for read .txt
Replies: 11
Views: 3966

Re: Bash script for read .txt

Mayki wrote:
Sun Sep 09, 2018 10:37 am
I still need help, I would like to run the script ledmatrix.sh every 20 seconds only if a program (Fruitbox) is running. How to do it?
Please help...
by Mayki
Sun Sep 09, 2018 10:37 am
Forum: Other programming languages
Topic: Bash script for read .txt
Replies: 11
Views: 3966

Re: Bash script for read .txt

Sudo is needed to access the GPIO.

I still need help, I would like to run the script ledmatrix.sh every 20 seconds only if a program (Fruitbox) is running. How to do it?
by Mayki
Sun Sep 09, 2018 9:30 am
Forum: Other programming languages
Topic: Bash script for read .txt
Replies: 11
Views: 3966

Re: Bash script for read .txt

Problem solved.... :D

It was this:

Code: Select all

[email protected]:~ $ . ledmatrix.sh
-bash: $'\r': command not found
-bash: $'\r': command not found
CTRL-C for exit.
[email protected]:~ $
Thank you for your help... 8-)
by Mayki
Sun Sep 09, 2018 9:16 am
Forum: Other programming languages
Topic: Bash script for read .txt
Replies: 11
Views: 3966

Re: Bash script for read .txt

Code: Select all

[email protected]:~/rpi-fruitbox-master/skins/Cabinet $ cat led.txt
Hello World
[email protected]:~/rpi-fruitbox-master/skins/Cabinet $ od -A x -t x1z -v led.txt
000000 48 65 6c 6c 6f 20 57 6f 72 6c 64 0a              >Hello World.<
00000c
[email protected]:~/rpi-fruitbox-master/skins/Cabinet $
by Mayki
Sun Sep 09, 2018 8:48 am
Forum: Other programming languages
Topic: Bash script for read .txt
Replies: 11
Views: 3966

Re: Bash script for read .txt

Thanks for your help, it works perfectly. I only have a non-standard character at the end of the sentence. Is there something to do with it?
Image

The content of the led.txt file is:

Code: Select all

Hello World
by Mayki
Sun Sep 09, 2018 8:23 am
Forum: Other programming languages
Topic: Bash script for read .txt
Replies: 11
Views: 3966

Re: Bash script for read .txt

Sorry, correct name is led.txt
by Mayki
Sun Sep 09, 2018 7:50 am
Forum: Other programming languages
Topic: Bash script for read .txt
Replies: 11
Views: 3966

Bash script for read .txt

Hi, I need to advise creating a bash script to read a .txt file. I need to extract the text and use it as a parameter to the command. #!/bin/bash text="$(read "/home/pi/rpi-fruitbox-master/skins/Cabinet/led.txt" -print -quit)" sudo /home/pi/rpi-rgb-led-matrix/examples-api-use/scrolling-text-example ...
by Mayki
Sun Aug 19, 2018 7:34 am
Forum: Graphics, sound and multimedia
Topic: fruitbox MP3 jukebox
Replies: 1477
Views: 291405

Re: fruitbox MP3 jukebox

Thanks... :D :D :D
It works perfectly ...
by Mayki
Sat Aug 18, 2018 10:39 pm
Forum: Graphics, sound and multimedia
Topic: fruitbox MP3 jukebox
Replies: 1477
Views: 291405

Re: fruitbox MP3 jukebox

Thank you for your help. And if I only need to delete the content of the led.txt file? Not the whole file.
by Mayki
Sat Aug 18, 2018 10:12 pm
Forum: Graphics, sound and multimedia
Topic: fruitbox MP3 jukebox
Replies: 1477
Views: 291405

Re: fruitbox MP3 jukebox

Hi Mike, I needed to help with the Status Boxes setting. I need to set the output to a txt file, but after finishing the Fruitbox I need to delete that txt file content. Will you help me? Thank you. Fruitbox.cfg : *** [status] Contents = status4.txt Output = led.txt *** status4.txt : $IF_SONG_PLAYIN...

Go to advanced search