autostart/autostop of a system related to a calendar

    Mar 21 2011 | 11:29 am
    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...

    • Mar 21 2011 | 6:02 pm
      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.
    • Mar 21 2011 | 7:59 pm
      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 :)
    • Mar 22 2011 | 9:22 am
      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.
    • Apr 30 2015 | 4:15 am
      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)
    • May 17 2017 | 7:52 am
      This is great ! just what I was looking for... :) wasn't aware of mxj now ... made my installaion much friendlier. thanks