Hi,
I am setting up an installation and would like to inactivate the sound during off hours, night time. I am on a Raspberry pi 3 B+. How would I do this?
Cheers.
System time (hours) object?
Hi,
I am setting up an installation and would like to inactivate the sound during off hours, night time. I am on a Raspberry pi 3 B+. How would I do this?
Cheers.
using [shell] object you can ask system time and and any system command.
To install the object, type a new this command in terminal:
sudo apt-get install pd-ggee
then in a new patch:
[declare -lib ggee]
[date +%k:%M(
|
[shell]
|
[print]
Otherwise, you can use [system.exec] from ceammc lib
Thanks, are there any pros and cons between these 3 solutions? I usually work on a mac but the installation will be using a rpi. So optimally it should work on both systems.
it is also possible with ofelia / lua : https://forum.pdpatchrepo.info/topic/12057/ofelia-lua-script-abstractions
@seb-harmonik.ar said:
[time] from zexy
Oh yes, I forgot that way!
I think both should work on raspberry and OSX (For windows, the command with [shell] would be a little bit different). The shell is only one object to install, rather than zexy wich will install a full library.
You might go for zexy, unless you need [shell] for using other Unix command...
I went along with zexy lib and it worked without any problems (except that the rpi does not know what time it is when it wakes up). Thanks!
Oops! Looks like something went wrong!