Switch urls to production api
This commit is contained in:
parent
0fb50feebb
commit
422f99e37e
@ -1,10 +1,8 @@
|
||||
const { BrowserWindow, app } = require('electron')
|
||||
const path = require('path')
|
||||
const dotenv = require('dotenv')
|
||||
//const session_start = 'https://nextgenerations-cities.encs.concordia.ca/api/v1.4/session/start'
|
||||
//const retrofit_results = 'https://nextgenerations-cities.encs.concordia.ca/api/v1.4/persistence/retrofit-results'
|
||||
const session_start = 'http://127.0.0.1:15789/v1.4/session/start'
|
||||
const idf_generator = 'http://127.0.0.1:15789//v1.4/energy-plus/idf-generator'
|
||||
const session_start = 'https://nextgenerations-cities.encs.concordia.ca/api/v1.4/session/start'
|
||||
const idf_generator = 'https://nextgenerations-cities.encs.concordia.ca/api/v1.4/energy-plus/idf-generator'
|
||||
|
||||
exports.run = async (application, param, tmp_path) => {
|
||||
const building = param['building']
|
||||
|
@ -3,12 +3,8 @@ const fs = require('fs')
|
||||
const path = require('path')
|
||||
const { Blob } = require('buffer')
|
||||
const dotenv = require('dotenv')
|
||||
//const session_start = 'https://nextgenerations-cities.encs.concordia.ca/api/v1.4/session/start'
|
||||
//const insel_meb = 'https://nextgenerations-cities.encs.concordia.ca/api/v1.4/workflow/insel-monthly-energy-balance'
|
||||
|
||||
const session_start = 'http://127.0.1:15789/v1.4/session/start'
|
||||
const insel_meb = 'http://127.0.0.1:15789/v1.4/workflow/insel-monthly-energy-balance'
|
||||
|
||||
const session_start = 'https://nextgenerations-cities.encs.concordia.ca/api/v1.4/session/start'
|
||||
const insel_meb = 'https://nextgenerations-cities.encs.concordia.ca/api/v1.4/workflow/insel-monthly-energy-balance'
|
||||
|
||||
exports.run = async (application, param, tmp_path) => {
|
||||
console.log(`Executing ${application}`)
|
||||
|
@ -1,10 +1,8 @@
|
||||
const { BrowserWindow, app } = require('electron')
|
||||
const path = require('path')
|
||||
const dotenv = require('dotenv')
|
||||
//const session_start = 'https://nextgenerations-cities.encs.concordia.ca/api/v1.4/session/start'
|
||||
//const retrofit_results = 'https://nextgenerations-cities.encs.concordia.ca/api/v1.4/persistence/retrofit-results'
|
||||
const session_start = 'http://127.0.0.1:15789/v1.4/session/start'
|
||||
const retrofit_results = 'http://127.0.0.1:15789/v1.4/persistence/full-retrofit-results'
|
||||
const session_start = 'https://nextgenerations-cities.encs.concordia.ca/api/v1.4/session/start'
|
||||
const retrofit_results = 'https://nextgenerations-cities.encs.concordia.ca/api/v1.4/persistence/full-retrofit-results'
|
||||
|
||||
exports.run = async (application, param, tmp_path) => {
|
||||
buildings = param['buildings']
|
||||
@ -192,11 +190,11 @@ exports.run = async (application, param, tmp_path) => {
|
||||
}
|
||||
else {
|
||||
console.log('unautorized retrofit')
|
||||
BrowserWindow.fromId(1).webContents.send('task-completed', `<h3>Received code ${response.status} on results request</h3></a>`)
|
||||
}
|
||||
}
|
||||
else {
|
||||
console.log(response)
|
||||
console.log(JSON.stringify(response))
|
||||
console.log('unautorized session start')
|
||||
BrowserWindow.fromId(1).webContents.send('task-completed', `<h3>Received code ${response.status} on session start</h3></a>`)
|
||||
}
|
||||
}
|
@ -1,10 +1,8 @@
|
||||
const { BrowserWindow, app } = require('electron')
|
||||
const path = require('path')
|
||||
const dotenv = require('dotenv')
|
||||
//const session_start = 'https://nextgenerations-cities.encs.concordia.ca/api/v1.4/session/start'
|
||||
//const retrofit_results = 'https://nextgenerations-cities.encs.concordia.ca/api/v1.4/persistence/retrofit-results'
|
||||
const session_start = 'http://127.0.0.1:15789/v1.4/session/start'
|
||||
const retrofit_results = 'http://127.0.0.1:15789/v1.4/persistence/retrofit-results'
|
||||
const session_start = 'https://nextgenerations-cities.encs.concordia.ca/api/v1.4/session/start'
|
||||
const retrofit_results = 'https://nextgenerations-cities.encs.concordia.ca/api/v1.4/persistence/retrofit-results'
|
||||
|
||||
exports.run = async (application, param, tmp_path) => {
|
||||
buildings = param['buildings']
|
||||
|
Loading…
Reference in New Issue
Block a user