News:

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

+-+-

+-User

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

+-Site Stats

Members
Total Members: 17219
Latest: Ash
New This Month: 18
New This Week: 4
New Today: 0
Stats
Total Posts: 136953
Total Topics: 17305
Most Online Today: 250
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 0
Guests: 212
Total: 212

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.

DinoCut


plaberge

Hi there, I've got a new issue this year. :) Here are the details:

When the service is running, ~/media/config/backups fills up with backup files created every second or so, as shown below.

-rw-r--r-- 1 fpp fpp 575772 Dec 3 17:07 MasterFPP_all-backup_v7_20231203170749.json
-rw-r--r-- 1 fpp fpp 575772 Dec 3 17:07 MasterFPP_all-backup_v7_20231203170751.json
-rw-r--r-- 1 fpp fpp 575772 Dec 3 17:07 MasterFPP_all-backup_v7_20231203170753.json
-rw-r--r-- 1 fpp fpp 575772 Dec 3 17:07 MasterFPP_all-backup_v7_20231203170754.json

Over the last couple of days, 25,710+ files were created, consuming 14,492,360 bytes. I can delete them, but I have to keep an eye on this before the 32G SD card fills up. This is a bare install using 7.0, which I then upgraded to the latest version. I installed the plug-in fresh, and everything is running fine except for this issue.

Hopefully, you are still maintaining this, as it gets a lot of use over here. Please let me know if not, and I'll look for an alternative.

Paul.
Halfmoon Bay, BC

Barkers Random Projects

Quote from: DinoCut on November 02, 2023, 10:17:52 PMWill there be an option to self host ever?
Yes I hope so. I made some poor decisions when I created the server/client and tied them together with the rest of my website - but I hope to decouple that, sanitize it, and open source the client/server under a license (like mit or apache) that'll allow people to do self hosting.
Quote from: plaberge on December 03, 2023, 08:44:59 PMHi there, I've got a new issue this year. :) Here are the details:

When the service is running, ~/media/config/backups fills up with backup files created every second or so, as shown below.

-rw-r--r-- 1 fpp fpp 575772 Dec 3 17:07 MasterFPP_all-backup_v7_20231203170749.json
-rw-r--r-- 1 fpp fpp 575772 Dec 3 17:07 MasterFPP_all-backup_v7_20231203170751.json
-rw-r--r-- 1 fpp fpp 575772 Dec 3 17:07 MasterFPP_all-backup_v7_20231203170753.json
-rw-r--r-- 1 fpp fpp 575772 Dec 3 17:07 MasterFPP_all-backup_v7_20231203170754.json

Over the last couple of days, 25,710+ files were created, consuming 14,492,360 bytes. I can delete them, but I have to keep an eye on this before the 32G SD card fills up. This is a bare install using 7.0, which I then upgraded to the latest version. I installed the plug-in fresh, and everything is running fine except for this issue.

Hopefully, you are still maintaining this, as it gets a lot of use over here. Please let me know if not, and I'll look for an alternative.


Thanks for reporting this, I have a fix for this but I'm going to do a little more testing on it before I release it. The changes are in this branch: https://github.com/bbarke/brp-fpp-voting/pull/14
Checkout what else we are working on at https://barkersrandomprojects.com

plaberge

Quote from: Barkers Random Projects on December 07, 2023, 10:32:59 PM
Quote from: plaberge on December 03, 2023, 08:44:59 PMThanks for reporting this, I have a fix for this but I'm going to do a little more testing on it before I release it. The changes are in this branch: https://github.com/bbarke/brp-fpp-voting/pull/14

Great to hear that this is still an active project! I'll try to give the new version a try today. Here's some additional info that may shed more light on this. With the plug-in working, there seems to be a memory leak. I currently have to reboot the system regularly to clean this up. I've got the same FPP/OS version on another Pi as a back-up w/o the plug-in, and here's the memory usage a couple of hours after rebooting.

