Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8786827
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T21:44:07+00:00 2026-06-13T21:44:07+00:00

I have a gps hooked up to my raspberry pi and am trying to

  • 0

I have a gps hooked up to my raspberry pi and am trying to use it to geotag photos from an incoming camera. By issuing the command “gpsd -nND2 /dev/ttyUSB0,” I can get bash echo outputs of continuous gps data that can later be parsed. I only need to average 10 data points or so (collected over 10 seconds), however, and want to close gpsd down after that.

My general timelapse program is written in python, so this is what I have so far:

(stdout, stderr) = Popen(["gpsd","-nND2,"/dev/ttyUSB0"], stdout=PIPE).communicate()

Unfortunately, this would output to variable stdout an unlimited number of data points that I can’t parse. The output is much like a never-ending ping routine. How can I stop the data collection to make for a reasonable/parsable data dump?

Thank you for your help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T21:44:08+00:00Added an answer on June 13, 2026 at 9:44 pm

    According to the docs, you should not be looking at the console output, and instead using gpsd as a daemon, communicating to it via TCP:

    Client applications will communicate with gpsd via a TCP/IP port, 2947 by default).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a PHP photo gallery that reads the GPS coordinates from images. I'd
I have a GPS class which i obviously use to acquire the latitudes and
I have GPS coordinates on all of my photos. I want to include tags/IPTC
I'm trying to have GPS coordinates sent to a text message. This code works,
I have a GPS error in my app when I am trying to get
I have a some GPS data from my Garmin I'd like to graph time
I have location from GPS (lon_base, lat_base). I have a list of locations (lon1,
Does every j2me enabled mobile have GPS service so that the developer can locate
I have built a GPS tracker that updates a homepage with its positions (and
I have a file with gps coords in every line: 9.34669876098644,48.2405319213867 9.36384963989269,48.2296714782715 9.3639497756958,48.2259712219238 9.36956977844238,48.2260589599609

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.