Closed PhilLAL closed 3 years ago
There are two type of export: Image or data. Image export depends on the chart library, flot supports only one format. For data export you must select time and variable first. JSON export is particolar because It exposes exactly the same source of data used for the plot. So this is the first experiment to be done in a debug session.
On Friday, October 8, 2021, PhilIJC @.***> wrote:
Hi @luciozambon https://github.com/luciozambon, while trying to export, I noticed that export is not available and display a link to "not available jet" I'm pretty sure I used export since I answered a colleague how to export data december, 24th 2020.
I checked the source code and this string appears in https://github.com/ luciozambon/eGiga2m/blob/6b01e1218b39b748d3a9af15cd0b59 9b3a57c2f1/egiga2m.html around line 247 Since this content did not change last 3 years, I think this could be a configuration issue, so I checked egiga2m_conf.js but it seems correct:
function initConf(conf) { // hcExportService = "http://ecsproxy.elettra.trieste.it:8080/highcharts-export-web/"; if (conf=='HDB') { plotService = "./lib/service/hdb_plot_service.php?conf=HDB"; treeService = "./lib/service/hdb_tree_service.php?conf=HDB"; exportService = "./lib/service/hdb_export_service.php?conf=HDB" } else if (conf=='TDB') { plotService = "./lib/service/hdb_plot_service.php?conf=TDB"; treeService = "./lib/service/hdb_tree_service.php?conf=TDB"; exportService = "./lib/service/hdb_export_service.php?conf=TDB" } else { // this is the default configuration, comment it if unnecessary plotService = "./lib/service/hdb_plot_service.php?conf=HDB"; treeService = "./lib/service/hdb_tree_service.php?conf=HDB"; exportService = "./lib/service/hdb_export_service.php?conf=HDB"; // please switch hdb_export_service with hdbpp_export_service if necessary }
I'm pretty sure this is a silly error, do you mind helping me with this? Thank you,
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/luciozambon/eGiga2m/issues/9, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFKQB6IIVOHBMSH6BCTWSTLUF3C2DANCNFSM5FTKCAKQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
Thank you for this fast answer. I would like to export data. I selected time (we see it up left in background) and attribute (left in background). I do not understand what i forgot in light of your explanations.
can you access
"./lib/service/hdb_plot_service.php?conf=HDB" and "./lib/service/hdb_tree_service.php?conf=HDB"?
you should substitute "./" with your server
On Fri, Oct 8, 2021 at 1:23 PM PhilIJC @.***> wrote:
Thank you for this fast answer. I would like to export data. I selected time (we see it up left in background) and attribute (left in background).
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/luciozambon/eGiga2m/issues/9#issuecomment-938563560, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFKQB6NXM4TP2EG6XVLURZ3UF3IDZANCNFSM5FTKCAKQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
yes, they seem accessible.
Here are the output:
sorry, you should check the export service, in the default egiga2m_conf.js there is this row:
exportService = "./lib/service/hdb_export_service.php?conf="; // please switch hdb_export_service with hdbpp_export_service if necessary
On Mon, Oct 11, 2021 at 9:57 AM PhilIJC @.***> wrote:
yes, they seem accessible.
Here are the output:
- for ./lib/service/hdb_plot_service.php?conf=HDB [image: screenshot for ./lib/service/hdb_plot_service.php?conf=HDB] https://camo.githubusercontent.com/84f95d53e999eee37dc1ed10dbc43003d78f2fa91120af9320b1be229231a457/68747470733a2f2f6f776e636c6f75642e6c616c2e696e3270332e66722f696e6465782e7068702f732f703448735a55397357386e6e5353482f646f776e6c6f6164
- ./lib/service/hdb_tree_service.php?conf=HDB [image: screenshot for ./lib/service/hdb_tree_service.php?conf=HDB] https://camo.githubusercontent.com/a15ec1d27e11d93c49bfd53c8a51c634627b3160e7cf01f96d3434fd67d4aa87/68747470733a2f2f6f776e636c6f75642e6c616c2e696e3270332e66722f696e6465782e7068702f732f5163305644693166685048713561452f646f776e6c6f6164
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/luciozambon/eGiga2m/issues/9#issuecomment-939780936, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFKQB6O2AJIYR75WLCWMRMLUGKKFLANCNFSM5FTKCAKQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
I replace it by those lines:
exportService = "./lib/service/hdb_export_service.php?conf=HDB"
exportService = "./lib/service/hdb_export_service.php?conf=TDB"
exportService = "./lib/service/hdb_export_service.php?conf=HDB"; // please switch hdb_export_service with hdbpp_export_service if necessary
Do you see any error which could explain my issue?
the if condition should have a comparison (e.g. a==b) not an assignment (e.g. a=b) in this configuration file you should only place the right link for your installation
you should test something like this: srv-6.thomx.fr/eGiga2m/lib/service/hdbpp_plot_service.php?conf=HDB&start=last 8 hours&stop=&ts=3
On Fri, Oct 22, 2021 at 6:21 PM PhilIJC @.***> wrote:
Do you see any error which could explain my issue?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/luciozambon/eGiga2m/issues/9#issuecomment-949777716, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFKQB6JOUMTKCCNEOLRYWNTUIGFP3ANCNFSM5FTKCAKQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
Thank you for your answer, i was not clear in my answer.
I replace default lines by those lines:
exportService = "./lib/service/hdb_export_service.php?conf=HDB"
exportService = "./lib/service/hdb_export_service.php?conf=TDB"
exportService = "./lib/service/hdb_export_service.php?conf=HDB"; // please switch hdb_export_service with hdbpp_export_service if necessary
Indeed, test in if are of course ==
and not assignement =
Here is the complete if statement:
if (conf=='HDB') {
plotService = "./lib/service/hdb_plot_service.php?conf=HDB";
treeService = "./lib/service/hdb_tree_service.php?conf=HDB";
exportService = "./lib/service/hdb_export_service.php?conf=HDB"
}
else if (conf=='TDB') {
plotService = "./lib/service/hdb_plot_service.php?conf=TDB";
treeService = "./lib/service/hdb_tree_service.php?conf=TDB";
exportService = "./lib/service/hdb_export_service.php?conf=TDB"
}
else {
// this is the default configuration, comment it if unnecessary
plotService = "./lib/service/hdb_plot_service.php?conf=HDB";
treeService = "./lib/service/hdb_tree_service.php?conf=HDB";
exportService = "./lib/service/hdb_export_service.php?conf=HDB"; // please switch hdb_export_service with hdbpp_export_service if necessary
}
Hi @luciozambon since the file content seems OK, do you see what can make this fail? Cheers
Have you tested something like this? srv-6.thomx.fr/eGiga2m/lib/service/hdb_export_service.php?conf=HDB&start=last 8 hours&stop=&ts=3
On Thu, Nov 4, 2021 at 9:43 AM PhilIJC @.***> wrote:
Hi @luciozambon https://github.com/luciozambon since the file content seems OK, do you see what can make this fail? Cheers
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/luciozambon/eGiga2m/issues/9#issuecomment-960557722, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFKQB6OHAANGYOKAFJZD7Z3UKJBUZANCNFSM5FTKCAKQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
I tested it, indeed, and it worked as soon as I select an archived attribute. However, clicking on "Export" menu still displayed the same "not available jet" message.
may be there is something wrong in exportService = "./lib/service/hdb_export_service.php?conf=HDB" in order to monitor actual value of exportService you can open the console of the browser ( https://developer.mozilla.org/en-US/docs/Tools/Browser_Console ) and type: exportService
On Thu, Nov 4, 2021 at 12:04 PM PhilIJC @.***> wrote:
I tested it, indeed, and it worked as soon as I select an archived attribute. However, clicking on "Export" menu still displayed the same "not available jet" message.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/luciozambon/eGiga2m/issues/9#issuecomment-960653284, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFKQB6KBEFRJ4NAMRSJ5KL3UKJSEZANCNFSM5FTKCAKQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
I get exportService "http://thomx-srv-6.DOMAINNAME.fr/eGiga2m/lib/service/hdb_export_service.php?conf=HDB"
(where DOMAINNAME is a redirect and thomx-srv-6 is the hostname known from the network in which I am connected)
you could try to change exportService with srv-6.thomx.fr/eGiga2m/lib/service/hdb_export_service.php?conf=HDB
On Thu, Nov 4, 2021 at 12:17 PM PhilIJC @.***> wrote:
I get exportService " http://thomx-srv-6.DOMAINNAME.fr/eGiga2m/lib/service/hdb_export_service.php?conf=HDB " (where DOMAINNAME is a redirect and thomx-srv-6 is the hostname known from the network in which I am connected)
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/luciozambon/eGiga2m/issues/9#issuecomment-960661722, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFKQB6NCVFWPE6VAIWFHBK3UKJTTBANCNFSM5FTKCAKQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
It's strange since it does not work with current production instance, but the new instance works with export.
Since egiga_conf.js
and lib/service/hdb_conf.php
are the same in both instances, my understanding is the error is probably in other modifications recenlty done, am I wrong?
If I were in your institute the debug probably would be a matter of no more than 5 minutes In this situation it's much complicated
On Thu, Nov 4, 2021 at 3:35 PM PhilIJC @.***> wrote:
It's strange since it does not work with current production instance, but the new instance works with export.
Since egiga_conf.js and lib/service/hdb_conf.php are the same in both instances, my understanding is the error is probably in other modifications recenlty done, am I wrong?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/luciozambon/eGiga2m/issues/9#issuecomment-961067077, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFKQB6J7C7O7LHJSCD7MAIDUKKK2XANCNFSM5FTKCAKQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
after exchanging by webconf, these changes fix it:
in egiga2m.html
:
<script src='./egiga2m.min.js' type="text/javascript"></script>
by <script src='./egiga2m.js' type="text/javascript"></script>
In egiga2m.min.js
:327c327
< document.getElementById('timestamp').setAttribute("onChange","javascript: refreshExportLink();");
---
> //document.getElementById('timestamp').setAttribute("onChange","javascript: refreshExportLink();");
408c408
< document.getElementById("timestampBlock").style.display = 'inline';
---
> //document.getElementById("timestampBlock").style.display = 'inline';
413c413
< exportTsLabel = exportTsLabel + (document.getElementById('timestamp').checked? '×tamp': '');
---
> //exportTsLabel = exportTsLabel + (document.getElementById('timestamp').checked? '×tamp': '');
Hi @luciozambon, while trying to export, I noticed that export is not available and display a link to "not available jet"
I'm pretty sure I used export since I answered a colleague how to export data december, 24th 2020.
I checked the source code and this string appears in https://github.com/luciozambon/eGiga2m/blob/6b01e1218b39b748d3a9af15cd0b599b3a57c2f1/egiga2m.html around line 247 Since this content did not change last 3 years, I think this could be a configuration issue, so I checked
egiga2m_conf.js
but it seems correct:I'm pretty sure this is a silly error, do you mind helping me with this? Thank you,