Skip to content

Commit

Permalink
change: add debugging prints
Browse files Browse the repository at this point in the history
  • Loading branch information
Aetherinox committed Jul 20, 2024
1 parent 22e0083 commit 87bcd69
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -675,13 +675,17 @@ function ready() {

async function GetMessages() {

console.log(`CHECKING FOR NEW MESSAGES`);

const cfgTopics = store.get('topics');
const cfgInstanceURL = store.get('instanceURL');
const uri = `${cfgInstanceURL}/${cfgTopics}/json?since=${_Interval}s&poll=1`;
const json = await GetMessageData(uri);

console.log(`CHECKING FOR NEW MESSAGES`);
console.log(`---------------------------------------------------------`);
console.log(`InstanceURL ........... ${cfgInstanceURL}`);
console.log(`Query ................. ${uri}`);
console.log(`Topics ................ ${cfgTopics}`);

/*
Loop ntfy api results.
only items with event = 'message' will be allowed through to display in a notification.
Expand Down

0 comments on commit 87bcd69

Please sign in to comment.