From ec7332df03d1b29913a3ef8994a684ae255301be Mon Sep 17 00:00:00 2001 From: "theis.gaedigk" Date: Fri, 1 Aug 2025 19:40:33 +0200 Subject: [PATCH] Add Home --- Home.md | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 Home.md diff --git a/Home.md b/Home.md new file mode 100644 index 0000000..8d4e918 --- /dev/null +++ b/Home.md @@ -0,0 +1,53 @@ +# Welcome to the weather-app wiki! + +This web application is one of my first ones that I have build. + +> This application is still work in progress. +> So be paitiend with me, if the app has still some errors. +> If you notice one, please create a new issue and I will take care of that. + +## Error codes + +Here you will find help when you get an error message. The error code should be next to the error starting with an ```x```. + +## x30 + +***For developers:** This error is triggered from the ```frontend/src/utils/changeAPIcookie.ts``` file* + +This error you will get, when there is something wrong with setting your API key. Please create an issue if you get this error. + +To fix this error you can try to add the api key manually to your cookies. Follow these steps: + +1. Naviagte to the cookies tab in your browser +2. Create an cookie with name `apiKey` and in the value paste your api key. + +This should fix your problem! + +## x32 + +***For developers:** This error is triggered from the ```frontend/src/utils/apiFunc.ts``` file* + +When you get this error please create an issue and I will take care of that error. + +For now, try to reinstall the application. + +## x4010 + +***For developers:** This error is triggered from the ```frontend/src/utils/apiFunc.ts``` file* + +When you get this error, the api function is having trouble with you api key. + +To fix this error, check the api key that you have entered. + +* Do not put spaces between the letters +* Check if you have pasted the api key from OpenWeatherMap correctly. (The free api key is completely sufficient) + +If this does not work, try to make an api call by yourself (e.g. with Postman). Or get in touch personally with OpenWeatherMap + +## x4040 + +***For developers:** This error is triggered from the ```frontend/src/components/WeatherForm.tsx``` file* + +If you get this error you have entered a city name that cannot be geocoded to longitudes and latitudes. + +Try to enter a different one. \ No newline at end of file