Strip tabs and trailing white spaces, and fix end of files (#748)
* format: Strip trailing whitespaces
We want to get rid of trailing whitespaces completly as they make just git
noice. Much better to start using automated tools to get rid of them once and
not getting them back again. This way git history will be cleaner and review
easier.
Commit was generated with:
pre-commit run --all-files trailing-whitespace
* format: Files should have exactly one new line end of them
It is good practice that every file has one new line. It is not now days so
mandatory but it also is not nice if file has lot of newlines end of it. We will
use pre-commit which takes automatically care about this so let's fix all.
Commit was generated with:
pre-commit run --all-files end-of-file-fixer
* format: Convert tabs to spaces
Project mostly use spaces over tabs. When mixing tabs and spaces this usually
makes formatting issues and also when changing those in commits it will make lot
of git noise. We will force spaces most of the time and use pre-commit to fix.
Commit was generated with:
pre-commit run --all-files remove-tabs
---------
Co-authored-by: Kari Argillander <kari.argillander@fidelix.com>
This commit is contained in:
+118
-118
@@ -73,27 +73,27 @@ Create a device instance configuration
|
||||
Example Device configuration:
|
||||
|
||||
config dev '0'
|
||||
option description 'Openwrt Router'
|
||||
option modelname 'Openwrt Router'
|
||||
option location 'Europe'
|
||||
option app_ver '12.09'
|
||||
option name 'openwrt-router-bip'
|
||||
option id '4711'
|
||||
option port '47808'
|
||||
option net '0'
|
||||
option iface 'lan'
|
||||
option bacdl 'bip'
|
||||
option description 'Openwrt Router'
|
||||
option modelname 'Openwrt Router'
|
||||
option location 'Europe'
|
||||
option app_ver '12.09'
|
||||
option name 'openwrt-router-bip'
|
||||
option id '4711'
|
||||
option port '47808'
|
||||
option net '0'
|
||||
option iface 'lan'
|
||||
option bacdl 'bip'
|
||||
|
||||
config dev '1'
|
||||
option description 'Openwrt Router'
|
||||
option modelname 'Openwrt Router'
|
||||
option location 'Europe'
|
||||
option app_ver '12.09'
|
||||
option name 'openwrt-router-ethernet'
|
||||
option id '4712'
|
||||
option net '0'
|
||||
option iface 'lan'
|
||||
option bacdl 'ethernet'
|
||||
option description 'Openwrt Router'
|
||||
option modelname 'Openwrt Router'
|
||||
option location 'Europe'
|
||||
option app_ver '12.09'
|
||||
option name 'openwrt-router-ethernet'
|
||||
option id '4712'
|
||||
option net '0'
|
||||
option iface 'lan'
|
||||
option bacdl 'ethernet'
|
||||
|
||||
Create a Notification Class configuration:
|
||||
|
||||
@@ -102,23 +102,23 @@ Create a Notification Class configuration:
|
||||
Example Notification Class configuration:
|
||||
|
||||
config nc 'default'
|
||||
option description 'Notification Class default'
|
||||
option name 'Notification Class'
|
||||
option group 'ZF'
|
||||
option description 'Notification Class default'
|
||||
option name 'Notification Class'
|
||||
option group 'ZF'
|
||||
|
||||
config nc '0'
|
||||
option description 'Network Monitoring'
|
||||
option name 'Komunikationfehler'
|
||||
option group 'ZF'
|
||||
list recipient '65535'
|
||||
list recipient '1,104.13.8.92:47808'
|
||||
option description 'Network Monitoring'
|
||||
option name 'Komunikationfehler'
|
||||
option group 'ZF'
|
||||
list recipient '65535'
|
||||
list recipient '1,104.13.8.92:47808'
|
||||
|
||||
config nc '1'
|
||||
option description 'Modbus Sensor Fehler'
|
||||
option name 'Sensor Fehler'
|
||||
option group 'ZF'
|
||||
list recipient '65535'
|
||||
list recipient '1,104.13.8.92:47808'
|
||||
option description 'Modbus Sensor Fehler'
|
||||
option name 'Sensor Fehler'
|
||||
option group 'ZF'
|
||||
list recipient '65535'
|
||||
list recipient '1,104.13.8.92:47808'
|
||||
|
||||
Create a Trendlog configuration:
|
||||
touch /etc/config/bacnet_tl
|
||||
@@ -126,18 +126,18 @@ Create a Trendlog configuration:
|
||||
Example Trendlog configuration:
|
||||
|
||||
config tl 'default'
|
||||
option description 'Analog Value'
|
||||
option nc '1'
|
||||
option interval '300'
|
||||
option device_type 8
|
||||
option object_type 2
|
||||
option description 'Analog Value'
|
||||
option nc '1'
|
||||
option interval '300'
|
||||
option device_type 8
|
||||
option object_type 2
|
||||
|
||||
config tl '0'
|
||||
option object_instance '0'
|
||||
option interval '10'
|
||||
option object_instance '0'
|
||||
option interval '10'
|
||||
|
||||
config tl '1'
|
||||
option object_instance '1'
|
||||
option object_instance '1'
|
||||
|
||||
Create a Analog Value configuration:
|
||||
|
||||
@@ -146,42 +146,42 @@ Create a Analog Value configuration:
|
||||
Example Analog Value configuration:
|
||||
|
||||
config av 'default'
|
||||
option si_unit '98'
|
||||
option description 'Analog Value'
|
||||
option nc '1'
|
||||
option event '7'
|
||||
option limit '3'
|
||||
option high_limit '40'
|
||||
option low_limit '0'
|
||||
option dead_limit '0'
|
||||
option cov_increment '0.1'
|
||||
option value '23.8'
|
||||
option si_unit '98'
|
||||
option description 'Analog Value'
|
||||
option nc '1'
|
||||
option event '7'
|
||||
option limit '3'
|
||||
option high_limit '40'
|
||||
option low_limit '0'
|
||||
option dead_limit '0'
|
||||
option cov_increment '0.1'
|
||||
option value '23.8'
|
||||
|
||||
config av '0'
|
||||
option pgroup 'ZF_EZR08'
|
||||
option name 'R801_RT'
|
||||
option description 'Raumtemperatur'
|
||||
option addr '1'
|
||||
option tagname 'modbus-s1'
|
||||
option si_unit '62'
|
||||
option dead_limit '0.5'
|
||||
option cov_increment '0.2'
|
||||
option resolution 'doublefloat'
|
||||
option value '0.000000'
|
||||
option Out_Of_Service '0'
|
||||
option value_time '1384274334'
|
||||
option pgroup 'ZF_EZR08'
|
||||
option name 'R801_RT'
|
||||
option description 'Raumtemperatur'
|
||||
option addr '1'
|
||||
option tagname 'modbus-s1'
|
||||
option si_unit '62'
|
||||
option dead_limit '0.5'
|
||||
option cov_increment '0.2'
|
||||
option resolution 'doublefloat'
|
||||
option value '0.000000'
|
||||
option Out_Of_Service '0'
|
||||
option value_time '1384274334'
|
||||
|
||||
config av '1'
|
||||
option pgroup 'ZF_EZR08'
|
||||
option name 'R802_RT'
|
||||
option description 'Raumtemperatur'
|
||||
option tagname 'modbus-s1'
|
||||
option si_unit '62'
|
||||
option resolution 'doublefloat'
|
||||
option addr '3'
|
||||
option value '0.000000'
|
||||
option Out_Of_Service '0'
|
||||
option value_time '1384274334'
|
||||
option pgroup 'ZF_EZR08'
|
||||
option name 'R802_RT'
|
||||
option description 'Raumtemperatur'
|
||||
option tagname 'modbus-s1'
|
||||
option si_unit '62'
|
||||
option resolution 'doublefloat'
|
||||
option addr '3'
|
||||
option value '0.000000'
|
||||
option Out_Of_Service '0'
|
||||
option value_time '1384274334'
|
||||
|
||||
Create a Multistate Value configuration
|
||||
|
||||
@@ -190,26 +190,26 @@ Create a Multistate Value configuration
|
||||
Example Analog Value configuration:
|
||||
|
||||
config mv 'default'
|
||||
list state 'up'
|
||||
list state 'down'
|
||||
list state 'unreachable'
|
||||
list state 'flaping'
|
||||
list alarmstate 'down'
|
||||
list alarmstate 'unreachable'
|
||||
list alarmstate 'flaping'
|
||||
option description 'Multi State Value'
|
||||
option nc '1'
|
||||
option event '7'
|
||||
list state 'up'
|
||||
list state 'down'
|
||||
list state 'unreachable'
|
||||
list state 'flaping'
|
||||
list alarmstate 'down'
|
||||
list alarmstate 'unreachable'
|
||||
list alarmstate 'flaping'
|
||||
option description 'Multi State Value'
|
||||
option nc '1'
|
||||
option event '7'
|
||||
|
||||
config mv '0'
|
||||
option name 'TR_EZR00_SV01'
|
||||
option value '1'
|
||||
option description '192.168.100.29'
|
||||
option name 'TR_EZR00_SV01'
|
||||
option value '1'
|
||||
option description '192.168.100.29'
|
||||
|
||||
config mv '1'
|
||||
option name 'TR_EZR01_SV01'
|
||||
option value '1'
|
||||
option description '192.168.100.30'
|
||||
option name 'TR_EZR01_SV01'
|
||||
option value '1'
|
||||
option description '192.168.100.30'
|
||||
|
||||
Create a Binary Value configuration:
|
||||
|
||||
@@ -218,40 +218,40 @@ Create a Binary Value configuration:
|
||||
Example Analog Value configuration:
|
||||
|
||||
config bv 'default'
|
||||
option description 'Binary Value'
|
||||
option inactive 'AUS'
|
||||
option active 'EIN'
|
||||
option nc '1'
|
||||
option event '7'
|
||||
option time_delay '3'
|
||||
option description 'Binary Value'
|
||||
option inactive 'AUS'
|
||||
option active 'EIN'
|
||||
option nc '1'
|
||||
option event '7'
|
||||
option time_delay '3'
|
||||
|
||||
config bv '0'
|
||||
option name 'BV_00'
|
||||
option alarm_value '0'
|
||||
option tagname 'modbus-s1'
|
||||
option addr '5'
|
||||
option bit '0'
|
||||
option resolution 'dword'
|
||||
option active 'Ein'
|
||||
option inactive 'Aus'
|
||||
option description 'Datenwort 2 Bit 0'
|
||||
option value '0'
|
||||
option Out_Of_Service '0'
|
||||
option value_time '1384274334'
|
||||
option name 'BV_00'
|
||||
option alarm_value '0'
|
||||
option tagname 'modbus-s1'
|
||||
option addr '5'
|
||||
option bit '0'
|
||||
option resolution 'dword'
|
||||
option active 'Ein'
|
||||
option inactive 'Aus'
|
||||
option description 'Datenwort 2 Bit 0'
|
||||
option value '0'
|
||||
option Out_Of_Service '0'
|
||||
option value_time '1384274334'
|
||||
|
||||
config bv '1'
|
||||
option name 'BV_01'
|
||||
option alarm_value '0'
|
||||
option tagname 'modbus-s1'
|
||||
option addr '5'
|
||||
option bit '1'
|
||||
option resolution 'dword'
|
||||
option active 'Ein'
|
||||
option inactive 'Aus'
|
||||
option description 'Datenwort 2 Bit 1'
|
||||
option Out_Of_Service '0'
|
||||
option value '0'
|
||||
option value_time '1384274334'
|
||||
option name 'BV_01'
|
||||
option alarm_value '0'
|
||||
option tagname 'modbus-s1'
|
||||
option addr '5'
|
||||
option bit '1'
|
||||
option resolution 'dword'
|
||||
option active 'Ein'
|
||||
option inactive 'Aus'
|
||||
option description 'Datenwort 2 Bit 1'
|
||||
option Out_Of_Service '0'
|
||||
option value '0'
|
||||
option value_time '1384274334'
|
||||
|
||||
## Run
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (C) 2008 John Crispin <blogic@openwrt.org>
|
||||
*
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-2.0-or-later
|
||||
*/
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2008 John Crispin <blogic@openwrt.org>
|
||||
* Copyright (C) 2008 John Crispin <blogic@openwrt.org>
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-2.0-or-later
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user