stevejcl / PhotoPolarAlign

A python utility to help align equatorial telescopes by imaging the Celestial Pole region.
The Unlicense
1 stars 1 forks source link

issue connection to dwarf with STA #1

Open didierva opened 4 months ago

didierva commented 4 months ago

Try Connect to ws://192.168.0.250:9900 for 0000DAF2-0000-1000-8000-00805F9B34FB with data: timestamp: 1720326758 command:13000

CMD_SYSTEM_SET_TIME

Initializing... ping_interval : 10 unknown exception with error: WebSocket Client End. Result : False Dwarf API: Dwarf II not connected Try Connect to ws://192.168.0.250:9900 for 0000DAF2-0000-1000-8000-00805F9B34FB with data: timestamp: 1720326769 command:13000 CMD_SYSTEM_SET_TIME

Initializing... ping_interval : 10 unknown exception with error: WebSocket Client End. Result : False Dwarf API: Dwarf II not connected Error: perform_time. Opening web browser to URL: http://127.0.0.1:8000/dwarf_ble_connect/connect_dwarf.html 127.0.0.1 - - [07/Jul/2024 16:33:02] "GET /dwarf_ble_connect/connect_dwarf.html HTTP/1.1" 200 - 127.0.0.1 - - [07/Jul/2024 16:33:02] "GET /dwarf_ble_connect/dist_js/index.js HTTP/1.1" 304 - 127.0.0.1 - - [07/Jul/2024 16:33:02] "GET /dwarf_ble_connect/dist_js/src/api_utils.js HTTP/1.1" 304 - 127.0.0.1 - - [07/Jul/2024 16:33:02] "GET /dwarf_ble_connect/dist_js/src/bluetooth.js HTTP/1.1" 304 - 127.0.0.1 - - [07/Jul/2024 16:33:02] "GET /dwarf_ble_connect/dist_js/src/protobuf/protobuf.js HTTP/1.1" 304 - 127.0.0.1 - - [07/Jul/2024 16:33:02] "GET /dwarf_ble_connect/dist_js/src/cmd_mapping.js HTTP/1.1" 304 - 127.0.0.1 - - [07/Jul/2024 16:33:02] "GET /dwarf_ble_connect/dist_js/src/protobuf/minimal.js HTTP/1.1" 304 - File copied from config.tmp to config.py 127.0.0.1 - - [07/Jul/2024 16:33:02] "POST /submit HTTP/1.1" 200 - Starting monitor_ip_changes File copied from config.tmp to config.py 127.0.0.1 - - [07/Jul/2024 16:33:03] "POST /submit HTTP/1.1" 200 - File copied from config.tmp to config.py 127.0.0.1 - - [07/Jul/2024 16:33:13] "POST /submit HTTP/1.1" 200 - File copied from config.tmp to config.py 127.0.0.1 - - [07/Jul/2024 16:33:15] "POST /submit HTTP/1.1" 200 - File copied from config.tmp to config.py 127.0.0.1 - - [07/Jul/2024 16:33:18] "POST /submit HTTP/1.1" 200 -

stevejcl commented 4 months ago

The first two errors are expected, because at first if a IP is present in config.py, it tries to connect, but if if the dwarf has not been connected first by bluetooth (after a reboot for example), this will give these errors (the bluetooth connection is required), after two errors, it launchs the bluetotth connection via a web page. So the question is do you get connected after that ?

didierva commented 4 months ago

I click connect on the web page, says connected, the page closes and then the app says the Dwarf is not connected

Get Outlook for iOShttps://aka.ms/o0ukef


