Support for http request xpath return format

master
Gordon Williams 2023-06-30 11:28:43 +01:00
parent 69d6ae5828
commit 0ac8ac3ec6
3 changed files with 4 additions and 2 deletions

View File

@ -26,4 +26,5 @@
0.25: Added option to 'ignore' an app from the message
0.26: Change handling of GPS status to depend on GPS events instead of connection events
0.27: Issue newline before GB commands (solves issue with console.log and ignored commands)
0.28: Navigation messages no longer launch the Maps view unless they're new
0.28: Navigation messages no longer launch the Maps view unless they're new
0.29: Support for http request xpath return format

View File

@ -231,6 +231,7 @@
//send the request
var req = {t: "http", url:url, id:options.id};
if (options.xpath) req.xpath = options.xpath;
if (options.return) req.return = options.return; // for xpath
if (options.method) req.method = options.method;
if (options.body) req.body = options.body;
if (options.headers) req.headers = options.headers;

View File

@ -2,7 +2,7 @@
"id": "android",
"name": "Android Integration",
"shortName": "Android",
"version": "0.28",
"version": "0.29",
"description": "Display notifications/music/etc sent from the Gadgetbridge app on Android. This replaces the old 'Gadgetbridge' Bangle.js widget.",
"icon": "app.png",
"tags": "tool,system,messages,notifications,gadgetbridge",