Skip to content

Commit

Permalink
API Change to inexogy
Browse files Browse the repository at this point in the history
  • Loading branch information
DutchmanNL authored Aug 13, 2024
1 parent 1bf8b04 commit 2d9381a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class Discovergy extends utils.Adapter {
// Get all meters connected to Discovergy account
async doDiscovergyCall(endpoint, urlencoded_parameters) {

const requestUrl = `https://api.discovergy.com/public/v1/${endpoint}?${urlencoded_parameters}`;
const requestUrl = `https://api.inexogy.com/public/v1/${endpoint}?${urlencoded_parameters}`;

try {
await request({
Expand Down Expand Up @@ -157,7 +157,7 @@ class Discovergy extends utils.Adapter {
async doDiscovergyMeter(endpoint, urlencoded_parameters, meterId) {
try {
const stateName = this.allMeters[meterId].serialNumber;
const requestUrl = `https://api.discovergy.com/public/v1/${endpoint}?meterId=${meterId}`;
const requestUrl = `https://api.inexogy.com/public/v1/${endpoint}?meterId=${meterId}`;
await request({
url: requestUrl,
headers: {
Expand Down

0 comments on commit 2d9381a

Please sign in to comment.