Get system time /in PureData/

Hi,

I am setting up a sound installation and would like to inactivate the sound during the night. Alternatively I could do with just muting the sound of the rpi.

Is this doable?

Thanks!

You could write a cron job that’s run at certain time of the day, to start and stop PD. ‘cron job’ search on the internet should yield some decent results. :slight_smile:

1 Like

Btw, one thing to keep in mind - the Pi has to have internet connection in order to sync its clock after boot up - if your sound installation won’t have internet access, it’ll just use the last time saved into the sd card on last shutdown. Make sure to set the clock manually when setting everything up. :slight_smile:

It’d be easiest to make sure it has access to the network, no need to worry about power outages then. :slight_smile:

1 Like

That was really good to know. I solved it by installing a Pd external (zexy) which could retrieve data from the system. As for now I just make sure I set the clock so it matches the time when I start the pi.

1 Like