How to import Indian lunar calendar or Panchanga data into Aeon Timeline 3?

Is there any option to create or import data from Google Calendar or an Indian/Hindu calendar (such as via a Panchanga API) into Aeon Timeline 3?
I need a lunar calendar that includes Indian festivals and tithis. What’s the easiest way to set this up or integrate it with Aeon Timeline? Plz help me.

I can imagine two different approaches:

  1. You create a calendar consisting of eras that represent your desired system.
  2. You use a preset calendar and add one or more additional properties to your event type, which contain the date of one or more additional calendars.

We demonstrated an example of approach 1 last year with a zodiac calendar. In this case, I used a script to create a project template in AT2 format, which could then be imported and converted with AT3. If the time periods in your project are manageable, you can of course also enter the eras manually in your calendar definition. You would then need to obtain the data for this from an online Panchanga calculator.

For approach 2, I also have an example that I use regularly myself: My events have a moon phase property. Since I still use AT2, whose file format is easily accessible to me, I can generate the moon phases from a Python script and have them written to the project file. With AT3, however, something like this could work via csv export and reimport.
However, there are other solutions as well. It may be helpful to have a look at the corresponding thread in this forum.

I have AT3. My epic is quite large, almost a span of 3000 thousand year. That’s why i start using AT3. I have a free panchanga api. Is there any easy way to have/make a python script for that type of calender? Manually its almost impossible. Though I have zero knowledge about python but my friend is good in that. But He know nothing about AT3.

As I said, it depends on which of the two approaches you want to pursue. If you have a friend who is good at Python, that’s great. He might want to do a GitHub search for Panchanga to find Python code that either does the calculations or connects to the API.

So if you add your Panchanga dates as event properties (approach 2), this can be done via the Python standard library, using the csv module that reads and writes the csv file format as exported and imported by AT3.

In case you want to specify the entire calendar with Panchanga (approach 1), and there are lots of eras to be created, things are a bit more complicated. Then there’s no way around manipulating an AT file, and that requires a bit of investigative spirit. Your friend might find some inspiration in my code here. and here. There’s also a comprehensive discussion on the aeon file format here in the forum.

In any case, it can’t hurt to first create a calendar for a manageable period of time by hand to see if the result meets your needs. Only then is it worth considering automatically generating the calendar for the entire period.

Good luck,
Peter

1 Like

I must admit that I immediately thought of technical solutions without even knowing the exact problem. In the meantime, I’ve been doing a little digging around on the web and came across the following on Wikipedia:

Unlike the Gregorian calendar which adds additional days to the month to adjust for the mismatch between twelve lunar cycles (354 lunar days) and approximately 365 solar days, the Hindu calendar maintains the integrity of the lunar month, but inserts an extra full month, once every 32–33 months, to ensure that the festivals and crop-related rituals fall in the appropriate season.

So the question is how to create such a calendar with AT. Perhaps my approaches for the zodiac calendar and for the moon phase information are not so helpful here. It seems to me that the first step is to find the right approach to defining the months. The festive days and other events could then actually be generated as a CSV table using a Python script and imported with AT3. By the way: Can calendar markers also be imported via CSV in AT3?

1 Like

Thanks a lot, Peter. Just don’t know it’s possible or not. If someday in future AT3 let us put two calendars in one file, may be then it will be easy.

1 Like

I’m afraid the problem runs a little deeper than that. It’s quite possible that the Panchanga system of leap years cannot be modeled using the parameters of Aeon Timeline. So if we assume for now that we cannot generate a Panchanga calendar, the only option left is a workaround.

Could you accept using a Gregorian calendar and having the “Hindu date” as an event property? In this case, it would be relatively easy to implement the second approach presented above.

The workflow is as follows:

  1. Export your events as a CSV file. The CSV table should have a column for the Hindu date, let’s call it “Panchanga date.” The entries can be left blank.

  2. A Python script reads the events with their Gregorian dates and calculates a “Panchanga date” for each event, which it enters in the correct place.

  3. You let Aeon import the updated CSV file.

In your timeline view, you can display events with the “Panchanga date” property. However, the time scale will show Gregorian dates.

When you create a new event based on a Panchanga date you have defined, you must determine the corresponding Gregorian date outside of Aeon. You can then enter the Panchanga date manually. This may not be an issue for the events in your story if you insert them directly into the timeline view at short intervals. In that case, you can simply go through the workflow shown above from time to time to have the Panchanga dates added or updated.

You can generate Indian festivals and tithis as a CSV data set using a Python script and import them into Aeon. This definitely works with events. Of course, it would be more elegant to have them as calendar markers, which is why I asked the question above.

Programming the corresponding Python scripts is quite easy if you use the standard procedures for CSV processing (see above). However, as I mentioned earlier, you would need to find a suitable helper module for converting between the Gregorian and Hindu calendars. At first glance, though, the chances look good that there is something suitable out there.

1 Like

Thanks a lot, Peter! Its just a wow idea. Let me talk with my frnd. May be it can be done. If we can do it, I must tell you. Thank you very much for the idea and as you elaborate the workflow that also lovely.
Yeah, if those dates are calender markers then it will be really great. But i think ‘half a loaf is better than none’.