GQ Electronics Technical Support Forum Active Users: / Visits Today:
Highest Active Users:
GQ Electronics Technical Support Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 GQ Electronics Forums
 1.Geiger Counter World Map(www.GMCmap.com)
 gmcmap.com show data on map, but not make history
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

ccds

Georgia
16 Posts

Posted - 02/02/2022 :  08:09:12  Show Profile  Reply with Quote
Dear friends,

Our GQ GMC 300E Plus is registered at www.gmcmap.com. Website www.gmcmap.com receive online data (every 5 min) from counter and on map it shows CPM in marker, but it is not collecting corresponding history data, pages www.gmcmap.com/historyData.asp?Param_ID=67620377773&systemTimeZone=4 and www.gmcmap.com/gmc-plain-data.asp?Param_ID=67620377773&timezone=4 (from here we take data) are empty. Actually online data collected on page www.gmcmap.com/GMHistoryExec-new-data.asp?param_ID=67620377773&systemTimeZone=4 , which we don't use. This happened after 01.22.2022.

If you can help with solving this problem, i.e. to make the data appear again on the abovementioned pages, we will be very grateful.
Reply #1

EmfDev

2250 Posts

Posted - 02/02/2022 :  13:06:04  Show Profile  Reply with Quote
Hi ccds, thank you for letting us know about this issue. We will check and fix this.
Go to Top of Page
Reply #2

ccds

Georgia
16 Posts

Posted - 02/02/2022 :  15:43:00  Show Profile  Reply with Quote
Thank you very much! Looking forward for your response!
Go to Top of Page
Reply #3

EmfDev

2250 Posts

Posted - 02/02/2022 :  17:10:57  Show Profile  Reply with Quote
We checked and looks like the database has been recently updated. But you should be able to see new data.
Go to Top of Page
Reply #4

ccds

Georgia
16 Posts

Posted - 02/03/2022 :  05:01:50  Show Profile  Reply with Quote
Thank you very much! Yes, now the data has appeared.
www.nonproliferation.ge/maps/background-radiation-stationary-monitoring-map - this is our website where we use your resource www.gmcmap.com (we take the data from www.gmcmap.com/gmc-plain-data.asp?Param_ID=OUR_GEIGER_COUNTER_ID&timezone=4) to display the CPM on the map and collect history data.
Go to Top of Page
Reply #5

ccds

Georgia
16 Posts

Posted - 02/02/2023 :  13:12:13  Show Profile  Reply with Quote
The question that I think we will solve

URI: www.gmcmap.com/gmc-plain-data.asp?Param_ID=YOUR_GEIGER_COUNTER_ID&timezone=TIME_ZONE after 2023-01-31 stop working (error 404).

We use this link to display data on our website www.nonproliferation.ge/maps/background-radiation-stationary-monitoring-map , now data in map is (N/A).

Is it possible to restore gmc-plain-data.asp or suggest another option?

Thanks
Go to Top of Page
Reply #6

EmfDev

2250 Posts

Posted - 02/02/2023 :  14:57:43  Show Profile  Reply with Quote
hello, our devs were investigating why our website crashes too much and is basically inoperable this past few weeks and said they had temporarily fixed the issue. Maybe this is the reason why some features disappeared. May I ask how much data do you need from the map and how often do you make your calls?
Go to Top of Page
Reply #7

ccds

Georgia
16 Posts

Posted - 02/02/2023 :  17:52:03  Show Profile  Reply with Quote
Thanks for answer
Question is, if possible to restore link www.gmcmap.com/gmc-plain-data.asp?Param_ID=YOUR_GEIGER_COUNTER_ID&timezone=TIME_ZONE (for example www.gmcmap.com/gmc-plain-data.asp?Param_ID=84668536343&timezone=4 give error 404), that worked up to 2023-01-31 or may be suggest other way for collect data for our website.
Our website take data every 20 min from your site and display results at link: www.nonproliferation.ge/maps/background-radiation-stationary-monitoring-map - on map icons now show N/A
Go to Top of Page
Reply #8

Marco de Chaligny

France
4 Posts

Posted - 02/05/2023 :  06:30:36  Show Profile  Reply with Quote
Hi all,

Same problem with me in Europe!

hxxp://www.gmcmap.com/historyData-plain.asp?Param_ID=65115959476&timezone=1 ===> 404 error

There is a solution ?

--- Marco de Chaligny ---

Edited by - Marco de Chaligny on 02/05/2023 08:05:16
Go to Top of Page
Reply #9

EmfDev

2250 Posts

Posted - 02/06/2023 :  11:13:12  Show Profile  Reply with Quote
Can you guys check it? The devs changed the time to MST and removed the timezone parameter.
Go to Top of Page
Reply #10

EmfDev

2250 Posts

Posted - 02/06/2023 :  15:20:05  Show Profile  Reply with Quote
It seems this link is working www.gmcmap.com/historyData-plain.asp?Param_ID=xxxxxx, please use this instead of also the gmc-plain-data.
Go to Top of Page
Reply #11

tinwhisker

3 Posts

