kwahoo2 / Mortar

BSD 3-Clause "New" or "Revised" License
33 stars 1 forks source link

synchronization with Stellarium #2

Closed Apnet66 closed 8 months ago

Apnet66 commented 8 months ago

Merry Christmas to everyone! There are problems, there is no synchronization with Stellarium.

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root' Stellarium tracked object url: QUrl("http://localhost:8090/api/objects/info?name=New Telescope 1&format=json") Board version: 79 degPerStepAzi 0.0204545 degPerStepAlt 0.0170455 Did not find any connected gamepads Port set to "ttyS0" Port set to "ttyS0" Fast decay: false Stellarium tracked object url: QUrl("http://192.168.0.106:8090/api/objects/info?name=New Telescope 1&format=json") Stellarium tracked object url: QUrl("http://192.168.0.106:8090/api/objects/info?name=New Telescope 1&format=json") Driver id: 1 Using driver id: 1 error: XDG_RUNTIME_DIR is invalid or not set in the environment.

Apnet66 commented 8 months ago

17035252665562688195476055074132

kwahoo2 commented 8 months ago

Hi, Can you open the url in a web browser? http://192.168.0.106:8090/api/objects/info?name=New Telescope 1&format=json You should see something like this: mortar_scrot

Apnet66 commented 8 months ago

I have Stellarium installed not on Raspberry, but on a computer, I indicate its host. I can't install it on raspberries. in the browser, nothing is visible. I'm not an expert on raspberries (((

kwahoo2 commented 8 months ago

It should still work. Open the browser on PI. If there is nothing, please check if Remote Control preferences are set as described in README, with "Access requires authentication" unchecked https://raw.githubusercontent.com/kwahoo2/Mortar/master/.github/images/stellar-conf1.png

Apnet66 commented 8 months ago

17035318373696302460740963539082

Apnet66 commented 8 months ago

I don't have Stellarium installed on the Pi. It's on the computer whose host I point to in Mortar

kwahoo2 commented 8 months ago

It seems that Pi does not see the PC. Please try ping the PC from Pi: ping 192.168.0.106 and then check open ports (also typing on Pi): nmap 192.168.0.106

Apnet66 commented 8 months ago

ping 56 (84) bytes of data bash: nmap: command not found

Apnet66 commented 8 months ago

apnet66@raspberrypi:~ $ nmap 192.168.0.106 Starting Nmap 7.93 ( https://nmap.org ) at 2023-12-25 23:56 Note: Host seems down. If it is really up, but blocking our ping probes, try -Pn Nmap done: 1 IP address (0 hosts up) scanned in 3.13 seconds

Apnet66 commented 8 months ago

I removed the firewall and so on from the windows, looked at this (((

Starting Nmap 7.93 ( https://nmap.org ) at 2023-12-26 00:03 MSK Nmap scan report for 192.168.0.106 Host is up (0.00056s latency). Not shown: 993 closed tcp ports (conn-refused) PORT STATE SERVICE 135/tcp open msrpc 139/tcp open netbios-ssn 445/tcp open microsoft-ds 5357/tcp open wsdapi 8090/tcp open opsmessaging 8443/tcp open https-alt 8800/tcp open sunwebadmin

Nmap done: 1 IP address (1 host up) scanned in 0.20 seconds

kwahoo2 commented 8 months ago

It seems that it should connect now:

8090/tcp open opsmessaging

If after opening in a browser http://192.168.0.106:8090/api/objects/listobjecttypes you can see some data, and http://192.168.0.106:8090/api/objects/info?name=New Telescope 1&format=json is still broken, then probably virtual telescope plugin configuration is incorrect.

Apnet66 commented 8 months ago

Everything is fine, he sees the stellarium. Now I’m making drivers and transmitting GPS coordinates to Pi. Thank you. I'll figure it out further. Which joystick should I use?

kwahoo2 commented 8 months ago

One of these cheap Dragorise-based gamepads. It should not matter as long Qt can recognize it. Also joystick is not really required, as you can use these arrow buttons in the Mortar window.