From: stevejcl @.> Sent: Monday, July 8, 2024 7:08:06 PM To: stevejcl/PhotoPolarAlign @.> Cc: didierva @.>; Author @.> Subject: Re: [stevejcl/PhotoPolarAlign] issue connection to dwarf with STA (Issue #1)

The first two errors are expected, because at first if a IP is present in config.py, it tries to connect, but if if the dwarf has not been connected first by bluetooth (after a reboot for example), this will give these errors (the bluetooth connection is need), after two errors, it launchs the bluetotth connection via a web page. So the question is do you get connected after that ?

— Reply to this email directly, view it on GitHubhttps://github.com/stevejcl/PhotoPolarAlign/issues/1#issuecomment-2213202249, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAYBRYUJVV34PHTY4VEEZE3ZLI3FNAVCNFSM6AAAAABKQACBYSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJTGIYDEMRUHE. You are receiving this because you authored the thread.Message ID: @.***>

stevejcl commented 4 months ago

Check the config.py (open in notepad), to see the IP, because I have the same IP 192.168.0.250 here. after the web page closes what are are the logs ?

didierva commented 4 months ago

I did change the IP in config.py to reflect the correct IP. Same issue

Get Outlook for iOShttps://aka.ms/o0ukef


From: stevejcl @.> Sent: Monday, July 8, 2024 7:25:59 PM To: stevejcl/PhotoPolarAlign @.> Cc: didierva @.>; Author @.> Subject: Re: [stevejcl/PhotoPolarAlign] issue connection to dwarf with STA (Issue #1)

Check the config.py (open in notepad), to see the IP, because I have the same IP 192.168.0.250 here. after the web page closes what are are the logs ?

— Reply to this email directly, view it on GitHubhttps://github.com/stevejcl/PhotoPolarAlign/issues/1#issuecomment-2213232479, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAYBRYWCM7LO4NL5C4LSLC3ZLI5IPAVCNFSM6AAAAABKQACBYSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJTGIZTENBXHE. You are receiving this because you authored the thread.Message ID: @.***>

stevejcl commented 4 months ago

with the mobile app you have no problem with STA mode ? Normally it's the web page that's updates the config.py it finds the IP. What you can do : when the web page opens, click F12 to see the debug Info

stevejcl commented 4 months ago

Ok get the same isue here , will check if the zip file is OK

SteveWasT commented 4 months ago

Two things:

The original poster shows what I expect to be the wrong DWARF_ID - if that's wrong would it affect the connection.

Secondly, you are saving a successful session status and updating DWARF_UI status as 'Close' which needs a Bluetooth session to restart. If my ip & wifi are still valid it would be preferable to not be forced to redo the Bluetooth part. Whether that's part of the reported issue I can't say, but changing the value to null before a restart I can login ok without Bluetooth.

stevejcl commented 4 months ago

As i use import config , to read the config.py file, Cx freeze considers it like a static file, so use the one I have on my build machine with my path! that's why it doesn't see the changes

stevejcl commented 4 months ago

ok seems better will release a new version and new exe

SteveWasT commented 4 months ago

Looks better here too, apart from the clouds.

stevejcl commented 4 months ago

Thanks for your feed backs,

stevejcl commented 4 months ago

do you have an ubuntu PC ?

didierva commented 4 months ago

Have a Mac and a windows. No Ubuntu

Get Outlook for iOShttps://aka.ms/o0ukef


From: stevejcl @.> Sent: Tuesday, July 9, 2024 8:21:37 AM To: stevejcl/PhotoPolarAlign @.> Cc: didierva @.>; Author @.> Subject: Re: [stevejcl/PhotoPolarAlign] issue connection to dwarf with STA (Issue #1)

do you have an ubuntu PC ?

— Reply to this email directly, view it on GitHubhttps://github.com/stevejcl/PhotoPolarAlign/issues/1#issuecomment-2215201501, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAYBRYR24L6GLBERJRU6MP3ZLLYFDAVCNFSM6AAAAABKQACBYSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJVGIYDCNJQGE. You are receiving this because you authored the thread.Message ID: @.***>

stevejcl commented 4 months ago

The two release for windows and linux are OK As I don"t have a mac, maybe you can try to generate it ? clone this repo on mac. install ; the 2 requirements as mentionned in the read me, and build the executable with: python setup.py build you will have the executable in the build subdir.