[Offering] Functionality to import data from "My Calendar" #240
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related to enhancement #140 "Support of importing data from other apps"
I made a function to import data from "My Calendar" / "Period Calendar" (I don't know what's its name in English...). I thought that you might be interested in taking a look at it. The function is by no means ready for your scope right now, as it only imports from files that are written in Spanish because I made it for myself. But I think that it wouldn't be hard to broaden the languages that it supports by adding some Lists.
"My Calendar" makes backups in a
.pc
file extension that I haven't found how to read correctly. The only way to get readable data is with the "Export data for your doctor" option, that generates a.txt
. In functiontransformMyCalendarFormatToMensinatorFormat()
I read the.txt
and transform it into a JSON that follows Mensinator's way of structuring data. Then it is imported normally.