GPS-Daten in FHEM einlesen - gelöst

Begonnen von fstefan1960, 22 August 2017, 18:08:45

Vorheriges Thema - Nächstes Thema

fstefan1960

Guten Tag,

auch wenn das jetzt erst mal sonderbar klingen mag in einem Umfeld, das sich mit Hausautomatisierung befasst: Kann man das am Raspberry Pi angeschlossene GPS-Modul so auslesen, dass die Koordinaten in FHEM zur Verfügung stehen?
Nein, mein Haus bewegt sich nicht, aber mein Auto, in dem ein Pi auch nette Dinge für mich erledigt.

In diesem Kontext auch den Standort in FHEM zur Verfügung zu haben, wäre klasse.

Vielen Dank für jeden Tip. Suchen hat mir bisher nicht geholfen....
FHEM auf PC: CUL868, CUL 443, HM_LAN, JeeLink
FHEM auf Raspi: CUL868
div. LaCrosse Temp/Hum-Sensoren, HM-Heizkörperventile, Schaltaktoren, etc.

Burny4600

Siehe https://forum.fhem.de/index.php/topic,66674.msg579712.html#msg579712.
Ist zwar ein WiFi Modul wo GPS Sensor dran gehängt werden kann.
Da wird dir vielleicht jemand weiter helfen können.
Mfg Chris

Raspberry Pi 2/2+/3/3+/4 / Betriebssystem: Bullseye Lite
Schnittstellen: RFXtrx433E, SIGNALduino, MQTT, nanoCUL, HM-MOD-UART, 1-Wire, LAN, ser2net, FHEM2FEHEM
Devices: S.USV, APC-USV, Fronius Datalogger Web 2, FS20, IT, Resol VBUS & DL2, TEK603, WMR200, YouLess, Homematic, MQTT

sky64

Hallo

Wie ist denn das GPS z.Z. angebunden ? Ist da schon eine Applikation dran?

Meistens werden die GPS-Sensoren ja mit einer seriellen Schnittstelle angebunden und dort kommen dann im Sekundentakt  (oder je nach GPS in anderen Zeitabschnitten)
solche Zeilen im NMEA-0183 Format ( es gibt auch andere binäre Protokolle, aber das NMEA ist der Standard)
$GPRMC,191410,A,4735.5634,N,00739.3538,E,0.0,0.0,181102,0.4,E,A*19
Es gibt verschiedene Zeilen : http://www.kowoma.de/gps/zusatzerklaerungen/NMEA.htm

Diese Zeilen mit einem kleinen Script deiner Wahl von z.B. dem /dev/ttyUSB0 zu lesen, zu filtern und dann z.B. in FHEM in ein Dummy zu schreiben solle kein Problem sein ?

Wenn das GPS schon von einer anderen Anwendung belegt wird müsste man sehen ob man die Kommunikation belauschen kann oder die Anwendung die Daten irgenndwohin hin schreibt.

Gruß Ronald

FHEM auf Ubuntu-VM (VMware), Heizung FHEM auf Raspi
Module: Volkszähler, ESPEASY, RFXtrx433, LaCrosseGateway, jeeLink, EMT7110, IRBlaster, LuftdatenInfo, MQTT, ESPDuino, Shelly, Abfallanzeige, (OilFox), Weatherman,  KeyValueProtocol
Modbus für Fronius Gen24-PV incl. ForeCast mit DWD und SolCast

fstefan1960

Hallo,

ja, die Daten kommen als NMEA-Daten herein, entweder über ttyACM0 oder über UART. Habe beide Optionen. Wie müsste denn dann der Ansatz sein, diese Daten aus FHEM heraus zu "belauschen"? Script und parsen klingt ja gut, aber mir fehlt gerade der erste Faden, an dem ich mich dem nähern kann.
Kann man die NMEA-Zeilen irgendwie in eine Variable schreiben, auf die FHEM Zugriff bekommt? Oder wie fang ich das an?
FHEM auf PC: CUL868, CUL 443, HM_LAN, JeeLink
FHEM auf Raspi: CUL868
div. LaCrosse Temp/Hum-Sensoren, HM-Heizkörperventile, Schaltaktoren, etc.

CoolTux

Anders Rum wird ein Schuh draus. Du schreibst ein Script, Shell oder Perl und lässt die ausgelesen Daten Zurecht machen und an fhem senden.
Hat Dein Auto Pi denn immer Netzverbindung nach Hause?
Und Du solltest halt überlegen wie die Daten aufgearbeitet aussehen müssen damit Du sie auch in FHEM gebrauchen kannst. Um zum Beispiel Weblink mit Googlemap samt Autoposition in FHEM an zu zeigen.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

Benni

Hallo fstefan1960,

rein aus persönlichem Interesse: Was für ein GPS-Modul verwendest du da?
Hast du das direkt am Raspi hängen?

Gib doch mal bitte ein paar Infos.

Könnte sowas nämlich auch gebrauchen für mein mobiles FHEM im Wohnwagen  ;D

Danke dir!

Gruß Benni.

sky64

Hallo Benni

Zitatrein aus persönlichem Interesse: Was für ein GPS-Modul verwendest du da?
Ich habe mir für eine andere Anwendung (Amaterufunk-APRS) eine  "U-BLOX NEO-6M GPS" geholt.
Gibts z.B. bei Amazon schon ab 11€.
Damit bin ich sehr zufrieden. Braucht ca. 30mA Strom und und läuft ab 3,3V z.B. direkt am Raspi.
Die soll bei mir mal als APRS-Tracker auf das Fahrrad.

Sonst hätte ich noch gegen Unkostenbeitrag ältere Sirif-II-Mäuse abzugeben.
Die brauchen aber 200mA bei 5V und können maximal 12 Satelliten empfangen.
Tun aber ihre Arbeit sonst problemlos. Im Auto läuft das bei mir mit einer Abschaltung in Abhängigkeit von der Bordnetzspannung.
Bei laufendem Motor ist die Bordspannung über 13V und beim Abstellen läuft der ARPS-Sender noch 10min nach.

Gruß Ronald
FHEM auf Ubuntu-VM (VMware), Heizung FHEM auf Raspi
Module: Volkszähler, ESPEASY, RFXtrx433, LaCrosseGateway, jeeLink, EMT7110, IRBlaster, LuftdatenInfo, MQTT, ESPDuino, Shelly, Abfallanzeige, (OilFox), Weatherman,  KeyValueProtocol
Modbus für Fronius Gen24-PV incl. ForeCast mit DWD und SolCast

betateilchen

Zitat von: sky64 am 24 August 2017, 12:19:53
Die soll bei mir mal als APRS-Tracker auf das Fahrrad.

wozu braucht man APRS auf dem Fahrrad?

73, DG1UDO
-----------------------
Formuliere die Aufgabe möglichst einfach und
setze die Lösung richtig um - dann wird es auch funktionieren.
-----------------------
Lesen gefährdet die Unwissenheit!

CBSnake

Hi,

ich abonniere mir das mal. Aktuell liefert mir ein Android-Handy die GPS Daten aus den Autos. Ein Pi wäre, aufgrund der Möglichkeit mehr Eingänge abzufragen/übermitteln natürlich toll. Auch die Spannungsversorgung, Neustart, Nachlaufen usw wäre beim Pi einfacher.
Das Handy hat halt GPS und GPRS an Board und lässt sich per Tasker auch von einem Laien mit FHEM verknüpfen :-)

Grüße
Achim
FHEM auf Debian 10, HM-Wlan, JeeLink-Wlan, Wlanduino, ConBee, TP-Link Steckdose, GHoma Steckdosen, Shelly Steckdosen

fstefan1960

Hallo,

ich habe mir jetzt ein Python-Script geschrieben, das die NMEA-Daten ausliest und in einzelne Python-Variablen schreibt. Wie kann ich denn nun aus Python etwas in FHEM-Readings schreiben? Hat da jemand einen Tip?

Die Infos, welche Geräte ich da habe, liefere ich nach, wenn ich wieder zuhause bin. Das ist aber erst nächste Woche ...
FHEM auf PC: CUL868, CUL 443, HM_LAN, JeeLink
FHEM auf Raspi: CUL868
div. LaCrosse Temp/Hum-Sensoren, HM-Heizkörperventile, Schaltaktoren, etc.

Benni

Zitat von: sky64 am 24 August 2017, 12:19:53
Ich habe mir für eine andere Anwendung (Amaterufunk-APRS) eine  "U-BLOX NEO-6M GPS" geholt.
Gibts z.B. bei Amazon schon ab 11€.
Damit bin ich sehr zufrieden. Braucht ca. 30mA Strom und und läuft ab 3,3V z.B. direkt am Raspi.

Danke, das klingt sehr Interessant! Werde ich mir auf jeden Fall mal anschauen. :)
Allerdings habe ich auf meinem Raspi bereits ein HM-MOD-RPI als HMUART sitzen. Krieg ich so einen dann trotzdem noch mit dran?

fstefan1960

Hallo,

also mein Skript liest jetzt die Daten aus und schreibt sie per telnet in ein dummy in FHEM. Leider bin ich nicht daheim, so dass ich aktuell nur theoretische Erfolge habe, aber per Teamviewer klappt das eine (telnet auf der Entwicklermaschine) und unterwegs das andere (Auslesen des GPS). Nächste Woche kreuze ich die skripte mal und dann kann ich sie auch einstellen hier ...
FHEM auf PC: CUL868, CUL 443, HM_LAN, JeeLink
FHEM auf Raspi: CUL868
div. LaCrosse Temp/Hum-Sensoren, HM-Heizkörperventile, Schaltaktoren, etc.

fstefan1960

#12
So, hier mal das versprochene Skript:
Kann sein, dass da noch Artefakte drin sind, die raus können. Insbesondere die Aufarbeitung der Strings ist sicher sehr stümperhaft.
Ihr müsst natürlich auf Eure Situation (IP, Passwort etc.) anpassen:


#!/usr/bin/env python
# coding: utf8
from __future__ import absolute_import, division, print_function
from datetime import datetime as DateTime
import serial
import unicodedata
import time
import telnetlib
import getpass
import sys
import string

def main():
    data=""
    with serial.Serial('/dev/ttyACM0', 9600) as lines:
        for line in lines:
               if((line.split()[0][0]=='$') and (line[0:6]=='$GPGGA')):
                 now = DateTime.now()
                 data=line.split(",")
                 zeitstr = str(now)
                 zeitstring = zeitstr.split()
                 Datum = zeitstring[0]
                 Uhrzeit = zeitstring[1]
                 Uhrzeit = Uhrzeit[0:5]
                 tn = telnetlib.Telnet('localhost',7072)
                 tn.read_until(":")
                 tn.write("Passwort\n")
                 tn.write("set Latitude " + data[2] + data[3]+ "\n")
                 tn.write("set Longitude " + data[4] + data[5]+ "\n")
                 tn.write("set Height " + data[9] + "\n")
                 tn.write("set GPSTime " + Uhrzeit  + "\n")
                 tn.write("set GPSDate " + Datum  + "\n")
                 tn.write("exit\n")
                 tn.close()
                 time.sleep(60)

main()


FHEM auf PC: CUL868, CUL 443, HM_LAN, JeeLink
FHEM auf Raspi: CUL868
div. LaCrosse Temp/Hum-Sensoren, HM-Heizkörperventile, Schaltaktoren, etc.

peterk_de

#13
Ich hatte das gleiche Problem, allerdings ist das direkte Auslesen des tty-Devices ungünstig (sehr GPS-Device-spezifisch - wie weiter oben erwähnt gibt es verschiedene Protokolle; es kann immer nur eine Applikation gleichzeitig zugreifen etc.) ... ich habe deshalb mal ein FHEM-Modul gebaut, welches stattdessen den Linux GPS-Dämon ausliest. Der gpsd kapselt diverse GPS-Empfänger (sozusagen alle gebräuchlichen) und haut da die meisten herstellerspezifischen Eigenbrödelein heraus; er kann per TCP angesprochen werden (per default nur lokal auf 127.0.0.1). Meineswissens setzt z.B. auch Android darauf.

Mein FHEM-Modul benötigt nur die (leichtgewichtige) Perl-Bibliothek GPSD::Parse. Diese wiederum - logischerweise - einen installierten gpsd. Installation von beidem folgendermaßen:


