2014-11-20 13:21:19 +00:00
=== Session creation ===
2018-05-15 20:28:52 -04:00
Url: Server url + "/server/config.php"
2014-11-20 13:21:19 +00:00
Parameters as GET:
* login: User's login in plain text.
* password: User's password in plain text.
* version: Client's version, for example 3.3.1762.
* os: Computer's operating system, at the moment only "windows", "mac" and "linux" are supported.
* bits: Architecture size, at the moment only "32bit" and "64bit" are supported.
2018-05-15 20:27:22 -04:00
* cpu_family: CPU's family, on linux it can be found in /proc/cpuinfo via the attribute "cpu family".
* cpu_model: CPU's model, on linux it can be found in /proc/cpuinfo via the attribute "model".
* cpu_model_name: CPU's model in human readable format, on linux it can be found in /proc/cpuinfo via the attribute "model name".
* cpu_cores: Number of cores (or thread) available.
2018-05-16 00:24:27 -04:00
* ram: Memory available (in kilobytes).
2018-05-15 20:27:22 -04:00
* ram_max: Maximum memory allowed for renderer (in kilobytes).
* extras (optional): Extra data used for the configuration.
* hostname (optional): Hostname of the machine, useful for distinguishing multiple machines with the same hardware configuration. Only used for display on the website.
2019-01-03 13:36:26 +01:00
* ui (optional): User interface used by the client, useful for statistics
2014-11-20 13:21:19 +00:00
Answer in case of error:
<?xml version="1.0" encoding="utf-8" ?>
<config status="X" />
where X:
2018-05-15 20:27:22 -04:00
* 100 => No version given.
2014-11-20 13:21:19 +00:00
* 101 => Client is too old.
2014-12-01 00:01:44 +00:00
* 102 => Authentication failure.
2018-05-15 20:27:22 -04:00
* 103 => WebSession has expired.
2014-11-20 13:21:19 +00:00
* 104 => Missing parameter.
* something else => Unknown error.
Answer with no error:
2018-05-15 20:27:22 -04:00
A status of "0" to specify everything is okay, plus a list of URL paths for request, validation job, etc.
A path is provided for error, job request, job validation, download needed file, heartbeat (keepmealive), logout, thumbnail of last frame rendered and how many credits have been earned so far.
The maximum duration between two heartbeats in seconds is given by the attribute "max-period".
2014-11-20 13:21:19 +00:00
<?xml version="1.0" encoding="utf-8" ?>
<config status="0">
<request type="validate-job" path="/server/send_frame.php" />
<request type="request-job" path="/server/request_job.php" />
<request type="download-archive" path="/server/download.php" />
<request type="error" path="/server/error.php" />
<request type="keepmealive" path="/server/keepmealive.php" max-period="1440" />
<request type="logout" path="/account.php?mode=logout&worker=1" />
2016-04-27 19:40:02 +02:00
<request type="last-render-frame" path="/ajax.php?action=webclient_get_last_render_frame_ui&type=raw"/>
<request type="credits-earned" path="/ajax.php?action=credits_earned_on_session"/>
2014-11-20 13:21:19 +00:00
</config>
=== Session end ===
Url: use the request type "logout" from the configuration answer.
No additional parameter is required.
=== Download renderer archive ===
Url: use the request type "download-archive" from the configuration answer.
Parameter as GET or POST:
* type: "binary"
2018-05-15 20:27:22 -04:00
* job: ID of the job
2014-11-20 13:21:19 +00:00
Answer:
No error: the file
On error: an 404 http code
=== Download job archive ===
Url: use the request type "download-archive" from the configuration answer.
Parameter as GET or POST:
* type: "job"
2018-05-15 20:27:22 -04:00
* job: ID of the job
2014-11-20 13:21:19 +00:00
Answer:
No error: the file
On error: an 404 http code
=== Job request ===
Url: use the request type "request-job" from the configuration answer.
Parameter as GET or POST:
2018-05-15 20:27:22 -04:00
* computemethod: What compute types are available on this machine. 0 for CPU or GPU, 1 for CPU only, 2 for GPU only.
2015-06-09 20:16:12 +01:00
* cpu_cores: Number of cores currently available for rendering (optional).
2018-08-24 19:46:03 +02:00
* gpu_type: GPU's type, usually CUDA or OPENCL
2015-06-09 20:20:56 +01:00
* gpu_model: Model name of the GPU available for rendering
2018-05-15 20:27:22 -04:00
* gpu_ram: GPU memory size (in bytes)
2014-11-20 13:21:19 +00:00
Answer in case of error:
<?xml version="1.0" encoding="utf-8" ?>
<jobrequest status="X" />
where X:
* 0 => No error
* 200 => No job available, the client should wait few minutes before requesting a new job (typical value is 1hour).
* 201 => The client does not have rendering right.
2018-05-15 20:27:22 -04:00
* 202 => Client's session is dead. Client should send another config request before requesting a new job.
* 203 => Client's session has been disabled (usually because the client is sending broken frames). The client should alert the end user and logout.
* 205 => No renderer is available for Client's hardware (pair of OS and architecture). For example, Blender is not available for MacOS 32bits.
* 206 => Server is in maintenance mode, and is not issuing jobs (but it will keep the session alive). Try again in a few minutes.
* 207 => Server is overloaded, and is not issuing jobs (but it will keep the session alive). Try again in a few minutes.
2014-11-20 13:21:19 +00:00
* something else => unknown error
Answer with no error:
<?xml version="1.0" encoding="utf-8" ?>
<jobrequest status="0">
<frames remaining="1187" />
2016-10-12 00:34:51 +02:00
<job id="1" use_gpu="1" archive_md5="11d046f9912267a29f99a731c7e4e3b0" path="compute_method.blend" frame="0340" synchronous_upload="1" name="human name" password="some_passowrd">
2014-11-20 13:21:19 +00:00
<renderer md5="ceda00890578762c6fac96f1a13f671a" commandline=".e --factory-startup --disable-autoexec -b .c -o .o -f .f -x 1" update_method="remainingtime"/>
<script>import bpy
# disable the GPU for Cycles
bpy.context.user_preferences.system.compute_device_type = "NONE"
# if it's a movie clip, switch to png
fileformat = bpy.context.scene.render.image_settings.file_format
if fileformat != 'BMP' and fileformat != 'PNG' and fileformat != 'JPEG' and fileformat != 'TARGA' and fileformat != 'TARGA_RAW' :
bpy.context.scene.render.image_settings.file_format = 'PNG'
#bpy.context.scene.render.file_extension = '.png'
bpy.context.scene.render.filepath = ''
</script>
</job>
</jobrequest>
=== Job validation ===
Url: use the request type "validate-job" from the configuration answer.
Parameter as GET or POST:
2018-05-15 20:27:22 -04:00
* job: Job ID
2014-11-20 13:21:19 +00:00
* frame: Job's frame number
* rendertime: Job's render time
* extras: Job's extra data
* file: Frame to validate as form-data post
* memoryused (optional): Max memory used for the render
* cores (optional): Number of cores used from the render
Parameter as form-urlencoded:
* file: the frame to send
Answer in case of error:
<jobvalidate status="X" />
where X:
* 0 => No error
* 300 => Missing parameter in request.
* 301 => Client generated a broken frame (usually an too old gpu who generated black frame).
2018-05-15 20:27:22 -04:00
* 302 => File uploaded was not an image.
2014-11-20 13:21:19 +00:00
* 303 => Failed to upload the image to the server.
* 304 => Client's session is disabled or dead.
* something else => unknown error
2018-05-15 20:27:22 -04:00
=== Session heartbeat ===
2014-11-20 13:21:19 +00:00
Url: use the request type "keepmealive" from the configuration answer.
Parameter as GET or POST:
2018-05-15 20:27:22 -04:00
* job: ID of the rendering job
2014-11-20 13:21:19 +00:00
* frame: Frame number of the rendering job
* extras: Extras data get on job request of the rendering job
2015-04-27 20:35:44 +01:00
* rendertime: current render time (optional)
* remainingtime: current remaining time to render the frame (optional)
2014-11-20 13:21:19 +00:00
Answer:
<?xml version="1.0" encoding="utf-8" ?>
<keepmealive status="X" />
where X:
* 0 => No error.
2018-05-15 20:27:22 -04:00
* 400 => Stop this job (usually because the job has been cancelled).
2014-11-20 13:21:19 +00:00
=== Error send ===
Url: use the request type "error" from the configuration answer.
Parameter as GET or POST:
2018-05-15 20:27:22 -04:00
* job: job ID
2014-11-20 13:21:19 +00:00
* frame: job's frame number
* extras: job's extra data
* rendertime (optional): job's frame number
2017-03-29 21:46:10 +02:00
* memoryused (optional): max memory used for the render (in kilo bytes)
2014-11-20 13:21:19 +00:00
Parameter as form-urlencoded:
* file: the error log to send
Answer:
<?xml version="1.0" encoding="utf-8" ?>
<error status="X" />
where X:
* 0 => No error