![Cloud of Cards 19](http://html1.mh-extra.com/html/cloud-of-cards/19-living-rack/19-living-rack_assembly-manual_2626350018.webp)
P. 18/40
Ingredients
P. 18/40
Assembly guide
P. 18/40
How to use
P. 18/40
Additional information about the
Cloud of Cards Processing Library can be
accessed directly on the research blog
Processing
(B)
Library
Blueprints, assembly manual and recipes
Cloud of Cards Kit
Ingredients:
hardware
→ 1 server (Linux, MacOS & Apache), or more than one …
software
→ The installation pack for ownCloud (or Nextcloud, optional)
→ The latest version of Processing
→ The current version of the Cloud of Cards Processing Library
addon, to be installed beside your ownCloud/NextCloud
server installation and/or on your personal computer
for development purposes.
Assembly guide:
→ Download and install ownCloud server and ownCloud client
(you can also install the Nextcloud fork project which is very similar).
→ Download and install the Processing Development Environment (PDE).
→ Download and install Cloud of Cards Processing Library
‘all-in-one’ pack (ZIP) and read the manual and instructions.
→ Link the Library to your Processing sketch, as explained above.
→ Develop your own alternative cloud projects, interfaces and/or
behaviours.
→ You can also become the administrator of a distributed 5
Folders Cloud by installing the Cloud of Cards Processing Library
addon on a Linux/ownCloud server.
How to use:
To connect to the ownCloud server from Processing,
the first step is to create an OCServer object and use it to connect to your ownCloud account.
In your Processing project, it should basically read as follows:
import ch.fabric.processing.owncloud.OCServer;
OCServer is the only object that you can use. All actions are invoked through this object. You can refer to detailed documentation
or online examples if you want to see how to get the file listing of a directory, the CPU usage of the ownCloud server, etc.
// My main access to the ownCloud server
OCServer _myOCServer;
void setup() {
// —– Create a new access to an ownCloud server
_myOCServer = new OCServer(this);
// —– Define the targeted ownCloud server
boolean resServer = _myOCServer.setServer("YOUR_OWNCLOUD_ADDRESS");
if (resServer) {
boolean resLogin = _myOCServer.setAccess("YOUR_LOGIN","YOUR_PASSWORD");
print("[Processing setup()] - SUCCESS - Successfully connected to ownCloud, let's
work!");
} else {
print("[Processing setup()] - ERROR - Cannot connect to ownCloud server");
}
}
→