Manuel Lopez

unread,
Nov 13, 2018, 6:51:23 PM11/13/18
to MIT App Inventor Forum

Estoy trabajando con la idea que adjunto, es un convertidor de fechas y un horóscopo azteca pero tarda mucho para calcular la fecha con este proceso para listas de solo 7000 items 1950-1970 quisiera ver si existe un algoritmo para calcular cualquier fecha, si alguien es tan amable de ayudarme ya que yo soy nuevo en este tema. Gracias.
Fortuna_copy.aia

Ghica

unread,
Nov 14, 2018, 7:00:47 AM11/14/18
to MIT App Inventor Forum
Hi Manuel,
Let's do this step by step.
I looked at two of your csv files, and both were lists and not list of lists. So, for all of these you could, for example, do this

Snap1.png

instead of using list from csv table .
Your FORUM2 procedure will become much simpler, maybe you do not need it at al.
Already only this will make your app much faster.

I am also sure that you can optimize IMGNUM and IMGSIG, It will look more elegant then, but will not necessarily give a speed gain.

Report back when you have done the csv reading changes.
Cheers, Ghica.

Manuel Lopez

unread,
Nov 14, 2018, 5:30:43 PM11/14/18
to mitappinv...@googlegroups.com
Hi Ghica! I done but before 30 seconds after 40 seconds, I need a algoritm when I set date I get NUMERO and SIGNO quickly for any date, NUMERO each 13 days and SIGNO each 20 days, example: 04/05/1950 = SIETE CASA, 05/05/1950 = OCHO LAGARTIJA, 06/05/1950 = NUEVE SERPIENTE, this is my issue. Thanks and cheers. Manuel


FRACCIONES.apk

SteveJG

unread,
Nov 14, 2018, 5:51:51 PM11/14/18
to MIT App Inventor Forum
Different ways of doing something similar by correlating the Aztec calendar with a modern calendar that might help:





This pdf shows the basis of a graphical solution https://wwwlochinver4m.edublogs.org/files/2015/06/Aztecs-Art-Slide2-21do6st.pdf  

that would work like a circular slide rule by using the Canvas and several 'circular' sprites  (actually square but displaying as a circle when the image background is set to transparent)
Message has been deleted
Message has been deleted

Manuel Lopez

unread,
Nov 18, 2018, 4:34:11 AM11/18/18
to MIT App Inventor Forum
Esta es otra idea con el RELOJ y duración en días pero funciona para fechas después de 01/01/1970 es muy rápido el proceso y da los resultados exactos según http://azteccalendar.com 
RESIDUOS.aia
numerosigno.csv
numerosjpg.csv
sahagun.csv
signojpg.csv
fraccion.csv
numerojpg.csv

Manuel Lopez

unread,
Nov 20, 2018, 3:07:02 AM11/20/18
to MIT App Inventor Forum
Hola amigos!
Después de un mes de arduo trabajo por fin logre establecer la correlación para las fechas del calendario moderno con las del calendario sagrado (Tonalpohualli) de los aztecas según la correlación de Antonio Caso y los augurios según Fray Bernardino de Sahagun y aquí les presento mi trabajo terminado, cualquier comentario es bienvenido y se los agradeceré. Muchas gracias por su atención y muchas felicidades y buena fortuna.

Hello friends!
After a month of hard work I finally managed to establish the correlation for the dates of the modern calendar with those of the sacred calendar (Tonalpohualli) of the Aztecs according to the correlation of Antonio Caso and the auguries according to Fray Bernardino de Sahagun and here I present my work finished, any comment is welcome and I will thank you. Thank you very much for your attention and many congratulations and good fortune.
Calendario_Azteca.aia
Reply all
Reply to author
Forward
0 new messages