gpsd-easy icon indicating copy to clipboard operation
gpsd-easy copied to clipboard

Cannot get it working on latest v2.9.5.3

Open miodzicho opened this issue 9 months ago • 1 comments

I was waiting much more than 5 minutes, however no luck.

12:23:45 [INFO] [Thread-19 (run_once)] : [gpsdeasy] GPSd not installed, trying now. This may take up to 5minutes just let me run 12:23:47 [INFO] [Thread-19 (run_once)] : [gpsdeasy] GPSd should be installed 12:23:47 [INFO] [Thread-19 (run_once)] : [gpsdeasy] Updating autoconfig if changed 12:23:47 [INFO] [Thread-19 (run_once)] : [gpsdeasy] finished updating configs, Updated: True 12:23:48 [INFO] [MainThread] : initializing waveshare v2in13_V4 display done 12:23:50 [INFO] [MainThread] : Starting WebServer thread 12:23:50 [INFO] [MainThread] : xxxxxxxxxxxxxxxxxxxxxxxxxxxx(v2.9.5.3) 12:23:50 [INFO] [MainThread] : entering auto mode ... 12:23:50 [INFO] [WebServer] : web ui available at http://[::]:8080/ 12:23:50 [INFO] [MainThread] : connecting to http://127.0.0.1:8081/api ... 12:23:50 [INFO] [Thread-19 (run_once)] : [gpsdeasy] Connecting to gpsd socket at 127.0.0.1:2947 12:23:50 [ERROR] [Thread-19 (run_once)] : Thread for gpsdeasy, loaded, (), {} (most recent call last): File "/home/pi/.pwn/lib/python3.11/site-packages/pwnagotchi/plugins/init.py", line 29, in run_once pqueue.process_event(event_name, *args, *kwargs) File "/home/pi/.pwn/lib/python3.11/site-packages/pwnagotchi/plugins/init.py", line 85, in process_event callback(*args, **kwargs) File "/usr/local/share/pwnagotchi/custom-plugins/gpsdeasy.py", line 271, in on_loaded self.gpsd = GPSD(self.host, self.port, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/share/pwnagotchi/custom-plugins/gpsdeasy.py", line 63, in init self.connect(host=gpsdhost, port=gpsdport) File "/usr/local/share/pwnagotchi/custom-plugins/gpsdeasy.py", line 85, in connect welcome_raw = self.stream.readline() ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/socket.py", line 706, in readinto return self._sock.recv_into(b) ^^^^^^^^^^^^^^^^^^^^^^^ [Errno 104] Connection reset by peer

miodzicho avatar Mar 17 '25 12:03 miodzicho

After some fiddling I was able to get it working however it is doing this :

13:19:38 [INFO] [Thread-14] : [gpsdeasy] done setting up UI elements: ['fix', 'lat', 'lon', 'alt', 'spd']
13:19:38 [ERROR] [Thread-14] : IndexError('list index out of range')
(most recent call last):
 File "/home/pi/.pwn/lib/python3.11/site-packages/pwnagotchi/plugins/__init__.py", line 96, in process_events
   self.process_event(event_name, *args, **kwargs)
 File "/home/pi/.pwn/lib/python3.11/site-packages/pwnagotchi/plugins/__init__.py", line 85, in process_event
   callback(*args, **kwargs)
 File "/usr/local/share/pwnagotchi/custom-plugins/gpsdeasy.py", line 391, in on_ui_update
   coords = self.gpsd.get_current('tpv')
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "/usr/local/share/pwnagotchi/custom-plugins/gpsdeasy.py", line 108, in get_current
   return data['tpv'][0]
          ~~~~~~~~~~~^^^

miodzicho avatar Mar 26 '25 13:03 miodzicho