sudo apt-get install gpsd gpsd-clients
sudo cpan install GPSD::Parse


Bitte prüfen, ob der Empfänger mit gpsd funktioniert. Dazu auf der Linux-Shell eingeben:


cgps


Jetzt sollte man seine Position im Terminal sehen. Lässt sich GPSD::Parse nicht installieren, bitte mit sudo cpan force install GPSD::Parse machen oder den GPS-Empfänger vor der Installation ausstöpseln, dann sollte es gehen und möglicherweise trotzdem funktionieren (der Autor hat es mit den Unittests ein bisschen zu gut gemeint, bei mir ging es nur so).

Dann das angehängte FHEM-Modul laden. Läuft gpsd lokal, braucht man nix weiter einstellen:

define meinGPS GPSD

- fertig. Ansonsten mit:

define meinGPS GPSD host=192.168.77.88 port=2947

Nach einigen Sekunden kriegt man dann diverse Readings. Das Update-Intervall lässt sich per Attribut gpsd_PollInterval einstellen.

Erfolgreich dauergetestet auf einem Raspi Pi 3 (unter Raspbian Stretch Lite) mit einem Navilock NL-8002U 62523 USB-GPS-Empfänger (Ublox UBX-M8030-KT Chip) und frischem FHEM. Knownbugs sind ein paar Perl-Warnings im FHEM-Log durch die GPSD::Parse Bibliothek.
FHEM auf Ubuntu-VM / 2xNUC Proxmox Cluster
UI: HomeKit, TabletUI, Grafana
IOdevs: 2xHueBridge, RaspiMatic-CCU, CUL868, 2xHarmonyHub, 6xRaspi-Roomnode mit CO2, VOC und lepresenced
Devices: 107xHomematic(IP), 96xPhilips Hue, 17xTECHEM, 12xBTLE, 8xSONOS, 2xHomeConnect, 1xShelly 3em, 1xNanoleaf ...

morph

Hi,

da ich im Wohnmobil auch einen Pi für diverse Dinge installiert habe, möchte ich nun auch einen GPS Tracker einbauen, um bei einem eventuellen Diebstahl das Mobil orten zu können.

Nun habe ich mir dein Modul heruntergeladen und in Fhem eingespielt, bekomme aber ein

Unterminated <> operator at ./FHEM/49_GPSD.pm line 1.

?!

peterk_de

Hey Morph, lösch einfach mal die erste Zeile in der Datei (insb. das $id$ ) und probier es nochmal ... läuft bei mit zwar 1:1 so wie gepostet, aber wäre jetzt die einzige Idee, die ich hätte ...
FHEM auf Ubuntu-VM / 2xNUC Proxmox Cluster
UI: HomeKit, TabletUI, Grafana
IOdevs: 2xHueBridge, RaspiMatic-CCU, CUL868, 2xHarmonyHub, 6xRaspi-Roomnode mit CO2, VOC und lepresenced
Devices: 107xHomematic(IP), 96xPhilips Hue, 17xTECHEM, 12xBTLE, 8xSONOS, 2xHomeConnect, 1xShelly 3em, 1xNanoleaf ...

morph

Nachdem es einfach nicht ging habe ich eben den Raspi neu aufgesetzt. Und nun läuft das ganze inkl. Fhem und Loggen in Fhem des GPS und das hochladen der Logdateien auf die Dropbox.

Ziel ist im Grunde, ein gestohlenes Wohnmobil orten zu können.

Nun suche ich eine Möglichkeit, die Log Datei in eine Karte umwandeln zu Können.

Gibt es so eine Möglichkeit?


CBSnake

Hi,

poste doch Mal nen Auszug aus dem Log mit den Koordinaten.
Das ganze kann man dann, normalerweise, mit Userreading so umbauen, dass ein Google-Maps Link entsteht.

Grüße
Achim
FHEM auf Debian 10, HM-Wlan, JeeLink-Wlan, Wlanduino, ConBee, TP-Link Steckdose, GHoma Steckdosen, Shelly Steckdosen

morph

Das wäre ja super!

2018-01-14_21:25:37 GPS lat: 48.0
2018-01-14_21:25:37 GPS lon: 10.0
2018-01-14_21:25:37 GPS altitude: 491.376
2018-01-14_21:25:37 GPS speed: 0.044
2018-01-14_21:25:37 GPS climbRate: 0.012
2018-01-14_21:25:37 GPS heading: 176.5066
2018-01-14_21:25:37 GPS direction: S
2018-01-14_21:25:37 GPS time_utc: 2018-01-14T20:25:36.000Z
2018-01-14_21:25:37 GPS errorLonLat: 29.7
2018-01-14_21:25:37 GPS errorAltitude: 34.27
2018-01-14_21:25:37 GPS errorSpeed: 0.58
2018-01-14_21:25:37 GPS errorClimbRate: 68.54
2018-01-14_21:25:37 GPS usedGpsDevice: /dev/ttyS0
2018-01-14_21:26:07 GPS lat: 48.0
2018-01-14_21:26:07 GPS lon: 10.0
2018-01-14_21:26:07 GPS altitude: 483.744
2018-01-14_21:26:07 GPS speed: 0.172
2018-01-14_21:26:07 GPS climbRate: -0.071
2018-01-14_21:26:07 GPS heading: 88.5683
2018-01-14_21:26:07 GPS direction: E
2018-01-14_21:26:07 GPS time_utc: 2018-01-14T20:26:06.000Z
2018-01-14_21:26:07 GPS errorLonLat: 29.7
2018-01-14_21:26:07 GPS errorAltitude: 34.5
2018-01-14_21:26:07 GPS errorSpeed: 0.61
2018-01-14_21:26:07 GPS errorClimbRate: 69
2018-01-14_21:26:07 GPS usedGpsDevice: /dev/ttyS0
2018-01-14_21:26:37 GPS lat: 48.0
2018-01-14_21:26:37 GPS lon: 10.0
2018-01-14_21:26:37 GPS altitude: 474.096
2018-01-14_21:26:37 GPS speed: 0.269
2018-01-14_21:26:37 GPS climbRate: -0.172
2018-01-14_21:26:37 GPS heading: 243.0218
2018-01-14_21:26:37 GPS direction: WSW
2018-01-14_21:26:37 GPS time_utc: 2018-01-14T20:26:37.000Z
2018-01-14_21:26:37 GPS errorLonLat: 29.7
2018-01-14_21:26:37 GPS errorAltitude: 34.04
2018-01-14_21:26:37 GPS errorSpeed: 0.55
2018-01-14_21:26:37 GPS errorClimbRate: 68.08
2018-01-14_21:26:37 GPS usedGpsDevice: /dev/ttyS0



So kommt das ganze mal an, alle 30 sec

CBSnake

OK,

hast du nach 48. und 10. was gekürzt? Oder kommt das nicht "genauer"

FHEM auf Debian 10, HM-Wlan, JeeLink-Wlan, Wlanduino, ConBee, TP-Link Steckdose, GHoma Steckdosen, Shelly Steckdosen

morph


CBSnake

dachte ich mir fast :-) sind das Einträge von einem Device? dann wäre da mal ein List super, oder kommen die direkt ins Log?
FHEM auf Debian 10, HM-Wlan, JeeLink-Wlan, Wlanduino, ConBee, TP-Link Steckdose, GHoma Steckdosen, Shelly Steckdosen

morph

Also List mach ich dir natürlich heut Abend sofort wenn ich daheim bin.

Das ist ein raspi an dem via seriellem Anschluss ein gps Modul hängt. Dieses Modul hab ich in fhem eingebunden und das erzeugt die log Datei so wie du es siehst alle 30 sek.

Dieses log lass ich mir im Moment alle 10 Minuten auf die Dropbox laden um den eventuellen bösen Buben am schnipel zu packen.

Schon wäre jetzt eben, wenn ich daraus auch eine Route machen lassen kann, da ich es auch Fr mich persönlich haben wollen würde bzw. Ich irgendwo draufklicken möchte um dann den Standort direkt zu sehen.

Wernieman

Eigentlich brauchst Du die Daten in einem anderen Format. z.B. "GPS Exchange Format", welches DU dann z.B. in google-earth einlesen könntest.

Wie Du jetzt diese Logdaten nachträglich in ein passendes Format konvertieren könntest ...  :-\
- Bitte um Input für Output
- When there is a Shell, there is a Way
- Wann war Dein letztes Backup?

Wie man Fragen stellt: https://tty1.net/smart-questions_de.html

CBSnake

Sowas z.b. ?

fhembot:
Es ist der 14.01.2018 um 11.00 Uhr und der Akku hat 30 % Position ist https://maps.google.de/maps?q=52.30378458076546,12.72491878712008 und Geschwindigkeit ist 0 und Alarm ist 0

Grüße

Achim
FHEM auf Debian 10, HM-Wlan, JeeLink-Wlan, Wlanduino, ConBee, TP-Link Steckdose, GHoma Steckdosen, Shelly Steckdosen

morph

Das wäre dann das Non Plus Ultra!

Grundlegend nur einmal die GPS Daten irgendwo hin bekommen um dort die Route zu erstellen

morph


CBSnake

Nö,
warte noch auf das List vom Device, falls es eine gibt ;-)
FHEM auf Debian 10, HM-Wlan, JeeLink-Wlan, Wlanduino, ConBee, TP-Link Steckdose, GHoma Steckdosen, Shelly Steckdosen

morph

Ah verdammt... Benutzerfehler :-(


list GPS

Internals:
   NAME       GPS
   NR         18
   STATE      Connected
   TYPE       GPSD
   gpsdHost   127.0.0.1
   gpsdPort   2947
   pollInterval 30
   READINGS:
     2018-01-17 19:25:20   altitude        486.769
     2018-01-17 19:25:20   climbRate       -2.501
     2018-01-17 19:25:20   direction       SW
     2018-01-17 19:25:20   errorAltitude   84.64
     2018-01-17 19:25:20   errorClimbRate  169.28
     2018-01-17 19:25:20   errorLonLat     88.231
     2018-01-17 19:25:20   errorSpeed      1.89
     2018-01-17 19:25:20   heading         226.647
     2018-01-17 19:25:20   lat             48.41
     2018-01-17 19:25:20   lon             10.29
     2018-01-17 19:25:20   speed           0.855
     2018-01-17 19:17:34   state           Connected
     2018-01-17 19:25:20   time_utc        2018-01-17T18:25:20.000Z
     2018-01-17 19:25:20   usedGpsDevice   /dev/ttyS0
   helper:
     GPSDparams:
       host       127.0.0.1
       port       2947
Attributes:
   room       Schantall




list Filelog_GPS

Internals:
   DEF        ./log/Filelog_GPS-%Y-%U.log GPS:usedGpsDevice:.*
   NAME       Filelog_GPS
   NOTIFYDEV  GPS
   NR         19
   NTFY_ORDER 50-Filelog_GPS
   REGEXP     GPS:usedGpsDevice:.*
   STATE      active
   TYPE       FileLog
   currentlogfile ./log/Filelog_GPS-2018-02.log
   logfile    ./log/Filelog_GPS-%Y-%U.log
   READINGS:
     2018-01-17 19:25:50   linesInTheFile  6868
Attributes:
   logtype    text
   room       Schantall

CBSnake

#29
Moin,

define doif_gps doif (["GPS:lat"])((setreading GPS link https://maps.google.de/maps?q=[GPS:lat],[GPS:lon]))DOELSE

erzeugt dir schonmal den Google Link als Reading im Device GPS bzw aktualisiert den jedesmal wenn lat ein Event auslöst. Evtl geht das auch einfacher mit Userreading :-)
Um das ganze z.B. in eine XML Datei zu bekommen muss ich nochmal schauen, das steht für meine autos aber auch schon auf der Liste :-) 4 Monate Daten hab ich schon gesammelt :-)

Nachtrag:

define doif_gps doif (["GPS:lat"])((setreading GPS gpx <trkpt lat="[GPS:lat]" lon="[GPS:lon]"><time>[GPS:time_utc]</time></trkpt>))DOELSE

bekommst du, ungeprüft noch ein Reading GPX, welches, bereinigt um die Filelogzeit, mit n bisschen kram drum rum:

Anfang:
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<gpx xmlns="http://www.topografix.com/GPX/1/1" version="1.1" creator="Wikipedia"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd">
<!-- Kommentare sehen so aus -->
<metadata>
  <name>Dateiname</name>
  <desc>Validiertes GPX-Beispiel ohne Sonderzeichen</desc>
  <author>
   <name>Autorenname</name>
  </author>
