@artjuice
OK so if its for monitoring only, try this solution. I have foreseen a way to actually feed webinterface job viewer from external sources, e.g. i use it to display jobs from some other transcoder at work.
How it works is that you "just" write your own "jobfetcher.js" file and place it in a special location:
Code: Select all
c:\PATH_TO\webinterface\alternate-server\jobfetcher.js
If this file exists, webint will use it for the periodic jobfetching.
I prepared a jobfetcher.js for showcase for you, it is able to pull jobs from multiple ffastrans hosts.
So instructions are:
-) download this file and rename to jobfetcher.js
-) create folder /alternate-server in webinterface root (next to server.exe) and place new jobfetcher.js there
-) open jobfetcher.js in a text editor and change line 12 to your needs (edit HOSTS array)
-) restart webinterface, it should now pull active and history jobs from all hosts that you specified in the HOSTS array
NOTE this is for webinterface 1.3.9 only (and below probably), the next webint version has huge internal changes regarding jobfetching and internal database. But if you go with it, it will be very easy for me to prepare a matching jobfetcher.js for the new webint version too.
Another trick in this direction is that you can override all inbuilt css (e.g. hide any element) when you place override.css in alternate-server/css folder. For example, i use this css override in my installation where i show jobs from external encoders, it should hide all UI elements that do not work/make sense when used with jobfetching from 3rdparty system:
File: /webinterface/alternate-server/css/override.css
Code: Select all
.ffastransheadertext{
display:none !important;
}
button[name=b_delsel] {
display:unset;
}
.context-menu-list,.btn, .div_incoming_jobs,.helmet,.brand_image{
display:none;
}
#GROUPRIGHT_MENU_VIEW_SUBMIT_JOBS, #GROUPRIGHT_MENU_VIEW_FARM_ADMIN, #GROUPRIGHT_MENU_VIEW_SCHEDULER{
display:none !important;
}
.div_active_jobs{
margin-left:450px !important
}