correct csv file naming in csv_to_influx.py

Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
This commit is contained in:
Matthew Stidham
2021-06-25 13:52:57 -07:00
parent 3494dbed89
commit f95bcf3948
2 changed files with 3 additions and 2 deletions

View File

@@ -230,7 +230,8 @@ class StationProfile:
# self.add_sta_data["key"] = passwd # self.add_sta_data["key"] = passwd
def station_mode_to_number(self,mode): def station_mode_to_number(self,mode):
modes = ['a','b','g','abg','an','abgn','bgn','bg','abgn-AC','bgn-AC','an-AC'] modes = ['a', 'b', 'g', 'abg', 'an', 'abgn', 'bgn', 'bg', 'abgn-AC', 'bgn-AC', 'an-AC']
return modes.index(mode) + 1
def add_security_extra(self, security): def add_security_extra(self, security):
types = {"wep": "wep_enable", "wpa": "wpa_enable", "wpa2": "wpa2_enable", "wpa3": "use-wpa3", "open": "[BLANK]"} types = {"wep": "wep_enable", "wpa": "wpa_enable", "wpa2": "wpa2_enable", "wpa3": "use-wpa3", "open": "[BLANK]"}

View File

@@ -42,7 +42,7 @@ class CSVtoInflux():
target_csv=None, target_csv=None,
sep='\t'): sep='\t'):
self.influxdb = influxdb self.influxdb = influxdb
self.target_csv = target_csv.replace('/home/lanforge/html-reports/', '') self.target_csv = target_csv
self.influx_tag = _influx_tag self.influx_tag = _influx_tag
self.sep = sep self.sep = sep