hammady / wwpray

A website that shows the prayer times for a preconfigured list of masjids in a tabular format. Visitors can subscribe for email notifications.
https://wwpray.net
MIT License
1 stars 0 forks source link

Add more metadata to masjids #34

Closed hammady closed 1 year ago

hammady commented 1 year ago

Currently the only metadata is the masjid name, and because it is used as the topic name, it has some restrictions (cannot have spaces). We can add more metadata like display name, URL, and address.

hammady commented 1 year ago

Related to this: store them when scraped in a specific order (alphabetically for e.g.). Theoretically there is no order in JSON objects, but practically they are displayed in the same order they are read from the file.

hammady commented 1 year ago

@fayez-nazzal new schema including metadata:

        "WestEndIslamicCenter": {                                                                                                                       
            "display_name": "West End Islamic Center",                                                                                                  
            "website": "https://weicenter.ca/",                                                                                                         
            "address": "12,13-4161 Sladeview Crescent, Mississauga, ON L5L 5R3",                                                                        
            "iqamas": {},
            ...
    ...
hammady commented 1 year ago

We can show the masjid display name in the header instead of the code and make it linkable with the website. We can also show the display name in the subscribe sidebar. The address can be shown in a smaller font below the masjid name.

fayez-nazzal commented 1 year ago

@hammady Insha'allah will do it tomorrow's morning