HansR wrote: ↑Tue 07 Apr 2020 5:49 pm
We are not talking about a global, but about the path to realtimegauges.txt which is defined in gauges.txt
I understand you perfectly, and I recall all you have said previously about having settings in one place, but you appear to misunderstand me.
I (and I think Water01) was talking about a change that let the definition of the path in gauges.js be defined outside that script. You (and nobody else) change that script to check if a variable (what I call global, i.e. shared across more than one script) has been set. You can then have another script (your setting script) set that variable and the changed gauges.js will read that without the end-user having to do any more editing of gauges.js to suit whatever path they use.
Oh and I also understand you wanted your creation to sit alongside Cumulus without tinkering with Cumulus files, but I am suggesting that you change one Cumulus file in a way that the developer could adopt into future MX releases, it has no effect on MX functionality, it does offer the possibility that an extra setting could be added to the MX settings to adjust the path without anyone ever needing to edit this file in the future. Maybe that is something Mark might have thought good to do in future anyway.
Now I hope you understand what I was saying in my previous post, I often feel my written work is not concise enough, it appears it was too concise that time for you.