[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.
- [gpsd-users] Hoe to send GPS data from GPSD to remote Server/database server, Monali Bhattacharya, 2015/04/09
- Re: [gpsd-users] Hoe to send GPS data from GPSD to remote Server/database server, Chris Kuethe, 2015/04/09
- Re: [gpsd-users] Hoe to send GPS data from GPSD to remote Server/database server, O'Connor, Daniel, 2015/04/09
- Re: [gpsd-users] Hoe to send GPS data from GPSD to remote Server/database server, Monali Bhattacharya, 2015/04/09
- Re: [gpsd-users] Hoe to send GPS data from GPSD to remote Server/database server, Chris Kuethe, 2015/04/09
- Re: [gpsd-users] Hoe to send GPS data from GPSD to remote Server/database server, Monali Bhattacharya, 2015/04/09
- Re: [gpsd-users] Hoe to send GPS data from GPSD to remote Server/database server, O'Connor, Daniel, 2015/04/09
- Re: [gpsd-users] Hoe to send GPS data from GPSD to remote Server/database server, O'Connor, Daniel, 2015/04/09
- Re: [gpsd-users] Hoe to send GPS data from GPSD to remote Server/database server,
Monali Bhattacharya <=
- Re: [gpsd-users] Hoe to send GPS data from GPSD to remote Server/database server, O'Connor, Daniel, 2015/04/10
- Re: [gpsd-users] Hoe to send GPS data from GPSD to remote Server/database server, Gary E. Miller, 2015/04/09