Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial Commits #2

Open
wants to merge 7 commits into
base: predict-api
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
50 changes: 48 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,49 @@
# torani-backend-app
### Torani-Fishku/torani-backend-app
## Sea Tides API
Based on BMKG Oceanograpy APIs
This program is to fetch sea tides and weather information based on client's coordinate. The data is pulled from:
https://peta-maritim.bmkg.go.id/public_api/perairan.
Using Node.js v18.15.0.
### How to run this program:

1. Install the dependencies

```npm install```

2. Run the server

```npm run start```

3. To test it go to

```http://localhost:3000/location?longitude=<longitude>&latitude=<latitude>```

### Deployed link:

https://sea-tides-api-ui5j6olklq-et.a.run.app/location?longitude=106.3981545342644&latitude=-7.185463902800723

response:
```{
"code": "U.03",
"name": "Perairan selatan Banten",
"issued": "2023-06-09 05:00 UTC",
"data": [
{
"valid_from": "2023-06-09 12:00 UTC",
"valid_to": "2023-06-10 00:00 UTC",
"time_desc": "Hari ini",
"weather": "Berawan",
"weather_desc": "Angin di wilayah Selat Sunda bagian Utara umumnya bertiup dari Tmur Laut - Tenggara&nbsp;dengan kecepatan 1 - 08 knot<br />\nAngin di wilayah Selat Sunda bagian Selatan umumnya bertiup dari Timur - Selatan&nbsp;dengan kecepatan 1 - 20 knot<br />\nAngin di wilayah Perairan Selatan Banten umumnya bertiup dari Timur - Selatan dengan kecepatan 1 - 25&nbsp;knot<br />\nAngin di wilayah Samudera Hindia Selatan Banten umumnya bertiup dari Timur - Selatan dengan kecepatan 1 - 25&nbsp;knot",
"warning_desc": "Waspada gelombang laut dengan ketinggian 2.5 - 4.0 meter di wilayah Selat Sunda bagan Selatan dan Perairan Selatan Banten yang beresiko tinggi terhadap Perahu Nelayan, Kapal Tongkang, dan Kapal Ferry.&nbsp;<br />\nWaspada gelombang laut dengan ketinggian 4.0 - 6.0 meter di wilayah Samudera Hindia Selatan Banten&nbsp;yang beresiko tinggi terhadap semua jenis Kapal.",
"station_remark": "-",
"wave_cat": "Tinggi",
"wave_desc": "2.50 - 4.0 m",
"wind_from": "Timur",
"wind_to": "Selatan",
"wind_speed_min": 1,
"wind_speed_max": 25
},
....
]
}
```

12 changes: 12 additions & 0 deletions node_modules/.bin/mime

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions node_modules/.bin/mime.cmd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions node_modules/.bin/mime.ps1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading