News:

LATEST RELEASE:  FPP 6.3 - Download from here - https://github.com/FalconChristmas/fpp/releases/tag/6.3

+-+-

+-User

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+-Site Stats

Members
Total Members: 15733
Latest: aquila2heman
New This Month: 15
New This Week: 0
New Today: 0
Stats
Total Posts: 128964
Total Topics: 15885
Most Online Today: 115
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 0
Guests: 84
Total: 84

BRP Voting Plugin - Allow others to vote for your songs!

Started by Barkers Random Projects, January 05, 2020, 04:25:16 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Barkers Random Projects

Quick update

  • Install python 3 when installing the plugin - the most recent version of fpp on the master branch doesn't appear to have this version installed on it anymore. Python 2.7 support ended on January 1, 2020 - so I'd like to stay with a maintained version.
Checkout what else we are working on at https://barkersrandomprojects.com

vcuncg

This plugin is great and simple to set up and use.  Thanks for all the hard work!  I did have one question to see if it is possible to add.  Can the service auto-restart after a reboot?  Maybe I can use a script to fire it when my show starts if it is not running already?  I typically leave my pi up and running all season, but occasionally I do reboot for one reason or another.  Would be nice to have it auto start since I would probably forget.

Thanks again for this plugin!

Poporacer

I just got around to trying this again and I still do not get a voting URL. When I generate the key and start service, I get the spinning icon that it is retrieving the URL but it never returns. Here is the error log.
root - INFO - Private key: 8f7dbba2-a462-4a83-a9fa-656aaf5d46d1
root - ERROR - Problem getting status! 'next_playlist'
root - ERROR - Problem getting status! 'next_playlist'
root - ERROR - Problem getting status! 'next_playlist'
root - ERROR - Problem getting status! 'next_playlist'
root - ERROR - Problem getting status! 'next_playlist'
root - ERROR - Problem getting status! 'next_playlist'
root - ERROR - Problem getting status! 'next_playlist'
root - ERROR - Problem getting status! 'next_playlist'
root - ERROR - Problem getting status! 'next_playlist'
root - ERROR - Problem getting status! 'next_playlist'
root - ERROR - Problem getting status! 'next_playlist'
root - ERROR - Problem getting status! 'next_playlist'
root - ERROR - Problem getting status! 'next_playlist'
root - ERROR - Problem getting status! 'next_playlist'
root - ERROR - Problem getting status! 'next_playlist'
root - ERROR - Problem getting status! 'next_playlist'
root - ERROR - Problem getting status! 'next_playlist'
root - ERROR - Problem getting status! 'next_playlist'
root - ERROR - Problem getting status! 'next_playlist'
root - ERROR - Problem getting status! 'next_playlist'
root - ERROR - Problem getting status! 'next_playlist'
root - ERROR - Problem getting status! 'next_playlist'
root - ERROR - Problem getting status! 'next_playlist'
root - ERROR - Problem getting status! 'next_playlist'
If to err is human, I am more human than most people.

vcuncg

@Poporacer I had a similar issue.  To solve it, I started a playlist and while it was running I went to the BRP plugin and started the service.  Then it created a URL for me.  From then on it has worked like a charm.  Hopefully that will help you too.

Poporacer

Quote from: vcuncg on May 26, 2020, 02:46:36 PMTo solve it, I started a playlist and while it was running I went to the BRP plugin and started the service.  Then it created a URL for me.
That worked as well. Thanks!


It looks like someone can vote for one song more than one time? That isn't good. People should only get to vote once for a song.
If to err is human, I am more human than most people.

SCUBA

I've come back to the plugin.... A couple of questions and observations
1) Do I need to load Pytrhon 3 and if so how do I load it?
2)I'm not getting a key.  I try to generate a key and nothing happens.  I'm using Safari. I tried switch tabs and coming back to th e plugin but no joy.  
3) I tried the trick with starting a sequence then starting the service but no URL is displayed; most likely due to the key not being generated.

RPI: 3B+
v4.x master-362-g85aa2d29

SCUBA

BTW: are there any conflicts with MQTT/home assistant or Remote Falcon?

vcuncg

SCUBA - it should load Python 3 for you as a part of the install.  The install script has the following two lines, so you could try doing an SSH into the FPP player and running the following lines:

sudo apt-get update && sudo apt-get install -y python3 python3-pip;
python3 -m pip install requests;

For conflicts with MQTT I do not see any yet.  I am using an MQTT broker in HA and testing things out.  Everything seemed to work well.  I have not messed with remote falcon yet, but plan to check that as well.  Hope this helps some.

SCUBA


SCUBA

There seems to be a few "limitations" with the website: number of sequences (it didn't display all of the sequences/songs in the playlist); position of the sequence that was "voted" (the playlist jumped to the bottom of the playlist and stopped).

Love the Snow effect!! perfect.  

Will there be a version where we can upload a custom page?

See attached log

SCUBA

I did some testing of the plugin

Setup:
FPP Version:   v4.x-master-412-gc74d4825
Platform:   Raspberry Pi (Pi 3 Model B+)
FPP OS Build:   v4.0-alpha3
OS Version:   Raspbian GNU/Linux 10 (buster)
Hardware Serial Number:   00000000f159a975
Kernel Version:   4.19.97-v7+
Local Git Version:   c74d482 ChangeLog
Remote Git Version:   c74d482


1 The blue background doesn't go down the page all the way. Minor issue.
2) The list of sequences is correct, but it doesn't start at the top of the playlist.. Minor issue
3) When there is no voting the sequences are played in the correct order with the "dark" sequence playing nest: All good!
4)Voting: Single sequence voting appears to work as follows:

  • The sequence with the highest (or in the case of a tie the first sequence to reach the largest vote DOES NOT play.  Instead the sequence above (or before) it plays first, then the voted sequence plays....
log: You cannot view this attachment.

Barkers Random Projects

Thanks everyone for the testing, I'll get these things fixed!
Checkout what else we are working on at https://barkersrandomprojects.com

Barkers Random Projects

#42
Ok I'm back at it. Finished up my automatic candy dispenser so I'm switching my focus to the plugin for this season!

Here is the changelog:

  • Fixed URL not resolving when no songs are playing
  • Fixed loading icons to work correctly
  • Adjusted timeout if server is unavailable to retry forever
  • Fixed note when indicating a new private key needs to be generated
  • Verified compatability with v4.3
Checkout what else we are working on at https://barkersrandomprojects.com

Barkers Random Projects

Quote from: SCUBA on June 12, 2020, 12:53:17 PM
  • The sequence with the highest (or in the case of a tie the first sequence to reach the largest vote DOES NOT play.  Instead the sequence above (or before) it plays first, then the voted sequence plays....

Thank you SCUBA for this and the logs. I've been able to reproduce this and I'll get it fixed.

The problem is that I'm not handling all of the cases where playlists have 'Lead In' and 'Lead Out' songs.
Checkout what else we are working on at https://barkersrandomprojects.com

jwamsley07

I am running 3.6.2 and just installed it.  Seems to be running fine on my Halloween display.

Support FPP

+- Recent Topics

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod