Socket
Socket
Sign inDemoInstall

metoffice-weather-cli

Package Overview
Dependencies
3
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    metoffice-weather-cli

A CLI tool for fetching and printing weather data from the Met Office Weather DataHub API.


Maintainers
1

Readme

metoffice-weather-cli

A CLI tool for fetching and printing weather data from the Met Office Weather DataHub API.

Installation

PyPI

Open the command line and type python3 -m pip install metoffice-weather-cli. You can then run the program anywhere by typing python3 -m metoffice_weather_cli <flags>.

Note: you may need to replace python3 with your OS's equivalent.

Usage

To use this program, you must have a Met Office Weather DataHub API key and a geocode.xyz Auth token (optional, used for geocoding only). These can be added by running the program with the -c flag or manually added in a .env file placed in the metoffice-weather-cli package directory as such:

DATAHUB_API_KEY=xxxxxxxx
DATAHUB_SECRET=xxxxxxxx
GEOCODE_AUTH=xxxxxxxx

Run python3 -m metoffice_weather_cli in the command line (optionally with the -h flag) to view the help page.

Todo

  • Pick all 'useful' information out of the Met Office data - some is currently omitted
  • Allow preferences to be set in a config file for the data printed out
  • Switch from .env-based saving of API keys to another format (e.g. JSON) to avoid wiping files containing environment variables unrelated to the program

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc