If you know how to use git, you can git clone the repository here ->
https://github.com/ddurdle/PERL-CloudSync
Otherwise, you can download the code from
https://github.com/ddurdle/PERL-CloudSyn...master.zip
You'll obviously need PERL installed.
To get hive registered, run the script:
perl console.pl
At the > prompt, type
load h 1 yourusername@
email.com
It will prompt you for your password the first time. Everytime afterwards, it will log you in without asking the password.
You'll need the folder ID for the source folder in hive. For example, to get your Videos folder, in the Hive KODI plugin, right click on the folder and select Save Bookmark. A folder named SAVED|###### will be saved in the Documents folder. The ### part is your folder ID. You can do this for any folder, including a folder belonging to a friend that is shared with you.
With knowing the folder ID, to generate a list of all download URLs that can be fed into a download application, at the > prompt, type
sync download folderid ###### 1
where ###### is the folder id noted earlier. The 1 is important as it will indicate you want to use the service logged in at #1 (when you logged in at the first step).
To sync files to a google drive or one drive, you'll need to signup for a OAUTH2 with Google or Microsoft (client ID and client secret). Help to do this for Google:
http://dmdsoftware.net/GoogleSetupOAUTH2...AUTH2.html
Provide your pertinent client id and client secret to the config.cfg (which is created first time you run):
# google OAUTH2
use constant CLIENT_ID => '';
use constant CLIENT_SECRET => '';
# one drive OAUTH2
use constant ODCLIENT_ID => '';
use constant ODCLIENT_SECRET => '';
To register a Google Drive instance, run perl console.pl and at the > prompt type,
load gd 2 username
Navigate to the URL provided and after you authorize the application, paste the CODE to the screen.
To register a One Drive instance, run perl console.pl and at the > prompt type,
load od 3 username
Navigate to the URL provided and after you authorize the application, paste the CODE to the screen.
To sync files between Hive -> google Drive + One Drive, run perl console.pl and at the > prompt, type
load h 1 yourusername@
email.com
load gd 2 username
load od 3 username
sync folderid ##### 1 2 3
To sync files between Hive -> google Drive, run perl console.pl and at the > prompt, type
load h 1 yourusername@
email.com
load gd 2 username
sync folderid ##### 1 2
To sync files between Hive -> One Drive, run perl console.pl and at the > prompt, type
load h 1 yourusername@
email.com
load od 2 username
sync folderid ##### 1 2
You can also save all these commands in a txt file, such as :
mysync.txt consisting of:
load h 1 yourusername@
email.com
load gd 2 username
load od 3 username
sync folderid ##### 1 2 3
then you can run perl console.pl -c mysync.txt, and it will run the commands as if you typed them. Saves typing and avoids typos.