layout: true class: typo, typo-selection --- class: center, middle class: nord-light, center, middle, typo, typo-selection ## The BRAMS website & API .center[
]
Antoine Calegaro
15/04/2023
--- class: nord-light, typo, typo-selection ## BRAMS new website - Mainly developed by an IT student from EPHEC during intership at BIRA .float-right.width-25.pt-xxs.pr-xs[![](static/joomla.jpg)] - Using the Joomla Framework - Includes new tools and features : - Network map - Downloader tool - Counting tool ###.center[https://brams.aeronomie.be/] --- class: nord-light, typo, typo-selection ##BRAMS Network map .center[
] ###.center[
Live demo
] --- class: nord-light, typo, typo-selection ##BRAMS Downloader tool ![](static/downloader.png) ###.center[
Live demo
] --- class: nord-light, typo, typo-selection ##BRAMS Counting tool .center[
] ###.center[
Live demo
] --- class: nord-light, typo, typo-selection ## BRAMS API - Can be used to retrieve information and files from our database - Outputs data in {JSON} format ###Root URL :
https://brams.aeronomie.be/api/v1/
- 3 available endpoints : - Location [
https://brams.aeronomie.be/api/v1/location.php
] - System [
https://brams.aeronomie.be/api/v1/system.php
] - File [
https://brams.aeronomie.be/api/v1/file.php
] --- class: nord-light, typo, typo-selection .font-xs[ ```python import requests import json response = requests.get("https://brams.aeronomie.be/api/v1/location.php") data = response.json() print(json.dumps(data, indent=4)) ``` ```json [ { "id": 2, "location_code": "BEGRIM", "name": "Grimbergen", "status": "A", "longitude": 4.369029, "latitude": 50.935643, "altitude": 23, "systems": "https:\/\/brams.aeronomie.be\/api\/v1\/system.php?location_code=BEGRIM" }, { "id": 4, "location_code": "BEHOVE", "name": "Hove", "status": "A", "longitude": 4.465415328741, "latitude": 51.143654989989, "systems": "https:\/\/brams.aeronomie.be\/api\/v1\/system.php?location_code=BEHOVE" [...] ] ``` ] --- class: nord-light, typo, typo-selection .font-xs[ ```python import requests import json payload = { "start": "2023-04-01T21:00", "system": "BEBILZ_SYS001" } response = requests.post("https://brams.aeronomie.be/api/v1/file.php", data=payload) data = response.json() print(json.dumps(data, indent=4)) ``` ```json { "year": 2023, "month": 4, "day": 1, "hours": 21, "minutes": 0, "samplerate": 6048, "pps": 1800, "duration": 300000000, "precise_start": 1680382800272727, "precise_end": 1680383100272727, "system_code": "BEBILZ_SYS001", "location_code": "BEBILZ", "location": "https:\/\/brams.aeronomie.be\/api\/v1\/location.php?location_code=BEBILZ", "system": "https:\/\/brams.aeronomie.be\/api\/v1\/system.php?id=63", "wav": "https:\/\/brams.aeronomie.be\/downloader.php?type=wav&system=BEBILZ_SYS001&year=2023&month=04&day=01&hours=21&minutes=00", "png": "https:\/\/brams.aeronomie.be\/downloader.php?type=png&system=BEBILZ_SYS001&year=2023&month=04&day=01&hours=21&minutes=00" } ``` ] --- class: nord-light, typo, typo-selection ## Questions ?
####Contact:
antoine.calegaro@aeronomie.be