autostart/autostop of a system related to a calendar

Julien Bayle's icon

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...

cap10subtext's icon

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.

Julien Bayle's icon

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 :)

pdelges's icon

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

nicholassagan's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Thanks for that mxj now tip. I hadn't seen it yet! I made a weekly scheduler for a gallery that has different hours m-th, f-sa + sun. It's all pretty much determined by if/then. The 2 outlets go to a master on/off toggle in my main patch (controls AV input, dac, metros, etc)

Amit Segall's icon

This is great ! just what I was looking for... :) wasn't aware of mxj now ... made my installaion much friendlier. thanks

mstjean's icon

Hey Nicholassaga this is great work!
Just thought I'd point out I think the variables needs a bit of tweaking?

It is wonderful work!

M