</metadata>


<trk>
  <name>Trackname1</name>
  <desc>Trackbeschreibung</desc>
  <trkseg>



und am Ende:

  </trkseg>
</trk>


</gpx>


eine gpx Datei ergibt welche du z.B. mit Google Earth darstellen kannst.

Grüße
Achim
FHEM auf Debian 10, HM-Wlan, JeeLink-Wlan, Wlanduino, ConBee, TP-Link Steckdose, GHoma Steckdosen, Shelly Steckdosen

morph

Also, erst mal danke ich dir, das du dich meiner annimmst :-)


Die def bekomme ich natürlich in fhem hinein, aber dann setzt es auch schon aus bei mir.

Was mache ich mit dem anderen Code? und dem Dritten? Eine? Zwei Dateien erstellen? In Welches Verzeichnis?


Verzeih mir bitte, aber da bin ich nicht der Profi...

CBSnake

Kein Problem,

mach die beiden mal per def rein und schau ob du die zwei neuen Readings Link und gpx in deinem GPS Device bekommst und ob die Sinn machen. Dann erklär ich gerne weiter, muss aber erstmal laufen :-)

Achja GPS:lat muss natürlich ein Event "werfen" also falls du was mit event-on-change reading drin hast muss lat mit rein :-)
FHEM auf Debian 10, HM-Wlan, JeeLink-Wlan, Wlanduino, ConBee, TP-Link Steckdose, GHoma Steckdosen, Shelly Steckdosen

morph

Ah, jetzt wird es so langsam im mein Brain :-)

Zitat von: CBSnake am 18 Januar 2018, 08:47:55

define doif_gps doif (["GPS:lat"])((setreading GPS link https://maps.google.de/maps?q=[GPS:lat],[GPS:lon]))DOELSE

Macht im Device "GPS" einen weiteren Eintrag, und ich habe einen Link im Device GPS zu Google-Maps. Funktioniert auch!

Zitat von: CBSnake am 18 Januar 2018, 08:47:55

define doif_gps doif (["GPS:lat"])((setreading GPS gpx <trkpt lat="[GPS:lat]" lon="[GPS:lon]"><time>[GPS:time_utc]</time></trkpt>))DOELSE

Macht nochmal einen Eintrag im Device GPS mit dem Punkt gpx. Damit kann ich aber noch nichts anfangen ;-)

Das kommt dabei raus:


gpx <trkpt lat="48.41" lon="10.29"><time>2018-01-18T19:07:34.000Z</time></trkpt>


Ich nehme mal an, das wir daraus nun eine Datei erstellen? ;-)

CBSnake

Genau das Reading gpx bitte in ein eigenes Logfile. Klar wie man das mach?

Da kommt dann was raus mit

2018-01-18 20:15 GPS gpx <trkpt lat="48.41" lon="10.29"><time>2018-01-18T19:07:34.000Z</time></trkpt>

Bis zu diesem Punkt bin ich bisher gekommen. Nun holt man sich das Log vom FHEM Server auf den PC, macht es mit Excel auf, Excel fragt dann nach dem Trennzeichen, hier nur das Leerzeichen wählen und schwupps kannst du die Spalten die <trkpt........ </trkpt> markieren und kopieren.
Das kommt dann in ne Datei zwischen Anfang und Ende aus einem meiner letzten Beiträge und wird mit .gpx gespeichert. Nun kannst es mit Google Earth öffnen ;-)

Ziel ist das FHEM die gpx erstellt ;-)
FHEM auf Debian 10, HM-Wlan, JeeLink-Wlan, Wlanduino, ConBee, TP-Link Steckdose, GHoma Steckdosen, Shelly Steckdosen

morph

Hm. Also die beiden haben sich jeweils einmal "gemeldet" und danach nicht mehr. Der Datensatz ist noch der von vor einer Stunde.

Ich nehm mal an, das ich den beiden DOIF's sagen muss, das sie z.b. alle 30 sek den Status abfragen sollen? Wie?

CBSnake

Hm ne mach mal bei den doif das Attribut do auf Always
FHEM auf Debian 10, HM-Wlan, JeeLink-Wlan, Wlanduino, ConBee, TP-Link Steckdose, GHoma Steckdosen, Shelly Steckdosen

morph

 :o

Soooo einfach....

und Das mit dem GPX hab ich auch hinbekommen:

define Filelog_GPX FileLog ./log/Filelog_GPX-%Y-%U.log GPS:(gpx).*

Bekomme ich nun die, und nur die Zeilen:


2018-01-18_22:39:24 GPS gpx: <trkpt lat="48.41" lon="10.29"><time>2018-01-18T21:39:24.000Z</time></trkpt>
2018-01-18_22:39:54 GPS gpx: <trkpt lat="48.41" lon="10.2"><time>2018-01-18T21:39:54.000Z</time></trkpt>
2018-01-18_22:40:24 GPS gpx: <trkpt lat="48.41" lon="10.2"><time>2018-01-18T21:40:24.000Z</time></trkpt>
2018-01-18_22:40:54 GPS gpx: <trkpt lat="48.41" lon="10.2"><time>2018-01-18T21:40:54.000Z</time></trkpt>
2018-01-18_22:41:24 GPS gpx: <trkpt lat="48.41" lon="10.29"><time>2018-01-18T21:41:24.000Z</time></trkpt>
2018-01-18_22:41:55 GPS gpx: <trkpt lat="48.41" lon="10.29"><time>2018-01-18T21:41:54.000Z</time></trkpt>
2018-01-18_22:42:25 GPS gpx: <trkpt lat="" lon=""><time>2018-01-18T21:42:25.000Z</time></trkpt>
2018-01-18_22:42:55 GPS gpx: <trkpt lat="48.413" lon="10.29"><time>2018-01-18T21:42:55.000Z</time></trkpt>
2018-01-18_22:43:25 GPS gpx: <trkpt lat="48.411" lon="10.29"><time>2018-01-18T21:43:25.000Z</time></trkpt>
2018-01-18_22:44:01 GPS gpx: <trkpt lat="48.411" lon="10.29"><time>2018-01-18T21:44:01.000Z</time></trkpt>
2018-01-18_22:44:33 GPS gpx: <trkpt lat="48.411" lon="10.29"><time>2018-01-18T21:44:33.000Z</time></trkpt>


Okidoki.. Also soweit wie du :-)



morph

Gerade eben noch gesehen:

https://www.raspberrypi.org/forums/viewtopic.php?f=66&t=87217

Hat ,,leider" nix mit fhem zu tun, aber wird wohl die einfachste Lösung für ein Track sein?

Ich mach das mal morgen eben noch zusätzlich...

CBSnake

klingt, berichte doch mal obs klappt :-)
FHEM auf Debian 10, HM-Wlan, JeeLink-Wlan, Wlanduino, ConBee, TP-Link Steckdose, GHoma Steckdosen, Shelly Steckdosen

morph

Also, das hat tatsächlich geklappt. Das problem ist nur noch die Schreibweise der Datei, damit daraus ein GPX entstehen kann. Also im Prinzip das gleiche Problem das du auch noch hast.

CBSnake

FHEM auf Debian 10, HM-Wlan, JeeLink-Wlan, Wlanduino, ConBee, TP-Link Steckdose, GHoma Steckdosen, Shelly Steckdosen

hanami

#41
Hallo Zusammen,

auch ich beschäftige mich mit dem Thema GPS und FHEM für meinen Camper - durch Zufall bin ich auf diesen Thread gestoßen und habe gleich mal das Modul geladen und eingespielt.

Leider erhalte ich jedoch wenn ich das Device mit define GPS GPSD definiere, die Fehlermeldung Cannot load module GPSD.
Ich habe der Datei den User:fhem zugewiesen da ich Sie leider nur mit Root per SCP kopieren konnte und Sie somit erst Root war.

Habt Ihr eine Ahnung warum FHEM das Modul partout nicht finden will?
Oder muss ich noch etwas anderes machen ausser die config Neuladen bzw. neu zu starten?

Freue mich über Antworten und Tips.

beste Grüße

Edit: ich hab im Log etwas gefunden - wie beheb ich das? Es scheint als hat er ein problem mit demGPSD Parser:

018.04.22 00:30:36 1: reload: Error:Modul 49_GPSD deactivated:
Can't locate GPSD/Parse.pm in @INC (you may need to install the GPSD::Parse module) (@INC contains: . /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/arm-linux-gnueabihf/perl5/5.20 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl ./FHEM) at ./FHEM/49_GPSD.pm line 24.
BEGIN failed--compilation aborted at ./FHEM/49_GPSD.pm line 24.

2018.04.22 00:30:36 0: Can't locate GPSD/Parse.pm in @INC (you may need to install the GPSD::Parse module) (@INC contains: . /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/arm-linux-gnueabihf/perl5/5.20 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl ./FHEM) at ./FHEM/49_GPSD.pm line 24.
BEGIN failed--compilation aborted at ./FHEM/49_GPSD.pm line 24.

Ich habe das Modul GPSD Parser installiert, hierbei gibt es beim Testen nach der Installation jedoch Fehlerausgaben sodass es nicht abschließend installiert zusein scheint.



Wernieman

Da fehlt Dir ein Perl Modul ....

Kann es jetzt nicht testen, aber mal probiert:
apt-get install libnet-gpsd3-perl

Ansonsten ... steht nicht in der Doku die benötigten Perl-Module?
- Bitte um Input für Output
- When there is a Shell, there is a Way
- Wann war Dein letztes Backup?

Wie man Fragen stellt: https://tty1.net/smart-questions_de.html

hanami

Hallo Wernieman,

Vielen Dank für den Tip - habe das Paket nun installiert, jedoch
Tut sich nach reboot leider nichts.
Hat vielleicht noch jemand einen Tip?

