g-battaglia / kerykeion

Data driven Astrology 💫
Kerykeion is a python library for astrology. It can generate SVG charts and extract all data about a birthchart, a synastry chart and a transit chart.
https://kerykeion.net
GNU Affero General Public License v3.0
298 stars 103 forks source link

Hourly Limit #45

Closed Pretorian29 closed 2 years ago

Pretorian29 commented 2 years ago

Hi, is there any way to remove the hourly limit mentioned in the following error message:

"ERROR:root:Geonames API response could not be parsed! Maybe you exceeded API hourly limit? ERROR:root:String that failed to parse:

<status message="the hourly limit of 1000 credits for century.boy has been exceeded. Please throttle your requests or use the commercial service." value="19"/>

I am trying to preprocess 85000 records to prepare a data set for an AI, can anyone gieve ideas? Thanks!

g-battaglia commented 2 years ago

Hi, you should create your own profile on GeoNames and use that one instead of the default one!

g-battaglia commented 2 years ago

Or also you can just insert all the data of the location and avoid using GeoNames at all

Pretorian29 commented 2 years ago

Or also you can just insert all the data of the location and avoid using GeoNames at all

Tried using "rec = KrInstance(ID, year, month, day, hour, minute, city, country)" but only admits up to city; adding the optional country gives "root - ERROR - No results found using Geonames API!" Thank you very much.

Pretorian29 commented 2 years ago

Found the error: GeoNames only accept the country code as valid, not the full name of the countries. I am using AstroDataBank and despite the XML has the country code, GeoNames require me to buy credits for the purpose I am seeking in my investigation. Unfortunatley, I should use an alternative method. Thank you for your help.

g-battaglia commented 2 years ago

If you instance the KR object like this you can avoid using GeoNames:

    kanye = KrInstance(
        "Kanye", 1977, 6, 8, 8, 45,
        lng=50, lat=50, tz_str="Europe/Rome"
    )
Pretorian29 commented 2 years ago

If you instance the KR object like this you can avoid using GeoNames:

    kanye = KrInstance(
        "Kanye", 1977, 6, 8, 8, 45,
        lng=50, lat=50, tz_str="Europe/Rome"
    )

Absolutely great! thank you! This Solve my problem.

g-battaglia commented 2 years ago

You're welcome, I'll try to update the docs to make this option more clear!

Pretorian29 commented 2 years ago

Thank you very much for updating Giacomo. I am using the last version of kerykeion and works absolutely fine; Generates the data to feed an algorithm and generates the chart for a report in Angular. I just wanted to ask if you will be giving options to change chart colours and if it will support different languages in the future. Once again, thank you!