-
Couldn't load subscription status.
- Fork 7
Corrects issue corresponding to exchanging format #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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=`; | ||
|
|
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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}`; | ||
| } | ||
|
|
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 ..
There was a problem hiding this comment.
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
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.