fpp@MasterFPP:~ $ ps -o pid,user,%mem,command ax | sort -b -k3 -rh | head -n 10
11367 fpp      17.0 php-fpm: pool www
11247 fpp      16.5 php-fpm: pool www
1164 fpp        15.7 php-fpm: pool www
1857 fpp        8.7 php-fpm: pool www
6783 fpp        8.1 php-fpm: pool www
11356 fpp      4.5 php-fpm: pool www
1696 root      1.3 /opt/fpp/src/fppd -f
939 root        0.5 php-fpm: master process (/etc/php/7.4/fpm/php-fpm.conf)
1858 fpp        0.5 php-fpm: pool www
12349 fpp      0.5 php-fpm: pool www

For comparison, here's the system w/o the plug-in.
fpp@YardMaster:~ $ ps -o pid,user,%mem,command ax | sort -b -k3 -rh | head -n 10
9312 root      4.5 /opt/fpp/src/fppd -f
3914 fpp        1.6 php-fpm: pool www
31516 fpp      1.3 php-fpm: pool www
1457 fpp        1.2 php-fpm: pool www
10022 fpp      1.2 php-fpm: pool www
5636 fpp        1.1 php-fpm: pool www
3891 fpp        1.1 php-fpm: pool www
15041 fpp      1.1 php-fpm: pool www
1458 fpp        1.1 php-fpm: pool www
6278 fpp        1.0 php-fpm: pool www
Paul.
Halfmoon Bay, BC

Barkers Random Projects

Thanks for that input! I noticed that too - my "production" pi was lagging and had some high load on it tonight, as it was running the older v15 plugin while I was testing out the v16 on a different rpi. I think it was due to saving the config settings so frequently, triggering the backup. I've published a new version of the plugin, please use the plugin manager to update and let me know if that resolves it for you!
Checkout what else we are working on at https://barkersrandomprojects.com

Barkers Random Projects

This is what it looks like now with running the v16 plugin

fpp@FPP-3b:~/media/plugins $ ps -o pid,user,%mem,command ax | sort -b -k3 -rh | head -n 10
25847 fpp       7.6 php-fpm: pool www
 8148 root      7.0 /opt/fpp/src/fppd -f
 2337 fpp       2.1 /usr/bin/python3 /home/fpp/media/plugins/brp-fpp-voting/scripts/vote-service.py
 8070 fpp       2.0 php-fpm: pool www
16919 fpp       1.9 php-fpm: pool www
22636 fpp       1.8 php-fpm: pool www
15075 fpp       1.8 php-fpm: pool www
30404 fpp       1.6 php-fpm: pool www
30106 fpp       1.6 php-fpm: pool www
29376 fpp       1.6 php-fpm: pool www
Checkout what else we are working on at https://barkersrandomprojects.com

plaberge

Quote from: Barkers Random Projects on December 08, 2023, 11:46:01 PMI've published a new version of the plugin, please use the plugin manager to update and let me know if that resolves it for you!
I've installed it. Memory utilization is way down. And I'm not seeing log files either! *Much* appreciated! I'll keep an eye on it tonight when my show is running.

If you are ever interested in taking this plug-in a little further, please PM me. I've got a couple of ideas :)
Paul.
Halfmoon Bay, BC

CaptainMurdoch

The new FPP v7.4 release also includes some changes to help prevent this backups-related runaway disk usage in the future and also to make sure that automated backups such as this don't force user-initiated backups to expire.
-
Chris

stealth95l

We've had a couple of issues with this plugin this year, it's cleared it's api key and the settings, and I couldn't find there place to restore our api key? We like this plugin so what I've done to remedy this till this is hopefully fixed int he future is I setup a qr code with a link to my domain that forwards it to the brp voting page, that way if our link changes I can update my domain and not have to make another qr code. We also have problems with some of the songs not finishing all the way (it's toward the very end) and it will switch to the next voted song.

Barkers Random Projects

