makls / makl.weather Goto Github PK
View Code? Open in Web Editor NEWPowerShell module for getting the current weather report
License: GNU General Public License v3.0
PowerShell module for getting the current weather report
License: GNU General Public License v3.0
Whenever the coordinates are too remote for the API to return a city and country, the latitude and longitude should be used instead.
Add feature to cache city data for the configured API and use this cache to:
OpenWeatherMaps API also supports 3 hour/5 day forecast with the free API key. Include a 5dForecast switch to display this report.
Module file uses a proxy function of Get-ChildItem with a -NoColor switch. Unless the user also has this proxy function loaded, the module cannot be imported/installed.
To set a timeout, run
Get-Weather -TimeOut 5
to time out in 5 seconds.
The Invoke-RestMethod cmdlet that this module utilizes does have a timeout parameter that can be leveraged, but DNS queries on the API endpoints may take longer to timeout than the user-defined timeout.
The weather report should show more than just maximum, minimum and current temperatures and it should be presented in a cleaner way.
In particular, information for the weather should be located in a table-like organization to the right of the weather icon instead of below it.
Get the weather report for the user's current location instead of a default city name by default.
Add a wind direction icon to the weather report. This icon may simply be cardinal and intercardinal directions (e.g. N, SW) or an arrow.
In some cases, the weather icon may not display. The weather report renders properly, but an ObjectNotFound exception is thrown for the Get-WeatherIcon function that is responsible for rendering the icon.
Remove-Module makl.weather
and reimported Import-Module makl.weather
, a WriteErrorException is thrown and Get-WeatherIcon fails to import.Some icons have more spacing than others between the weather report.
Experiment with adding a border around the entire weather report or certain elements (e.g. weather icon).
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.