¿ªÔÆÌåÓý

Locked Lighting control with JMRI


 

Group,
?
I am interested in building a lightng control system to work with a fast clock for my layout lighting.? I am interested to hear from others on the group if you did it, and are you satisfied with the results.
?
I am thinking a DMX type system if that is possible using JMRI.? I dont know if the interface is available.? Any suggestions would be very helpful.....
?
Keith in Georgia


 


 

Keith,

The trick is a lot of DMX interfaces exist, but many have slight
differences. JMRI will work with it IF you find an interface that
supports a serial type interface. Yes they are USB but for Windows,
that means ones with drivers that show up as COMx devices. If JMRI
every gets a Java USB level that gives the right support for some of
the other forms of drivers, then it may be easier.

Right now, I know it works for Windows based JMRI but I don't know if
anyone has tried it with any Mac or Linux boxes.

-Ken Cameron, Member JMRI Dev Team
www.jmri.org
www.fingerlakeslivesteamers.org
www.cnymod.com


 

I use a Pricom Design "Layout Lighting Solution" (LLS) board as a DCC/DMX gateway. It connects directly to the DCC bus and translates turnout commands from JMRI to control DMX devices. It has an Ethernet web server where you configure the lighting scenes (dimming rate). I have panels in panel pro that control the whole mess. I divide the 24 hour day into 12 scenes and a Jython script automates the sequence. See attached. I'd be happy to share all the software/coding. You can probably get Bob at Pricom to come down on the price of the LLS. He is asking like $700 (yes, $700) but he gave me one for free (yes, free). This approach works very well for my needs.
--
Vinny DeRobertis ~ Apex, NC
New York & Hudson Valley RR
Windows 7 Pro / Java 11 / JMRI v5.7.7
Command Station: Digikeijs DR5000.
Booster: Digikeijs DR5033
Interface: Samsung A7 10.4" Tablets/Fully Kiosk.
DCC/DMX Gateway: Pricom LLS.
LocoNet Input Modules: Digikeijs DR4088LN
DCC Output Modules:
Digikeijs DR4018 / Yamorc YD8116.
Sensors: Model Train Technology: DETECTOR-HO.
Turnout Motors: MTB MP1


 

Vinny,
Thanks for the reply.? I will look int this, but 700 is pretty steep!

On Thu, Sep 5, 2024 at 8:46?AM Vinny DeRobertis via <vinny.derobertis=[email protected]> wrote:

I use a Pricom Design "Layout Lighting Solution" (LLS) board as a DCC/DMX gateway. It connects directly to the DCC bus and translates turnout commands from JMRI to control DMX devices. It has an Ethernet web server where you configure the lighting scenes (dimming rate). I have panels in panel pro that control the whole mess. I divide the 24 hour day into 12 scenes and a Jython script automates the sequence. See attached. I'd be happy to share all the software/coding. You can probably get Bob at Pricom to come down on the price of the LLS. He is asking like $700 (yes, $700) but he gave me one for free (yes, free). This approach works very well for my needs.
--
Vinny DeRobertis ~ Apex, NC
New York & Hudson Valley RR
Windows 7 Pro / Java 11 / JMRI v5.7.7
Command Station: Digikeijs DR5000.
Booster: Digikeijs DR5033
Interface: Samsung A7 10.4" Tablets/Fully Kiosk.
DCC/DMX Gateway: Pricom LLS.
LocoNet Input Modules: Digikeijs DR4088LN
DCC Output Modules:
Digikeijs DR4018 / Yamorc YD8116.
Sensors: Model Train Technology: DETECTOR-HO.
Turnout Motors: MTB MP1


 

