Skip to content

Update and Fix a few of the issues#7

Open
caemor wants to merge 24 commits intoBroderickCarlin:masterfrom
caemor:master
Open

Update and Fix a few of the issues#7
caemor wants to merge 24 commits intoBroderickCarlin:masterfrom
caemor:master

Conversation

@caemor
Copy link

@caemor caemor commented Nov 12, 2019

This PR seems to be similar to Palindromes PR with fixing a few of the issues, but based on simeonschaubs updates and therefore it is slightly different.

Fixes #3, #4

What this adds/changes:

  • add Settings/Parametersfield for units and language
  • add simple and basic tests for the free function (I don't have a paid account so I couldn't test the other functions)
  • switch to http_req with rust_tls because it has less deps and is faster to compile and is more than enough for this small usecase
  • add log so one can use things like debug!,...
  • split up files
  • update dependencies
  • fix/update a few of the weather types

What is still missing:

  • more and improved testcases for Locationspecifier, Settings,...

simeonschaub and others added 24 commits February 6, 2019 22:05
- Split up files
- Add Parameters (unfinished) for lang and units (metric,...)
- Switch to edition 2018
- add Settings/Parameters to each function
- add cnt to weather report5day
- fix timeslicehourly with optional rain and snow
- add snow
- fix cityshort with newly needed/included parameters (population, timezone, sunrise, sunset)
- make Wind:deg optional
- add WeatherReportCurrent::timezone
Rain and Snow structs were already defined but were not yet included in
the WeatherReportCurrent struct, although they do occur in the JSON
response from OpenWeatherMaps.
Add 'rain' and 'snow' to struct WeatherReportCurrent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Serde errors are being masked, hindering debugging

3 participants