New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

hachioji

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hachioji

  • 0.0.2
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Hachioji

Utilities for programmers in Hachioji.

Installation

Add this line to your application's Gemfile:

gem 'hachioji'

And then execute:

$ bundle

Or install it yourself as:

$ gem install hachioji

Usage

Taikikanshi module

This module includes unofficial wrapper classes for "八王子市大気汚染常時監視測定結果 / http://www.taikikansi-hachioji.jp/realtime.htm". See http://www.taikikansi-hachioji.jp/realtime.htm to operate/understand gotten values before using this module.

Getting latest wind direction:

require 'hachioji'
wc = Hachioji::Taikikanshi::WdClient.new
wc.parse
pp wc.latest_values # => {"片倉"=>"南南西", "館"=>"南南東", "大楽寺"=>"南", "川口"=>"南", "八木"=>"南東", "下柚木"=>"南南東", "打越"=>"南西"}

Getting average density of PM2.5 in last 24 hours:

require 'hachioji'
pc = Hachioji::Taikikanshi::Pm25Client.new
pc.parse
pp pc.averages_24h # => {"片倉"=>17.958333333333332, "館"=>12.875, "八木"=>15.583333333333334, "打越"=>16.0}

Confirm with command line:

$ hachioji_pm25
Latest: 
        {"片倉"=>45, "館"=>14, "八木"=>25, "打越"=>33}
Average in last 24H:
        {"片倉"=>17.958333333333332, "館"=>12.875, "八木"=>15.583333333333334, "打越"=>16.0}

Lisence

MIT.

FAQs

Package last updated on 13 Mar 2013

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc