Skip to content

Corrects issue corresponding to exchanging format#1

Open
stevejcl wants to merge 10 commits intoDwarfTelescopeUsers:mainfrom
stevejcl:main
Open

Corrects issue corresponding to exchanging format#1
stevejcl wants to merge 10 commits intoDwarfTelescopeUsers:mainfrom
stevejcl:main

Conversation

@stevejcl
Copy link
Copy Markdown
Collaborator

After analysing web socket trames send and received by the mobile APP, I change the exchange format of data for RA and declination. Add also a trame for exchanging timezone.

Add a api for StopGoto.

Correction for Goto to Planet : need Ra and declination value to be present and egals to 0.

Copy link
Copy Markdown
Member

@wykhuh wykhuh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stevejcl I made some comments.

Comment thread src/astro.js Outdated

/**
* 4.1.1 UTC+0 time
* 4.1.0 UTC+0 time
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For this library, the numbers for the function should be the same numbers used in the Dwarf API docs, so people can quickly cross reference code in this library with the code in Dwarf API.

Which version of the Dwarf API Docs are you using? I used v1.0, and setting UTC is 4.1.1. There is no setting timezone.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it's the same, but this function is not documented, (see the request on the fly) so add a number not used maybe need to add : not documented

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add not documented is a good idea.

Comment thread package.json Outdated
},
"type": "module",
"author": "wykhuh",
"author": "stevejcl",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use wykhuh and stevejcl as the author.

Comment thread package.json Outdated
"repository": {
"type": "git",
"url": "https://github.com/DwarfTelescopeUsers/dwarfii_api"
"url": "https://github.com/stevejcl/dwarfii_api"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change the repo url back to DwarfTelescopeUsers

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no problem

Comment thread src/api_codes.js
* @returns {string}
*/
export const timeZoneURL = (IP) => `http://${IP}:8092/timezone?timezone=`;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which version of the Dwarf API docs are you using? I did not see setting timezone mentioned in the 1.0 API docs. https://hj433clxpv.feishu.cn/docx/MiRidJmKOobM2SxZRVGcPCVknQg

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this function is not documented, (see the request on the fly by using wireshark.

Comment thread src/api_codes.js
// goto
export const calibrateGotoCmd = 11205;
export const startGotoCmd = 11203;
export const stopGotoCmd = 11204;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool that you added stop goto. How did you get the code for stopGoto? I didn't see it in the 1.0 API docs.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see the request on the fly by using wireshark

Comment thread src/astro.js
// can't get it working !
return `${timeZoneURL(IP)}${timezone}`;
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this code doesn't work, then don't merge it into main.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry it's ok , now forget to remove the comment ..

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made this correction on 0.0.2-beta.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants