Skip to content

Conversation

@stevejcl
Copy link
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
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.

src/astro.js Outdated

/**
* 4.1.1 UTC+0 time
* 4.1.0 UTC+0 time
Copy link
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
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
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.

package.json Outdated
},
"type": "module",
"author": "wykhuh",
"author": "stevejcl",
Copy link
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.

package.json Outdated
"repository": {
"type": "git",
"url": "https://github.com/DwarfTelescopeUsers/dwarfii_api"
"url": "https://github.com/stevejcl/dwarfii_api"
Copy link
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
Collaborator Author

Choose a reason for hiding this comment

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

no problem

* @returns {string}
*/
export const timeZoneURL = (IP) => `http://${IP}:8092/timezone?timezone=`;

Copy link
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
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.

// goto
export const calibrateGotoCmd = 11205;
export const startGotoCmd = 11203;
export const stopGotoCmd = 11204;
Copy link
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
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

// can't get it working !
return `${timeZoneURL(IP)}${timezone}`;
}

Copy link
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
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
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