From c96941b048d9a0cd8877559c11ea7416a897c9ae Mon Sep 17 00:00:00 2001 From: Philip Schell Date: Mon, 20 Jan 2020 14:37:06 +0100 Subject: [PATCH] [1.3.0] New Gateway --- CHANGELOG.md | 8 ++++ Lora-Map/Lora-Map.csproj | 47 +++++++++---------- Lora-Map/Program.cs | 7 +-- Lora-Map/Server.cs | 2 +- Lora-Map/config-example/requests.conf.example | 2 - 5 files changed, 33 insertions(+), 33 deletions(-) delete mode 100644 Lora-Map/config-example/requests.conf.example diff --git a/CHANGELOG.md b/CHANGELOG.md index a9ddd52..7457fb2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelogs +## 1.3.0 - New Gateway +### New Features +* Implement Lora-Gateway-Data 1.1.0 Format +### Bugfixes +### Changes +* Refactoring +* Make requests.conf not needed anymore. + ## 1.2.10 ### New Features * Posibility to display sensor data on map diff --git a/Lora-Map/Lora-Map.csproj b/Lora-Map/Lora-Map.csproj index 8a0d913..4cc87b5 100644 --- a/Lora-Map/Lora-Map.csproj +++ b/Lora-Map/Lora-Map.csproj @@ -1,4 +1,4 @@ - + Exe @@ -10,32 +10,34 @@ Displays Items with Coordinates from Mqtt on a Map Fraunhofer FIT LoraMap.IoT.Fit.Fraunhofer - Copyright © Fraunhofer FIT, BlubbFish 2018 - 11.12.2019 + Copyright © Fraunhofer FIT, BlubbFish 2018 - 20.01.2020 BlubbFish - 1.2.10 + 1.3.0 LICENSE https://github.com/MONICA-Project/lora-map https://github.com/MONICA-Project/lora-map.git git de-DE - 1.2.10 Refactoring is the thing -1.2.9 The PüMa Release -1.2.8 Improving the UI -1.2.7 Reorganise a lot of things, add Support for Cameradata -1.2.6 New Types of marker for person -1.2.5 Set textsize for every zoomlevel -1.2.4 Can draw Textmarkers on the Map, use MGRS (UTM) on the Map -1.2.3 #9 display polygons and marker on the map -1.2.2 Bugfix, if only recieve panic packet with gps data, update the marker on the map also -1.2.1 #6 Load the map from the Device -1.2.0 #4 Possible to Ex and Import Setting -1.1.7 #8 Editor for Names -1.1.6 #5 Create admin area -1.1.5 Add support for alert button -1.1.4 #3 Create icons for devices -1.1.3 #1 Click on icon and show details -1.1.2 #2 Show versions number in Site -1.1.1 Add Debian package config + + 1.3.0 New Gateway + 1.2.10 Refactoring is the thing + 1.2.9 The PüMa Release + 1.2.8 Improving the UI + 1.2.7 Reorganise a lot of things, add Support for Cameradata + 1.2.6 New Types of marker for person + 1.2.5 Set textsize for every zoomlevel + 1.2.4 Can draw Textmarkers on the Map, use MGRS (UTM) on the Map + 1.2.3 #9 display polygons and marker on the map + 1.2.2 Bugfix, if only recieve panic packet with gps data, update the marker on the map also + 1.2.1 #6 Load the map from the Device + 1.2.0 #4 Possible to Ex and Import Setting + 1.1.7 #8 Editor for Names + 1.1.6 #5 Create admin area + 1.1.5 Add support for alert button + 1.1.4 #3 Create icons for devices + 1.1.3 #1 Click on icon and show details + 1.1.2 #2 Show versions number in Site + 1.1.1 Add Debian package config lora mqtt map lagekarte Fraunhofer.Fit.IoT.LoraMap.Program @@ -59,9 +61,6 @@ - - PreserveNewest - PreserveNewest diff --git a/Lora-Map/Program.cs b/Lora-Map/Program.cs index 687c249..f999e1f 100644 --- a/Lora-Map/Program.cs +++ b/Lora-Map/Program.cs @@ -12,16 +12,11 @@ static void Main(String[] _1) { _ = Console.ReadLine(); return; } - if(!InIReader.ConfigExist("requests")) { - Helper.WriteError("requests.ini not found!"); - _ = Console.ReadLine(); - return; - } InIReader ini = InIReader.GetInstance("settings"); Dictionary backenddata = ini.GetSection("mqtt"); backenddata.Add("topic", "lora/#;camera/#;sfn/#"); ADataBackend b = (ADataBackend)ABackend.GetInstance(backenddata, ABackend.BackendType.Data); - _ = new Server(b, ini.GetSection("webserver"), InIReader.GetInstance("requests")); + _ = new Server(b, ini.GetSection("webserver")); } } } diff --git a/Lora-Map/Server.cs b/Lora-Map/Server.cs index 3050714..9c33f5a 100644 --- a/Lora-Map/Server.cs +++ b/Lora-Map/Server.cs @@ -31,7 +31,7 @@ class Server : Webserver { private readonly Object lockDensy = new Object(); private readonly Object lockSensor = new Object(); - public Server(ADataBackend backend, Dictionary settings, InIReader requests) : base(backend, settings, requests) { + public Server(ADataBackend backend, Dictionary settings) : base(backend, settings, null) { this.logger.SetPath(settings["loggingpath"]); this.CheckJsonFiles(); this.admin = new AdminModel(settings); diff --git a/Lora-Map/config-example/requests.conf.example b/Lora-Map/config-example/requests.conf.example deleted file mode 100644 index 5d9d8f8..0000000 --- a/Lora-Map/config-example/requests.conf.example +++ /dev/null @@ -1,2 +0,0 @@ -[js/map.js] -start_location=50.7, 7.2 \ No newline at end of file