NovaStar Program Reference / Data Import / nsdataimport
Overview
The nsdataimport
program imports important data into NovaStar.
The program calls other programs.
Command Line Usage
The command line syntax is:
nsdataimport [options...] [ImportFile] [-G #]
Command line parameters are:
Parameter | Description | Default |
---|---|---|
Import File |
Import filename Read from standard input |
Read from standard input |
-G # |
Data import group number | |
-a or -alarm or --alarm |
Disable alarm checking | |
-d # |
Debug display level | |
-f pr -force or --force |
Force replacing reports already in database | |
-F fields,... |
Specify input field order: StationId SensorId RawData ScaledData DateTime Date Time Year Month Day Hour Minute Second Source |
SensorId,RawData,Date,Time |
-F inline |
Fields are prefixed by type: StationId=## SensorId=## RawData=#.## DateTime=MM/DD/YYYY HH:MM:SS |
|
-help or --help |
Display this help | |
-i # |
File data for this sensor ID only | |
-q or -quiet or --quiet |
Do not display activity messages | |
-r or -raw or --raw |
Force calibration of raw data | |
-s #[smhd] |
Add time offset to report time | 0 |
+#[smhd] |
Time offset added to current time | |
-#[smhd] |
Time offset subtracted from current time | |
-S # |
Source number for report flag | |
-T ImportType |
Data import type: shown in table below | |
-te D-T |
Stopping time for data filing | Current date and time |
-ts D-T |
Starting time for data filing | 01/01/1980 |
D-T |
MM/DD/YYYY-HH:MM:SS YYYY/MM/DD-HH:MM:SS where / can be [/+-., ] - or : are any non digit |
|
-version or --version |
Display program version | |
-xsl XslFilename |
XSL translation filename |
Data Import Types:
ImportType | Description | ImportProgram |
---|---|---|
5096 | 5096 log data import | ns5096import |
5096A2 | 5096/A2 log data import | ns5096A2import |
50386 | 50386 log data import | ns50386import |
50386A2 | 50386/A2 log data import | ns50386A2import |
Polllog | Station poll log import | nsautointerlogimport |
Recdatalog | Receive data log import | nsrecdatalogimport |
SHEF | SHEF data import | nsshefimport |
XML | XML data import | nsdataimportrpt -F inline |
Custom | Use field order | nsdataimportrpt -F fields |
Examples
nsdataimport -r -ts 2015/01/01-00:00:00 -te 2015/01/02-00:00:00 /path/to/importFile -G 1
This will import data, for January 1st 2015, from the import file contained at /path/to/importFile
for the data import group with number 1.
Scheduling
Explain whether run on a schedule...
NovaStar Administrator Interface
Explain how to access, including screen shots...
Troubleshooting
Explain, including log file name/location...