INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: SOLVED: How to kick off Server Auto Import from any (other) PC?  (Read 814 times)

tzr916

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1391
SOLVED: How to kick off Server Auto Import from any (other) PC?
« on: October 20, 2018, 01:30:03 pm »

Right now I have a button in theater view that performs Server auto import on demand - C:\Windows\System32\MC24.exe /MCC 23020

Obviously that theater view button on Clients does nothing for the Server. So how can I kick off Server auto import without going to the Server and selecting that button? Is there a way to direct that command line to the Server IP or something?

Here's an example of the problem - I add 20 files to the folder that the MC Server is watching. It picks up 18 or 19 of them right away, but the last one or two are not picked up unless I perform an auto import manually. Or if I add my own cover art file for something, it wont' get picked up until I do a manual auto import. Etc...
Logged
JRiverMC v33 •Windows 10 Pro 64bit •Defender Exclusions •ṈŘ 3rd party AV
•ASUS TUF gaming WiFi z590 •Thermaltake Toughpower GX2 600W
•i7-11700k @ 3.6GHz~5GHz •32GB PC4-25600 DDR4
•OS on Crucial P5 Plus M.2 PCIe Gen4 •Tv Recordings on SATA 6TB WD Red Pro
•4 OTA & 6 CableCard SiliconDust Tuners
•nVidia RTX2060 •XBR65Z9D •AVRX3700H •Fluance 7.2.2 [FH]
•SMP1000DSPѫRSS315HE-22■DIYSG Cube-12
•eD LT.500ѫeD 13ov.2■eD A3-300

mattkhan

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4231
Re: How to kick off Server Auto Import from any (other) PC?
« Reply #1 on: October 20, 2018, 02:02:05 pm »

There is an MCC command in mcws you should be able to use - https://wiki.jriver.com/index.php/Web_Service_Interface
Logged

tzr916

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1391
Re: How to kick off Server Auto Import from any (other) PC?
« Reply #2 on: October 20, 2018, 02:57:19 pm »

Thanks. I see:
Quote
Import
         Imports files from a folder.
         Parameters:
            Path: The path to search for files. (default: )
            Block: Whether the import should finish before the function returns. (default: 0)
         Response:
         Examples:
http://ServerIP:52199/MCWS/v1/Library/Import?Block=0

But it looks like that is not really an Auto Import. All this can do is import files from a directory. But it doesn't perform any of the other functions that come along with an auto import, like tagging or getting cover art, etc.

Is there something more that I'm not getting?

Logged
JRiverMC v33 •Windows 10 Pro 64bit •Defender Exclusions •ṈŘ 3rd party AV
•ASUS TUF gaming WiFi z590 •Thermaltake Toughpower GX2 600W
•i7-11700k @ 3.6GHz~5GHz •32GB PC4-25600 DDR4
•OS on Crucial P5 Plus M.2 PCIe Gen4 •Tv Recordings on SATA 6TB WD Red Pro
•4 OTA & 6 CableCard SiliconDust Tuners
•nVidia RTX2060 •XBR65Z9D •AVRX3700H •Fluance 7.2.2 [FH]
•SMP1000DSPѫRSS315HE-22■DIYSG Cube-12
•eD LT.500ѫeD 13ov.2■eD A3-300

mattkhan

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4231
Re: How to kick off Server Auto Import from any (other) PC?
« Reply #3 on: October 20, 2018, 03:01:50 pm »

I mean the MCC endpoint which means you can send that same 23020 but via mcws
Logged

DJLegba

  • Citizen of the Universe
  • *****
  • Posts: 995
Re: How to kick off Server Auto Import from any (other) PC?
« Reply #4 on: October 20, 2018, 03:09:26 pm »

Another approach would be to address the reason for the initial partial import. This used to happen to me regularly. My NUC doesn't have WiFi so I was using an ethernet over powerline adapter, which was really slow. Copying a folder from my PC to the NUC took long enough that MC's auto-import task was finding new files before the copy was complete. I made some network changes that allowed me to run a cable to the NUC and now that I have a gigabit ethernet connection I never get partial imports.
Logged

