Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why archive? #76

Open
github-actions bot opened this issue Jul 21, 2021 · 0 comments
Open

why archive? #76

github-actions bot opened this issue Jul 21, 2021 · 0 comments
Labels

Comments

@github-actions
Copy link

why archive?

# Print to terminal and log to archive #TODO: why archive?

                                Altitude: {}""".format(gps.satellites_in_use, gps.hdop, latitude, longitude, gps.altitude)

                                # Process GPS location
                                timestamp = TIME_ISO8601_FMT.format(*time.gmtime())  # get current time in desired format
                                lst_to_log = [timestamp, latitude, longitude, self.gps.altitude]
                                str_lst_to_log = list(map(str, lst_to_log))  # cast to string
                                line_to_log = ','.join(str_lst_to_log) + '\n'

                                # Print to terminal and log to archive #TODO: why archive?
                                sys.stdout.write(s.GPS + " - " + line_to_log)
                                with open(s.archive_path + s.GPS + '.csv', 'a') as f_archive:
                                    f_archive.write(line_to_log)

                                if False: #TODO re-enable lora? lora is not False:
                                    # get year and month from timestamp
                                    year_month = timestamp[2:4] + "," + timestamp[5:7] + ','

bbe46eec407b0c5748e7ec3e282f8efa2bacb275

@github-actions github-actions bot added the todo label Jul 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

0 participants