Replied to the ticket.as per ticket on github, how do i fix high mysqld cpu usages? between 75%-95%
Replied to the ticket.as per ticket on github, how do i fix high mysqld cpu usages? between 75%-95%
You can use the database manager to run this query:Hey Walter, can we get the list of visited systems out of ED Toolbox in a format suitable for importing into the ED cache as described here?
https://forums.frontier.co.uk/showthread.php/291643-The-Visited-Stars-cache
SELECT system_name FROM user_visited_systems
$visited_on_utc = date("Y-m-d H:i:s");
$export = file_get_contents("http://www.edsm.net/api-logs-v1/set-log?commanderName=" . urlencode($settings["edsm_cmdr_name"]) . "&apiKey=" . $settings["edsm_api_key"] . "&systemName=" . urlencode($curSys["name"]) . "&dateVisited=" . urlencode($visited_on_utc) . "&fromSoftwareVersion=" . $settings["edtb_version"] . "&fromSoftware=ED+ToolBox&x=" . urlencode($curSys["x"]) . "&y=" . urlencode($curSys["y"]) . "&z=" . urlencode($curSys["z"]));
Can you please fix, your sending to EDSM.
Code:$visited_on_utc = date("Y-m-d H:i:s"); $export = file_get_contents("http://www.edsm.net/api-logs-v1/set-log?commanderName=" . urlencode($settings["edsm_cmdr_name"]) . "&apiKey=" . $settings["edsm_api_key"] . "&systemName=" . urlencode($curSys["name"]) . "&dateVisited=" . urlencode($visited_on_utc) . "&fromSoftwareVersion=" . $settings["edtb_version"] . "&fromSoftware=ED+ToolBox&x=" . urlencode($curSys["x"]) . "&y=" . urlencode($curSys["y"]) . "&z=" . urlencode($curSys["z"]));
The visited date should always be the one in the logs converted in UTC. Not the current date.
The coordinates sent are modified by your own database by looking at them before in the edtb_systems or the user_systems_own table, instead of keeping the ones from the logs.
This led to some coordinates sent twice by your software with a slight difference in our database.
Thanks.
$export = file_get_contents("http://www.edsm.net/api-logs-v1/set-log?commanderName=" . urlencode($settings["edsm_cmdr_name"]) . "&apiKey=" . $settings["edsm_api_key"] . "&systemName=" . urlencode($curSys["name"]) . "&dateVisited=" . urlencode($visited_on) . "&fromSoftwareVersion=" . $settings["edtb_version"] . "&fromSoftware=ED+ToolBox&x=" . urlencode($curSys["x"]) . "&y=" . urlencode($curSys["y"]) . "&z=" . urlencode($curSys["z"]));
Ah, sorry. Can you confirm changing it to this works as intended:
Code:$export = file_get_contents("http://www.edsm.net/api-logs-v1/set-log?commanderName=" . urlencode($settings["edsm_cmdr_name"]) . "&apiKey=" . $settings["edsm_api_key"] . "&systemName=" . urlencode($curSys["name"]) . "&dateVisited=" . urlencode($visited_on) . "&fromSoftwareVersion=" . $settings["edtb_version"] . "&fromSoftware=ED+ToolBox&x=" . urlencode($curSys["x"]) . "&y=" . urlencode($curSys["y"]) . "&z=" . urlencode($curSys["z"]));
I've updated EDTB and hopefully this bug is now fixed.Seems good to me for the coordinates, not sure about the date, but I think so.
I've updated EDTB and hopefully this bug is now fixed.
Unfortunately it is. I haven't been able to get it to work properly.Hey Walter. Is it normal that I get the "no data, reconnect API" message every time I launch the app? I have to keep triggering inputting the email password for it to work.
Unfortunately it is. I haven't been able to get it to work properly.
That, and the amount of credits.Not a huge deal. I just wanted to make sure I wasn't missing anything.
One question though. What data am I missing when the API is not connected? Is it just the 3 numbers at the top right (integrity, fuel & occupied cargo space)?
That, and the amount of credits.
I'm hoping we can do away with the API completely at some point.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: companion.orerve.net
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: companion.orerve.net
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: companion.orerve.net
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: companion.orerve.net
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: companion.orerve.net
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: companion.orerve.net
[21.10.2016 08:02:40][D:\Program Files (x86)\ED ToolBox\EDTB\Admin\API_login.php on line 61] Error: API login failed, possibly mistyped password or email.
[21.10.2016 08:03:39][D:\Program Files (x86)\ED ToolBox\EDTB\action\updateAPIdata.php on line 78] Error: no output from API, see http://edtb.xyz/?q=common-issues#api_info for help
[21.10.2016 08:04:54][D:\Program Files (x86)\ED ToolBox\EDTB\action\updateAPIdata.php on line 78] Error: no output from API, see http://edtb.xyz/?q=common-issues#api_info for help
[21.10.2016 08:09:01][D:\Program Files (x86)\ED ToolBox\EDTB\action\updateAPIdata.php on line 78] Error: no output from API, see http://edtb.xyz/?q=common-issues#api_info for help
Googling the Apache error would suggest it's because you have IPV6 enabled. You might want to try disabling it to see if that helps.When I try to log into the API, it never triggers the verification email to be sent. The logs say it may be a username or password error, but when I use ED Market Connector with the same username and password, I log in and get my verification email with no problems. Any ideas?
Apache Error Log:
Code:% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: companion.orerve.net % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: companion.orerve.net % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: companion.orerve.net % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: companion.orerve.net % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: companion.orerve.net % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: companion.orerve.net
EDTB error log:
Code:[21.10.2016 08:02:40][D:\Program Files (x86)\ED ToolBox\EDTB\Admin\API_login.php on line 61] Error: API login failed, possibly mistyped password or email. [21.10.2016 08:03:39][D:\Program Files (x86)\ED ToolBox\EDTB\action\updateAPIdata.php on line 78] Error: no output from API, see http://edtb.xyz/?q=common-issues#api_info for help [21.10.2016 08:04:54][D:\Program Files (x86)\ED ToolBox\EDTB\action\updateAPIdata.php on line 78] Error: no output from API, see http://edtb.xyz/?q=common-issues#api_info for help [21.10.2016 08:09:01][D:\Program Files (x86)\ED ToolBox\EDTB\action\updateAPIdata.php on line 78] Error: no output from API, see http://edtb.xyz/?q=common-issues#api_info for help
Googling the Apache error would suggest it's because you have IPV6 enabled. You might want to try disabling it to see if that helps.
Hey Walter, now that 2.2 is live could I maybe persuade you to try/post a brief set of instructions on how to export the list of previously visited systems that's held in EDToolbox and then import that list into the new in-game previously visited cache?
I think the ED side of things is described in this thread ..
https://forums.frontier.co.uk/showthread.php/291643-The-Visited-Stars-cache
.. via the creation of a file called "ImportStars.txt" in "c:\\Appdata\Local\Frontier Developments\Elite Dangerous".
If you have synchronised with EDSM, you can generate the file here: https://www.edsm.net/settings/export