npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

get-accuweather

v1.0.4

Published

appreciate me with giving a star to me ☻. (it's at the top-right of this page)

Downloads

2

Readme

appreciate me with giving a star to me ☻. (it's at the top-right of this page)

truth be told, actually this was an employment test project I coded for a company called "sperloos" but it worth to be on my github since it may help someone else

this simple little cli tool helps you to get climate properties of a month(s)/day(s) in your desired file sourced on accuweather.com

install

installing with npm:

npm i -g get-accuweather

any advice for a common error?

yes, 1- you may encounter with Failed to set up Chromium <some-chromium-version> , that's just because of your connection, try to change your IP & DNS and it will be ok :) 2- in input file be careful about BOM char and final char and \r\n or \n in other words last char must not be a new line of a BOM or ... 3- this problem is in ToDo but be careful, if you want to use this on a linux os line breaks may cause problems... installing get-accuweather

usage

for instance assume you want to retrieve the property of a day in a file called output.txt:

# powershell script:
New-Item output.txt
New-Item input.txt
$source = "https://www.accuweather.com/en/gb/london/ec4a-2/daily-weather-forecast/328328?day=1"
Set-Content .\input.txt $source
get-accuweather set input.json
get-accuweather get days json .\output.txt

important Notice 1: the contents of the input file must only includes days links or months links, in other words it you shouldn't mix days and months links with each other in a file

important Notice 2: use a full screen or maximized shell, otherwise you maybe encounter UI bugs

important Notice 3: accuweather.com has no data for passed days, so use this tool for coming days and months

get-accuweather

methods

check if program installed property:

get-accuweather -v

get help how to use this tool, it will open the same markdown file you are reading but in .pdf format:

get-accuweather help

set a file for output (it can be .txt or .json or whatever you want:

get-accuweather set PATH-OF-URLs-FILE

get day(s) in the shell:

get-accuweather get days shell

get day(s) in an output file:

get-accuweather get days json .\output.json

get month(s) in the shell:

get-accuweather get months shell

get month(s) in an output file:

get-accuweather get months json .\output.json