I have the following code below. The meter [MeterSunrise] returns a string from a plugin (e.g. "06:27 AM"). Is it possible to extract specific number values from this string, so they could be use in a Calc meter (e.g. extract the values "06" and "27")?
TugaMan wrote: Is it possible to extract specific number values from this string, so they could be use in a Calc meter (e.g. extract the values "06" and "27")?
I think you can do that by replacing <sunr>(.*)</sunr> with <sunr>(.*):(.*)\s.*</sunr> in the RegExp= you have in [MeasureWeather]. Your StringIndex=12 will then give the hour of the Sunrise and StringIndex=13 will give the minutes of the Sunrise. These can then be used in Calc Measures.
Don't forget that all the StringIndex= numbers greater than 12 will have been increased by one (1) for all subsequent measures.