tzr916

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1391
Re: How to kick off Server Auto Import from any (other) PC?
« Reply #5 on: October 20, 2018, 03:22:16 pm »

Server is hard wired GB...
Wondering if I can do something similar to how I can reboot my Silicon Dust tuners with a windows shortcut:
"C:\Program Files\Silicondust\HDHomeRun\hdhomerun_config.exe" 192.168.1.xx set /sys/restart self
Logged
JRiverMC v33 •Windows 10 Pro 64bit •Defender Exclusions •ṈŘ 3rd party AV
•ASUS TUF gaming WiFi z590 •Thermaltake Toughpower GX2 600W
•i7-11700k @ 3.6GHz~5GHz •32GB PC4-25600 DDR4
•OS on Crucial P5 Plus M.2 PCIe Gen4 •Tv Recordings on SATA 6TB WD Red Pro
•4 OTA & 6 CableCard SiliconDust Tuners
•nVidia RTX2060 •XBR65Z9D •AVRX3700H •Fluance 7.2.2 [FH]
•SMP1000DSPѫRSS315HE-22■DIYSG Cube-12
•eD LT.500ѫeD 13ov.2■eD A3-300

tzr916

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1391
Re: How to kick off Server Auto Import from any (other) PC?
« Reply #6 on: October 20, 2018, 03:24:11 pm »

I mean the MCC endpoint which means you can send that same 23020 but via mcws
Thanks, need help with that please... I type something into a browser address? or make a shortcut or?
Logged
JRiverMC v33 •Windows 10 Pro 64bit •Defender Exclusions •ṈŘ 3rd party AV
•ASUS TUF gaming WiFi z590 •Thermaltake Toughpower GX2 600W
•i7-11700k @ 3.6GHz~5GHz •32GB PC4-25600 DDR4
•OS on Crucial P5 Plus M.2 PCIe Gen4 •Tv Recordings on SATA 6TB WD Red Pro
•4 OTA & 6 CableCard SiliconDust Tuners
•nVidia RTX2060 •XBR65Z9D •AVRX3700H •Fluance 7.2.2 [FH]
•SMP1000DSPѫRSS315HE-22■DIYSG Cube-12
•eD LT.500ѫeD 13ov.2■eD A3-300

mattkhan

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4231
Re: How to kick off Server Auto Import from any (other) PC?
« Reply #7 on: October 20, 2018, 03:53:48 pm »

Thanks, need help with that please... I type something into a browser address? or make a shortcut or?
this one so something like http://myserver:52199/MCWS/v1/Control/MCC?Command=23020

Code: [Select]
  MCC
         Perform a Media Core Command (MCC).
         Parameters:
            Command: The command (an integer value from the MC_COMMANDS enumeration; visit DevZone for the command list). (default: )
            Parameter: The parameter to the command. (default: 0)
            Block: 0: return immediately (command is posted and processed asynchronously); 1: wait for the command to finish before returning. (default: 0)
            Zone: The zone the command is targetted for. (default: -1)
            ZoneType: The type of value provided in 'Zone' (ID: zone id; Index: zone index; Name: zone name). (default: ID)
         Response:
         Examples:
            Play / pause
            Shuffle Playing Now
Logged

tzr916

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1391
Re: How to kick off Server Auto Import from any (other) PC?
« Reply #8 on: October 20, 2018, 04:27:02 pm »

Got it. That works perfectly. Thanks so much!
Logged
JRiverMC v33 •Windows 10 Pro 64bit •Defender Exclusions •ṈŘ 3rd party AV
•ASUS TUF gaming WiFi z590 •Thermaltake Toughpower GX2 600W
•i7-11700k @ 3.6GHz~5GHz •32GB PC4-25600 DDR4
•OS on Crucial P5 Plus M.2 PCIe Gen4 •Tv Recordings on SATA 6TB WD Red Pro
•4 OTA & 6 CableCard SiliconDust Tuners
•nVidia RTX2060 •XBR65Z9D •AVRX3700H •Fluance 7.2.2 [FH]
•SMP1000DSPѫRSS315HE-22■DIYSG Cube-12
•eD LT.500ѫeD 13ov.2■eD A3-300
Pages: [1]   Go Up