gpsd-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gpsd-users] Hoe to send GPS data from GPSD to remote Server/databas


From: Monali Bhattacharya
Subject: Re: [gpsd-users] Hoe to send GPS data from GPSD to remote Server/database server
Date: Fri, 10 Apr 2015 05:48:21 +0000

I've tried the steps as Daniel told, and created the database user and table. 
But while running the python script I'm getting the following error
Traceback (most recent call last):
  File "gpsserver.py", line 17, in <module>
    if ev['type']!='TPV':
  File "/usr/lib/python2.7/dist-packages/gps/client.py", line 192, in 
__getitem__
    return self.__dict__[key]
KeyError: 'type'

Can you please tell how to solve the problem.

-----Original Message-----
From: O'Connor, Daniel [mailto:address@hidden
Sent: Thursday, April 09, 2015 4:36 PM
To: Monali Bhattacharya
Cc: Chris Kuethe; address@hidden
Subject: Re: [gpsd-users] Hoe to send GPS data from GPSD to remote 
Server/database server


> On 9 Apr 2015, at 20:33, O'Connor, Daniel <address@hidden> wrote:

>       tmp = ev['time'].split('.')
>       d = datetime.datetime.strptime(d[0])
>       d.replace(microsecond = int(tmp[1][0:3]) * 1000)

PS it would be really nice if the gps bindings converted the timestamp 
automatically :)

--
Daniel O'Connor
"The nice thing about standards is that there are so many of them to choose 
from."
 -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C

Larsen & Toubro Limited

www.larsentoubro.com

This Email may contain confidential or privileged information for the intended 
recipient (s). If you are not the intended recipient, please do not use or 
disseminate the information, notify the sender and delete it from your system.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]