Trigger Cue or Function from JMRI
Posted: Mon Jun 21, 2021 5:12 pm
Looking to connect the control for my DMX lighting on my model railway using QLC+ to JMRI running on the same computer. I have a working network connected Art-Net (4 universe) to my model railway room lighting. I currently have LED multi color strip lights (5 colors- RGB, Ww, Cw) on 15 dimmer channels (3 zones) and individual lights on their own dimmers (total about 50 channels when I am finished).
So far, I see that I can control everything quite well on QLC. I have a theatre background so building scenes and cue lists, sequences, etc seems pretty straightforward on QLC. I have only just started to play with the features, but I can control the lights in the next room from QLC and make scenes. Still working on turning it into a show with transitions, but I think I should be able to figure that out.
What I need help with is that I would like to auto trigger the different sequences based on the time of day on the model railway. I run a program called JMRI (jmri.org) for my signals, track power, turnouts, etc. I would really like to utilize the "fast clock" (feature that allows a speed adjusted clock to set the time at a rate different from real time and set the time to a specific start time) to trigger lighting changes on the layout. Using the fast clock I can have an entire 24hour day pass in as little as a few hours. What this means for me is that I would like the lighting to follow the fast clock. For example, at 4am, the layout would be moon lit and have limited street lights and no building lights, but at 5am have building lights start coming on and by 7am have the ambient lighting change to sunrise. I would like to have a few lighting sequences to cover the course of a few different "fast clock" days to transition from night to day back to night and have features like neon signs and street lights come on at different times (based on the JMRI time). I use the fast clock for simulated operations typically with a 4:1 ratio so that an 8 hour shift only takes 2 hours in real time.
Is there a known way to integrate the two systems so that I am not reinventing the wheel? Looking at the web-api features, I think I could have JMRI call up a function at a specific time and have that function start a sequence within QLC. I can publish things like fast clock time to a MQTT broker, if that helps. Not sure where to look for this integration, but hoped that the group would have some ideas.
Thanks -Eric
So far, I see that I can control everything quite well on QLC. I have a theatre background so building scenes and cue lists, sequences, etc seems pretty straightforward on QLC. I have only just started to play with the features, but I can control the lights in the next room from QLC and make scenes. Still working on turning it into a show with transitions, but I think I should be able to figure that out.
What I need help with is that I would like to auto trigger the different sequences based on the time of day on the model railway. I run a program called JMRI (jmri.org) for my signals, track power, turnouts, etc. I would really like to utilize the "fast clock" (feature that allows a speed adjusted clock to set the time at a rate different from real time and set the time to a specific start time) to trigger lighting changes on the layout. Using the fast clock I can have an entire 24hour day pass in as little as a few hours. What this means for me is that I would like the lighting to follow the fast clock. For example, at 4am, the layout would be moon lit and have limited street lights and no building lights, but at 5am have building lights start coming on and by 7am have the ambient lighting change to sunrise. I would like to have a few lighting sequences to cover the course of a few different "fast clock" days to transition from night to day back to night and have features like neon signs and street lights come on at different times (based on the JMRI time). I use the fast clock for simulated operations typically with a 4:1 ratio so that an 8 hour shift only takes 2 hours in real time.
Is there a known way to integrate the two systems so that I am not reinventing the wheel? Looking at the web-api features, I think I could have JMRI call up a function at a specific time and have that function start a sequence within QLC. I can publish things like fast clock time to a MQTT broker, if that helps. Not sure where to look for this integration, but hoped that the group would have some ideas.
Thanks -Eric