{"id":27193877,"url":"https://github.com/lucasjanin/flickr2dayone","last_synced_at":"2025-04-09T19:02:20.642Z","repository":{"id":271039933,"uuid":"604800063","full_name":"LucasJanin/Flickr2DayOne","owner":"LucasJanin","description":"Import flickr export data to Day One using Node-Red","archived":false,"fork":false,"pushed_at":"2023-03-04T00:07:15.000Z","size":4214,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-03T13:51:29.655Z","etag":null,"topics":["dayone","dayone-cli","dayone2","flickr","node-red-flow"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LucasJanin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-21T20:18:58.000Z","updated_at":"2023-02-27T03:39:43.000Z","dependencies_parsed_at":"2025-01-05T01:58:11.263Z","dependency_job_id":"f59b1e14-f760-4af4-953a-802fe96f41b4","html_url":"https://github.com/LucasJanin/Flickr2DayOne","commit_stats":null,"previous_names":["lucasjanin/flickr2dayone"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucasJanin%2FFlickr2DayOne","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucasJanin%2FFlickr2DayOne/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucasJanin%2FFlickr2DayOne/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LucasJanin%2FFlickr2DayOne/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LucasJanin","download_url":"https://codeload.github.com/LucasJanin/Flickr2DayOne/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248094604,"owners_count":21046768,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dayone","dayone-cli","dayone2","flickr","node-red-flow"],"created_at":"2025-04-09T19:00:37.427Z","updated_at":"2025-04-09T19:02:20.632Z","avatar_url":"https://github.com/LucasJanin.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flickr2DayOne\n\nAfter being present for many years on [Flickr](https://www.flickr.com/photos/lucas3d), I decided to import all my 980 photos with descriptions, GPS, tags and comments on Day One. I didn't find a solution for this process, so I decided to use my favourite tool, Node-Red. This import is using the archive exported for Flickr. It isn't working live when you add a new photo to Flickr.\n \nThere is the result of the importation with a small hand change (moving the picture to the top of the entry).\n\n![DayOne](DayOne.png)\n\n## Prerequirements\n\nOf cause, you need to install [Node-Red](https://nodered.org). It can be done on a server or your Mac using Docker. Be careful, this software is very addictive! :-).\n\nYou need to add some custom nodes to your Node-Red\n\n* [node-red-contrib-fs-ops](https://flows.nodered.org/node/node-red-contrib-fs-ops): A Node Red node for performing file system operations\n* [node-red-contrib-fs](https://flows.nodered.org/node/node-red-contrib-fs): Node-Red nodes that work with the host filing system\n\nYou need to install the [Day One CLI](https://dayoneapp.com/guides/tips-and-tutorials/command-line-interface-cli/) on your Mac:\n```\nsudo bash /Applications/Day\\ One.app/Contents/Resources/install_cli.sh\n```\n## Prep Flickr Data\n\nYou need to download your data on the Flickr website. You can use \"Download all your content (Flickr Data)\" on the [Flickr Help](https://www.flickrhelp.com/hc/en-us/articles/4404079675156-Downloading-content-from-Flickr). This is composed of a zip file of the JSON files and one or multiple zip files for the photos (depending on the size of the Flickr library).\n\nCreate the folder /data/flickr/ with permission 777 in your Node-Red.\nOn my side, Node-Red run in a Docker container on my Synology NAS, my local path of the JSON files is:\n```\n/Volumes/docker/nodered/flickr/\n```\nCopy the Flickr's JSON files to this folder.\n\nYou need to extract the zip files of the photos and copy them to your computer (not in Node-Red docker).\nFor me this path is:\n```\n~/Documents/DayOne/Flickr/Photos/\n```\n\n## GPS -\u003e Timezone\n\nGPS data need to be converted into Timezone. After using deferents services, I decided to use [TimezoneDB](https://timezonedb.com/register]). It's free with registration. After creating your account, get your API key and add it to the node \"prep request\".\n\nThe free version has a limit of requests (one every second). This \"limitation\" can slow down the process for a very large library. On my side, it takes 50 minutes to process my 980 photos. \n\n## Output\n\nThe flow will create two types of files for each photo:\n* sh: CLI command to generate the entry, there is an [example](photo_4481220450_example.sh) of this file \n* md: Text of the entry, there is an [example](photo_4481220450_example.md) of this file \n\nYou can check the number of files generated in the terminal using \"ls | wc -l\" in the output folder: \n```\nls | wc -l /Volumes/docker/nodered/flickr/output/sh/\n```\nWhen this part is done, you use de bottom section to merge the sh files.\n```\n/Volumes/docker/nodered/flickr/merge/flickr.sh\n```\nYou can execute this script to create the entries on Day One.\n\n## Current limitations\n\nThe time of the entry isn't matching the taken time information from Flickr due to timezone issue.\nI contacted DayOne's developer for clarification about the CLI command.\n\n## The flow\n\n![Flickr2DayOne Flow](Flickr2DayOne_flow.png)\n\nThe code: ![Flickr2DayOne Json](Flickr2DayOne.json)\n\nFeel free to contact me with any questions.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucasjanin%2Fflickr2dayone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucasjanin%2Fflickr2dayone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucasjanin%2Fflickr2dayone/lists"}