1
0

add web on main

This commit is contained in:
2023-06-06 13:51:28 +02:00
parent be9c484001
commit fa54c5fbb3
3 changed files with 27 additions and 10 deletions

View File

@@ -48,13 +48,13 @@ public class DatabaseConnector implements DataPointListener {
// Get the URL, the organization and the bucket from the config.properties file if their are null
if (url == null){
url = properties.getProperty("URL");
url = properties.getProperty("DB.URL");
}
if (org == null){
org = properties.getProperty("ORG");
org = properties.getProperty("DB.ORG");
}
if (bucket == null){
bucket = properties.getProperty("BUCKET");
bucket = properties.getProperty("DB.BUCKET");
}
// Subscribe to the update of DataPoints
@@ -80,7 +80,7 @@ public class DatabaseConnector implements DataPointListener {
try{
if(urlForWrite == null){
if(url == null){
url = properties.getProperty("URL");
url = properties.getProperty("DB.URL");
}
fullURL = url + "/api/v2/write?org=" + org + "&bucket=" + bucket;
Utility.pDebug("URL: " + fullURL);