Home Page Forums Raspberry Pi Shields GPS Tracker with 3G, 4G/LTE shield

Tagged: 

This topic contains 4 replies, has 3 voices, and was last updated by  Saeed 1 day, 7 hours ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #35803

    cemfcelebi
    Participant

    Hello,

    When i try to run gpstest.py, i got below error. Please help

    File “gpstest.py”, line 30
    else:
    ^
    IndentationError: unindent does not match any outer indentation level

    #36059

    I have same problem.

    #36061

    Saeed
    Keymaster

    Hello,
    The error has been fixed. You may also get the code from Github. LINK TO CODE

    #36111

    Hello Saeed

    I use your code and complete

    but when I run sudo python gpstest.py

    this code show message like this.

    I think because GPS can’t run indoor,right?
    this code show myGPS lat,lon code but when it show finish, It’s error

    Printed data is $GPGSV
    raw: $GPGSV,6,6,22,50,,,34,51,,,34*78

    Printed data is $GPGSV
    raw: $GPGGA,183843.00,1357.159046,N,10036.993915,E,1,05,1.3,12.5,M,-26.0,M,,*74

    Printed data is $GPGGA
    raw: $GPVTG,0.0,T,1.1,M,0.0,N,0.0,K,A*23

    Printed data is $GPVTG
    raw: $GPRMC,183843.00,A,1357.159046,N,10036.993915,E,0.0,0.0,100119,1.1,W,A*2F

    —–Parsing GPRMC—–
    Traceback (most recent call last):
    File “gpstest.py”, line 101, in <module>
    parseGPS(data)
    File “gpstest.py”, line 55, in parseGPS
    checksum = dc[1] #checksum
    IndexError: list index out of range

    #36148

    Saeed
    Keymaster

    Hi,

    The error is fixed please try with the fixed script.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.