luciozambon / eGiga2m

eGiga2m is a web graphic data viewer.
GNU General Public License v3.0
1 stars 3 forks source link

export "not available jet" #9

Closed PhilLAL closed 2 years ago

PhilLAL commented 3 years ago

Hi @luciozambon, while trying to export, I noticed that export is not available and display a link to "not available jet" screenshot

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:

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,

luciozambon commented 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.

PhilLAL commented 3 years ago

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.

luciozambon commented 3 years ago

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.

PhilLAL commented 3 years ago

yes, they seem accessible.

Here are the output:

luciozambon commented 3 years ago

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:

— 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.

PhilLAL commented 3 years ago

I replace it by those lines:

PhilLAL commented 3 years ago

Do you see any error which could explain my issue?

luciozambon commented 3 years ago

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.

PhilLAL commented 3 years ago

Thank you for your answer, i was not clear in my answer.

I replace default lines by those lines:

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
        }
PhilLAL commented 2 years ago

Hi @luciozambon since the file content seems OK, do you see what can make this fail? Cheers

luciozambon commented 2 years ago

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.

PhilLAL commented 2 years ago

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.

luciozambon commented 2 years ago

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.

PhilLAL commented 2 years ago

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)

luciozambon commented 2 years ago

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.

PhilLAL commented 2 years ago

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?

luciozambon commented 2 years ago

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.

PhilLAL commented 2 years ago

after exchanging by webconf, these changes fix it: in egiga2m.html: