Setting volume per ...
 
Notifications
Clear all

Setting volume per time frame using Cronscripts

5 Posts
3 Users
0 Reactions
8,341 Views
Posts: 55
Topic starter
(@dutchsanta)
Trusted Member
Joined: 10 years ago
[#47787]

I use the facebook group mostly, but I think nobody would mind if I post this question double right??

Trying to set some cron scripts to adjust the volume of my garden speakers.
Now I manually have to adjust the sound throughout the day depanding on time and traffic noice outside.

I managed to use the plugin cron scripts before to stop a running playlist but that was a pre-made plugin script in FPP.
I can not same to get a volume setting script to work.
Directory: scripts
Script: Volume.sh
/opt/fpp/bin.pi/fpp -v 00
Result: 6,1 Setting Volume,,,,,,,,,,,,
No change in volume.

Knipsel

Keep getting the same responce what ever I do:
6,1, setting volume,,,,,,

Other scripts work fine..

Can somebody take a look at it?
The idea is to set volumes according the time of day
(quieter in the evenings between the shows, louder at daytime etcetera)

Running FPP 1.9 on Raspberry pi 3b+,
audio trough usb soundcard ( http://www.delock.de/produkte/G_61645/merkmale.html… )
then trough a sound amplifier into the garden.

Thanks guys.


4 Replies
Posts: 843
(@captainmurdoch)
Prominent Member
Joined: 14 years ago

Was the 00 an example or are you really trying to set it to zero?

Does that command work for you manually outside of a script?

One thing I am working on in the new playlist code is the ability to do this directly from the playlist so this will be a lot easier next year.


Reply
Posts: 55
Topic starter
(@dutchsanta)
Trusted Member
Joined: 10 years ago

Hi CaptainMurdoch..
I tried multiple volumes...-v0 , -v00 , -v05 , -v20...
Non worked..

Commando did not work at all...not in a event, not in a script, nit manually.
I just decided to make multiple mp3 from the same song..and multiple fseq files.
Named them
Betweenshows
Betweenshows (no sound)
Betweenshows ( half sound)
And made multiple playlists

I will love all the updates you fpp guys are making...
Is going to be a great season 2018/2019!!!


Reply
Posts: 843
(@captainmurdoch)
Prominent Member
Joined: 14 years ago

I will make a note to test this.


Reply
Posts: 53
(@modderhut)
Trusted Member
Joined: 15 years ago

a few years ago I got a script from Materdaddy to set volume up and down to solve an issue with the FMT212. Work fine, could see the setting change in the volume slider when refreshing the status page. Maybe you can modify it for your purpose.

#!/bin/bash

if [ "x$1" == "xpreStart" ]; then
        (
                while true; do
                        wget -o/dev/null -O/dev/null "http://localhost/fppxml.php?command=setVolume&volume=55"
                        sleep 2
                        wget -o/dev/null -O/dev/null "http://localhost/fppxml.php?command=setVolume&volume=54"
                        sleep 2
                done
        ) &
elif [ "x$1" == "xpostStop" ]; then
        kill $(ps aux | grep preStart | grep -v grep | awk '{print $2}') &>/dev/null
fi

Reply
Share: