API Server designed to pull weather data from the AEMET and render it in HTML/JSON
Go to file
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
cmd Fix JSON unmarshalling breaking on XML arrays being rendered as objects 2024-05-15 12:27:24 +02:00
.gitignore Initial commit 2024-04-29 08:56:59 +02:00
.goreleaser.yaml Configure CI/CD 2024-05-03 09:26:49 +02:00
LICENSE Initial commit 2024-04-29 08:56:59 +02:00
README.md Update README.md 2024-05-15 12:26:21 +02:00
go.mod Update dependencies 2024-05-08 08:57:57 +02:00
go.sum Update dependencies 2024-05-08 08:57:57 +02:00
main.go Transition project to Cobra 2024-05-08 09:08:36 +02:00

README.md

aemet

API Server that fetches spanish weather data from the AEMET formatted in XML and translates it to JSON, optionally allowing to render the obtained data in a web page.


Credits and thanks to riccardomanfrin for his fork of goxml2json, which allowed this entire project to work properly despite the AEMET's inconsistent XML formatting.