I am trying to replicate the wxnow.txt file that Cumulus creates (https://www.cumuluswiki.org/a/Wxnow.txt), which will then be ingested by an APRS client. However I'm having some trouble getting the correct template created, particularly with the rainfall amounts. I currently have this:
I just want to remark that your template definitions are incomplete, as they are lacking what to report if a sensors does not provide data. This is important for not stepping into sudden problems later on, once you believe everything is working fine. Please adapt!
Now to your original question... I guess you are looking or 1/100 inches of total rain reported into the target format, not inches. "in" gives you inches. Wiki explains in converter section of template page how to achieve this. Your rain total definition should look like this
[rain0total-daysum=in+100.000:000]. "+100" is a factor to apply. Please find more about this in the wiki. It is all described there.
Ok read the cumuluswiki, answered my own question?
You will note if you read the wiki decimals are not included/allowed/used and all rainfall values are in hundredths of an inch so for 0.2" the value will be p020
Mattk wrote: ↑Thu Feb 15, 2024 11:21 pm
Ok read the cumuluswiki, answered my own question?
You will note if you read the wiki decimals are not included/allowed/used and all rainfall values are in hundredths of an inch so for 0.2" the value will be p020
p{*[rain0total-sum24h=in]*100*000}
Thank you! This worked!
I was using this wiki page: https://www.meteobridge.com/wiki/index.php/Templates but I must have been missing the point when it came to decimals and numerical expressions. I guess I was either making it too complicated or not enough. Maybe I just didn't understand the original output. I used to have a pretty good handle on Meteobridge templates but for some reason I just couldn't get this one right.
I don't talk about the cumulus wiki. When you want to understand how templates in Meteobridge work you have to read the Meteobridge wiki. It is very explicit about templates: https://meteobridge.com/wiki/index.php/ ... Converters
Mattk wrote: ↑Thu Feb 15, 2024 11:24 pm
Arh oh we cross posted Boris?
So should that be +100 or *100?
first number is factor, second is offset. so "+100" is right as factor "+100+10" would be factor 100 plus an offset of 10.
You can also use the more versatile "{* *}" computations within templates but it will not work in charts or exports where the simple factor/offset addition as a converter is the only option.
admin wrote: ↑Fri Feb 16, 2024 12:01 am
I don't talk about the cumulus wiki. When you want to understand how templates in Meteobridge work you have to read the Meteobridge wiki. It is very explicit about templates: https://meteobridge.com/wiki/index.php/ ... Converters
I understand that. I was just linking to the Cumulus wiki to demonstrate my expected output and the reason for doing so. I even linked to the Meteobridge wiki article I referenced in my last post, which you also referenced in the quoted post above, so it's not like I had no idea that it existed or I wasn't already referencing it. I just needed a little assistance from someone in the community to help connect the dots. Posting on the forum was my last resort after coming back to figure it out over the span of weeks, believe me when I say that. Regardless, Mattk helped me figure it out for which I am appreciative.