jean-emmanuel / open-stage-control

Libre and modular OSC / MIDI controller
https://openstagecontrol.ammd.net
GNU General Public License v3.0
728 stars 91 forks source link

Command line switch for loading state files? #349

Closed fg-uulm closed 6 years ago

fg-uulm commented 6 years ago

Hi Jean,

title says all, is it possible to implement a command line switch for loading an initial state file and to trigger "send all" once?

Thanks!

jean-emmanuel commented 6 years ago

Good idea !

fg-uulm commented 6 years ago

Thanks! A little more background info - I'm using a switcher to have presets for some other widgets , however running the whole setup on a raspberry pi, which might lose power from time to time. So after that, not only the values previously set are gone, but also the switcher "presets". Wouldn't be that much of a problem if the access wouldn't take place via web interface on mobile devices - for them it's quite hard to distribute and upload the saved state file (our emergency solution is Dropbox at the moment). Thus the need for loading it at startup like already possible with the session file.

And sending the initial values would be great because the values loaded then correspond to the values being sent out from the beginning, which makes sense in this combination (OpenStageControl + OLA on the pi sending DMX to light fixtures - different project than with the two bugs I reported last week ;) ).

jean-emmanuel commented 6 years ago

It's in git, here is what happens when a clients loads a session

jean-emmanuel commented 6 years ago

-> v0.35