Quote from: stealth95l on December 03, 2024, 02:07:14 AMWe've had a couple of issues with this plugin this year, it's cleared it's api key and the settings, and I couldn't find there place to restore our api key? We like this plugin so what I've done to remedy this till this is hopefully fixed int he future is I setup a qr code with a link to my domain that forwards it to the brp voting page, that way if our link changes I can update my domain and not have to make another qr code. We also have problems with some of the songs not finishing all the way (it's toward the very end) and it will switch to the next voted song.
I'm really sorry about this last year, I'm just seeing this. You could manually edit the 'privateKey' value in the config file in the future. I'll do an update soon that'll allow you to set a previously saved key in the UI as well so people don't run into this situation again.
I've noticed the very end of the song is skipped as well if a song is voted on. The next voted song is set to play at less than 3 seconds before the song ends. Maybe I can shorten that to about 1 second so it'll be a bit more seamless. The real solution though would be to create an api in falcon player to queue the next song instead of calling the start playlist at item endpoint. I'll dig into the docs again to see if I can't find something to make that transition a bit smoother. Thanks for pointing this out!
Checkout what else we are working on at https://barkersrandomprojects.com

plaberge

It looks like the voting site is down. It was fine earlier this week, but I noticed it had stopped working on Wednesday night. Two symptoms: 1) when I go to the voting URL, I see a blank white screen; 2) when I stop and restart the plug-in, it just spins on the Unique voting URL line. People really like the ability to pick the next song, so I hope you can look at this soon.

Paul.
Paul.
Halfmoon Bay, BC

Poporacer

Quote from: plaberge on December 04, 2025, 11:13:29 PMIt looks like the voting site is down.
That sucks.

Quote from: plaberge on December 04, 2025, 11:13:29 PMso I hope you can look at this soon.
Hopefully he does.

Quote from: plaberge on December 04, 2025, 11:13:29 PMPeople really like the ability to pick the next song
I totally agree, you might want to consider Remote Falcon, it way more popular and very well supported and the developer is very pro active it keeping things running smoothly. It is actually the most widely used plug in on FPP.
If to err is human, I am more human than most people.

Barkers Random Projects

Thanks, it is back up now. I'll do some investigation tomorrow to find out why it went down and try to prevent it from happening again.
Checkout what else we are working on at https://barkersrandomprojects.com

plaberge

Quote from: Poporacer on December 05, 2025, 07:32:10 AMI totally agree, you might want to consider Remote Falcon, it way more popular and very well supported and the developer is very pro active it keeping things running smoothly. It is actually the most widely used plug in on FPP.
Thanks for the suggestion. I've looked at it, I've even set it up a few times - not super straightforward, but getting easier. I agree that it's more fully featured, but most of these don't enhance my simple use case: allowing viewers to vote for the next song by scanning a QR code (my playlist has over 60 songs). I proactively prod Brent once a year to update the plug-in to the latest FPP release, and once that's done, it has proven reliable over many seasons. (This is an exception!) Some enhancements would be nice, but judging from the positive feedback I get from my viewers, they aren't critical.
Paul.
Halfmoon Bay, BC

Support FPP

+- Recent Topics

FPP MIDI plugin installed but wont trigger Playlist by MikeKrebs
January 20, 2026, 08:48:20 PM

FPP 9.5-1 causing 192-168-8-1 for most WiFi IP by Sawdust
January 20, 2026, 01:52:27 PM

pocketbeagle2 - OLA with PRU DMX output by s-light
January 20, 2026, 01:22:17 AM

Long term issue with FPP on Beagle by Sawdust
January 18, 2026, 11:50:52 PM

FPP driving P10 and also pixel outputs - several options by k6ccc
January 18, 2026, 05:49:34 PM

LoRa plugin. Is it worth pursuing in 2026 by dkulp
January 18, 2026, 05:18:50 PM

SRx4 Long Range Quad SmartReceiver by tbone321
January 13, 2026, 03:32:30 PM

Pixel Port by LedMutt
January 13, 2026, 12:57:46 AM

Peace Stake material by LedMutt
January 12, 2026, 12:15:36 AM

Forbidden Error Port 80 by darylc
January 11, 2026, 10:24:48 PM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod