diff --git a/app/ecolyo.9dd9c82dca1ad99a8c8b.js b/app/ecolyo.292e4ea35dfac4afb00e.js similarity index 99% rename from app/ecolyo.9dd9c82dca1ad99a8c8b.js rename to app/ecolyo.292e4ea35dfac4afb00e.js index 40e7fd2d53feb90979bb777c2bae8a8e32ec1064..01225152fa2b1eb0342b968cea10b7125b093424 100644 --- a/app/ecolyo.9dd9c82dca1ad99a8c8b.js +++ b/app/ecolyo.292e4ea35dfac4afb00e.js @@ -11524,7 +11524,7 @@ var EnvironementService = /*#__PURE__*/function () { if (this.getEnvironement() === 'production') { return 'https://ecolyo-agent.grandlyon.com'; } else { - return 'https://ecolyo-agent.self-data.alpha.grandlyon.com'; + return 'https://ecolyo-agent-rec.grandlyon.com'; } } }, { @@ -11695,6 +11695,8 @@ var _tuto2 = _interopRequireDefault(__webpack_require__("+W6X")); var _tuto3 = _interopRequireDefault(__webpack_require__("HA1A")); +var _environement = _interopRequireDefault(__webpack_require__("Oe7S")); + (function () { var enterModule = typeof reactHotLoaderGlobal !== 'undefined' ? reactHotLoaderGlobal.enterModule : undefined; enterModule && enterModule(module); @@ -11730,7 +11732,7 @@ var TutorialWelcome = function TutorialWelcome(_ref) { setTutoSlide = _useState2[1]; var setTutorialWelcomeViewed = (0, _react.useCallback)( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() { - var mailService, username, template, mailData; + var mailService, username, environementService, template, mailData; return _regenerator.default.wrap(function _callee$(_context) { while (1) { switch (_context.prev = _context.next) { @@ -11742,10 +11744,17 @@ var TutorialWelcome = function TutorialWelcome(_ref) { username = instanceSettings.public_name; } + environementService = new _environement.default(); template = welcomeTemplate({ title: 'Bienvenue sur Ecolyo !', username: username, - clientUrl: client.options.uri + clientUrl: client.options.uri, + cloudImageUrl: environementService.getPublicURL() + '/assets/godCloud.svg', + ecolyoPhoneImageUrl: environementService.getPublicURL() + '/assets/ecolyoPhone.svg', + androidImageUrl: environementService.getPublicURL() + '/assets/android.png', + menuImageUrl: environementService.getPublicURL() + '/assets/menu.svg', + appleImageUrl: environementService.getPublicURL() + '/assets/apple.svg', + shareImageUrl: environementService.getPublicURL() + '/assets/share.svg' }); mailData = { mode: 'noreply', @@ -11763,7 +11772,7 @@ var TutorialWelcome = function TutorialWelcome(_ref) { } })); - case 7: + case 8: case "end": return _context.stop(); } @@ -21617,7 +21626,19 @@ module.exports = (Handlebars["default"] || Handlebars).template({"1":function(co + ((stack1 = container.invokePartial(__webpack_require__("NkNm"),depth0,{"name":"base/header","fn":container.program(1, data, 0),"inverse":container.noop,"data":data,"helpers":helpers,"partials":partials,"decorators":container.decorators})) != null ? stack1 : "") + "\n <mj-section background-color=\"#121212\">\n <mj-column vertical-align=\"middle\">\n <mj-text color=\"white\" font-weight=\"900\" font-size=\"24px\">\n Bonjour " + alias2(alias1((depth0 != null ? lookupProperty(depth0,"username") : depth0), depth0)) - + ",\n </mj-text>\n <mj-text color=\"white\" font-weight=\"400\" font-size=\"18px\"> Bravo, vous faites partie des utilisateurs d’Ecolyo.\n </mj-text>\n\n </mj-column>\n <mj-column vertical-align=\"middle\">\n <mj-image src=\"https://ecolyo-agent.self-data.alpha.grandlyon.com/assets/godCloud.svg\" width=\"130px\" align=\"center\"></mj-image>\n </mj-column>\n </mj-section>\n\n <mj-section background-color=\"#1B1C22\">\n <mj-column>\n <mj-text color=\"white\" font-weight=\"900\" font-size=\"24px\" align=\"center\">\n Vous pouvez dès maintenant ajouter Ecolyo sur votre téléphone !\n </mj-text>\n <mj-image src=\"https://ecolyo-agent.self-data.alpha.grandlyon.com/assets/ecolyoPhone.svg\" width=\"92px\" align=\"center\"></mj-image>\n <mj-text color=\"white\" font-weight=\"600\" font-size=\"18px\">\n Comment faire ?\n </mj-text>\n <mj-text color=\"white\" font-weight=\"600\" font-size=\"18px\">\n Accédez au service en cliquant sur le lien situé en fin d’email. Puis une fois la page web du service ouverte dans votre navigateur :\n </mj-text>\n\n <mj-hero background-color=\"#1B1C22\" padding-top=\"15px\">\n <mj-text color=\"#F1C017\" font-weight=\"600\" font-size=\"18px\">\n <img style=\"vertical-align: middle; margin-right: 12px\" src=\"https://ecolyo-agent.self-data.alpha.grandlyon.com/assets/android.png\" />\n Ecolyo pour Android\n </mj-text>\n </mj-hero>\n\n <mj-hero background-color=\"#1B1C22\" padding-top=\"15px\">\n <mj-text color=\"white\" font-weight=\"600\" font-size=\"18px\">\n 1 - Appuyez sur les trois petits points du menu en haut à droite\n <img style=\"vertical-align: middle; margin-left: 12px\" src=\"https://ecolyo-agent.self-data.alpha.grandlyon.com/assets/menu.svg\" />\n </mj-text>\n </mj-hero>\n <mj-text color=\"white\" font-weight=\"600\" font-size=\"18px\">\n 2 - Sélectionnez \"Ajouter à l'écran d'accueil\".\n </mj-text>\n <mj-text color=\"white\" font-weight=\"600\" font-size=\"18px\">\n 3 - Nommez la page et appuyez sur \"Ajouter\". Un raccourci vers la page web est apparu sur l'écran d'accueil de votre smartphone.\n </mj-text>\n\n <mj-hero background-color=\"#1B1C22\" padding-top=\"15px\">\n <mj-text color=\"#F1C017\" font-weight=\"600\" font-size=\"18px\">\n <img style=\"vertical-align: middle; margin-right: 12px\" src=\"https://ecolyo-agent.self-data.alpha.grandlyon.com/assets/apple.png\" />\n Ecolyo pour Iphone\n </mj-text>\n </mj-hero>\n\n <mj-hero background-color=\"#1B1C22\" padding-top=\"15px\" >\n <mj-text color=\"white\" font-weight=\"600\" font-size=\"18px\" vertical-align=\"middle\">\n 1 - Cliquez sur partager (carré avec flèche pointant vers le haut)\n <img style=\"margin-left: 12px; height: 24px; width: 14px\" src=\"https://ecolyo-agent.self-data.alpha.grandlyon.com/assets/share.svg\" />\n </mj-text>\n </mj-hero>\n <mj-text color=\"white\" font-weight=\"600\" font-size=\"18px\">\n 2 - Dans le menu ouvert, descendez et sélectionnez sur « Sur l’Écran d’Accueil ».\n </mj-text>\n <mj-text color=\"white\" font-weight=\"600\" font-size=\"18px\">\n 3 - Cliquez sur « Ajouter ». Un raccourci vers Ecolyo aura ainsi été créé sur votre écran d’accueil. Vous pourrez y accéder comme pour une autre application.\n </mj-text>\n <mj-text color=\"white\" font-weight=\"600\" font-size=\"18px\">\n Attention cette manipulation ne fonctionne que si vous avez ouvert le lien dans Safari.\n </mj-text>\n\n </mj-column>\n </mj-section>\n\n <mj-section background-color=\"#1B1C22\">\n <mj-column>\n <mj-button color=\"black\" background-color=\"#F1C017\" font-size=\"20px\" font-weight=\"700\" font-family=\"Lato\" css-class=\"button-small\">\n <img style=\"vertical-align: middle; margin-right: 12px\" src=\"https://ecolyo.com/assets/ecolyo-icon.svg\" />\n <a href=\"" + + ",\n </mj-text>\n <mj-text color=\"white\" font-weight=\"400\" font-size=\"18px\"> Bravo, vous faites partie des utilisateurs d’Ecolyo.\n </mj-text>\n\n </mj-column>\n <mj-column vertical-align=\"middle\">\n <mj-image src=" + + alias2(alias1((depth0 != null ? lookupProperty(depth0,"cloudImageUrl") : depth0), depth0)) + + " width=\"130px\" align=\"center\"></mj-image>\n </mj-column>\n </mj-section>\n\n <mj-section background-color=\"#1B1C22\">\n <mj-column>\n <mj-text color=\"white\" font-weight=\"900\" font-size=\"24px\" align=\"center\">\n Vous pouvez dès maintenant ajouter Ecolyo sur votre téléphone !\n </mj-text>\n <mj-image src=" + + alias2(alias1((depth0 != null ? lookupProperty(depth0,"ecolyoPhoneImageUrl") : depth0), depth0)) + + " width=\"92px\" align=\"center\"></mj-image>\n <mj-text color=\"white\" font-weight=\"600\" font-size=\"18px\">\n Comment faire ?\n </mj-text>\n <mj-text color=\"white\" font-weight=\"600\" font-size=\"18px\">\n Accédez au service en cliquant sur le lien situé en fin d’email. Puis une fois la page web du service ouverte dans votre navigateur :\n </mj-text>\n\n <mj-hero background-color=\"#1B1C22\" padding-top=\"15px\">\n <mj-text color=\"#F1C017\" font-weight=\"600\" font-size=\"18px\">\n <img style=\"vertical-align: middle; margin-right: 12px\" src=" + + alias2(alias1((depth0 != null ? lookupProperty(depth0,"androidImageUrl") : depth0), depth0)) + + " />\n Ecolyo pour Android\n </mj-text>\n </mj-hero>\n\n <mj-hero background-color=\"#1B1C22\" padding-top=\"15px\">\n <mj-text color=\"white\" font-weight=\"600\" font-size=\"18px\">\n 1 - Appuyez sur les trois petits points du menu en haut à droite\n <img style=\"vertical-align: middle; margin-left: 12px\" src=" + + alias2(alias1((depth0 != null ? lookupProperty(depth0,"menuImageUrl") : depth0), depth0)) + + " />\n </mj-text>\n </mj-hero>\n <mj-text color=\"white\" font-weight=\"600\" font-size=\"18px\">\n 2 - Sélectionnez \"Ajouter à l'écran d'accueil\".\n </mj-text>\n <mj-text color=\"white\" font-weight=\"600\" font-size=\"18px\">\n 3 - Nommez la page et appuyez sur \"Ajouter\". Un raccourci vers la page web est apparu sur l'écran d'accueil de votre smartphone.\n </mj-text>\n\n <mj-hero background-color=\"#1B1C22\" padding-top=\"15px\">\n <mj-text color=\"#F1C017\" font-weight=\"600\" font-size=\"18px\">\n <img style=\"vertical-align: middle; margin-right: 12px\" src=" + + alias2(alias1((depth0 != null ? lookupProperty(depth0,"appleImageUrl") : depth0), depth0)) + + " />\n Ecolyo pour Iphone\n </mj-text>\n </mj-hero>\n\n <mj-hero background-color=\"#1B1C22\" padding-top=\"15px\" >\n <mj-text color=\"white\" font-weight=\"600\" font-size=\"18px\" vertical-align=\"middle\">\n 1 - Cliquez sur partager (carré avec flèche pointant vers le haut)\n <img style=\"margin-left: 12px; height: 24px; width: 14px\" src=" + + alias2(alias1((depth0 != null ? lookupProperty(depth0,"shareImageUrl") : depth0), depth0)) + + " />\n </mj-text>\n </mj-hero>\n <mj-text color=\"white\" font-weight=\"600\" font-size=\"18px\">\n 2 - Dans le menu ouvert, descendez et sélectionnez sur « Sur l’Écran d’Accueil ».\n </mj-text>\n <mj-text color=\"white\" font-weight=\"600\" font-size=\"18px\">\n 3 - Cliquez sur « Ajouter ». Un raccourci vers Ecolyo aura ainsi été créé sur votre écran d’accueil. Vous pourrez y accéder comme pour une autre application.\n </mj-text>\n <mj-text color=\"white\" font-weight=\"600\" font-size=\"18px\">\n Attention cette manipulation ne fonctionne que si vous avez ouvert le lien dans Safari.\n </mj-text>\n\n </mj-column>\n </mj-section>\n\n <mj-section background-color=\"#1B1C22\">\n <mj-column>\n <mj-button color=\"black\" background-color=\"#F1C017\" font-size=\"20px\" font-weight=\"700\" font-family=\"Lato\" css-class=\"button-small\">\n <img style=\"vertical-align: middle; margin-right: 12px\" src=\"https://ecolyo.com/assets/ecolyo-icon.svg\" />\n <a href=\"" + alias2(alias1((depth0 != null ? lookupProperty(depth0,"clientUrl") : depth0), depth0)) + "\" style=\"text-decoration: none; color: black\">J'ouvre mon Ecolyo</a>\n </mj-button>\n <mj-text color=\"white\" font-weight=\"400\" font-size=\"18px\" font-style=\"italic\" align=\"center\">\n Si le bouton ne fonctionne pas, copiez le lien dans votre navigateur.\n </mj-text>\n </mj-column>\n </mj-section>\n" + ((stack1 = container.invokePartial(__webpack_require__("qLut"),depth0,{"name":"base/footer","fn":container.program(1, data, 0),"inverse":container.noop,"data":data,"helpers":helpers,"partials":partials,"decorators":container.decorators})) != null ? stack1 : "") @@ -24776,7 +24797,7 @@ exports.push([module.i, "/* Cozy UI utilities classes */\n/* Cozy UI React compo /***/ "pZg0": /***/ (function(module, exports) { -module.exports = {"name":"Ecolyo","slug":"ecolyo","icon":"icon.svg","categories":["energy"],"version":"1.2.4-beta.1","licence":"AGPL-3.0","editor":"Métropole de Lyon","default_locale":"fr","locales":{"fr":{"short_description":"Ecolyo est le service proposé par la Métropole de Lyon pour suivre et comprendre les consommations d’énergie et d’eau de votre foyer.","long_description":"Ecolyo est le service proposé par la Métropole de Lyon pour suivre et comprendre les consommations d’énergie et d’eau de votre foyer afin de vous accompagner dans la gestion quotidienne de ces consommations et ce, de façon ludique en vous lançant des défis personnalisés.","permissions":{"ecolyo":{"description":"Requises pour le fonctionnement des différentes parties de l’application (Analyse, liste d’écogestes personnalisée, …)."},"enedis":{"description":"Requises pour l’affichage et l’analyse de vos consommations électriques dans Ecolyo. Issues du connecteur Enedis."},"grdf":{"description":"Requises pour l’affichage et l’analyse de vos consommations de gaz dans Ecolyo. Issues du connecteur GRDF."},"egl":{"description":"Requises pour l’affichage et l’analyse de vos consommations d’eau dans Ecolyo. Issues du connecteur Eau du Grand Lyon."},"konnectors":{"description":"Requis pour vérifier la présence des connecteurs Enedis, GRDF et Eau du Grand Lyon ainsi que pour pouvoir les configurer à partir de l’application Ecolyo."},"accounts":{"description":"Requis pour stocker des informations propres aux comptes énergie et eau (Enedis, GRDF, Eau du Grand Lyon). Sont stockés votre numéro de PDL pour Enedis, votre numéro de PCE pour GRDF, vos logins et mots de passe pour Eau du Grand Lyon."},"triggers":{"description":"Requis pour le bon fonctionnement des connecteurs énergie et eau."},"jobs":{"description":"Requis pour le bon fonctionnement des connecteurs énergie et eau."},"terms":{"description":"Nécessaire pour la gestion des consentements de l'application"},"apps":{"description":"Requis par Cozy pour afficher les icônes des applications installées dans la barre Cozy."},"settings":{"description":"Requis pour afficher les paramètres Cozy dans la barre Cozy."},"ecolyo-dju":{"description":"Requis pour la récupération des DJU (Degrés Jours Unifiés), informations météorologiques permettant d’ajuster le modèle de comparaison des consommations énergétiques."},"dacc-dev":{"description":"Requis pour la récupération et l’envoi de statistiques d’utilisation anonymisées dans un environnement de test."},"dacc":{"description":"Requis pour envoyer des statistiques d'utilisation anonymisées."},"backoffice-rec":{"description":"Requis pour la récupération et l’envoi de statistiques d’utilisation anonymisées."},"backoffice-prod":{"description":"Requis pour la récupération et l’envoi de statistiques d’utilisation anonymisées."}}},"en":{"short_description":"Ecolyo a free service developed by Métropole de Lyon to help you to monitor and understand the energy and water consumption of your home.","long_description":"Ecolyo a free service developed by the Métropole de Lyon to help you to monitor and understand the energy and water consumption of your home. To help you in reducing your daily consumption it gives you best energy consumption practices, consumption analysis and challenges to take up. At least one Smartmeter is needed among Linky (for electricity), Gazpar (for gas) or Téléo (for water).","permissions":{"ecolyo":{"description":"Required for the operation of the different parts of the application (Analysis, customized eco-gesture lists, etc...)."},"enedis":{"description":"Required for the display and analysis of your electricity consumption in Ecolyo. Retrieved by the Enedis connector."},"grdf":{"description":"Required for the display and analysis of your gas consumption in Ecolyo. Retrieved by the GRDF connector."},"egl":{"description":"Required for the display and analysis of your water consumption in Ecolyo. Retrieved by the Eau du Grand Lyon connector."},"konnectors":{"description":"Required to verify the presence of the Enedis, GRDF and Eau du Grand Lyon connectors as well as to be able to configure them from the Ecolyo application."},"accounts":{"description":"Required to store information specific to energy and water accounts (Enedis, GRDF, Eau du Grand Lyon). Your PDL number for Enedis, your PCE number for GRDF, your logins and passwords for Eau du Grand Lyon are stored."},"triggers":{"description":"Required for the correct functioning of the energy and water connectors."},"jobs":{"description":"Required for the correct functioning of the energy and water connectors."},"terms":{"description":"Required for the correct managment of CGU."},"apps":{"description":"Required to display the icons of installed applications in the Cozy bar."},"settings":{"description":"Required for the application's consents managment"},"ecolyo-dju":{"description":"Required to gather udd data (Unified Degree Days), a meteorological data allowing the app to adjust our energical consumption model. "},"dacc-dev":{"description":"Required for gathering and sending anonymous usage statistics for test environment."},"dacc":{"description":"Required for sending cozy anonymized stats."},"backoffice-rec":{"description":"Required for gathering and sending anonymous usage statistics."},"backoffice-prod":{"description":"Required for gathering and sending anonymous usage statistics."}}}},"langs":["fr"],"developer":{"name":"Métropole de Lyon","url":"https://www.grandlyon.com/"},"routes":{"/":{"folder":"/","index":"index.html","public":false}},"services":{"monthlyReportNotification":{"type":"node","file":"services/monthlyReportNotification/ecolyo.js","trigger":"@cron 0 0 10 3 * *"},"aggregatorUsageEvents":{"type":"node","file":"services/aggregatorUsageEvents/ecolyo.js","trigger":"@cron 0 1 * * *"}},"permissions":{"ecolyo":{"type":"com.grandlyon.ecolyo.*"},"enedis":{"type":"com.grandlyon.enedis.*"},"grdf":{"type":"com.grandlyon.grdf.*"},"egl":{"type":"com.grandlyon.egl.*"},"konnectors":{"type":"io.cozy.konnectors"},"accounts":{"type":"io.cozy.accounts"},"triggers":{"type":"io.cozy.triggers"},"jobs":{"type":"io.cozy.jobs"},"terms":{"type":"io.cozy.terms"},"apps":{"type":"io.cozy.apps","verbs":["GET"]},"settings":{"type":"io.cozy.settings","verbs":["GET"]},"ecolyo-dju":{"type":"org.ecolyo.dju","verbs":["GET"]},"dacc":{"type":"cc.cozycloud.dacc","verbs":["ALL"]},"dacc-dev":{"type":"cc.cozycloud.dacc.dev","verbs":["ALL"]},"backoffice-rec":{"type":"org.ecolyo.backoffice-rec","verbs":["ALL"]},"backoffice-prod":{"type":"org.ecolyo.backoffice-prod","verbs":["ALL"]}}} +module.exports = {"name":"Ecolyo","slug":"ecolyo","icon":"icon.svg","categories":["energy"],"version":"1.2.4-beta.1","licence":"AGPL-3.0","editor":"Métropole de Lyon","default_locale":"fr","locales":{"fr":{"short_description":"Ecolyo est le service proposé par la Métropole de Lyon pour suivre et comprendre les consommations d’énergie et d’eau de votre foyer.","long_description":"Ecolyo est le service proposé par la Métropole de Lyon pour suivre et comprendre les consommations d’énergie et d’eau de votre foyer afin de vous accompagner dans la gestion quotidienne de ces consommations et ce, de façon ludique en vous lançant des défis personnalisés.","permissions":{"ecolyo":{"description":"Requises pour le fonctionnement des différentes parties de l’application (Analyse, liste d’écogestes personnalisée, …)."},"enedis":{"description":"Requises pour l’affichage et l’analyse de vos consommations électriques dans Ecolyo. Issues du connecteur Enedis."},"grdf":{"description":"Requises pour l’affichage et l’analyse de vos consommations de gaz dans Ecolyo. Issues du connecteur GRDF."},"egl":{"description":"Requises pour l’affichage et l’analyse de vos consommations d’eau dans Ecolyo. Issues du connecteur Eau du Grand Lyon."},"konnectors":{"description":"Requis pour vérifier la présence des connecteurs Enedis, GRDF et Eau du Grand Lyon ainsi que pour pouvoir les configurer à partir de l’application Ecolyo."},"accounts":{"description":"Requis pour stocker des informations propres aux comptes énergie et eau (Enedis, GRDF, Eau du Grand Lyon). Sont stockés votre numéro de PDL pour Enedis, votre numéro de PCE pour GRDF, vos logins et mots de passe pour Eau du Grand Lyon."},"triggers":{"description":"Requis pour le bon fonctionnement des connecteurs énergie et eau."},"jobs":{"description":"Requis pour le bon fonctionnement des connecteurs énergie et eau."},"terms":{"description":"Nécessaire pour la gestion des consentements de l'application"},"apps":{"description":"Requis par Cozy pour afficher les icônes des applications installées dans la barre Cozy."},"settings":{"description":"Requis pour afficher les paramètres Cozy dans la barre Cozy."},"ecolyo-dju":{"description":"Requis pour la récupération des DJU (Degrés Jours Unifiés), informations météorologiques permettant d’ajuster le modèle de comparaison des consommations énergétiques."},"dacc-dev":{"description":"Requis pour la récupération et l’envoi de statistiques d’utilisation anonymisées dans un environnement de test."},"dacc":{"description":"Requis pour envoyer des statistiques d'utilisation anonymisées."},"backoffice-rec":{"description":"Requis pour la récupération et l’envoi de statistiques d’utilisation anonymisées."},"backoffice":{"description":"Requis pour la récupération et l’envoi de statistiques d’utilisation anonymisées."}}},"en":{"short_description":"Ecolyo a free service developed by Métropole de Lyon to help you to monitor and understand the energy and water consumption of your home.","long_description":"Ecolyo a free service developed by the Métropole de Lyon to help you to monitor and understand the energy and water consumption of your home. To help you in reducing your daily consumption it gives you best energy consumption practices, consumption analysis and challenges to take up. At least one Smartmeter is needed among Linky (for electricity), Gazpar (for gas) or Téléo (for water).","permissions":{"ecolyo":{"description":"Required for the operation of the different parts of the application (Analysis, customized eco-gesture lists, etc...)."},"enedis":{"description":"Required for the display and analysis of your electricity consumption in Ecolyo. Retrieved by the Enedis connector."},"grdf":{"description":"Required for the display and analysis of your gas consumption in Ecolyo. Retrieved by the GRDF connector."},"egl":{"description":"Required for the display and analysis of your water consumption in Ecolyo. Retrieved by the Eau du Grand Lyon connector."},"konnectors":{"description":"Required to verify the presence of the Enedis, GRDF and Eau du Grand Lyon connectors as well as to be able to configure them from the Ecolyo application."},"accounts":{"description":"Required to store information specific to energy and water accounts (Enedis, GRDF, Eau du Grand Lyon). Your PDL number for Enedis, your PCE number for GRDF, your logins and passwords for Eau du Grand Lyon are stored."},"triggers":{"description":"Required for the correct functioning of the energy and water connectors."},"jobs":{"description":"Required for the correct functioning of the energy and water connectors."},"terms":{"description":"Required for the correct managment of CGU."},"apps":{"description":"Required to display the icons of installed applications in the Cozy bar."},"settings":{"description":"Required for the application's consents managment"},"ecolyo-dju":{"description":"Required to gather udd data (Unified Degree Days), a meteorological data allowing the app to adjust our energical consumption model. "},"dacc-dev":{"description":"Required for gathering and sending anonymous usage statistics for test environment."},"dacc":{"description":"Required for sending cozy anonymized stats."},"backoffice-rec":{"description":"Required for gathering and sending anonymous usage statistics."},"backoffice":{"description":"Required for gathering and sending anonymous usage statistics."}}}},"langs":["fr"],"developer":{"name":"Métropole de Lyon","url":"https://www.grandlyon.com/"},"routes":{"/":{"folder":"/","index":"index.html","public":false}},"services":{"monthlyReportNotification":{"type":"node","file":"services/monthlyReportNotification/ecolyo.js","trigger":"@cron 0 0 10 3 * *"},"aggregatorUsageEvents":{"type":"node","file":"services/aggregatorUsageEvents/ecolyo.js","trigger":"@cron 0 1 * * *"}},"permissions":{"ecolyo":{"type":"com.grandlyon.ecolyo.*"},"enedis":{"type":"com.grandlyon.enedis.*"},"grdf":{"type":"com.grandlyon.grdf.*"},"egl":{"type":"com.grandlyon.egl.*"},"konnectors":{"type":"io.cozy.konnectors"},"accounts":{"type":"io.cozy.accounts"},"triggers":{"type":"io.cozy.triggers"},"jobs":{"type":"io.cozy.jobs"},"terms":{"type":"io.cozy.terms"},"apps":{"type":"io.cozy.apps","verbs":["GET"]},"settings":{"type":"io.cozy.settings","verbs":["GET"]},"ecolyo-dju":{"type":"org.ecolyo.dju","verbs":["GET"]},"dacc":{"type":"cc.cozycloud.dacc","verbs":["ALL"]},"dacc-dev":{"type":"cc.cozycloud.dacc.dev","verbs":["ALL"]},"backoffice-rec":{"type":"org.ecolyo.backoffice.rec","verbs":["ALL"]},"backoffice-prod":{"type":"org.ecolyo.backoffice","verbs":["ALL"]}}} /***/ }), diff --git a/index.html b/index.html index 8fdfc6af69fb6888ef5b5beb3a189591791c0c36..b8b4d459a280142aa5d0a36734f310f652a966a1 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -<!DOCTYPE html><html lang="{{.Locale}}"><head><meta charset="utf-8"><title>Ecolyo</title><link rel="icon" type="image/png" href="/favicon-32x32.png" sizes="32x32"><link rel="icon" type="image/png" href="/favicon-16x16.png" sizes="16x16"><!-- PWA Manifest --><link rel="manifest" href="/manifest.json" crossorigin="use-credentials"><link rel="mask-icon" href="/safari-pinned-tab.svg" color="#297EF2"><meta name="theme-color" content="#ffffff"><!-- PWA Chrome --><link rel="icon" sizes="192x192" href="/android-chrome-192x192.png"><link rel="icon" sizes="512x512" href="/android-chrome-512x512.png"><!-- PWA iOS --><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"><link rel="apple-touch-startup-image" href="/apple-touch-icon.png"><meta name="apple-mobile-web-app-title" content="Ecolyo"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="viewport" content="width=device-width,height=device-height,initial-scale=1,viewport-fit=cover">{{.ThemeCSS}} {{.CozyBar}}</head><body><div role="application" class="application" data-cozy-token="{{.Token}}" data-cozy-domain="{{.Domain}}" data-cozy-locale="{{.Locale}}" data-cozy-app-name="{{.AppName}}" data-cozy-app-slug="{{.AppSlug}}" data-cozy-app-name-prefix="{{.AppNamePrefix}}" data-cozy-app-editor="{{.AppEditor}}" data-cozy-icon-path="{{.IconPath}}"><script src="vendors/ecolyo.7ec2f99d334bc5028d00.js"></script><script src="app/ecolyo.9dd9c82dca1ad99a8c8b.js"></script></div></body></html> \ No newline at end of file +<!DOCTYPE html><html lang="{{.Locale}}"><head><meta charset="utf-8"><title>Ecolyo</title><link rel="icon" type="image/png" href="/favicon-32x32.png" sizes="32x32"><link rel="icon" type="image/png" href="/favicon-16x16.png" sizes="16x16"><!-- PWA Manifest --><link rel="manifest" href="/manifest.json" crossorigin="use-credentials"><link rel="mask-icon" href="/safari-pinned-tab.svg" color="#297EF2"><meta name="theme-color" content="#ffffff"><!-- PWA Chrome --><link rel="icon" sizes="192x192" href="/android-chrome-192x192.png"><link rel="icon" sizes="512x512" href="/android-chrome-512x512.png"><!-- PWA iOS --><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"><link rel="apple-touch-startup-image" href="/apple-touch-icon.png"><meta name="apple-mobile-web-app-title" content="Ecolyo"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="viewport" content="width=device-width,height=device-height,initial-scale=1,viewport-fit=cover">{{.ThemeCSS}} {{.CozyBar}}</head><body><div role="application" class="application" data-cozy-token="{{.Token}}" data-cozy-domain="{{.Domain}}" data-cozy-locale="{{.Locale}}" data-cozy-app-name="{{.AppName}}" data-cozy-app-slug="{{.AppSlug}}" data-cozy-app-name-prefix="{{.AppNamePrefix}}" data-cozy-app-editor="{{.AppEditor}}" data-cozy-icon-path="{{.IconPath}}"><script src="vendors/ecolyo.7ec2f99d334bc5028d00.js"></script><script src="app/ecolyo.292e4ea35dfac4afb00e.js"></script></div></body></html> \ No newline at end of file diff --git a/manifest.webapp b/manifest.webapp index e9e6aac875a77340d1fe3bd2b847f3897e8d73cb..398795e33edaf8cc8813700dd61bccf0907c9e20 100644 --- a/manifest.webapp +++ b/manifest.webapp @@ -59,7 +59,7 @@ "backoffice-rec": { "description": "Requis pour la récupération et l’envoi de statistiques d’utilisation anonymisées." }, - "backoffice-prod": { + "backoffice": { "description": "Requis pour la récupération et l’envoi de statistiques d’utilisation anonymisées." } } @@ -113,7 +113,7 @@ "backoffice-rec": { "description": "Required for gathering and sending anonymous usage statistics." }, - "backoffice-prod": { + "backoffice": { "description": "Required for gathering and sending anonymous usage statistics." } } @@ -204,13 +204,13 @@ ] }, "backoffice-rec": { - "type": "org.ecolyo.backoffice-rec", + "type": "org.ecolyo.backoffice.rec", "verbs": [ "ALL" ] }, "backoffice-prod": { - "type": "org.ecolyo.backoffice-prod", + "type": "org.ecolyo.backoffice", "verbs": [ "ALL" ] diff --git a/services/aggregatorUsageEvents/ecolyo.js b/services/aggregatorUsageEvents/ecolyo.js index 013801d1ebab70f2fdb99ec69b60d7fa58ee693e..17b3eaa807e6c062309fbb268688adead7941108 100644 --- a/services/aggregatorUsageEvents/ecolyo.js +++ b/services/aggregatorUsageEvents/ecolyo.js @@ -84749,7 +84749,7 @@ class EnvironementService { if (this.getEnvironement() === 'production') { return 'https://ecolyo-agent.grandlyon.com'; } else { - return 'https://ecolyo-agent.self-data.alpha.grandlyon.com'; + return 'https://ecolyo-agent-rec.grandlyon.com'; } } diff --git a/services/monthlyReportNotification/ecolyo.js b/services/monthlyReportNotification/ecolyo.js index 76266391da5222745878b0c42f0231bc1617ac1b..d4882926c0dd9e8993e2964d55354470bc72840a 100644 --- a/services/monthlyReportNotification/ecolyo.js +++ b/services/monthlyReportNotification/ecolyo.js @@ -48846,7 +48846,7 @@ class EnvironementService { if (this.getEnvironement() === 'production') { return 'https://ecolyo-agent.grandlyon.com'; } else { - return 'https://ecolyo-agent.self-data.alpha.grandlyon.com'; + return 'https://ecolyo-agent-rec.grandlyon.com'; } } @@ -49054,7 +49054,7 @@ const getMonthlyReport = async (year, month, client) => { try { const environementService = new _environement.default(); log('info', environementService.isProduction() ? 'Fetching data from BO prod' : 'Fetching data from BO rec'); - const result = await client.getStackClient().fetchJSON('GET', environementService.isProduction() ? `/remote/org.ecolyo.backoffice-prod?year=${year}&month=${month}` : `https://ecolyo-agent.self-data.alpha.grandlyon.com/api/common/monthlyReport/${year}/${month}`); + const result = await client.getStackClient().fetchJSON('GET', environementService.isProduction() ? `/remote/org.ecolyo.backoffice?year=${year}&month=${month}` : `/remote/org.ecolyo.backoffice.rec?year=${year}&month=${month}`); return result; } catch (error) { log('error', error);