Commit Graph

51 Commits

Author SHA1 Message Date
Marcus Scholz da09323380 Remove now obsoluete rad_tag.py 2020-03-14 17:20:33 +01:00
Marcus Scholz 8ea6524238 Enriched class comments with arguments and return values.
Made a text representation of Exif and removed debug outputs.
2020-03-14 16:21:23 +01:00
Marcus Scholz fad837d7bd Added new upcoming features to changelog. 2020-03-13 07:21:24 +01:00
Marcus Scholz 693412316e Added write_exif function, calculates location in degree / minutes.
Assembles metadata info and writes them to the target_image.
2020-03-12 23:25:18 +01:00
Marcus Scholz cafda4cf35 Added function which converts decimal position value to WGS-84 notation. 2020-03-12 20:35:49 +01:00
Marcus Scholz f07eb0c691 Renamed photo class attribute.
Figured how to acces class objects.
Moved write_exif to own Exif class to compile GPS coords and write them all.
2020-03-12 19:24:27 +01:00
Marcus Scholz 2ad8b4a1fb Moved copying of photos to functions.py, simplified decision whether to copy photo or not. 2020-03-11 22:26:03 +01:00
Marcus Scholz 92b08170f2 Changed CSV variable, only write Exif tags that hava values to fill in. 2020-03-10 21:53:43 +01:00
Marcus Scholz c19a94374e Created Radiation, Photo classes and slimmed down main program.
- Radiation creates a list with timezone_aware datetime and radiation in µS/h.
- Photo reads DateTimeOriginal from photo.
- Photo.write_exif compiles new metadata object and writes exif tags to photo.
- Documentd changes in CHANGELOG.md.
- Changed Readme.me to match changes in code.
- Removed obsolete line from .gitignore
2020-03-10 21:09:25 +01:00
Marcus Scholz d347bbdf55 Fixed typo. 2020-03-10 00:03:06 +01:00
Marcus Scholz cbb21db442 Moved creation and propagation of radiation_list and position_list out of the main loop. 2020-03-09 23:52:03 +01:00
Marcus Scholz d51c28b753 Refactored variable names, fixed dry run decision. 2020-03-09 23:43:01 +01:00
Marcus Scholz 314e70faa9 Now got 2 lists with with all data relevant for one photo. 2020-03-09 23:22:34 +01:00
Marcus Scholz a2ae379883 Made file executable. 2020-03-09 23:00:19 +01:00
Marcus Scholz fcc466eb41 Started conversion to OOP.
Created class Radiation with functions time_conversion and radiation
2020-03-09 22:42:08 +01:00
Marcus Scholz 115d6a6ab4 Trying to increase precision of datematch. 2020-03-09 17:02:17 +01:00
Marcus Scholz f43116abec Added verbose output for dry-run mode. 2020-03-09 16:09:19 +01:00
Marcus Scholz 83977b50bb Changed timezone default (to utc).
Old behavior failed when TZ was omitted.
2020-03-09 15:56:28 +01:00
Marcus Scholz 5b4811b081 Made timezone-aware (configurable)
Added optional dry-run modifier
Made timezone-aware for timesources without timezone
Added optional parameter to override timezone to local timezone, defaults to localtime
2020-03-07 21:29:25 +01:00
Marcus Scholz aef69f81a1 Removed debug output. 2020-03-07 19:12:00 +01:00
Marcus Scholz 940da3a772 Added dry-run optional parameter. 2020-03-07 19:10:56 +01:00
Marcus Scholz 3eb17f53b5 First baby steps towards GPX handling - mainly foolish test output. 2020-03-06 14:36:02 +01:00
Marcus Scholz 04fad8d5b8 Added changelog for v0.2 2020-03-05 16:37:07 +01:00
Marcus Scholz 5404ae6437 Finalized v0.2
Added copy function to be able to place files to outdir before modification.
Added verbose output about what it going to happen.
Added table header for output.
Removed obsolete "Processing..." message, as it was never visible.
2020-03-05 16:34:35 +01:00
Marcus Scholz 0ad627fb0b Added examples with sample output to Readme.md 2020-03-05 16:31:04 +01:00
Marcus Scholz f46c8682ec Working output mechanism, honors users outdir choice.
If outdir is set, srcfile will be copied to outdir first and modified there.
2020-03-05 15:19:29 +01:00
Marcus Scholz ef6080d64c Restructured parts of the tool in preparation for new image output mechanism. 2020-03-05 13:36:01 +01:00
Marcus Scholz 249acb6d85 Added changelog 2020-03-05 13:35:11 +01:00
Marcus Scholz b4c6448645 Directly create datetime object from tag.value, instead of ASCII export and datetime import. 2020-03-04 15:44:18 +01:00
Marcus Scholz 6e8aaf3338 Started, to re-write using pyexiv2.
Can already read DateTimeOriginal :-)
2020-03-04 15:17:56 +01:00
Marcus Scholz 3e7e3737cb Made CSV sample more readable. 2020-03-04 13:04:27 +01:00
Marcus Scholz f3de13eedb Markdown is hard :-/ Fixed again. 2020-03-04 12:56:45 +01:00
Marcus Scholz e12a52a092 Fixed geigerlog.cfg mishap. 2020-03-04 12:56:01 +01:00
Marcus Scholz 06b03a729f Added GeigerLog configuration and usage notes, fixed some typos. 2020-03-04 12:51:59 +01:00
Marcus Scholz fb2188d6f7 Fix typo. 2020-03-04 12:51:40 +01:00
Marcus Scholz e6be76a732 Added more code-comments and shorted a line that was too long. 2020-03-04 11:15:58 +01:00
Marcus Scholz f8ed12e35b Fixed csvloop (after 1st run).
Also close file after each run to prevent ressource hoarding.
2020-03-04 08:24:52 +01:00
Marcus Scholz 9b36336c37 Improved Readme, added usage info and placed some project links. 2020-03-02 19:46:42 +01:00
Marcus Scholz d42844ebeb Added MIT license. Do whatever you want with this thing. 2020-03-02 19:10:04 +01:00
Marcus Scholz e1e2888d3e Beautified output in a tablish format. 2020-03-02 00:03:12 +01:00
Marcus Scholz 6e4a955fe2 Made output more reasonable. Including a hint, when no match was found. 2020-03-01 23:40:49 +01:00
Marcus Scholz f32fa7adba Made output path configurable on cli.
Make SIFACTOR configurable on cli.
Output path, filename now dynamic.
2020-03-01 23:21:52 +01:00
Marcus Scholz 16bb735b29 Open CSV file only once. 2020-03-01 22:37:37 +01:00
Marcus Scholz 849d08060f Added command line paremeters
Added basic args, help
2020-03-01 22:35:28 +01:00
Marcus Scholz 6c4626ed50 Switched to use csv native lib, simplified code. 2020-03-01 22:03:04 +01:00
Marcus Scholz 32c338289f Stop loop on match. 2020-03-01 21:17:48 +01:00
Marcus Scholz f0f6363d8d First (somewhat) working prototype with static image 2020-03-01 19:16:44 +01:00
Marcus Scholz c575da044f Removed math from dependencies, as round() is there by default.
Added SIFACTORs for all GQ geiger counters GeigerLog knows.
2020-03-01 18:05:47 +01:00
Marcus Scholz d2e08a442a Re-styled Readme.md 2020-03-01 17:45:31 +01:00
Marcus Scholz 4a00fed85e Added Readme.md with initial info. 2020-03-01 17:36:06 +01:00