# Hora / Chaughadiya Tech
## Flow
```sequence
Webview-->Client: Calendar Screen Open
Client-->Server: Date, Location
Server-->DB: DATA Present?
DB->Server: Unformatted or Empty Response
Server-->AstrologyAPI: Call API if Absent in DB
AstrologyAPI->Server: Unformatted Response
Note over Server: Format Response / Combine Dates
Server->Client: Response
Note over Client: Cache DATA
Webview-->Client: Get Cached DATA
Client->Webview: Send Cached Response
Note over Webview: Render if Cache Present
Webview-->Server: API fallback if cache empty
Server-->DB: DATA Present?
DB->Server: Unformatted or Empty Response
Server-->AstrologyAPI: Call API if Absent in DB
AstrologyAPI->Server: Unformatted Response
Note over Server: Format Response / Combine Dates
Server->Webview: Response
```
---
---
---
---
---
## Locations V2 API:
**GET** /expresso/mandir/astroyogi/locations.php HTTP/1.1
Host: https://server.appsforbharat.com
Ex:- https://server.appsforbharat.com/expresso/mandir/astroyogi/locations.php
> look through "all" keyword
---
## Daily Resource V2 API:
**GET** /expresso/mandir/api/calendar/static.php HTTP/1.1
Host: https://server.appsforbharat.com
```
resourceName ("hora" or "chaughadiya")
cityId (string number)
```
Ex:- https://server.appsforbharat.com/expresso/mandir/api/calendar/static.php?resourceName=hora&cityId=1
---
---
---
---
---
## Server -> Client V1 API:
**GET** /expresso/mandir/api/calendar/advanced.php HTTP/1.1
Host: https://server.appsforbharat.com
Response
```https://hackmd.io/new
{
.//other keys
.
.
.
"horaInfo": {
"isActive": false,
"isCacheEnabled": true,
"updatedAt": "2021-04-01 22:10:07",
"webUrl": "https://panchang.appsforbharat.com/hora",
"data": {
"shareText1": "https://sri.mandirr.com/download-app\n\nश्री मंदिर पर रोज देखें अपना 🔯 राशिफल और अपनों 👩👩👧👧 के साथ भी शेयर करें। 👇\n https://sri.mandirr.com/sampurna_rashifal",
"shareText2": "https://sri.mandirr.com/download-app\n\nश्री मंदिर पर रोज देखें अपना 🔯 राशिफल और अपनों 👩👩👧👧 के साथ भी शेयर करें। 👇\n https://sri.mandirr.com/sampurna_rashifal",
"schedule": [// 00:00 to 23:59
{
"start": "00:00",
"end": "00:12",
"planet": {
"id": 2,
"englishName": "jupiter",
"hindiName": "गुरु",
"description": "संख्यात्मक संख्या की गणना किसी व्यक्ति की जन्म तिथि और उसके नाम के आधार पर की जाती है। यह माना जाता है की आधार पर की जाती है। एक होरा का मान जन्म तिथि और 15 अंश होता है। गणना किसी व्यक्ति की जन्म तिथि और उसके नाम के आधार पर की जाती है। यह माना जाता है की आधार पर की जाती है। एक होरा का मान जन्म तिथि और 15 अंश होता है। आधार पर की जाती है। यह माना जाता है की आधार पर की जाती है।",
"mantra": {
"description": "गुरु का मंत्र सुनें",
"title": "'ॐ श्री गुरुवे नमः'",
"deeplink": "https://mandirr.com/app-share/?deeplinkId=6&god_id=21&song_id=1934",
"god": "jupiter"
}
}
},
.
.
.
]
}
},
"chaughadiyaInfo": {
"isActive": false,
"isCacheEnabled": true,
"updatedAt": "2021-04-01 22:10:07",
"webUrl": "https://panchang.appsforbharat.com/hora",
"data": {
"shareText1": "https://sri.mandirr.com/download-app\n\nश्री मंदिर पर रोज देखें अपना 🔯 राशिफल और अपनों 👩👩👧👧 के साथ भी शेयर करें। 👇\n https://sri.mandirr.com/sampurna_rashifal",
"shareText2": "https://sri.mandirr.com/download-app\n\nश्री मंदिर पर रोज देखें अपना 🔯 राशिफल और अपनों 👩👩👧👧 के साथ भी शेयर करें। 👇\n https://sri.mandirr.com/sampurna_rashifal",
"schedule": [// sunrise today to sunrise tomorrow
{
"start": "06:11",
"end": "07:44",
"planet": {
"id": 1,
"englishName": "shubh",
"hindiName": "शुभ",
"status": "green",
"description": "यात्रा, सौंदर्य, नृत्य, सांस्कृतिक गतिविधियाँ"
}
},
.
.
.
]
}
}
}
```
---