Additional HTTP Endpoints
Overview
Finding/Changing the HTTP Port
defaults write com.NewBlue.Captivate `Generic HTML.httpPort` 9099
defaults read com.NewBlue.Captivate `Generic HTML.httpPort`/temp/FOLDER/FILE.EXT
FOLDER/FILE.EXTconst url = 'https://newbluefx.com/wp-content/uploads/2019/07/nb_logo.png';
const data = await ServiceHandler.scheduler.scheduleCommand('downloadImage', { url }, {});
/*
{
"command": "downloadImage",
"mime": "image/png",
"path": "/private/var/folders/gj/8bp694f15qb2zhl4q3l5ns700000gn/T/TitlerLive/f94ffb6f-5c98-4f46-a711-36e35f53a1c2/43ab9e0e-7c69-49cf-8530-e0f54dc9bd0e.png",
"reply": "downloadImage",
"size": "2601",
"success": true,
"tempUrl": "http://192.168.10.50:9022/temp/f94ffb6f-5c98-4f46-a711-36e35f53a1c2/43ab9e0e-7c69-49cf-8530-e0f54dc9bd0e.png",
"url": "https://newbluefx.com/wp-content/uploads/2019/07/nb_logo.png"
}
*/
console.log(data);/api/title/TITLE_ID
TITLE_ID/api/tunnel
Additional NodeJS-basedased Endpoints
Using the /discover/:name endpoint
/discover/:name endpointLast updated