Posted - 02/06/2023 :  17:07:40  Show Profile  Reply with Quote
To the devs,

Your JSON is broken, the link:

https://www.gmcmap.com/historyData-plain.asp?Param_ID=65115959476

gives:

{"time":"2023-02-06 17:58:44 MST"",CPM":"21"",ACPM":"19.81"",uSv":"0.14"}

The commas are misplaced, the correct output should be:

{"time":"2023-02-06 17:58:44 MST","CPM":"21","ACPM":"19.81","uSv":"0.14"}

Anyone trying to parse data as it is currently given will get errors.
Go to Top of Page
Reply #12

ccds

Georgia
16 Posts

Posted - 02/06/2023 :  19:00:08  Show Profile  Reply with Quote
thanks EmfDev for the reply
From the link www.gmcmap.com/gmc-plain-data.asp?Param_ID=YOUR_GEIGER_COUNTER_ID&timezone=TIME_ZONE we took data in JSON format to display CPM on our site (www.nonproliferation.ge/maps/background-radiation-stationary-monitoring-map). The link for data collection at our request was provided by you. Removing the "timezone" parameter in the link does not help
MST is understandable, but I don’t know from which new link you can take the data.

There is a link from where I can take data from your site, which is very slow.
For example: https://www.gmcmap.com/historyData.asp?Param_ID=84668536343&systemTimeZone=4 works sometimes (GMC-600)
if it is possible to return the old version that was used recently, it would be good

Thank you
Go to Top of Page
Reply #13

EmfDev

2250 Posts

Posted - 02/07/2023 :  10:44:52  Show Profile  Reply with Quote
Im not sure what you mean but as long as you know the Param_ID, you can get those last data readings. User can also convert the MST to their own timezone. You dont need to pull the history everytime, you can just store those data in your own database and pull from those.

This is to reduce the server load as the server keeps crashing or becomes very busy when there are too many requests.
Go to Top of Page
Reply #14

ccds

Georgia
16 Posts

Posted - 02/08/2023 :  20:03:47  Show Profile  Reply with Quote
Yes, I understand the server overload when increased requests.
We want to get our site up and running again in terms of collecting historical data from your gmcmap.com site.
Converting MST to our time zone is easy and not our problem.
From our correspondence, as I understand it, the option with gmc-plain-data.asp will no longer working. He gave us 500 records for the latest historical data in JSON.
After changes on your site, a new link www.gmcmap.com/historyData-plain.asp?Param_ID=xxxxxx was suggested, which gives one last JSON record for historical data ({"time":"2023-02-08 18:33: 30 MST","CPM":"19","ACPM":"22.53","uSv":"0.06"}). Is it possible to increase the number of recent entries, let's say at least up to 20?. The reason why one entry is not enough for us is that we take data from your site every 20 minutes and when this one we get only the last one and do not see what happened during the previous 20 minutes for our GMCs that are registered on your site.

To solve our problem (if it is not possible to give us 20 or more records in JSON format by reference), I think about 2 options:
1. take data from www.gmcmap.com/historyData-plain.asp?Param_ID=xxxxxxxx , hence rebuild cron for 1 minute (if host allows) instead of 20 minutes.
2. take data from https://www.gmcmap.com/historyData.asp?Param_ID=xxxxxxxx&systemTimeZone=4 which now gives 500 data, but rather slowly. By the way, instead of this option, it was proposed by you (hero) gmc-plain-data.asp JSON version.

If you offer another version, we will be very happy.
Go to Top of Page
Reply #15

EmfDev

2250 Posts

Posted - 02/09/2023 :  11:54:42  Show Profile  Reply with Quote
Try this:
www.gmcmap.com/historyData-plain.asp?Param_ID=xxxxxxxx&n=xxx

www.gmcmap.com/gmc-plain-data.asp?Param_ID=YOUR_GEIGER_COUNTER_ID
will be redirected to
www.gmcmap.com/historyData-plain.asp?Param_ID=YOUR_GEIGER_COUNTER_ID&n=100
Go to Top of Page
Reply #16

ccds

Georgia
16 Posts

Posted - 02/09/2023 :  15:13:50  Show Profile  Reply with Quote
this is what we need.
In the link www.gmcmap.com/historyData-plain.asp?Param_ID=xxxxxxxx&n=xxx the last parameter "n=xxx" is for the significant for us. How I checked "n" works up to 498 records.
Thank you for doing redirect. We will hardly need it, since the JSON format that gave gmc-plain-data.asp is changed in historyData-plain.asp and we be need changed our script any case accordingly with www.gmcmap.com/historyData-plain.asp?Param_ID= xxxxxxxx&n=xxx.

Thank you very much for your help.
Go to Top of Page
Reply #17

tinwhisker

3 Posts

Posted - 02/10/2023 :  08:23:09  Show Profile  Reply with Quote
Another error for the devs.

Currently the link:

https://www.gmcmap.com/historyData-plain.asp?Param_ID=65115959476

gives:

{"time":"2023-02-10 09:12:00 MST","CPM":"16","ACPM":"19.81","uSv":"0.10"}<br>


