SethCalkins / procare-photo-timestamper

A simple python script for adding timestamps to procare photos downloaded with JWally's procare-media-downloader

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Procare Photo Timestamper

About

This project is a simple python script for adding timestamps to photos downloaded with JWally’s procare-media-downloader.

The code simply reads the filename of the downloaded photo and adds a timestamp back into the image exif metadata.

Update

As of 6/23/2023, due to upstream changes in Procare Software’s API and web portal, procare-media-downloader is stale and so this repository no longer supports this flow. I will post a solution with the new Procare Software format eventually.

Update 8/3/2023

I have added jsigman/procare-photo-scraper to be able to bulk download one month’s photos at a time. This seems to work for now.

Proof of concept

The procare files have timestamps in their filenames. We can inject the timestamp data back into the image, therefore, by using the names of each image file.

import datetime
return datetime.datetime.fromtimestamp(1665512507.858249)
: 2022-10-11 14:21:47.858249

Dependencies

Mac

brew install exiftool

Ubuntu

sudo apt install libimage-exiftool-perl

Run

python3 timestamp_procare_photos.py PATH_TO_YOUR_IMAGES_DIR

License

MIT License

About

A simple python script for adding timestamps to procare photos downloaded with JWally's procare-media-downloader

License:MIT License


Languages

Language:Python 100.0%