Node.js and NPM are required. It is recommended to download latest version from the website (download) instead of using the one from distribution's package manager.
npm i -g ts-data-collector
on linux run this command with
sudo
-
--help
- prints all available arguments and their descriptions -
--version
- prints version of installed application -
--config VAL
- path to JSON configuration file -
--get-serial
or-s
- prints serial of the server and exits -
--api-url
- URL to which data -
--api-token VAL
- api token used for authentication -
--api-token-name VAL
- name of the URL parameter for sending the token -
--serial-name VAL
- name of the URL parameter for sending serial -
--modbus-host VAL
or-h
- address of the modbus server -
--modbus-port VAL
or-p
- port on which modbus server is listening -
--modbus-update-interval VAL
- interval (in milliseconds) at which modbus data should be fetched -
--modbus-version-layouts VAL
- path to JSON file containing modbus layouts for supported versions of modbus servers -
--keep-started
or-k
- keeps device's start measurement flag always on -
--start-meas
or-m
- starts measurement on connected server and exits