I wrote a python script that gathers all the decoder information from JMRI XML files. You can see the sample output if you view the source code to here: https://dccwiki.com/User:TazzyTazzy/DG583
JMRI has a database of 3054 decoders that I’m able to generate pages for. I can programmatically create/update these pages in the wiki.
The JMRI XML files have tons of information and labels for each decoder wire, function, sound, etc. There’s also plenty of CV data for each decoder. My thought is to remove redundant fields from wiki and rely on JMRI data. However, the issue here is that JMRI updates are much more difficult due to having to work with github, but this would prevent ‘split-brain’.
Obviously, we have multiple decoders already defined. There’s also going to be data that is not the same from the wiki and from JMRI. I need help with trying to merge the display of this data.
1) The wiki page name for each decoder doesn’t align with JMRI. For example, on the wiki it’s “DG583S” while JMRI has it as “DG583”. The product pricing system depends on the pagename as it’s primary method of matching products to vendors webpages. We do need both “DG583S” and “DG583AR” (which doesn’t exist yet) for product matching.
2) I’m thinking to create a new namespace title “JMRI”, and then the pagenames can be whatever they want. From the product page, I can create a form field that allows for selecting a matching JRMI entry that can then display the JRMI below any of our notes.
Thoughts?