MeterDup
======

MeterDup is a command-line utility that makes multiple copies of a single meter in a config file. For each copy, MeterDup can auto-increment selected parameters. Use MeterDup when you need a series of similar meters, e.g. bars in a spectrum analyzer, a multi-line RSS feed with individual links for each line, etc.

Usage: MeterDup <in> <out> <meter> <copies> <xshift> <yshift> <param1> [<param2>]...

<in> - input config with your template meter
<out> - output config
<meter> - name of the template meter
<copies> - number of copies you need (e.g. "2" means 2 new meters in addition to the template meter)
<xshift>, <yshift> - how much to offset each copy with respect to the previous one
<param1> [<param2>]... - list of parameters you want incremented (up to 8 parameters)

Use quotes around any argument that contains spaces.

NOTES
=====

For each specified parameter, MeterDup will look for any numbers occurring in the parameter value and increment them by 1. The numbers can be integers or floating point. The parameter value can be a number by itself, ("1", "0.5", etc) or a text string containing numbers, e.g. the name of another meter like "SomeOtherMeter2". You'll need to set up your template meter in such a way, that incrementing numbers in selected parameters leads to the results you want. 

If you're working with PageScraper, keep in mind that the default name of a PageScraper instance may contain a number, e.g. "PageScraper1". This instance name is set within the PageScraper configuration, it's NOT the name of the meter you see in the Config Editor. If you want to duplicate a meter that references PageScraper, change the PageScraper instance name to remove any numbers. Otherwise, the instance name may get incremented, too (if it's in a selected parameter), thus breaking the link. In the attached sample config, the PageScraper instance name was set to "GoogleNews".

It's probably a good idea to save the original input config and command-line parameters for future reference. If you need to make a change to all copied meters, you may want to change the template in the original config and repeat the duplication.



