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

homebridge-tibber-price

v1.1.0

Published

Functionality based on Tibber Price (Hourly spot prices). Graphing & sensors for automation

Downloads

23

Readme

Homebridge Tibber Price

A simple homebridge plugin that will display prices from your Tibber account, in various forms. (See screenshot further down)

"Buy Me A Coffee"

verified-by-homebridge CI

Accessory: Actual price

Shows the price, in the smallest denominator of the currency (öre, cents, etc). This accessory will manifest itself as a light sensor, since there is no "energy meter" accessory type in Apple Home.

The accessory will display cents as lux. Can be hooked up to automation rules.

Accessory: Relative price

Shows the relative price, in percentage across the day. Compares the current price with the highest point of the day. This accessory will manifest itself as a humidity sensor, since there is no "energy meter" accessory type in Apple Home.

The accessory will display %. Can be hooked up to automation rules.

Price graphing

The plugin can also generate a .png image, graphing todays prices (and tomorrows, if available). The image will be rendered at 1280x720 pixels. Rendering will be done by an https call to Quickchart.io

In order for this to show up in Apple Home in any meaningful way, you can utilise Homebridge Camera FFmpeg plugin to "stream" the image, as a camera accessory.

Configuring

Configure via the Homebridge Config UI.

But if you need to do it manually, here's a short description of the configuration properties: | Property | Type | Required | Description | |-----------------------------|---------|----------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | platform | string | YES | Should be HomebridgeTibberPrice | | accessToken | string | YES | Should be your Tibber API key | | homeId | string | no | If you only have one house/home in Tibber, you can ignore this. However, if you have multiple, you should enter your HomeId here, to get the correct price information. | | priceIncTax | boolean | no | Show prices with tax/vat included | | activatePriceGraphing | boolean | no | Enable price graphing (Saved as a PNG every hour) | | activatePriceSensor | boolean | no | Enable the "light sensor" used for current electricty price | | activateRelativePriceSensor | boolean | no | Enable the "humidity sensor" used for current relative electricty price |

Configuring ffmpeg camera plugin

Configure the camera via Homebridge Config UI, and enter this under Video Source:

-f image2 -loop 1 -s 1280x720 -pix_fmt yuvj422p -i <PATH_TO_HOMEBRIDGE_INSTALLATION>/.homebridge/tibber-price/price-chart.png

This works fine for me, but ffmpeg has a lot of configuration options, so feel free to experiment.

Don't forget to replace PATH_TO_HOMEBRIDGE_INSTALLATION with the actual location

Preview (from an iPad)

IMG_0002

Rendered graph:

price-chart