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

smart-alarm-clock

v0.5.6

Published

Smart Alarm Clock - IFTTT trigger on alarm timers

Downloads

27

Readme

Smart Alarm Clock

IFTTT smart alarm clock

2 seperate alarm timers with andriod style time picker plays webradio/stream/mp3 and send out a IFTTT trigger (webhooks) at alarm time so you can do whatever you want on the other side. webradio ramps up volume after start ( timing can be changed in settings) for IFTTT, create an applet with the trigger being a webhook. copy the webhook links in the config file. this is created with the idea of running it on Raspberry pi with a 7" touchscreen (use chromium in kiosk mode) at the bottom of the screen there are 3 custom buttons which all 3 can have a different webhook event.

I started this because i do not want to go around and change my alarm clock in multiple places/apps. Also for me the WAF-factor is important as it doesn't require any skills to set an alarm once everything is configured'

This is a work in progress, code needs cleaning up, need backup in case of no internet connection. Don't blame me if it doesn't wake you up on time!!

if you like to contribute, please do.

Configuration :

-all settings can be made in public/settings/config.json -Copy your IFTTT or other webhook links to the config.json file and add up to 3 value to be passed in the webhook POST. -for the radio there is only 1 url for both alarms -the webradio_fadetime is expressed in ms -> 1s=1000ms -the early trigger is exceuted before the alarm triggers. how much before can be set by the the offset value (in minutes) -the early trigger can be used to set a nest to heat your home before you wake up or make a cup of coffee at the excact time you need it without setting differnent alarms -all graphic options need to be changed in the css files.

access the page by using http://localhost:3000.

node run app on startup : make sure node runs on startup, for this just add one string at the begining of /etc/rc.local: node /full/path/to/myscript.js < /dev/null &

Rpi Chromium kiosk config: go to ~/.config/lxsession/LXDE-pi/autostart

delete or comment the line with @xscreensaver -no-splash and add @xset s off @xset -dpms @xset s noblank @unclutter @chromium-browser --noerrdialogs --kiosk --incognito http://www.domain.com/to/kiosk/page

To Do

  • have a failsave if internet is down.
  • Create a settings page for easier customization
  • clean up code
  • improve GUI