-
Notifications
You must be signed in to change notification settings - Fork 3
Modify Ra and Dec 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
Open
stevejcl
wants to merge
6
commits into
DwarfTelescopeUsers:main
Choose a base branch
from
stevejcl:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
f8f0072
Change Ra and Dec to decimal values used by Dwarf II
10cacda
Use UTC timestamp
stevejcl a6cf997
Use UTC timestamp
stevejcl 9bc4be6
add restart option
stevejcl 2070bcc
Use Normal Longitude Value
stevejcl 9c38798
Add Support for mobile Stellarium + app
stevejcl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,5 @@ | ||
| # Dwarf II TCP server | ||
|
|
||
| **NOTE: This is a work in progress. It's been cloudy, so I haven't tested this code yet.** | ||
|
|
||
| This software lets you send goto commands to the Dwarf II using Stellarium's Telescope Control. | ||
|
|
||
| Requires: | ||
|
|
@@ -22,15 +20,28 @@ This software setups up a TCP server. When you select an object Stellarium, and | |
|
|
||
| 3. Install libraries | ||
|
|
||
| On Linux, Mac or WSL for Windows : | ||
|
|
||
| ``` | ||
| pip install -r requirements.txt | ||
| ``` | ||
|
|
||
| On Windows : | ||
|
|
||
| you can install Python 3.11 (search on Microsoft Store) | ||
| open a command prompt on the directory and do : | ||
|
|
||
| ``` | ||
| python3 -m pip install -r requirements.txt | ||
| ``` | ||
|
|
||
| 4. Copy `config.sample.py`, and rename it to `config.py`. | ||
|
|
||
| The `HOST` and `PORT` should be the same as those used in Stellarium Telescope Plugin. | ||
|
|
||
| Fill in your `LATITUDE` and `LONGITUDE`. | ||
| Fill in your `LATITUDE` and `LONGITUDE` (LONGITUDE is negative west of Greenwich) | ||
|
|
||
| Add also your `TIMEZONE`, it's need when you are using the Stellarium Mobile App | ||
|
|
||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think end users should enter in the correct sign, and this app will reverse the sign and send the reverse sign to the API. If the DwarfLabs devs fix the API, then we can remove the code in the app that reverses the sign. |
||
| If you are using the Dwarf wifi, the `DWARF_IP` is 192.168.88.1. If you are using Dwarf II in STA mode, then get the IP for your Dwarf II. | ||
|
|
||
|
|
@@ -43,4 +54,16 @@ If you are using the Dwarf wifi, the `DWARF_IP` is 192.168.88.1. If you are usin | |
| python server.py | ||
| ``` | ||
|
|
||
| 6. Select an object in Stellarium, and issue a slew command. The Dwarf II should move to that object. | ||
| On Windows : | ||
|
|
||
| ``` | ||
| python3 server.py | ||
| ``` | ||
|
|
||
| 6. Start the dwarf II and use the mobile app and go to Astro Mode and do the calibration | ||
|
|
||
| 7. Select an object in Stellarium, and issue a slew command. (shortcut for Windows is Alt + number, See Stellarium documentation, Command + number for Mac). The Dwarf II should move to that object. | ||
|
|
||
| 8. You can also use the Stellarium Plus Mobile App with the remote Telescopte function, Select an object in Stellarium, and issue a goto command with the remote control. The Dwarf II should move to that object. | ||
|
|
||
| **NOTE: If the server disconnects from Stellarium, You can try reconnect on the cmd window by typing Y otherwise the program will stop ** | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,4 +3,5 @@ | |
| LATITUDE = 0 | ||
| LONGITUDE = 0 | ||
| DWARF_IP = "192.168.88.1" | ||
| TIME_ZONE="Europe/Paris" | ||
| DEBUG = True | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 code also works on MacOS.