How to install gypsy?

Sebastian Krzyszkowiak seba.dos1 at gmail.com
Thu Aug 13 17:57:17 CEST 2009


On 8/13/09, RANJAN <infibit at gmail.com> wrote:
> Example Telnet code:
>
> import getpass
> import sys
> import telnetlib
>
> HOST = "localhost"
> user = raw_input("Enter your remote account: ")
> password = getpass.getpass()
>
> tn = telnetlib.Telnet(HOST)
>
> tn.read_until("login: ")
> tn.write(user + "\n")
> if password:
>     tn.read_until("Password: ")
>     tn.write(password + "\n")
>
> tn.write("ls\n")
> tn.write("exit\n")
>
> print tn.read_all()
>
> So any ideas on how to modify this to listen to gpsd?When I typed "telnet
> localhost gpsd" I dint mention the port number.
>
> Sriranjan
>
> On Thu, Aug 13, 2009 at 8:56 PM, Sebastian Krzyszkowiak
> <seba.dos1 at gmail.com
>> wrote:
>
>> On 8/13/09, RANJAN <infibit at gmail.com> wrote:
>> >>
>> >>
>> >> >I don't think it's possible. But you could use data from Gypsy or
>> >> > gpsd
>> >> >protocol to translate it into NMEA sentences.
>> >
>> >
>> > But typing *telnet localhost gpsd*  displays the NMEA sentences.So is
>> > it
>> > possible to write a python script which reads the NMEA from telnet
>> > localhost
>> > gpsd?
>> >
>> > Sriranjan
>> >
>>
>> If it's possible from telnet, then it's possible from python (but
>> probably not from dbus). Just listen to gpsd port on 127.0.0.1. I
>> wrote few years ago some python app using python-telnet, that
>> shouldn't be hard and AFAIR good howtos are available on internet.
>>
>> --
>> Sebastian Krzyszkowiak
>> dos
>>
>

telnet localhost gpsd = telnet 127.0.0.1 2947

-- 
Sebastian Krzyszkowiak
dos



More information about the devel mailing list