Commit Graph

38 Commits

Author SHA1 Message Date
raul 2cf128e4ce Merge pull request 'Main project' (#1) from testing into main
Reviewed-on: #1
2024-06-14 07:49:33 +02:00
raul 4cdc2b0a18 Different colors for cold/hot temperatures 2024-05-31 09:32:49 +02:00
raul f78c66fdc3 Add page for selecting province to pull weather from 2024-05-31 08:57:52 +02:00
raul 8148f756d7 Styling improvements and selecting locality manually 2024-05-30 09:29:47 +02:00
raul 7ebc68a9a4 Add styling template 2024-05-30 08:26:08 +02:00
raul 6fe7383b36 Configure HTML table for storing weather data 2024-05-29 11:21:29 +02:00
raul 5c08a756c0 Figure out templating range/ifelse logic 2024-05-29 10:16:27 +02:00
raul 3c5e1615a0 Formatting tweaks 2024-05-29 08:59:15 +02:00
raul 6468294478 Allow pulling raw json for debugging 2024-05-27 09:03:42 +02:00
raul 0863a258c6 Clean up codebase 2024-05-27 08:44:59 +02:00
raul 7d5c8a26aa Configure Gin to use embedded templates 2024-05-27 08:28:32 +02:00
raul 915c5f0e0d Add HTML template sample 2024-05-27 08:28:10 +02:00
raul 7cfafda526 Add template embedding functions 2024-05-27 08:27:54 +02:00
raul 88d10f976c Remove windows support 2024-05-23 10:45:42 +02:00
raul 843cf7ab94 Improve error handling 2024-05-21 10:38:28 +02:00
raul faad6a72fb Add requesting weather from individual days 2024-05-21 09:22:19 +02:00
raul a8cb384800 Add backup of functional goxml2kjson fork
Again, credits to riccardomanfrin for his fork which saved my life, I'm
only including this here incase the fork ever goes missing
(https://github.com/riccardomanfrin/goxml2json).
2024-05-15 12:37:58 +02:00
raul 421f37ed62 Update dependencies 2024-05-15 12:37:31 +02:00
raul e0a8c745d5 Fix JSON unmarshalling breaking on XML arrays being rendered as objects
Due to a problem in the upstream goxml2json repo, I had to switch to a
fork that allowed me to specify which children should be forcefully
rendered as arrays, as some in some instances the AEMET's XML would
contain completely individual values that are usually arrays, resulting
in the JSON translator interpreting them as objects instead of arrays.

The amount of effort I had to put into fixing this problem was
mind-boggling.
2024-05-15 12:27:24 +02:00
raul 8f9239e392 Update README.md 2024-05-15 12:26:21 +02:00
raul e70106932d Use dictionaries for requesting locality weather
This is the first time in my life I've found a practical use for
dictionaries myself
2024-05-15 08:35:00 +02:00
raul 281e194bc5 Expand struct and remove client() 2024-05-15 08:00:18 +02:00
raul bb2a3adb83 Expand JSON struct 2024-05-13 08:26:11 +02:00
raul bef2a46c41 Remove workflow file 2024-05-13 07:56:40 +02:00
raul 4336c0068b Properly handle unmarshalling errors 2024-05-09 10:07:00 +02:00
raul 212462be3d Communicate upstream errors to client 2024-05-08 11:14:30 +02:00
raul cc49c07b1b Improve error handling and include User-Agent 2024-05-08 11:14:11 +02:00
raul 53e4b1acf9 Fix gin only listening on localhost 2024-05-08 10:47:41 +02:00
raul 6354a824f9 Properly render JSON 2024-05-08 09:29:58 +02:00
raul 8e04491386 Add basic server functionality 2024-05-08 09:16:05 +02:00
raul 08fb32b4b2 Transition project to Cobra 2024-05-08 09:08:36 +02:00
raul acd0b74fca Update dependencies 2024-05-08 08:57:57 +02:00
raul 75053b0ec5 Minor formatting changes 2024-05-05 12:46:07 +02:00
raul 3f9fb89b6d Configure CI/CD 2024-05-03 09:26:49 +02:00
raul 947c3c0c43 Fetch basic weather info from AEMET 2024-05-03 09:24:00 +02:00
raul dcf0a88710 Update dependencies 2024-05-03 09:22:59 +02:00
raul 83e387a89b Bootstrap project 2024-04-29 08:58:30 +02:00
raul 7eaf25d9b2 Initial commit 2024-04-29 08:56:59 +02:00