Morning |
|
Afternoon |
|
Night |
|
Max |
|
Min |
Morning |
|
Afternoon |
|
Night |
|
Max |
|
Min |
Morning |
|
Afternoon |
|
Night |
|
Max |
|
Min |
Morning |
|
Afternoon |
|
Night |
|
Max |
|
Min |
Morning |
|
Afternoon |
|
Night |
|
Max |
|
Min |
Morning |
|
Afternoon |
|
Night |
|
Max |
|
Min |
Morning |
|
Afternoon |
|
Night |
|
Max |
|
Min |
Intro
- I was bored one day, and decided to casually googled up "fun coding idea to do over the weekend".
- The main idea was just to get a weather forecast, but after I found a Weather API by Malaysian government, I saw the need to use city name to get a more useful data.
- Thus, I added another idea on top to get city name from postcode number.
Outtro
- My main objective is cleared: I did this over some holiday that I got.
- I thought of using some other tools/techs, but I prioritize on finishing the project (using whatever things that I have) rather than testing new stuff.
- I didn't touch Bootstrap (HTML) and JavaScript for a while, but I google and read the documents for a while and I was ready to put my ideas on solving this project into code.
- I admit that my memory wasn't great. I did not remember most of the functionality of a programming language.
- But what I can showcase here is my good understading on how to utilize documents to get to my expected result. This also shows my good adaptability towards any programming language - I've left my website (HTML, CSS, JS) untouched for around 2 years, but I still able to pick it up and write new things within short period of time.
Blog post
For more story: # 003: Building a weather forecast app.
Reference
Weather API: https://developer.data.gov.my/realtime-api/weather
NPM Malaysia Postcodes: https://github.com/AsyrafHussin/npm-malaysia-postcodes
Make API call in JS: https://www.freecodecamp.org/news/make-api-calls-in-javascript/
Passing HTML value into JS function: https://stackoverflow.com/a/5316010
Replace space with %20: https://stackoverflow.com/a/12141288
Interpolate variable in string in JS: https://stackoverflow.com/a/28088965