This script uses official VVC list to prepare APIs.lv compatible namedays JSON extract.
Reason - original API data source is not being updated anymore new API key creation is not possible.
Go to Releases page and pick link of latest "namedays.json".
Then use in place of http://apis.lv/namedays.json
API call.
Prerequisite - locally downloaded VVC nameday CSV. Check this page for "Latviešu tradicionālo vārdadienu saraksts (CSV)".
$ gem install -g
$ VVC_CSV_FILE_PATH=/tmp/vvc.csv ruby generate_namedays_json.rb > /tmp/output.json
BSD-3