Keith:
?
I have layout lighting changing from Moonlight - Dawn - Morning - Noon - Afternoon - Dusk - Moonlight using 2 LIFX WiFi enabled mains powered RGB globes (1 in the East and 1 in the West).
?
The LIFX globes have software available on the internet that allows Windows (I don't recall if Linux and Mac are also covered) to change the globe 'scene' (i.e. colour and brightness) via a command line utility.
?
To get it working, I established the light levels and colours I wanted on each globe for each time of the day, and saved that scene via the mobile phone app.? I then utilised the Windows command line utility to determine the unique ID number of the particular scene, and coded that scene ID into a Jython script that then utilises an Operating System call to run the Windows command to select a particular light level.? It is a bit convoluted, but it works.
?
I don't know if other brands of WiFi enabled mains powered globes also have this facility, but it might be another idea to investigate, and it is certainly less expensive than $700.
?
Cheers,
Trevor


 

Trevor
Thanks for the reply!? I will investigate!

On Thu, Sep 5, 2024 at 6:14?PM Trevor Rowland via <trevor=[email protected]> wrote:
Keith:
?
I have layout lighting changing from Moonlight - Dawn - Morning - Noon - Afternoon - Dusk - Moonlight using 2 LIFX WiFi enabled mains powered RGB globes (1 in the East and 1 in the West).
?
The LIFX globes have software available on the internet that allows Windows (I don't recall if Linux and Mac are also covered) to change the globe 'scene' (i.e. colour and brightness) via a command line utility.
?
To get it working, I established the light levels and colours I wanted on each globe for each time of the day, and saved that scene via the mobile phone app.? I then utilised the Windows command line utility to determine the unique ID number of the particular scene, and coded that scene ID into a Jython script that then utilises an Operating System call to run the Windows command to select a particular light level.? It is a bit convoluted, but it works.
?
I don't know if other brands of WiFi enabled mains powered globes also have this facility, but it might be another idea to investigate, and it is certainly less expensive than $700.
?
Cheers,
Trevor


 

Trevor, do you know if the jayton script can be translated into LogixNG? I much prefer that than using scripts.

Thx
Leo P

On Thu, Sep 5, 2024 at 5:24?PM Keith Williams via <directorsixfive=[email protected]> wrote:
Trevor
Thanks for the reply!? I will investigate!

On Thu, Sep 5, 2024 at 6:14?PM Trevor Rowland via <trevor=[email protected]> wrote:
Keith:
?
I have layout lighting changing from Moonlight - Dawn - Morning - Noon - Afternoon - Dusk - Moonlight using 2 LIFX WiFi enabled mains powered RGB globes (1 in the East and 1 in the West).
?
The LIFX globes have software available on the internet that allows Windows (I don't recall if Linux and Mac are also covered) to change the globe 'scene' (i.e. colour and brightness) via a command line utility.
?
To get it working, I established the light levels and colours I wanted on each globe for each time of the day, and saved that scene via the mobile phone app.? I then utilised the Windows command line utility to determine the unique ID number of the particular scene, and coded that scene ID into a Jython script that then utilises an Operating System call to run the Windows command to select a particular light level.? It is a bit convoluted, but it works.
?
I don't know if other brands of WiFi enabled mains powered globes also have this facility, but it might be another idea to investigate, and it is certainly less expensive than $700.
?
Cheers,
Trevor


 

I would never pay the $700 asking price. Like I said, Bob gave it to me for free. Talk to?

bob@...

I think the board is worth about $100.


 

Vinny,?
I sent an e-mail?asking for a discount.? We'll see what he says....thanks again for your help.

On Fri, Sep 6, 2024 at 6:51?AM Vinny DeRobertis via <vinny.derobertis=[email protected]> wrote:

I would never pay the $700 asking price. Like I said, Bob gave it to me for free. Talk to?

bob@...

I think the board is worth about $100.


 

Leo:
?
I'm sorry, but I have no idea if LogixNG could do what I did.
?
Maybe others that have better knowledge about both LogixNG and Jython could assist.
?
If LogixNG can be made to perform an operating system command complete with command line arguments then I believe it could be done.
?
I'll be interested to see if others can confirm this myself.?
?
Cheers,?
Trevor


 

?
An update for anyone with LogixNG experience:
?
I'm using the following Jython code to control my LIFX globes:
?
from subprocess import Popen
.
.
PM = "8b1c2496-xxxx-yyyy-zzzz-27b6eb2afdfd"
p = Popen(['lifx.cmd', '-c', PM])
.
.
?
Where PM in the above line is the identifier for a scene. All the scenes have unique ID numbers.? The xxxx-yyyy-zzzz are other Hex characters that I have removed for security...