Habe nun mehrfach verschiedene Wege ausprobiert gpsd::parse
Zu installieren, leider will dies nicht Fehlerfrei von statten gehen  :(



Ich habe die Installation sowohl mit als auch ohne Bluetooth GPS Maus
Ausprobiert.
Mit CGPS erhalte ich auch valide Daten.


Vielleicht kann ja jemand in dem Gewusel etwas erkennen:


pi@KaWa:~ $ sudo cpan force install GPSD::Parse
Reading '/root/.cpan/Metadata'
  Database was generated on Sun, 22 Apr 2018 20:29:02 GMT
Warning: Cannot install force, don't know what it is.
Try the command


    i /force/


to find objects with matching identifiers.
install is up to date (0.01).
Running install for module 'GPSD::Parse'
Checksum for /root/.cpan/sources/authors/id/S/ST/STEVEB/GPSD-Parse-1.02.tar.gz ok
'YAML' not installed, will not store persistent state
Configuring S/ST/STEVEB/GPSD-Parse-1.02.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for GPSD::Parse
Writing MYMETA.yml and MYMETA.json
  STEVEB/GPSD-Parse-1.02.tar.gz
  /usr/bin/perl Makefile.PL INSTALLDIRS=site -- OK
Running make for S/ST/STEVEB/GPSD-Parse-1.02.tar.gz
cp lib/GPSD/Parse.pm blib/lib/GPSD/Parse.pm
Manifying blib/man3/GPSD::Parse.3pm
  STEVEB/GPSD-Parse-1.02.tar.gz
  /usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 PERL_USE_UNSAFE_INC=1 /usr/bin/perl "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-load.t ................ 1/? In socket mode...
t/00-load.t ................ ok   
t/05-poll.t ................


incomplete or empty dataset returned from GPS...


Use of uninitialized value $lat in pattern match (m//) at /root/.cpan/build/GPSD-Parse-1.02-au2pQo/blib/lib/GPSD/Parse.pm line 185, <GEN0> line 4.
t/05-poll.t ................ 1/?


incomplete or empty dataset returned from GPS...


Use of uninitialized value $lat in pattern match (m//) at /root/.cpan/build/GPSD-Parse-1.02-au2pQo/blib/lib/GPSD/Parse.pm line 185, <GEN0> line 5.


#   Failed test '...and it contains TPV ok'
#   at t/05-poll.t line 40.
#                   '{"class":"POLL","time":"2018-04-22T22:50:00.377Z","active":0,"tpv":[],"gst":[],"sky":[]}'
#     doesn't match '(?^:TPV)'
# Looks like you failed 1 test of 11.
t/05-poll.t ................ Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/11 subtests
t/10-time.t ................


incomplete or empty dataset returned from GPS...


Use of uninitialized value $lat in pattern match (m//) at /root/.cpan/build/GPSD-Parse-1.02-au2pQo/blib/lib/GPSD/Parse.pm line 185, <GEN0> line 4.
t/10-time.t ................ 1/?
#   Failed test '...and is ok'
#   at t/10-time.t line 27.
#                   undef
#     doesn't match '(?^:^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$)'
# Looks like you failed 1 test of 2.
t/10-time.t ................ Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/2 subtests
t/15-device.t ..............


incomplete or empty dataset returned from GPS...


Use of uninitialized value $lat in pattern match (m//) at /root/.cpan/build/GPSD-Parse-1.02-au2pQo/blib/lib/GPSD/Parse.pm line 185, <GEN0> line 4.
t/15-device.t .............. 1/?
#   Failed test '...and is ok'
#   at t/15-device.t line 27.
#                   undef
#     doesn't match '(?^:^/dev/ttyS0$)'
# Looks like you failed 1 test of 2.
t/15-device.t .............. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/2 subtests
t/20-tpv.t .................


incomplete or empty dataset returned from GPS...


Use of uninitialized value $lat in pattern match (m//) at /root/.cpan/build/GPSD-Parse-1.02-au2pQo/blib/lib/GPSD/Parse.pm line 185, <GEN0> line 4.
t/20-tpv.t ................. 1/?
#   Failed test 'tpv() key count matches number of stats'
#   at t/20-tpv.t line 48.
#          got: '2'
#     expected: '17'


#   Failed test 'time stat exists in return'
#   at t/20-tpv.t line 51.
#          got: ''
#     expected: '1'


#   Failed test 'alt stat exists in return'
#   at t/20-tpv.t line 51.
#          got: ''
#     expected: '1'


#   Failed test 'climb stat exists in return'
#   at t/20-tpv.t line 51.
#          got: ''
#     expected: '1'


#   Failed test 'speed stat exists in return'
#   at t/20-tpv.t line 51.
#          got: ''
#     expected: '1'


#   Failed test 'track stat exists in return'
#   at t/20-tpv.t line 51.
#          got: ''
#     expected: '1'


#   Failed test 'device stat exists in return'
#   at t/20-tpv.t line 51.
#          got: ''
#     expected: '1'


#   Failed test 'mode stat exists in return'
#   at t/20-tpv.t line 51.
#          got: ''
#     expected: '1'


#   Failed test 'epx stat exists in return'
#   at t/20-tpv.t line 51.
#          got: ''
#     expected: '1'


#   Failed test 'epy stat exists in return'
#   at t/20-tpv.t line 51.
#          got: ''
#     expected: '1'


#   Failed test 'epc stat exists in return'
#   at t/20-tpv.t line 51.
#          got: ''
#     expected: '1'


#   Failed test 'ept stat exists in return'
#   at t/20-tpv.t line 51.
#          got: ''
#     expected: '1'


#   Failed test 'epv stat exists in return'
#   at t/20-tpv.t line 51.
#          got: ''
#     expected: '1'


#   Failed test 'eps stat exists in return'
#   at t/20-tpv.t line 51.
#          got: ''
#     expected: '1'


#   Failed test 'class stat exists in return'
#   at t/20-tpv.t line 51.
#          got: ''
#     expected: '1'


#   Failed test 'tag stat exists in return'
#   at t/20-tpv.t line 51.
#          got: ''
#     expected: '1'


#   Failed test 'lat is in proper format'
#   at t/20-tpv.t line 55.
#                   undef
#     doesn't match '(?^:^-?\d+\.\d{4,9}$)'


#   Failed test 'lon is in proper format'
#   at t/20-tpv.t line 55.
#                   undef
#     doesn't match '(?^:^-?\d+\.\d{4,9}$)'
# Looks like you failed 18 tests of 39.
t/20-tpv.t ................. Dubious, test returned 18 (wstat 4608, 0x1200)
Failed 18/39 subtests
t/25-satellites.t ..........


incomplete or empty dataset returned from GPS...


Use of uninitialized value $lat in pattern match (m//) at /root/.cpan/build/GPSD-Parse-1.02-au2pQo/blib/lib/GPSD/Parse.pm line 185, <GEN0> line 4.
t/25-satellites.t .......... ok   
t/30-sky.t .................


incomplete or empty dataset returned from GPS...


Use of uninitialized value $lat in pattern match (m//) at /root/.cpan/build/GPSD-Parse-1.02-au2pQo/blib/lib/GPSD/Parse.pm line 185, <GEN0> line 4.
t/30-sky.t ................. 1/?
#   Failed test 'keys match SKY entry count'
#   at t/30-sky.t line 40.
#          got: '1'
#     expected: '11'


#   Failed test 'SKY stat xdop exists'
#   at t/30-sky.t line 43.
#          got: ''
#     expected: '1'


#   Failed test 'SKY stat ydop exists'
#   at t/30-sky.t line 43.
#          got: ''
#     expected: '1'


#   Failed test 'SKY stat pdop exists'
#   at t/30-sky.t line 43.
#          got: ''
#     expected: '1'


#   Failed test 'SKY stat tdop exists'
#   at t/30-sky.t line 43.
#          got: ''
#     expected: '1'


#   Failed test 'SKY stat vdop exists'
#   at t/30-sky.t line 43.
#          got: ''
#     expected: '1'


#   Failed test 'SKY stat gdop exists'
#   at t/30-sky.t line 43.
#          got: ''
#     expected: '1'


#   Failed test 'SKY stat hdop exists'
#   at t/30-sky.t line 43.
#          got: ''
#     expected: '1'


#   Failed test 'SKY stat class exists'
#   at t/30-sky.t line 43.
#          got: ''
#     expected: '1'


#   Failed test 'SKY stat tag exists'
#   at t/30-sky.t line 43.
#          got: ''
#     expected: '1'


#   Failed test 'SKY stat device exists'
#   at t/30-sky.t line 43.
#          got: ''
#     expected: '1'


#   Failed test 'SKY satellite entries are hrefs'
#   at t/30-sky.t line 47.
#          got: ''
#     expected: 'HASH'


#   Failed test 'each SKY sat entry has stats'
#   at t/30-sky.t line 48.
#          got: ''
#     expected: '1'
# Looks like you failed 13 tests of 16.
t/30-sky.t ................. Dubious, test returned 13 (wstat 3328, 0xd00)
Failed 13/16 subtests
t/35-unit_conversion.t ..... ok   
t/40-metres_feet.t ......... ok   
t/45-direction.t ........... ok   
t/50-signed.t .............. ok   
t/55-unsigned.t ............ ok   
t/60-poll_signed_toggle.t .. ok   
t/65-tpv_methods.t .........


incomplete or empty dataset returned from GPS...


Use of uninitialized value $lat in pattern match (m//) at /root/.cpan/build/GPSD-Parse-1.02-au2pQo/blib/lib/GPSD/Parse.pm line 185, <GEN0> line 4.
t/65-tpv_methods.t ......... ok   
t/manifest.t ............... skipped: Author tests not required for installation
t/pod-coverage.t ........... skipped: Author tests not required for installation
t/pod.t .................... skipped: Author tests not required for installation


Test Summary Report
-------------------
t/05-poll.t              (Wstat: 256 Tests: 11 Failed: 1)
  Failed test:  9
  Non-zero exit status: 1
t/10-time.t              (Wstat: 256 Tests: 2 Failed: 1)
  Failed test:  2
  Non-zero exit status: 1
t/15-device.t            (Wstat: 256 Tests: 2 Failed: 1)
  Failed test:  2
  Non-zero exit status: 1
t/20-tpv.t               (Wstat: 4608 Tests: 39 Failed: 18)
  Failed tests:  2-3, 6-21
  Non-zero exit status: 18
t/30-sky.t               (Wstat: 3328 Tests: 16 Failed: 13)
  Failed tests:  2, 4-13, 15-16
  Non-zero exit status: 13
Files=17, Tests=176,  6 wallclock secs ( 0.54 usr  0.10 sys +  5.56 cusr  0.40 csys =  6.60 CPU)
Result: FAIL
Failed 5/17 test programs. 34/176 subtests failed.
Makefile:828: recipe for target 'test_dynamic' failed
make: *** [test_dynamic] Error 255
  STEVEB/GPSD-Parse-1.02.tar.gz
  /usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports STEVEB/GPSD-Parse-1.02.tar.gz


Grüße
Patrick

peterk_de

Hi Patrick,

zieh einfach mal den GPS-Empfänger vor der Installation von GPSD::Parse raus. Danach kannst du ihn wieder ranstecken. Falls es danach nicht läuft, kann ich es dir leider nicht sagen - möglicherweise haut es dann mit deinem speziellen Empfänger und der Library zusammen nicht hin ...

LG!
FHEM auf Ubuntu-VM / 2xNUC Proxmox Cluster
UI: HomeKit, TabletUI, Grafana
IOdevs: 2xHueBridge, RaspiMatic-CCU, CUL868, 2xHarmonyHub, 6xRaspi-Roomnode mit CO2, VOC und lepresenced
Devices: 107xHomematic(IP), 96xPhilips Hue, 17xTECHEM, 12xBTLE, 8xSONOS, 2xHomeConnect, 1xShelly 3em, 1xNanoleaf ...

hanami

Hallo Peter,

das habe ich auch bereits ausprobiert - leider vergebens.
Habe auch den Entwickler des GPSD::PARSE bereits kontaktiert, vielleicht kommt ja eine Antwort.

Das seltsame ist das ich auf einer anderen FHEM Instanz ohne Probleme dieses Modul über CPAN installieren kann.
Nur auf dem neuen Raps mit neuem FHEM nicht.
Hat jemand noch eine Idee für die Herangehensweise um das Problem weiter einzugrenzen?

Bin leider in Sachen Problemlösung und Linux ein totaler Neuling.

besten Dank,
Grüße

Wernieman

Ist es ein neuinstalliertes System oder ein upgegradetes? Hast Du auch andere Perl Module per CPAN installiert und dann Perl Upgedatet?

Hat jedenfalls nichts mit FHEM zu tuen ..
- Bitte um Input für Output
- When there is a Shell, there is a Way
- Wann war Dein letztes Backup?

Wie man Fragen stellt: https://tty1.net/smart-questions_de.html

hanami

Hallo Werniemann,

Ja es ist ein neues System
Welches ich grad für den Camper aufbau.
Nein, per CPAN habe ich bisher nichts installiert.
Alle bisher installierten PERL module liefen über apt-get.

Beste Grüße

Wernieman

Hast Du folgendes installiert?
"gpsd-clients"

apt-get install gpsd-clients

Und Du bist sicher, das es mit "libnet-gpsd3-perl" nicht geht?

P.S. Bitte als root (sudo) installieren!
- Bitte um Input für Output
- When there is a Shell, there is a Way
- Wann war Dein letztes Backup?

Wie man Fragen stellt: https://tty1.net/smart-questions_de.html

hanami

Zu aller erst vielen Dank das Du dich meiner annimmst  ;)

Ja, ich hab beides mit sudo installiert.
Das Terminal meldet bei erneutem installationsversuch
das die Pakete auf dem nesten Stand seien.

Beste Grüße

Wernieman

Der auf er ersten Seite genannte CPAN-Fehler hat sich nicht geändert?

Weil .. dann kan ich Dir nicht mehr helfen :o(
- Bitte um Input für Output
- When there is a Shell, there is a Way
- Wann war Dein letztes Backup?

Wie man Fragen stellt: https://tty1.net/smart-questions_de.html

peterk_de

Also wenn im Log immer noch der Fehler ist, dass er GPSD-Parse nicht laden kann, kann ich leider auch nicht wirklich was machen ... das einzige wäre, das FHEM-Modul ohne diese Abhängigkeit neu zu implementieren. Aber das übersteigt leider meine verfügbare Freizeit ;(
FHEM auf Ubuntu-VM / 2xNUC Proxmox Cluster
UI: HomeKit, TabletUI, Grafana
IOdevs: 2xHueBridge, RaspiMatic-CCU, CUL868, 2xHarmonyHub, 6xRaspi-Roomnode mit CO2, VOC und lepresenced
Devices: 107xHomematic(IP), 96xPhilips Hue, 17xTECHEM, 12xBTLE, 8xSONOS, 2xHomeConnect, 1xShelly 3em, 1xNanoleaf ...

morph

Ich musste, durch einen Benutzerfehler :-), meinen Pi bzw. die Karte neu aufsetzen. Nun bekomme ich das Modul nicht mehr wirklich in Funktion. Bei einem List zeigt er mir auch beim verwendetet GPS Device nada an. Wie kann ich ihm das zuweisen?

peterk_de

Hey Morph, bekommst du denn auf der Linux-Shell mit cgps Satellitendaten angezeigt (ohne weitere Parameter)? Das sollte zuerst einmal laufen, dann klappt der Teil in FHEM eigentlich ohne weitere Einstellungen.
FHEM auf Ubuntu-VM / 2xNUC Proxmox Cluster
UI: HomeKit, TabletUI, Grafana
IOdevs: 2xHueBridge, RaspiMatic-CCU, CUL868, 2xHarmonyHub, 6xRaspi-Roomnode mit CO2, VOC und lepresenced
Devices: 107xHomematic(IP), 96xPhilips Hue, 17xTECHEM, 12xBTLE, 8xSONOS, 2xHomeConnect, 1xShelly 3em, 1xNanoleaf ...

morph

nop, genau daran scheitert es noch... Wenn ich nur wüsste, wie Ichs damals gemacht habe... Da war das Anfangs auch ein Problem.. Und auf einmal liefs dann ;-)


Wernieman

- Bitte um Input für Output
- When there is a Shell, there is a Way
- Wann war Dein letztes Backup?

Wie man Fragen stellt: https://tty1.net/smart-questions_de.html

morph

Auch meine Vermutung...

pi@SchantallPi:/usr/bin $ ls -l cgps
-rwxr-xr-x 1 pi dialout 91320 Nov  4  2016 cgps
pi@SchantallPi:/usr/bin $


sollte aber passen

Wernieman

Ist der User,  Mit dem Du es ausprobierst, in der Gruppe "dialout"?
id
- Bitte um Input für Output
- When there is a Shell, there is a Way
- Wann war Dein letztes Backup?

Wie man Fragen stellt: https://tty1.net/smart-questions_de.html

morph

Auch das habe ich gemacht, sogar den User fhem, damit es nicht daran liegen kann.

pi@SchantallPi:~ $ id
uid=1000(pi) gid=1000(pi) Gruppen=1000(pi),4(adm),20(dialout),24(cdrom),27(sudo),29(audio),44(video),46(plugdev),60(games),100(users),101(input),108(netdev),997(gpio),998(i2c),999(spi)
pi@SchantallPi:~ $


Ich weiß nicht mehr, was es war... verdammich.... irgendwas fehlt das er net funzt... mein Hirn, mein Hirn....

peterk_de

Läuft denn gpsd überhaupt?

sudo service gpsd status
FHEM auf Ubuntu-VM / 2xNUC Proxmox Cluster
UI: HomeKit, TabletUI, Grafana
IOdevs: 2xHueBridge, RaspiMatic-CCU, CUL868, 2xHarmonyHub, 6xRaspi-Roomnode mit CO2, VOC und lepresenced
Devices: 107xHomematic(IP), 96xPhilips Hue, 17xTECHEM, 12xBTLE, 8xSONOS, 2xHomeConnect, 1xShelly 3em, 1xNanoleaf ...

morph

#60
Ok, also für mich selbst als Marker, äh ich mein natürlich für alle anderen mit einem Pi3 oder Zero (einem mit Bluetooth und WLAN on Board).

1. Image installieren, Updates etc durchführen.
2. In der /boot/cmdline.txt alles was mit console und serial und AMA0 oder was auch immer entfernen

console=ttyAMA0,115200
kgdboc=ttyAMA0,115200
serial0,115200
console=ttyS0,115200

3. in der /etc/inittab alles bis auf vt100 auskommentieren, falls dort etwas drin ist.
4.

sudo systemctl stop serial-getty@ttyS0.service
sudo systemctl disable serial-getty@ttyS0.service

5. Via sudo nano /boot/config.txt dort die Zeile ergänzen, ganz unten am besten

enable_uart=1

6. reboot und gpsd + Zubehör installieren

sudo apt-get install gpsd gpsd-clients
sudo apt-get install libnet-gpsd3-perl
FALSCH: [s]sudo cpan force install GPSD::Parse[/s]
sudo cpan -i install GPSD::Parse

7. Danach noch folgendes und es läuft:

sudo killall gpsd
sudo rm /var/run/gpsd.sock
sudo systemctl stop gpsd.socket
sudo systemctl disable gpsd.socket
sudo gpsd /dev/ttyS0 -G -n -F /var/run/gpsd.sock

8. cgps und fertig...

Es kann so einfach sein....

morph

#61
Zitat von: peterk_de am 30 Mai 2018, 09:58:32
Läuft denn gpsd überhaupt?

sudo service gpsd status

Ja, der lief. Ich denke, es liegt/lag an Punkt 7 Zeile 2

Nur scheitert es jetzt mittlerweile wie beim Kollegen vorher beim Laden des Moduls.


nach einem reload 49_GPSD.pm

Can't locate GPSD/Parse.pm in @INC (you may need to install the GPSD::Parse module) (@INC contains: . /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/arm-linux-gnueabihf/perl5/5.24 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/arm-linux-gnueabihf/perl-base ./FHEM) at ./FHEM/49_GPSD.pm line 24.
BEGIN failed--compilation aborted at ./FHEM/49_GPSD.pm line 24.


Denn auch die Installation des Teils CPAN ist am Ende fehlerhaft


pi@SchantallPi:/opt/fhem $ sudo cpan force install GPSD::Parse
Loading internal null logger. Install Log::Log4perl for logging messages
Reading '/root/.cpan/Metadata'
  Database was generated on Wed, 30 May 2018 05:54:08 GMT
Warning: Cannot install force, don't know what it is.
Try the command

    i /force/

to find objects with matching identifiers.
install is up to date (0.01).
Running install for module 'GPSD::Parse'
Checksum for /root/.cpan/sources/authors/id/S/ST/STEVEB/GPSD-Parse-1.02.tar.gz ok
'YAML' not installed, will not store persistent state
Configuring S/ST/STEVEB/GPSD-Parse-1.02.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for GPSD::Parse
Writing MYMETA.yml and MYMETA.json
  STEVEB/GPSD-Parse-1.02.tar.gz
  /usr/bin/perl Makefile.PL INSTALLDIRS=site -- OK
Running make for S/ST/STEVEB/GPSD-Parse-1.02.tar.gz
cp lib/GPSD/Parse.pm blib/lib/GPSD/Parse.pm
Manifying 1 pod document
  STEVEB/GPSD-Parse-1.02.tar.gz
  /usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 PERL_USE_UNSAFE_INC=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-load.t ................ 1/? In socket mode...
t/00-load.t ................ ok
t/05-poll.t ................

incomplete or empty dataset returned from GPS...

Use of uninitialized value $lat in pattern match (m//) at /root/.cpan/build/GPSD-Parse-1.02-hA7A_a/blib/lib/GPSD/Parse.pm line 185, <GEN0> line 4.
t/05-poll.t ................ 1/?

incomplete or empty dataset returned from GPS...

Use of uninitialized value $lat in pattern match (m//) at /root/.cpan/build/GPSD-Parse-1.02-hA7A_a/blib/lib/GPSD/Parse.pm line 185, <GEN0> line 5.

#   Failed test '...and it contains TPV ok'
#   at t/05-poll.t line 40.
#                   '{"class":"POLL","time":"2018-05-30T08:44:26.397Z","active":0,"tpv":[],"gst":[],"sky":[]}'
#     doesn't match '(?^:TPV)'
# Looks like you failed 1 test of 11.
t/05-poll.t ................ Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/11 subtests
t/10-time.t ................

incomplete or empty dataset returned from GPS...

Use of uninitialized value $lat in pattern match (m//) at /root/.cpan/build/GPSD-Parse-1.02-hA7A_a/blib/lib/GPSD/Parse.pm line 185, <GEN0> line 4.
t/10-time.t ................ 1/?
#   Failed test '...and is ok'
#   at t/10-time.t line 27.
#                   undef
#     doesn't match '(?^:^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$)'
# Looks like you failed 1 test of 2.
t/10-time.t ................ Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/2 subtests
t/15-device.t ..............

incomplete or empty dataset returned from GPS...

Use of uninitialized value $lat in pattern match (m//) at /root/.cpan/build/GPSD-Parse-1.02-hA7A_a/blib/lib/GPSD/Parse.pm line 185, <GEN0> line 4.
t/15-device.t .............. 1/?
#   Failed test '...and is ok'
#   at t/15-device.t line 27.
#                   undef
#     doesn't match '(?^:^/dev/ttyS0$)'
# Looks like you failed 1 test of 2.
t/15-device.t .............. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/2 subtests
t/20-tpv.t .................

incomplete or empty dataset returned from GPS...

Use of uninitialized value $lat in pattern match (m//) at /root/.cpan/build/GPSD-Parse-1.02-hA7A_a/blib/lib/GPSD/Parse.pm line 185, <GEN0> line 4.
t/20-tpv.t ................. 1/?
#   Failed test 'tpv() key count matches number of stats'
#   at t/20-tpv.t line 48.
#          got: '2'
#     expected: '17'

#   Failed test 'time stat exists in return'
#   at t/20-tpv.t line 51.
#          got: ''
#     expected: '1'

#   Failed test 'alt stat exists in return'
#   at t/20-tpv.t line 51.
#          got: ''
#     expected: '1'

#   Failed test 'climb stat exists in return'
#   at t/20-tpv.t line 51.
#          got: ''
#     expected: '1'

#   Failed test 'speed stat exists in return'
#   at t/20-tpv.t line 51.
#          got: ''
#     expected: '1'

#   Failed test 'track stat exists in return'
#   at t/20-tpv.t line 51.
#          got: ''
#     expected: '1'

#   Failed test 'device stat exists in return'
#   at t/20-tpv.t line 51.
#          got: ''
#     expected: '1'

#   Failed test 'mode stat exists in return'
#   at t/20-tpv.t line 51.
#          got: ''
#     expected: '1'

#   Failed test 'epx stat exists in return'
#   at t/20-tpv.t line 51.
#          got: ''
#     expected: '1'

#   Failed test 'epy stat exists in return'
#   at t/20-tpv.t line 51.
#          got: ''
#     expected: '1'

#   Failed test 'epc stat exists in return'
#   at t/20-tpv.t line 51.
#          got: ''
#     expected: '1'

#   Failed test 'ept stat exists in return'
#   at t/20-tpv.t line 51.
#          got: ''
#     expected: '1'

#   Failed test 'epv stat exists in return'
#   at t/20-tpv.t line 51.
#          got: ''
#     expected: '1'

#   Failed test 'eps stat exists in return'
#   at t/20-tpv.t line 51.
#          got: ''
#     expected: '1'

#   Failed test 'class stat exists in return'
#   at t/20-tpv.t line 51.
#          got: ''
#     expected: '1'

#   Failed test 'tag stat exists in return'
#   at t/20-tpv.t line 51.
#          got: ''
#     expected: '1'

#   Failed test 'lat is in proper format'
#   at t/20-tpv.t line 55.
#                   undef
#     doesn't match '(?^:^-?\d+\.\d{4,9}$)'

#   Failed test 'lon is in proper format'
#   at t/20-tpv.t line 55.
#                   undef
#     doesn't match '(?^:^-?\d+\.\d{4,9}$)'
# Looks like you failed 18 tests of 39.
t/20-tpv.t ................. Dubious, test returned 18 (wstat 4608, 0x1200)
Failed 18/39 subtests
t/25-satellites.t ..........

incomplete or empty dataset returned from GPS...

Use of uninitialized value $lat in pattern match (m//) at /root/.cpan/build/GPSD-Parse-1.02-hA7A_a/blib/lib/GPSD/Parse.pm line 185, <GEN0> line 4.
t/25-satellites.t .......... ok
t/30-sky.t .................

incomplete or empty dataset returned from GPS...

Use of uninitialized value $lat in pattern match (m//) at /root/.cpan/build/GPSD-Parse-1.02-hA7A_a/blib/lib/GPSD/Parse.pm line 185, <GEN0> line 4.
t/30-sky.t ................. 1/?
#   Failed test 'keys match SKY entry count'
#   at t/30-sky.t line 40.
#          got: '1'
#     expected: '11'

#   Failed test 'SKY stat xdop exists'
#   at t/30-sky.t line 43.
#          got: ''
#     expected: '1'

#   Failed test 'SKY stat ydop exists'
#   at t/30-sky.t line 43.
#          got: ''
#     expected: '1'

#   Failed test 'SKY stat pdop exists'
#   at t/30-sky.t line 43.
#          got: ''
#     expected: '1'

#   Failed test 'SKY stat tdop exists'
#   at t/30-sky.t line 43.
#          got: ''
#     expected: '1'

#   Failed test 'SKY stat vdop exists'
#   at t/30-sky.t line 43.
#          got: ''
#     expected: '1'

#   Failed test 'SKY stat gdop exists'
#   at t/30-sky.t line 43.
#          got: ''
#     expected: '1'

#   Failed test 'SKY stat hdop exists'
#   at t/30-sky.t line 43.
#          got: ''
#     expected: '1'

#   Failed test 'SKY stat class exists'
#   at t/30-sky.t line 43.
#          got: ''
#     expected: '1'

#   Failed test 'SKY stat tag exists'
#   at t/30-sky.t line 43.
#          got: ''
#     expected: '1'

#   Failed test 'SKY stat device exists'
#   at t/30-sky.t line 43.
#          got: ''
#     expected: '1'
t/30-sky.t ................. 14/?
#   Failed test 'SKY satellite entries are hrefs'
#   at t/30-sky.t line 47.
#          got: ''
#     expected: 'HASH'

#   Failed test 'each SKY sat entry has stats'
#   at t/30-sky.t line 48.
#          got: ''
#     expected: '1'
# Looks like you failed 13 tests of 16.
t/30-sky.t ................. Dubious, test returned 13 (wstat 3328, 0xd00)
Failed 13/16 subtests
t/35-unit_conversion.t ..... ok
t/40-metres_feet.t ......... ok
t/45-direction.t ........... ok
t/50-signed.t .............. ok
t/55-unsigned.t ............ ok
t/60-poll_signed_toggle.t .. ok
t/65-tpv_methods.t .........

incomplete or empty dataset returned from GPS...

Use of uninitialized value $lat in pattern match (m//) at /root/.cpan/build/GPSD-Parse-1.02-hA7A_a/blib/lib/GPSD/Parse.pm line 185, <GEN0> line 4.
t/65-tpv_methods.t ......... ok
t/manifest.t ............... skipped: Author tests not required for installation
t/pod-coverage.t ........... skipped: Author tests not required for installation
t/pod.t .................... skipped: Author tests not required for installation

Test Summary Report
-------------------
t/05-poll.t              (Wstat: 256 Tests: 11 Failed: 1)
  Failed test:  9
  Non-zero exit status: 1
t/10-time.t              (Wstat: 256 Tests: 2 Failed: 1)
  Failed test:  2
  Non-zero exit status: 1
t/15-device.t            (Wstat: 256 Tests: 2 Failed: 1)
  Failed test:  2
  Non-zero exit status: 1
t/20-tpv.t               (Wstat: 4608 Tests: 39 Failed: 18)
  Failed tests:  2-3, 6-21
  Non-zero exit status: 18
t/30-sky.t               (Wstat: 3328 Tests: 16 Failed: 13)
  Failed tests:  2, 4-13, 15-16
  Non-zero exit status: 13
Files=17, Tests=176, 19 wallclock secs ( 1.26 usr  0.25 sys + 15.12 cusr  0.96 csys = 17.59 CPU)
Result: FAIL
Failed 5/17 test programs. 34/176 subtests failed.
Makefile:832: die Regel für Ziel ,,test_dynamic" scheiterte
make: *** [test_dynamic] Fehler 255
  STEVEB/GPSD-Parse-1.02.tar.gz
  /usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports STEVEB/GPSD-Parse-1.02.tar.gz


oder auch mit "-i"


pi@SchantallPi:~ $ sudo cpan -i install GPSD::Parse
Loading internal null logger. Install Log::Log4perl for logging messages
Reading '/root/.cpan/Metadata'
  Database was generated on Wed, 30 May 2018 05:54:08 GMT
install is up to date (0.01).
Running install for module 'GPSD::Parse'
Checksum for /root/.cpan/sources/authors/id/S/ST/STEVEB/GPSD-Parse-1.02.tar.gz ok
'YAML' not installed, will not store persistent state
Configuring S/ST/STEVEB/GPSD-Parse-1.02.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for GPSD::Parse
Writing MYMETA.yml and MYMETA.json
  STEVEB/GPSD-Parse-1.02.tar.gz
  /usr/bin/perl Makefile.PL INSTALLDIRS=site -- OK
Running make for S/ST/STEVEB/GPSD-Parse-1.02.tar.gz
cp lib/GPSD/Parse.pm blib/lib/GPSD/Parse.pm
Manifying 1 pod document
  STEVEB/GPSD-Parse-1.02.tar.gz
  /usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 PERL_USE_UNSAFE_INC=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-load.t ................ 1/? In socket mode...
t/00-load.t ................ ok
t/05-poll.t ................

incomplete or empty dataset returned from GPS...

Use of uninitialized value $lat in pattern match (m//) at /root/.cpan/build/GPSD-Parse-1.02-JzvE1z/blib/lib/GPSD/Parse.pm line 185, <GEN0> line 4.
t/05-poll.t ................ 1/?

incomplete or empty dataset returned from GPS...

Use of uninitialized value $lat in pattern match (m//) at /root/.cpan/build/GPSD-Parse-1.02-JzvE1z/blib/lib/GPSD/Parse.pm line 185, <GEN0> line 5.

#   Failed test '...and it contains TPV ok'
#   at t/05-poll.t line 40.
#                   '{"class":"POLL","time":"2018-05-30T08:53:20.183Z","active":0,"tpv":[],"gst":[],"sky":[]}'
#     doesn't match '(?^:TPV)'
# Looks like you failed 1 test of 11.
t/05-poll.t ................ Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/11 subtests
t/10-time.t ................

incomplete or empty dataset returned from GPS...

Use of uninitialized value $lat in pattern match (m//) at /root/.cpan/build/GPSD-Parse-1.02-JzvE1z/blib/lib/GPSD/Parse.pm line 185, <GEN0> line 4.
t/10-time.t ................ 1/?
#   Failed test '...and is ok'
#   at t/10-time.t line 27.
#                   undef
#     doesn't match '(?^:^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$)'
# Looks like you failed 1 test of 2.
t/10-time.t ................ Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/2 subtests
t/15-device.t ..............

incomplete or empty dataset returned from GPS...

Use of uninitialized value $lat in pattern match (m//) at /root/.cpan/build/GPSD-Parse-1.02-JzvE1z/blib/lib/GPSD/Parse.pm line 185, <GEN0> line 4.
t/15-device.t .............. 1/?
#   Failed test '...and is ok'
#   at t/15-device.t line 27.
#                   undef
#     doesn't match '(?^:^/dev/ttyS0$)'
# Looks like you failed 1 test of 2.
t/15-device.t .............. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/2 subtests
t/20-tpv.t .................

incomplete or empty dataset returned from GPS...

Use of uninitialized value $lat in pattern match (m//) at /root/.cpan/build/GPSD-Parse-1.02-JzvE1z/blib/lib/GPSD/Parse.pm line 185, <GEN0> line 4.
t/20-tpv.t ................. 1/?
#   Failed test 'tpv() key count matches number of stats'
#   at t/20-tpv.t line 48.
#          got: '2'
#     expected: '17'

#   Failed test 'time stat exists in return'
#   at t/20-tpv.t line 51.
#          got: ''
#     expected: '1'

#   Failed test 'alt stat exists in return'
#   at t/20-tpv.t line 51.
#          got: ''
#     expected: '1'

#   Failed test 'climb stat exists in return'
#   at t/20-tpv.t line 51.
#          got: ''
#     expected: '1'

#   Failed test 'speed stat exists in return'
#   at t/20-tpv.t line 51.
#          got: ''
#     expected: '1'

#   Failed test 'track stat exists in return'
#   at t/20-tpv.t line 51.
#          got: ''
#     expected: '1'

#   Failed test 'device stat exists in return'
#   at t/20-tpv.t line 51.
#          got: ''
#     expected: '1'

#   Failed test 'mode stat exists in return'
#   at t/20-tpv.t line 51.
#          got: ''
#     expected: '1'

#   Failed test 'epx stat exists in return'
#   at t/20-tpv.t line 51.
#          got: ''
#     expected: '1'

#   Failed test 'epy stat exists in return'
#   at t/20-tpv.t line 51.
#          got: ''
#     expected: '1'

#   Failed test 'epc stat exists in return'
#   at t/20-tpv.t line 51.
#          got: ''
#     expected: '1'

#   Failed test 'ept stat exists in return'
#   at t/20-tpv.t line 51.
#          got: ''
#     expected: '1'

#   Failed test 'epv stat exists in return'
#   at t/20-tpv.t line 51.
#          got: ''
#     expected: '1'

#   Failed test 'eps stat exists in return'
#   at t/20-tpv.t line 51.
#          got: ''
#     expected: '1'

#   Failed test 'class stat exists in return'
#   at t/20-tpv.t line 51.
#          got: ''
#     expected: '1'

#   Failed test 'tag stat exists in return'
#   at t/20-tpv.t line 51.
#          got: ''
#     expected: '1'

#   Failed test 'lat is in proper format'
#   at t/20-tpv.t line 55.
#                   undef
#     doesn't match '(?^:^-?\d+\.\d{4,9}$)'

#   Failed test 'lon is in proper format'
#   at t/20-tpv.t line 55.
#                   undef
#     doesn't match '(?^:^-?\d+\.\d{4,9}$)'
# Looks like you failed 18 tests of 39.
t/20-tpv.t ................. Dubious, test returned 18 (wstat 4608, 0x1200)
Failed 18/39 subtests
t/25-satellites.t ..........

incomplete or empty dataset returned from GPS...

Use of uninitialized value $lat in pattern match (m//) at /root/.cpan/build/GPSD-Parse-1.02-JzvE1z/blib/lib/GPSD/Parse.pm line 185, <GEN0> line 4.
t/25-satellites.t .......... ok
t/30-sky.t .................

incomplete or empty dataset returned from GPS...

Use of uninitialized value $lat in pattern match (m//) at /root/.cpan/build/GPSD-Parse-1.02-JzvE1z/blib/lib/GPSD/Parse.pm line 185, <GEN0> line 4.
t/30-sky.t ................. 1/?
#   Failed test 'keys match SKY entry count'
#   at t/30-sky.t line 40.
#          got: '1'
#     expected: '11'
t/30-sky.t ................. 3/?
#   Failed test 'SKY stat xdop exists'
#   at t/30-sky.t line 43.
#          got: ''
#     expected: '1'

#   Failed test 'SKY stat ydop exists'
#   at t/30-sky.t line 43.
#          got: ''
#     expected: '1'

#   Failed test 'SKY stat pdop exists'
#   at t/30-sky.t line 43.
#          got: ''
#     expected: '1'

#   Failed test 'SKY stat tdop exists'
#   at t/30-sky.t line 43.
#          got: ''
#     expected: '1'

#   Failed test 'SKY stat vdop exists'
#   at t/30-sky.t line 43.
#          got: ''
#     expected: '1'

#   Failed test 'SKY stat gdop exists'
#   at t/30-sky.t line 43.
#          got: ''
#     expected: '1'

#   Failed test 'SKY stat hdop exists'
#   at t/30-sky.t line 43.
#          got: ''
#     expected: '1'

#   Failed test 'SKY stat class exists'
#   at t/30-sky.t line 43.
#          got: ''
#     expected: '1'

#   Failed test 'SKY stat tag exists'
#   at t/30-sky.t line 43.
#          got: ''
#     expected: '1'

#   Failed test 'SKY stat device exists'
#   at t/30-sky.t line 43.
#          got: ''
#     expected: '1'

#   Failed test 'SKY satellite entries are hrefs'
#   at t/30-sky.t line 47.
#          got: ''
#     expected: 'HASH'

#   Failed test 'each SKY sat entry has stats'
#   at t/30-sky.t line 48.
#          got: ''
#     expected: '1'
# Looks like you failed 13 tests of 16.
t/30-sky.t ................. Dubious, test returned 13 (wstat 3328, 0xd00)
Failed 13/16 subtests
t/35-unit_conversion.t ..... ok
t/40-metres_feet.t ......... ok
t/45-direction.t ........... ok
t/50-signed.t .............. ok
t/55-unsigned.t ............ ok
t/60-poll_signed_toggle.t .. ok
t/65-tpv_methods.t .........

incomplete or empty dataset returned from GPS...

Use of uninitialized value $lat in pattern match (m//) at /root/.cpan/build/GPSD-Parse-1.02-JzvE1z/blib/lib/GPSD/Parse.pm line 185, <GEN0> line 4.
t/65-tpv_methods.t ......... ok
t/manifest.t ............... skipped: Author tests not required for installation
t/pod-coverage.t ........... skipped: Author tests not required for installation
t/pod.t .................... skipped: Author tests not required for installation

Test Summary Report
-------------------
t/05-poll.t              (Wstat: 256 Tests: 11 Failed: 1)
  Failed test:  9
  Non-zero exit status: 1
t/10-time.t              (Wstat: 256 Tests: 2 Failed: 1)
  Failed test:  2
  Non-zero exit status: 1
t/15-device.t            (Wstat: 256 Tests: 2 Failed: 1)
  Failed test:  2
  Non-zero exit status: 1
t/20-tpv.t               (Wstat: 4608 Tests: 39 Failed: 18)
  Failed tests:  2-3, 6-21
  Non-zero exit status: 18
t/30-sky.t               (Wstat: 3328 Tests: 16 Failed: 13)
  Failed tests:  2, 4-13, 15-16
  Non-zero exit status: 13
Files=17, Tests=176, 19 wallclock secs ( 1.38 usr  0.10 sys + 14.99 cusr  1.03 csys = 17.50 CPU)
Result: FAIL
Failed 5/17 test programs. 34/176 subtests failed.
Makefile:832: die Regel für Ziel ,,test_dynamic" scheiterte
make: *** [test_dynamic] Fehler 255
  STEVEB/GPSD-Parse-1.02.tar.gz
  /usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports STEVEB/GPSD-Parse-1.02.tar.gz

Wernieman

Hast Du mal probiert, anstelle von CPAN mit apt-get (siehe ein paar Seiten vorher) zu installieren?

Bitte CPAN nur, wenn es die Libary NICHT in der Distri gibt ....
- Bitte um Input für Output
- When there is a Shell, there is a Way
- Wann war Dein letztes Backup?

Wie man Fragen stellt: https://tty1.net/smart-questions_de.html

morph

#63
via apt-get install GPSD::Parse ?

Ich finde nichts weiter was du da meinen könntest.

Das obige geht nicht.

Das GPS Modul ab , das CPAN ausführen und wieder anlöten war das richtige... :-(

morph

Und mit dem Track gings dann auch gleich weiter.


gpspipe -d  -l -r -o /home/pi/GPXLog/route.txt


erstellt eine Textdatei mit nmea Rohdaten


gpsbabel -i nmea -f /home/pi/GPXLog/route.txt -o kml -F /home/pi/GPXLog/track.kml



Erstellt dann direkt die passende kml Datei.

Das lasse ich mir dann ebenfalls, jenachdem was das für ne Größe ergibt, auf die Dropbox laden, und habe dann somit

- immer einen Aktuellen Google Link in der Dropbox
- immer eine Aktuellen GPX, mit dem ich dann was auch immer noch mit anstellen kann
- und die Route die das Wohnmobil zurückgelegt hat.

Wernieman

WIe schon geschrieben: Habe es einige Seiten vorher geschrieben (Sorry, suche es für Dich nicht raus).

"GPSD::Parse" ist natürlich Perl und nicht apt-get Syntax. Da muß man raussuchen, wie die Libary richtig heißt ...

Edit:
Ausnahmsweise:

Mal Probiert:
apt-cache search GPSD
gosmore - Betrachter, Routenplaner und Such-Client für Openstreetmap.org
gpsbabel - Umwandlung von GPS-Dateien plus Transfer zum/vom GPS-Gerät
gpsd - Daemon für das Global Positioning System (GPS)
gpsd-clients - Globales Positionierungssystem - Clients
gpsd-dbg - Global Positioning System - debugging symbols
libgps-dev - Global Positioning System - development files
libgps22 - Global Positioning System - library
libqgpsmm-dev - Global Positioning System - Qt wrapper for libgps (development)
libqgpsmm22 - Global Positioning System - Qt wrapper for libgps
navit - Navigationssystem für Automobile mit Routenplaner
navit-data - Car navigation system with routing engine - data files
navit-graphics-gtk-drawing-area - Car navigation system with routing engine - GTK+ graphic plugin
navit-gui-gtk - Car navigation system with routing engine - GTK+ GUI
navit-gui-internal - Car navigation system with routing engine - internal GUI
python-gps - Global Positioning System - Python libraries
fso-gpsd - gpsd subset compatibility daemon for the freesmarpthone.org frameworkd
gypsy-daemon - A GPS Multiplexing Daemon
libnet-gpsd3-perl - Perl interface to the gpsd server daemon protocol version 3 (JSON)


Nach der Liste würde ich denken: libnet-gpsd3-perl
apt-get install libnet-gpsd3-perl

Gibt auch Suchmaschinen dafür im Netz, habe nur gerade keinen Link dafür zur Hand .....

Leider schreiben HowTows meistens den CPAN weg, der aber gerade für Anfängern wegen der Update-Problematik NICHT gewählt werden sollte .....
- Bitte um Input für Output
- When there is a Shell, there is a Way
- Wann war Dein letztes Backup?

Wie man Fragen stellt: https://tty1.net/smart-questions_de.html

morph

Ich danke dir für die mühen.

Aber das eigentliche Problem hab ich mit einem Ab und wieder An löten erledigt. Danke

hanami

Zitat von: morph am 18 Januar 2018, 22:46:24
:o

Soooo einfach....

und Das mit dem GPX hab ich auch hinbekommen:

define Filelog_GPX FileLog ./log/Filelog_GPX-%Y-%m.log GPS:(gpx).*

Bekomme ich nun die, und nur die Zeilen:


2018-01-18_22:39:24 GPS gpx: <trkpt lat="48.41" lon="10.29"><time>2018-01-18T21:39:24.000Z</time></trkpt>
2018-01-18_22:39:54 GPS gpx: <trkpt lat="48.41" lon="10.2"><time>2018-01-18T21:39:54.000Z</time></trkpt>
2018-01-18_22:40:24 GPS gpx: <trkpt lat="48.41" lon="10.2"><time>2018-01-18T21:40:24.000Z</time></trkpt>
2018-01-18_22:40:54 GPS gpx: <trkpt lat="48.41" lon="10.2"><time>2018-01-18T21:40:54.000Z</time></trkpt>
2018-01-18_22:41:24 GPS gpx: <trkpt lat="48.41" lon="10.29"><time>2018-01-18T21:41:24.000Z</time></trkpt>
2018-01-18_22:41:55 GPS gpx: <trkpt lat="48.41" lon="10.29"><time>2018-01-18T21:41:54.000Z</time></trkpt>
2018-01-18_22:42:25 GPS gpx: <trkpt lat="" lon=""><time>2018-01-18T21:42:25.000Z</time></trkpt>
2018-01-18_22:42:55 GPS gpx: <trkpt lat="48.413" lon="10.29"><time>2018-01-18T21:42:55.000Z</time></trkpt>
2018-01-18_22:43:25 GPS gpx: <trkpt lat="48.411" lon="10.29"><time>2018-01-18T21:43:25.000Z</time></trkpt>
2018-01-18_22:44:01 GPS gpx: <trkpt lat="48.411" lon="10.29"><time>2018-01-18T21:44:01.000Z</time></trkpt>
2018-01-18_22:44:33 GPS gpx: <trkpt lat="48.411" lon="10.29"><time>2018-01-18T21:44:33.000Z</time></trkpt>


Okidoki.. Also soweit wie du :-)

Hallo Ihr nochmal,

ich habe es indes auch geschafft das Modul zum laufen zu bekommen und erhalte valide Daten in den Readings.
Was jedoch leider nicht so recht funktionieren will, ist das FileLog define Filelog_GPX FileLog ./log/Filelog_GPX-%Y-%U.log KastenGPS:(gpx).*
DasLogFile wird leider nicht gefüllt.

Wenn ich jedoch beispielsweise das DOIF doif_gpx doif (["KastenGPS:lat"])((setreading KastenGPS gpx <trkpt lat="[KastenGPS:lat]" lon="[KastenGPS:lon]"><time>[KastenGPS:time_utc]</time></trkpt>))DOELSE
manuell über set doif_gpx cmd_1 auslöse wird einmalig ein Reading ins Logfile geschrieben, das war es dann aber auch.
attr. do always für das DOIF ist hinterlegt.


Vielleicht könnt Ihr mir nochmal mit eurem Wissen zur Seite stehen, dafür wär ich echt Dankbar :-)

Vielen Dank vorab.
beste Grüße Patrick

UweUwe

Hallo,
ich hatte auch schon über einen Pi/FHEM im Wohnwagen nachgedacht. Wäre interessiert zu verstehen, welche Anwendungen ihr dort habt. Merci

UweUwe

Hi, wollte nochmals nachfragen. Denke stark an einer GPS Anbindung für meinen Rasperry 3 nach.
Ich bin sicher, dass ich bei der Konfiguration etwas Unterstützung benötige. Ist da in den nächsten Tagen/Wochen jemand im Forum bereit und im Forum verfürgbar?  Welche GPS Modul soll man denn kaufen?


StephanFHEM

ich hatte noch folgendes Problem: nach dem Reboot war die GPS-Verbindung bei mir immer wieder deaktiviert und ich musste sie manuell starten.
Hier die Lösung:

sudo nano /etc/default/gpsd

eingeben und folgende Daten in der Datei ändern/eintragen:

START_DAEMON="true"
GPSD_OPTIONS="-n"
DEVICES="/dev/ttyS0"
USBAUTO="false"
GPSD_SOCKET="/var/run/gpsd.sock"


danach ist GPS auch mit einem Reboot verfügbar

karlheinzmabroe

#71
Hallo zusammen, ich habe dieses Problem auch noch. Bin auf einem frisch installierten rpi 3b und cpan baut gpsd parse nicht durch, ich bekomme immer Fehler bei den Tests. Habe schon diverse XML und json libs installiert aber es hilft nicht.
jemand noch eine Idee? Bin wie von morph beschrieben vorgegangen, cgps zeigt interessanterweise sogar gültige Daten, es scheint also eher ein Problem in der Bibliothek zu sein.

finde im netzt leider überhaupt nichts sinnvolles zu diesem Problem.

EDIT: genau hinschauen hilft ... wie ärgerlich, musste nur den letzten Teil der Anleitung vor dem cpan machen (gpsd.sock entfernen, services stoppen, ...) dann klappt die Installation und GPS steht in FHEM zur Verfügung.

UweUwe

Hallo,

ich bin zwischenzeitlich auf Bullseye umgestiegen und bekomme meine GPS-Maus in FHEM nicht zum Laufen.

Ich hab auf Linux Ebene soweit alles klar:
ZitatTime:        2022-11-29T12:00:20.000Z (0) ││GNSS   PRN  Elev   Azim   SNR Use│
│ Latitude:         50.60366320 N           ││GP  5    5  59.0  241.5  39.3  Y │
│ Longitude:         6.29292499 E           ││GP  7    7  27.0   61.5  24.7  Y │
│ Alt (HAE, MSL):    598.597,    552.218 m  ││GP 13   13  61.5  291.0  31.5  Y │
│ Speed:             0.00 km/h              ││GP 14   14  46.0  132.0  37.4  Y │
│ Track (true, var):     0.0,   1.9     deg ││GP 20   20  36.5  193.5  36.2  Y │
│ Climb:             0.00 m/min             ││GP 30   30  63.0   67.5  40.1  Y │
│ Status:         3D DGPS FIX (58 secs)     ││SB123  123  27.0  148.5  41.3  Y │
│ Long Err  (XDOP, EPX):  0.61, +/-  2.3 m  ││GP  3    3  73.0  157.5   0.0  N │
│ Lat Err   (YDOP, EPY):  0.96, +/-  3.6 m  ││GP 10   10  65.0   76.5   0.0  N │
│ Alt Err   (VDOP, EPV):  1.53, +/-  8.8 m  ││GP 17   17  44.5  151.5   0.0  N │
│ 2D Err    (HDOP, CEP):  1.40, +/-  6.7 m  ││GP 22   22  48.5  190.5   0.0  N │
│ 3D Err    (PDOP, SEP):  1.91, +/-  9.1 m  ││GP 27   27  39.5  304.5   0.0  N │
│ Time Err  (TDOP):       2.31              ││                                 │
│ Geo Err   (GDOP):       2.22              ││                                 │
│ ECEF X, VX:    4032136.000 m    0.000 m/s ││                                 │
│ ECEF Y, VY:     444648.000 m    0.000 m/s ││                                 │
│ ECEF Z, VZ:    4906142.000 m    0.000 m/s ││                                 │
│ Speed Err (EPS):       +/- 26.0 km/h      ││                                 │
│ Track Err (EPD):        n/a               ││                                 │
│ Time offset:            0.386457326 s     ││                                 │
│ Grid Square:            JO30do54          ││                                 │

Gehe ich aber jetzt in Fhem und versuche das Modul zu installieren, so bekomme ich:

Mein Befehl lautet:

Zitatdefine meinGPS GPSD
das Ergebnis ist:


ZitatCannot load module GPSD

Ich hab mir das Modul aus diesem Threat heruntergeladen und in /opt/fhem/FHEM abgelegt.

Ich hatte mir noch notiert, dass ich eine Zeile ändern muss:

Zitatdie Zeile angepasst in 49_GPSD.pm zu 127.0.0

Dies hab ich nicht gemacht, ich finde die Zeile nicht mehr.

Kann mir bitte jemand einen TIP geben

rudolfkoenig

ZitatCannot load module GPSD
Die Ursache muesste im FHEM Log stehen.

UweUwe

Hallo,

hier ist die Fehlermeldung in Logfile.

2022.11.29 13:23:19 1: reload: Error:Modul 49_GPSD deactivated:
Can't locate GPSD/Parse.pm in @INC (you may need to install the GPSD::Parse module) (@INC contains: ./lib ./FHEM . /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.32.1 /usr/local/share/perl/5.32.1 /usr/lib/arm-linux-gnueabihf/perl5/5.32 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl-base /usr/lib/arm-linux-gnueabihf/perl/5.32 /usr/share/perl/5.32 /usr/local/lib/site_perl ./FHEM/lib) at ./FHEM/49_GPSD.pm line 24.
BEGIN failed--compilation aborted at ./FHEM/49_GPSD.pm line 24.

2022.11.29 13:23:19 0: Can't locate GPSD/Parse.pm in @INC (you may need to install the GPSD::Parse module) (@INC contains: ./lib ./FHEM . /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.32.1 /usr/local/share/perl/5.32.1 /usr/lib/arm-linux-gnueabihf/perl5/5.32 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl-base /usr/lib/arm-linux-gnueabihf/perl/5.32 /usr/share/perl/5.32 /usr/local/lib/site_perl ./FHEM/lib) at ./FHEM/49_GPSD.pm line 24.
BEGIN failed--compilation aborted at ./FHEM/49_GPSD.pm line 24.

2022.11.29 13:24:25 1: RMDIR: ./restoreDir/save/2022-11-21
2022.11.29 13:24:33 1: reload: Error:Modul 49_GPSD deactivated:
Can't locate GPSD/Parse.pm in @INC (you may need to install the GPSD::Parse module) (@INC contains: ./lib ./FHEM . /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.32.1 /usr/local/share/perl/5.32.1 /usr/lib/arm-linux-gnueabihf/perl5/5.32 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl-base /usr/lib/arm-linux-gnueabihf/perl/5.32 /usr/share/perl/5.32 /usr/local/lib/site_perl ./FHEM/lib) at ./FHEM/49_GPSD.pm line 24.
BEGIN failed--compilation aborted at ./FHEM/49_GPSD.pm line 24.

2022.11.29 13:24:33 0: Can't locate GPSD/Parse.pm in @INC (you may need to install the GPSD::Parse module) (@INC contains: ./lib ./FHEM . /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.32.1 /usr/local/share/perl/5.32.1 /usr/lib/arm-linux-gnueabihf/perl5/5.32 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl-base /usr/lib/arm-linux-gnueabihf/perl/5.32 /usr/share/perl/5.32 /usr/local/lib/site_perl ./FHEM/lib) at ./FHEM/49_GPSD.pm line 24.
BEGIN failed--compilation aborted at ./FHEM/49_GPSD.pm line 24.


In Zeile 24 steht:
use GPSD::Parse;

Parse hab ich installiert:

pi@Vagabundi02:/opt/fhem/FHEM $ sudo cpan install GPSD::Parse
Reading '/root/.local/share/.cpan/Metadata'
  Database was generated on Tue, 29 Nov 2022 11:41:01 GMT
Running install for module 'GPSD::Parse'
CPAN: Digest::SHA loaded ok (v6.02)
CPAN: Compress::Zlib loaded ok (v2.093)
Checksum for /root/.local/share/.cpan/sources/authors/id/S/ST/STEVEB/GPSD-Parse-1.03.tar.gz ok
CPAN: YAML loaded ok (v1.30)
CPAN: CPAN::Meta::Requirements loaded ok (v2.140)
CPAN: Parse::CPAN::Meta loaded ok (v2.150010)
CPAN: CPAN::Meta loaded ok (v2.150010)
CPAN: Module::CoreList loaded ok (v5.20210123)
Configuring S/ST/STEVEB/GPSD-Parse-1.03.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for GPSD::Parse
Writing MYMETA.yml and MYMETA.json
  STEVEB/GPSD-Parse-1.03.tar.gz
  /usr/bin/perl Makefile.PL INSTALLDIRS=site -- OK
Running make for S/ST/STEVEB/GPSD-Parse-1.03.tar.gz
cp lib/GPSD/Parse.pm blib/lib/GPSD/Parse.pm
Manifying 1 pod document
  STEVEB/GPSD-Parse-1.03.tar.gz
  /usr/bin/make -- OK
CPAN: CPAN::DistnameInfo loaded ok (v0.12)
Running make test for STEVEB/GPSD-Parse-1.03.tar.gz
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-load.t ................ 1/? In socket mode...
t/00-load.t ................ ok
t/05-poll.t ................ ok
t/10-time.t ................ ok
t/15-device.t .............. ok
t/20-tpv.t ................. 1/?
#   Failed test 'tpv() key count matches number of stats'
#   at t/20-tpv.t line 51.
#          got: '33'
#     expected: '15'
# Looks like you failed 1 test of 37.
t/20-tpv.t ................. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/37 subtests
t/25-satellites.t .......... 1/?
#   Failed test '...and is an integer'
#   at t/25-satellites.t line 53.
#                   '40.5'
#     doesn't match '(?^:^\d+$)'

#   Failed test '...and is an integer'
#   at t/25-satellites.t line 53.
#                   '31.5'
#     doesn't match '(?^:^\d+$)'

#   Failed test '...and is an integer'
#   at t/25-satellites.t line 53.
#                   '39.2'
#     doesn't match '(?^:^\d+$)'

#   Failed test '...and is an integer'
#   at t/25-satellites.t line 53.
#                   '76.5'
#     doesn't match '(?^:^\d+$)'

#   Failed test '...and is an integer'
#   at t/25-satellites.t line 53.
#                   '34.5'
#     doesn't match '(?^:^\d+$)'

#   Failed test '...and is an integer'
#   at t/25-satellites.t line 53.
#                   '58.5'
#     doesn't match '(?^:^\d+$)'

#   Failed test '...and is an integer'
#   at t/25-satellites.t line 53.
#                   '262.5'
#     doesn't match '(?^:^\d+$)'

#   Failed test '...and is an integer'
#   at t/25-satellites.t line 53.
#                   '41.3'
#     doesn't match '(?^:^\d+$)'

#   Failed test '...and is an integer'
#   at t/25-satellites.t line 53.
#                   '148.5'
#     doesn't match '(?^:^\d+$)'

#   Failed test '...and is an integer'
#   at t/25-satellites.t line 53.
#                   '29.2'
#     doesn't match '(?^:^\d+$)'

#   Failed test '...and is an integer'
#   at t/25-satellites.t line 53.
#                   '205.5'
#     doesn't match '(?^:^\d+$)'

#   Failed test '...and is an integer'
#   at t/25-satellites.t line 53.
#                   '42.4'
#     doesn't match '(?^:^\d+$)'

#   Failed test '...and is an integer'
#   at t/25-satellites.t line 53.
#                   '83.5'
#     doesn't match '(?^:^\d+$)'

#   Failed test '...and is an integer'
#   at t/25-satellites.t line 53.
#                   '118.5'
#     doesn't match '(?^:^\d+$)'

#   Failed test '...and is an integer'
#   at t/25-satellites.t line 53.
#                   '139.5'
#     doesn't match '(?^:^\d+$)'

#   Failed test '...and is an integer'
#   at t/25-satellites.t line 53.
#                   '45.5'
#     doesn't match '(?^:^\d+$)'

#   Failed test '...and is an integer'
#   at t/25-satellites.t line 53.
#                   '280.5'
#     doesn't match '(?^:^\d+$)'
# Looks like you failed 17 tests of 171.
t/25-satellites.t .......... Dubious, test returned 17 (wstat 4352, 0x1100)
Failed 17/171 subtests
t/30-sky.t ................. 1/?
#   Failed test 'keys match SKY entry count'
#   at t/30-sky.t line 43.
#          got: '12'
#     expected: '10'

#   Failed test 'SKY stat tdop exists'
#   at t/30-sky.t line 51.
#          got: ''
#     expected: '1'
# Looks like you failed 2 tests of 15.
t/30-sky.t ................. Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/15 subtests
t/35-unit_conversion.t ..... ok
t/40-metres_feet.t ......... ok
t/45-direction.t ........... ok
t/50-signed.t .............. ok
t/55-unsigned.t ............ ok
t/60-poll_signed_toggle.t .. ok
t/65-tpv_methods.t ......... ok
t/manifest.t ............... skipped: Author tests not required for installation
t/pod-coverage.t ........... skipped: Author tests not required for installation
t/pod-linkcheck.t .......... skipped: Author test: RELEASE_TESTING not set
t/pod.t .................... skipped: Author tests not required for installation

Test Summary Report
-------------------
t/20-tpv.t               (Wstat: 256 Tests: 37 Failed: 1)
  Failed test:  2
  Non-zero exit status: 1
t/25-satellites.t        (Wstat: 4352 Tests: 171 Failed: 17)
  Failed tests:  64, 66, 73, 77, 102, 104, 113, 118, 122
                127, 131, 136, 138, 140, 149, 165, 167
  Non-zero exit status: 17
t/30-sky.t               (Wstat: 512 Tests: 15 Failed: 2)
  Failed tests:  2, 7
  Non-zero exit status: 2
Files=18, Tests=341, 16 wallclock secs ( 0.64 usr  0.15 sys + 12.66 cusr  1.30 csys = 14.75 CPU)
Result: FAIL
Failed 3/18 test programs. 20/341 subtests failed.
make: *** [Makefile:839: test_dynamic] Fehler 255
  STEVEB/GPSD-Parse-1.03.tar.gz
  /usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
  reports STEVEB/GPSD-Parse-1.03.tar.gz



Wo liegt mein Fehler?





rudolfkoenig

Aus dem cpan Log meine ich abzuleiten, dass GPSD::Parse nicht installiert wurde: "Result: FAIL", " /usr/bin/make test -- NOT OK".

Womoeglich klappt es, wenn man die Testergebnisse ignoriert: cpan force install GPSD::Parse



Wernieman

Oder wenn Du noch nichts mit CPAN installliert hast, was zu empfehlen währe, könntest Du auch einfach auf die Distri ausweichen:
apt-get install libnet-gpsd3-perl
- Bitte um Input für Output
- When there is a Shell, there is a Way
- Wann war Dein letztes Backup?

Wie man Fragen stellt: https://tty1.net/smart-questions_de.html