autostart/autostop of a system related to a calendar

Mar 21, 2011 at 11:29am

autostart/autostop of a system related to a calendar

working actually on a (big) permanent installation for a french museum (more info asap!), I designed a system to start & stop all 20 clients remotely from a server (using udp messages)
it works, it is nice :)
the server is always up.

now, I need to upgrade this stuff by using a real calendar.
indeed, the exhibition will be ON at particular hours, OFF on sunday + each day off etc.

I thought about 2 ways:
- full max calendar
- server OS (windows) calendar + schedulded launch of patch

what would you do ?
I don’t know if the collective (exe) I can launch stay open or not. indeed, I’d trigger actions with a loadbang so I’d need to trigger action & close the patch after…

#55714
Mar 21, 2011 at 6:02pm

My first thought is to use a Shell object, but for a PC I’m not sure what the equivalent is….

Normally I design a patch so that it sets itself up and allows itself to be closed by the system scheduler on Mac OS X, then relaunches by making sure it’s the only thing that is set to auto-launch on startup. Not sure why this wouldn’t also work on a PC provided you made sure all the auto popups windows throws at you on startup are off.

#200328
Mar 21, 2011 at 7:59pm

I can easily track the time, the date with the date object.
the problem comes from the relatively complex calendar I want to use.
If I do that in max, I’d need some day of week, week number functions/objects.
I’ll look for inside JS world…
if you’re interested, I’ll post that here :)

#200329
Mar 22, 2011 at 9:22am

Julien,

since Max4, mxj now returns the day of week, the week of year, and many other interesting stuff.
That’s what I use now to control installations.

p

#200330

You must be logged in to reply to this topic.