App to track her period (ovulation calendar).
- Go 100%
| .gitignore | ||
| export.go | ||
| go.mod | ||
| go.sum | ||
| history_export.go | ||
| import.go | ||
| LICENSE | ||
| main.go | ||
| main_test.go | ||
| README.md | ||
her-days
App to track her period (ovulation calendar).
Calendar Legend
- Red Background: Active period.
- Light Red Background: Predicted next period.
- Green Background: Predicted fertile window (5 days before ovulation + ovulation day).
- Yellow Background: Extended fertile window.
- Cyan Background: Today's date.
- Solid Bullet (●): Sex activity (Gray: Failed, Yellow: Normal, Red: Good).
- Circle around Bullet: Protection is used
- Blue Square in corner: Note exists for that day.
- Bold Day Number: Marked as "Start of Period".
Run Application
go run .
Import Data
To import historical data from a .myd file (default Default_User.myd), run:
This is from MyDays Android app (https://play.google.com/store/apps/details?id=com.chris.mydays)
go run . --import-myd path_to_file.myd
Export to PNG (Cron)
To export the current month's calendar view to a high-resolution PNG file (suitable for mobile devices and automated reports). This operation is headless and does not require an X11 session:
go run . --export-png /path/to/save/image.png
Example cron job to export daily at 00:00:
0 0 * * * cd /path/to/her-days && go run . --export-png /path/to/save/calendar_$(date +\%Y-\%m-\%d).png
Export to TXT
To export the full history to a text file (newest dates on top):
go run . --export-txt /path/to/save/history.txt