Hi all, I was looking for a way to get weewx to input archive data into Splunk and I came across the CSV extension (https://github.com/weewx/weewx/wiki/csv) which looked like it would do half the job for me. I modified it a bit to output the values as 'key=value' pairs to help Splunk automatically extract fields and I then replaced the code that writes the CSV file to instead send the data to Splunk using the Splunk API.
All this is working well but an issue I have is that the fields in the archive records are in the target units written to the database (usUnits). I need the data in Splunk to be in metric units so I have started adding conversions within the extension. I was thinking there must be a better way of doing this. Is there? Is there any way I can leverage off StdConvert (or something else) to do this? Unfortunately I am not a python developer so I'm just stumbling my way through it. Cheers, Peter -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
