Skip to content

Commit

Permalink
Fallback (Fetch when queryApi fails)
Browse files Browse the repository at this point in the history
  • Loading branch information
tkrofta committed Apr 16, 2021
1 parent 3ebdec0 commit 39c8e0b
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ module.exports = function (app) {
token: options.influxToken, // get from options
timeout: 10 * 1000 // 10sec timeout for health check
}, log)
appconfig.addInflux('url', options.influxUri)
appconfig.addInflux('url', options.influxUri+(influxConfig.organization==='' ? '/api/v2/query' : ''))
appconfig.addInflux('token', options.influxToken)
appconfig.addInflux('org', influxConfig.organization)
appconfig.addInflux('bucket', influxConfig.bucket)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "signalk-barograph",
"version": "0.3.0",
"version": "0.3.1",
"description": "SignalK plugin to influx environment data & Barograph to visualize atmospheric pressure",
"main": "index.js",
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion public/130.js

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions public/191.js

This file was deleted.

2 changes: 2 additions & 0 deletions public/485.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions public/191.js.LICENSE.txt → public/485.js.LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */

/*! https://mths.be/base64 v1.0.0 by @mathias | MIT license */

/*! https://mths.be/punycode v1.3.2 by @mathias */

/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
Expand Down
2 changes: 1 addition & 1 deletion public/remoteEntry.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 39c8e0b

Please sign in to comment.