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

node-red-contrib-weather

v0.1.2

Published

Node-RED contrib for weather.

Downloads

121

Readme

node-red-contrib-weather

npm version

这是一个Node-RED的天气插件。

天气数据取自小米。

Bug反馈/建议等请提交issuesQQ群: 107927710

感谢

第一个Node-RED插件,感谢一下萝卜大佬,哈哈。

安装

确认安装好Node-RED之后,执行如下命令:

npm install -g node-red-contrib-weather

说明

流程图中填写经度和纬度即可。

给进任意输入,即可输出所有的天气信息供给后续的流程使用。

例如:每24小时触发一次,后面接判断流程做对应的操作。

参数必须以json格式进行传入,否则调用的是节点里的经纬度。目前只支持中国地区

{"latitude":31,"longitude":121}

版本说明

0.1.1 & 0.1.2 (2019-12-5)

  1. 输出的信息由msg转为msg.payload
  2. 天气代码 -> 天气状况

0.1.0 (2019-12-3)

  1. 增加经纬度参数输入(仅限中国地区)
  2. 增加多个输出 [天气对象, 温度,湿度,天气状况,AQI,日出时间,日落时间]

0.0.3 (2018-11-27)

  1. 代码优化。

0.0.2 (2018-11-08)

  1. 修改输出数据由String类型变更为Object类型,方便后续使用。

0.0.1 (2018-11-08)

  1. 初版,获取天气信息。