rinukkusu / darksky-weather-dart Goto Github PK
View Code? Open in Web Editor NEWA dart library for interfacing with the Dark Sky Weather API.
License: BSD 3-Clause "New" or "Revised" License
A dart library for interfacing with the Dark Sky Weather API.
License: BSD 3-Clause "New" or "Revised" License
Can you add in alerts and flags from the json response? They are listed in the Dark Sky documentation, but I don't see any way to get them from your API. Thanks!
Now that Flutter 2.0 and Dart 2.12 are out, this package should be migrated to sound null safety to not block apps that also want to upgrade to null safety.
time: 1602432000,
summary: "Rain until evening.",
icon: "rain",
sunriseTime: 1602454980,
sunsetTime: 1602498540,
moonPhase: 0.84,
precipIntensity: 0.0232,
precipIntensityMax: 0.071,
precipIntensityMaxTime: 1602432000,
precipProbability: 0.93,
precipType: "rain",
temperatureHigh: 88.49,
temperatureHighTime: 1602482580,
temperatureLow: 74.75,
temperatureLowTime: 1602538920,
apparentTemperatureHigh: 102.42,
apparentTemperatureHighTime: 1602482460,
apparentTemperatureLow: 77.14,
apparentTemperatureLowTime: 1602538860,
dewPoint: 76.52,
humidity: 0.9,
pressure: 1007.8,
windSpeed: 4.37,
windGust: 17.13,
windGustTime: 1602462060,
windBearing: 173,
cloudCover: 0.99,
uvIndex: 5,
uvIndexTime: 1602477060,
visibility: 8.58,
ozone: 261,
temperatureMin: 74.79,
temperatureMinTime: 1602453120,
temperatureMax: 88.49,
temperatureMaxTime: 1602482580,
apparentTemperatureMin: 77.09,
apparentTemperatureMinTime: 1602453060,
apparentTemperatureMax: 102.42,
apparentTemperatureMaxTime: 1602482460
Dark sky API has a "time machine" feature where you can request data on a specific time. https://darksky.net/dev/docs#time-machine-request.
It would be nice to be able to pass in a time to get data from this.
The json definition was updated in #7 but the generated code was not regenerated. The following files need to be regenerated:
lib/darksky_weather_browser.g.dart
lib/darksky_weather_io.g.dart
I tried doing this myself, but I updated Flutter to 1.2.0, and I'm running in to google/json_serializable.dart#684
Just trying to use the plugin and there's a version conflict with the json_annotation version I'm using. Just wondering if you're going to release an upgrade? I'd be happy to post a patch if it would help.
"Because darksky_weather >=1.1.0 depends on json_annotation ^2.0.0 and yourapp depends on json_annotation ^3.0.0, darksky_weather >=1.1.0 is forbidden."
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.