![]() |
|
Updating the library - Printable Version +- MinimServer Forum (https://forum.minimserver.com) +-- Forum: MinimServer (/forumdisplay.php?fid=1) +--- Forum: General (/forumdisplay.php?fid=2) +--- Thread: Updating the library (/showthread.php?tid=2448) Pages: 1 2 |
RE: Updating the library - DavidHB - 10-09-2015 11:50 (09-09-2015 21:01)simoncn Wrote: There should be a scripting solution for Windows fairly soon. I will keep you posted. Would it be possible for that scripting solution to invoke a rescan on my NAS via MinimWatch on the PC? David RE: Updating the library - simoncn - 10-09-2015 17:46 (10-09-2015 11:50)DavidHB Wrote: Would it be possible for that scripting solution to invoke a rescan on my NAS via MinimWatch on the PC? The solution I am working on would not support scripting for MinimWatch, only MinimServer. I am also working on a web API for MinimServer and you might be able to invoke that from the PC using something like curl. RE: Updating the library - DavidHB - 11-09-2015 00:21 (10-09-2015 17:46)simoncn Wrote: The solution I am working on would not support scripting for MinimWatch, only MinimServer. Never mind. It was just a thought. (10-09-2015 17:46)simoncn Wrote: I am also working on a web API for MinimServer and you might be able to invoke that from the PC using something like curl. This is much better news. A more fully featured web API would be really useful, as it would allow me to control MinimServer from the tablet where the control point resides. Curl (which I was not previously aware of) looks interesting. I've had a quick look at the manual, and it is easy to see how a command to open the web interface would work. It's less easy to see how the rescan would be invoked, but as that would also depend on the design of the web interface, it's probably best to put that question to one side for now. David RE: Updating the library - simoncn - 11-09-2015 10:24 (11-09-2015 00:21)DavidHB Wrote: [quote='simoncn' pid='17542' dateline='1441903570']The solution I am The web API is not an interactive web page. The term "API" is an abbreviation for Application Programming Interface and a web API enables programmatic control of a server such as MinimServer using a web protocol such as HTTP (see this page). Quote:Curl (which I was not previously aware of) looks interesting. I've had a quick look at the manual, and it is easy to see how a command to open the web interface would work. It's less easy to see how the rescan would be invoked, but as that would also depend on the design of the web interface, it's probably best to put that question to one side for now. You would use curl to send an HTTP POST request to MinimServer (running on a different machine) to invoke an operation via the web API. |