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

pimatic-sms

v1.0.3

Published

Send SMS Messages from Pimatic. Supports lots of different providers.

Downloads

6

Readme

pimatic-sms

SMS Integration with Pimatic. Supports Twilio and ThreeHK but new providers can be added.

Plugin Configuration

You can load the backend by editing your config.json to include:

{
   "plugin": "sms",
   "provider": "twilio",
   "fromNumber": "+112345689",
}

If you didn't want to specify the "to number" in every rule, you could set a global number in the config:

{
  "toNumber": "+81239529"
}

Note: Even when this is set, it can still be overridden for each rule if needed.

Provider Configuration

Each provider requires different fields in the plugin config

Twilio

{
  "twilioSid": "YOUR_TWILLIO_ACCOUNT_SID",
  "twilioAuthToken": "YOUR_TWILLIO_AUTH_TOKEN"
}

ThreeHK

{
  "threehkPassword": "YOUR_PASSWORD"
}

Note: Uses the fromNumber as your login number so only password is required

Depending on which provider you pick you will need to provide some additional properties as seen above with twilio*. You can see all available properties by looking at sms-config-schema.

SMS Provider Pricing

Each provider has different pricing, it's up to you to handle this! Some providers might be free depending on the from/to number.

Check with each company for a detailed analysis of their pricing. Most are setup in a pre-pay type arrangement, so you can keep an eye on your budget.

Example

It can be used like any normal Pimatic rule

  • if it is 08:00 send sms message "Good morning!" to number "+1888123456"
  • if X then send sms message "X Happened" to number "+1888123456"

If you want to add a button in the interface just to trigger an SMS, you could add it in the 'devices' section of config.json like so:

{
  "id": "dummy-buttons",
  "name": "Dummy Buttons",
  "class": "ButtonsDevice",
  "buttons": [
    {
      "id": "button1",
      "text": "Send an SMS Message"
    }
  ]
}

Then you would add a rule when "button1" is pressed then send sms message "Good morning!" to number "+1888123456"

TODO

Contributing

Feel free to submit any pull requests or add functionality, I'm usually pretty responsive.

If you like the module, please consider donating some bitcoin or litecoin.

Bitcoin

LNzdZksXcCF6qXbuiQpHPQ7LUeHuWa8dDW

LiteCoin

LNzdZksXcCF6qXbuiQpHPQ7LUeHuWa8dDW