add web on main
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user