The HTML line break at the end is not defined by JSON and while it will not show up when viewed in a web browser, it will cause JSON parsers to break. You can "view page source" to verify that the HTML line break exists.

Parse error on line 1:
...19.81","uSv":"0.19"}<br>
-----------------------^
Expecting 'EOF', '}', ',', ']', got 'undefined'

Edited by - tinwhisker on 02/10/2023 08:33:04
Go to Top of Page
Reply #18

ccds

Georgia
16 Posts

Posted - 02/10/2023 :  12:28:30  Show Profile  Reply with Quote
Agree with tinwhisker

www.gmcmap.com/historyData-plain.asp?Param_ID=xxxxxxxx&n=xxx doesn't give correct JSON (there is <br> between records). From the proposed, too, I can extract the data.
It would be nice if there were corrections.

I'm waiting for an answer, because I can't fix our script until I finally know in what form I will receive the data.
Go to Top of Page
Reply #19

EmfDev

2250 Posts

Posted - 02/13/2023 :  11:35:09  Show Profile  Reply with Quote
Just removed the <br> is this the correct way?
Go to Top of Page
Reply #20

ccds

Georgia
16 Posts

Posted - 02/13/2023 :  15:07:20  Show Profile  Reply with Quote
This version can also be used to collect data. Previous version (with <br>) was also acceptable. For me, the key was the "&n=xxx" parameter.
json_decode($json) PHP function gets an error with suggested versions, so there was a question with <br>.

More specifically JSON in the form: [{"time":"2023-02-13 13:59:08 MST","CPM":"16","ACPM":"22.55","uSv":"0.05"},{"time":"2023-02-13 13:53:03 MST","CPM":"22","ACPM":"22.55","uSv":"0.07"}, .... ,{ "time":"2023-02-13 13:53:03 MST","CPM":"22","ACPM":"22.55","uSv":"0.07"}] is processed correctly.

tinwhisker do you think the above proposed JSON is acceptable for you?

I need to know in what final form I will receive the data. From it depends how I correct the data collection script that was written earlier according for gmc-plain-data.asp.
Go to Top of Page
Reply #21

EmfDev

2250 Posts

Posted - 02/13/2023 :  16:42:40  Show Profile  Reply with Quote
for n=1,
[{"time":"2023-02-13 13:59:08 MST","CPM":"16","ACPM":"22.55","uSv":"0.05"},]
does this work with comma "," before the closing bracket?

Same with n > 1? Is it ok to have comma before the closing bracket?
[{"time":"2023-02-13 13:59:08 MST","CPM":"16","ACPM":"22.55","uSv":"0.05"},{"time":"2023-02-13 13:53:03 MST","CPM":"22","ACPM":"22.55","uSv":"0.07"}, .... ,{ "time":"2023-02-13 13:53:03 MST","CPM":"22","ACPM":"22.55","uSv":"0.07"},]
Go to Top of Page
Reply #22

ccds

Georgia
16 Posts

Posted - 02/13/2023 :  17:02:57  Show Profile  Reply with Quote
if n=1 last comma "," is wrong, correct is [{"time":"2023-02-13 13:59:08 MST","CPM":"16","ACPM":"22.55","uSv":"0.05"}]
comma must be only between records [{"time":"2023-02-13 13:59:08 MST","CPM":"16","ACPM":"22.55","uSv":"0.05"},{"time":"2023-02-13 13:53:03 MST","CPM":"22","ACPM":"22.55","uSv":"0.07"}]
last comma also wrong before closed last bracket "]"
Go to Top of Page
Reply #23

EmfDev

2250 Posts

Posted - 02/13/2023 :  17:48:01  Show Profile  Reply with Quote
ok now can you test it and see if this is the correct format?
Go to Top of Page
Reply #24

ccds

Georgia
16 Posts

Posted - 02/14/2023 :  09:45:45  Show Profile  Reply with Quote
I tested and now the format is correct.

If this format remains so, I will adjust my script for this.

Thank you very much.
Go to Top of Page
Reply #25

balkis

2 Posts

Posted - 02/20/2023 :  14:57:46  Show Profile  Reply with Quote
Hey there, what about the timezone parameter? Does it still work? It seems it is currently ignored and all values are provided in MST timezone
Go to Top of Page
Reply #26

EmfDev

2250 Posts

Posted - 02/21/2023 :  14:17:09  Show Profile  Reply with Quote
Hello you will need to convert MST to your timezone.
Go to Top of Page
Reply #27

balkis

2 Posts

Posted - 02/21/2023 :  22:37:23  Show Profile  Reply with Quote
Hey EmfDev, you mean i need to do the processing locally and that API no longer supports timezones?
Go to Top of Page
Reply #28

EmfDev

2250 Posts

Posted - 02/22/2023 :  10:18:21  Show Profile  Reply with Quote
That is right. It helps to reduce server load.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
GQ Electronics Technical Support Forum © Copyright since 2011 Go To Top Of Page
Generated in 0.11 sec. Snitz's Forums 2000