Powershell package to return current weather in a wished city or/and in a wished country
433
Powershell package to return current weather in a wished city or/and in a wished country identified by its country code.
This project consists of the development of an API as a package which catch and manage the chosen city weather. This API is written in Powershell and can be used or included in any powershell code, software or project.
To access the GitHub repository, click here.
To access the Powershell Gallery repository, click here.
This project is structured in several elements:
The usedModules contains 11 files corresponding each one to a class:
The samples contains 2 other directories:
Further explanations will be provided by browsing the GitHub repository.
There are 2 ways to use this module: by cloning the current GitHub repository or by installing the package from Powershell Gallery.
To make this project work or integrate it into yours, whether as a module to import from Powershell Gallery or a clone of the GitHub repository, you must have a machine running Windows 10 or higher (home, professional or educational version) or Windows Server 2016 or higher.
To use this PowerShell package from its GitHub repository, you must first install the Git utility on Windows. You have a plethora of Git clients that you can use on Windows (GitKraken, GitHub Desktop ...), then install the one that suits you best. The best choice is to install the client Git for Windows. Download the exe file from the official website, then run it.
You can install this Powershell module on your windows system, so that you will just need to import this module with the command bellow when opening Powershell :
Import-Module UniversalWeatherPowershell
Let's see how to do this.
Firstable, you must execute this following command in Powershell :
$ENV:PSModulePath
It will display you all install paths for Powershell modules.
Secondly, you must move the Powershell module to one of the directory displayed by the previous command. About the first step command there will be 2 main paths in results :
If you want the module to be available for a specific user, move the Powershell module to the directory indicated by the first path. Or if you want the module to be available for all users, move the Powershell module to the directory indicated by the second path.
That's all. Now is the time for you to have some fun...
Nothing very specific is used in this project. All classes used were developed by the author of this API. The only element used from the .Net framework, System.Windows.Forms and PresentationFramework is used to develop and then use forms and MessagesBoxes respectively.
It has been an exciting project, easily usable by anyone in any other project written in PowerShell regardless of its size (large or small) and which has broadened my knowledge in PowerShell language development as potentially every other beginner or confirmed developer.
Content type
Image
Digest
Size
125.1 MB
Last updated
over 5 years ago
docker pull wicken/universalweatherpowershell