From 65d86baf8256ab6fc0c8256213f7502c3bff2b2a Mon Sep 17 00:00:00 2001 From: gcarron <gcarron@grandlyon.com> Date: Mon, 3 Oct 2022 14:38:57 +0200 Subject: [PATCH] fix: change konnector slug --- README.md | 43 ++++++++++++++++++++++++++----------------- importedData.json | 6 +++--- manifest.konnector | 2 +- package.json | 2 +- src/index.js | 2 +- 5 files changed, 32 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index eff7ba1..61399a0 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # enedis-sge-konnector -Retreving consumption data from Enedis SGE SOAP api +Retreving consumption data from Enedis SGE SOAP api ## Getting started @@ -42,40 +42,50 @@ Use the built-in continuous integration in GitLab. - [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/) - [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html) -*** +--- # Editing this README -When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thank you to [makeareadme.com](https://www.makeareadme.com/) for this template. +When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thank you to [makeareadme.com](https://www.makeareadme.com/) for this template. ## Suggestions for a good README + Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information. ## Name + Choose a self-explaining name for your project. ## Description + Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors. ## Badges + On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge. ## Visuals + Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method. ## Installation + Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection. ## Usage + Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README. ## Support + Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc. ## Roadmap + If you have ideas for releases in the future, it is a good idea to list them in the README. ## Contributing + State if you are open to contributions and what your requirements are for accepting them. For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self. @@ -83,27 +93,26 @@ For people who want to make changes to your project, it's helpful to have some d You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser. ## Authors and acknowledgment + Show your appreciation to those who have contributed to the project. ## License + For open source projects, say how it is licensed. ## Project status -If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers. +If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers. -[Cozy][cozy] <YOUR SUPER NEW KONNECTOR NAME> -======================================= +# [Cozy][cozy] <YOUR SUPER NEW KONNECTOR NAME> -What's Cozy? ------------- +## What's Cozy?  [Cozy] is a personal data 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. -What is this konnector about ? ------------------------------- +## What is this konnector about ? This konnector retrieves your <SOME DATA> and <SOME OTHER DATA> from <SERVICE> <YOUR DESCRIPTION HERE> @@ -112,8 +121,9 @@ This konnector retrieves your <SOME DATA> and <SOME OTHER DATA> from <SERVICE> If you want to work on this konnector and submit code modifications, feel free to open pull-requests! </br>See : -* the [contributing guide][contribute] for more information about how to properly open pull-requests. -* the [konnectors development guide](https://docs.cozy.io/en/tutorials/konnector/) + +- the [contributing guide][contribute] for more information about how to properly open pull-requests. +- the [konnectors development guide](https://docs.cozy.io/en/tutorials/konnector/) ### Run and test @@ -125,12 +135,14 @@ Create a `konnector-dev-config.json` file at the root with your test credentials "fields": {"login":"zuck.m@rk.fb", "password":"123456"} } ``` + Then : ```sh yarn yarn standalone ``` + For running the konnector connected to a Cozy server and more details see [konnectors tutorial](https://docs.cozy.io/en/tutorials/konnector/) ### Cozy-konnector-libs @@ -141,7 +153,6 @@ This connector uses [cozy-konnector-libs](https://github.com/cozy/cozy-konnector The lead maintainers for this konnector is <YOUR NAME> - ### Get in touch You can reach the Cozy Community by: @@ -152,13 +163,11 @@ You can reach the Cozy Community by: - Posting issues on the [Github repos][github] - Say Hi! on [Twitter] - -License -------- +## License <YOUR KONNECTOR NAME> is developed by <your name> and distributed under the [AGPL v3 license][agpl-3.0]. -[cozy]: https://cozy.io "Cozy Cloud" +[cozy]: https://cozy.io 'Cozy Cloud' [agpl-3.0]: https://www.gnu.org/licenses/agpl-3.0.html [libera]: https://web.libera.chat/#cozycloud [forum]: https://forum.cozy.io/ diff --git a/importedData.json b/importedData.json index f10553a..2bffb90 100644 --- a/importedData.json +++ b/importedData.json @@ -9,12 +9,12 @@ "doctypeVersion": 1, "metadataVersion": 1, "createdAt": "2022-09-27T09:28:57.802Z", - "createdByApp": "enedis-sge-grandlyon", + "createdByApp": "enedissgegrandlyon", "createdByAppVersion": "1.0.1", "updatedAt": "2022-09-27T09:32:18.359Z", "updatedByApps": [ { - "slug": "enedis-sge-grandlyon", + "slug": "enedissgegrandlyon", "date": "2022-09-27T09:32:18.359Z", "version": "1.0.1" } @@ -27,4 +27,4 @@ } } ] -} \ No newline at end of file +} diff --git a/manifest.konnector b/manifest.konnector index 9f38cba..db858bd 100644 --- a/manifest.konnector +++ b/manifest.konnector @@ -4,7 +4,7 @@ "type": "konnector", "language": "node", "icon": "icon.png", - "slug": "enedis-sge-grandlyon", + "slug": "enedissgegrandlyon", "source": "https://forge.grandlyon.com/web-et-numerique/llle_project/enedis-sge-konnector.git", "editor": "Cozy", "vendor_link": "Link to the target website", diff --git a/package.json b/package.json index 3bab086..64ee0af 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "enedissgekonnector", + "name": "enedissgegrandlyon", "version": "1.0.1", "description": "", "repository": { diff --git a/src/index.js b/src/index.js index 7bad919..fe9eaa8 100644 --- a/src/index.js +++ b/src/index.js @@ -50,7 +50,7 @@ let startDailyDateString = startDailyDate.format('YYYY-MM-DD') const startLoadDate = moment().subtract(7, 'day') const endDate = moment() const endDateString = endDate.format('YYYY-MM-DD') -const ACCOUNT_ID = isLocal() ? 'default_account_id' : 'enedis-sge-grandlyon' +const ACCOUNT_ID = isLocal() ? 'default_account_id' : 'enedissgegrandlyon' module.exports = new BaseKonnector(start) -- GitLab