Skip to content

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

License

Notifications You must be signed in to change notification settings

jsigman/procare-photo-timestamper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Python dependencies

pip install -r requirements.txt

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages