Skip to content

DougSchmidt-AI/eHSN-field-data-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eHSN-field-data-plugin

Build status

An AQTS field data plugin supporting eHSN (electronic Hydrometric Station Notes) files from Water Survey Canada.

Requirements

  • Requires Visual Studio 2017 (Community Edition is fine)
  • .NET 4.7 runtime

Want to install this plugin?

  • Install it on AQTS 2019.2-or-newer via the System Configuration page

Plugin Compatibility Matrix

Choose the appropriate version of the plugin for your AQTS app server.

AQTS Version Latest compatible plugin Version
AQTS 2021.3.Update 1+ v21.3.0
AQTS 2020.3+ v20.3.1
AQTS 2020.2
AQTS 2020.1
AQTS 2019.4
AQTS 2019.3
AQTS 2019.2
v19.2.26

Configuring the plugin

The plugin can be configured via a Config.json JSON document, to control the mapping of eHSN values to your AQTS app server.

The configurable values include:

  • Parameter IDs, unit IDs, and monitoring method codes for various sensors
  • Configurable picklist values. Values can be mapped to either the List Item ID (eg. "Ice": "IceCover") or the List Item Name (eg. "Ice": "Ice - Cover").

The JSON configuration is stored in different places, depending on the version of the plugin.

Version Configuration location
20.2.x+ Use the Settings page of the System Config app to change the settings.

Group: FieldDataPluginConfig-Ehsn
Key: Config
Value: The entire contents of the Config.json file. If blank or omitted, the plugin's default Config.json is used.
19.2.x Read from the Config.json file in the plugin folder, at %ProgramData%\Aquatic Informatics\AQUARIUS Server\FieldDataPlugins\EhsnPlugin\Config.json

Do I need to configure the plugin?

Quite possibly not.

The default behavoir of the EHSN plugin is to assume the same configuration as the WSC AQUARIUS Time Series system. If your agency uses the same settings as WSC, then you won't need to configure anything.

If you install the EHSN plugin on your AQTS app server and can successfully import an EHSN XML file, then no configuration changes are needed.

If an EHSN XML file fails to import into your AQTS app server, then some configuration changes will likely be required.

The likely items which may need to be configured are:

Building the plugin

  • Load the src\eHSN.sln file in Visual Studio and build the Release configuration.
  • The src\EhsnPlugin\deploy\Release\EhsnPlugin.plugin file can then be installed on your AQTS app server.

Testing the plugin within Visual Studio

Use the included PluginTester.exe tool from the Aquarius.FieldDataFrame package to test your plugin logic on the sample files.

  1. Open the EhsnPlugin project's Properties page
  2. Select the Debug tab
  3. Select Start external program: as the start action and browse to "src\packages\Aquarius.FieldDataFramework.20.2.0\tools\PluginTester.exe
  4. Enter the Command line arguments: to launch your plugin
/Plugin=EhsnPlugin.dll /Json=AppendedResults.json /Data=..\..\..\..\data\05BG006_20170609_FV.xml

The /Plugin= argument can be the filename of your plugin assembly, without any folder. The default working directory for a start action is the bin folder containing your plugin.

  1. Set a breakpoint in the plugin's ParseFile() methods.
  2. Select your plugin project in Solution Explorer and select "Debug | Start new instance"
  3. Now you're debugging your plugin!

See the PluginTester documentation for more details.

About

AQTS field data plugin supporting eHSN files from Water Survey Canada

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 99.7%
  • Other 0.3%