¿ªÔÆÌåÓý

Re: How do I hook up a bar code reader to JMRI


 

¿ªÔÆÌåÓý


So, in principle...? ?you could write something in Python (or similar) which takes the readings, and then "publishes" a message to MQTT.? ? If that message were to a path such as "../mylayout/reporters/reporter01" and contained the text value "123AB123" (or whatever your barcode said),? then you're just about home and done as JMRI can subscribe to those messages and will treat them as reporter messages.

Question is how much of a learning curve are the two key steps:? (a) installing a MQTT broker, and (b) code-writing to get the above to work.??
?

- Nigel


------ Original Message ------
From "Nick Brownsberger via groups.io" <nbrownsbe@...>
Date 05/05/2025 18:19:05
Subject Re: [jmriusers] How do I hook up a bar code reader to JMRI

Nigel,
?
The reader I have is not programmable. It simply reads into whatever app I have selected as if it were a keyboard.
?
Haven't worked with MQTT before. I'll have to look into it.
?
Nick

Join [email protected] to automatically receive all group messages.