Cozy Orange Livebox konnector
Cozy is a platform that brings all your web services in the same private space. With it, your webapps and your devices can share data easily, providing you with a new experience. You can install Cozy on your own hardware where no one's tracking you.
This connector will download data from your Orange account on your Cozy. It will automatically download the list of movies you downloaded in free (TV Replay) or paid VOD from 01/01/2015 (adult contents are not included). You will be able to use these data in different apps in your Cozy.
If you want to work on this konnector and submit code modifications, feel free to open pull-requests! See the [contributing guide][contribute] for more information about how to properly open pull-requests.
If you have a running accessible cozy-stack you can test your modifications to the konnector without installing and/or updating the konnector in the cozy-stack :
You first need an installed nodejs (LTS version is fine).
Then just run (but you need to have proper COZY_CREDENTIALS, COZY_URL and COZY_FIELDS environment variables):
npm install --global yarn
Then run (but you have to have proper COZY_CREDENTIALS, COZY_URL and COZY_FIELDS environment variables):
yarn
yarn start
Where:
- COZY_CREDENTIALS needs to be the result of
cozy-stack instances token-cli <instance name> <scope>
- COZY_URL is the full http url to your cozy
- COZY_FIELDS is something like :
{
"data":{
"attributes":{
"arguments":{
"account":"cf31eaef5d899404a7e8c3737c1c2d1f",
"folder_to_save":"folderPath",
"slug":"mykonnector"
}
}
}
}
The "account" field is the id of the record with doctype "io.cozy.accounts" which will be used as parameters for your konnector.
If you do not want to have to install the konnector on a cozy v3 to test it, you can register the konnector as an OAuth application with the following commands :
yarn
yarn dev
This command will register your konnector as an OAuth application to the cozy-stack. By default, the cozy-stack is supposed to be located in http://cozy.tools:8080. If this is not your case, just update the COZY_URL field in [./data/env.js].
After that, your konnector is running but should not work since you did not specify any credentials to the target service. You can do this in a [./data/env_fields.json] (you have [./data/env_fields.json.template] available as a template)
Now run yarn init:dev:account
to create an account in the targeted cozy which will be used by
the connector (the id of the account is saved in ./data/account.txt)
Now run yarn dev
one more time, it should be ok.
If you do not want to need to have an accessible cozy-stack, just run :
yarn
yarn standalone
The requests to the cozy-stack will be stubbed using the [./data/fixture.json] file as source of data and when cozy-client is asked to create or update data, the data will be outputed to the console. The bills (or any file) will be saved in the ./data directory.
The lead maintainers for this konnector is
You can reach the Cozy Community by:
- Chatting with us on IRC #cozycloud on Freenode
- Posting on our Forum
- Posting issues on the Github repos
- Say Hi! on Twitter
Orange VOD konnector is developed by cozy and distributed under the AGPL v3 license.