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-xmpp

v0.0.11

Published

Pimatic plugin for xmpp aka jabber support

Downloads

1

Readme

pimatic-xmpp

This plugin provides an xmpp aka jabber messaging system for pimatic.

Features

  • Send messages to users
  • Reveive commands from users

Service dependencies

The plugin needs a valid user account on any xmpp service.

  • You can use a public jabber/xmpp service
  • or install a local service on your pimatic server like ejabberd

For the raspberry pi there are several guides to install an ejabberd service.

Installation

Just activate the plugin in your pimatic config. The plugin manager automatically installs the package with his dependencys.

Configuration

You can load the plugin by adding following in the config.json from your pimatic server:

{
  "plugin": "xmpp",
  "user": "[email protected]",
  "password": "secretpw",
  "adminId": "[email protected]",
  "defaultId": "[email protected]",
  "nickId": "pimatic"
  "keepaliveInterval": 5
}

The config item adminId is the access controle for receiving messages.

Only messages from this user will be accepted.

Usages

Chat client

The messaging system implements a chat bot which answers questions and execute actions.

The bot uses the rule action syntax. So all devices are out of the box accessible.

For example:

toggle device1
switch device2 on
set temp of heating to 28
list devices
get device heating
get all devices

Following commands are predefiend:

Built-in commands:

  • help
  • list devices
  • get all devices
  • get device name or id

Available actions:

  • "created predicates in rules"

Provided predicates

The messaging system provides a received event.

received "do action"

Provided actions

The messaging system provides a send event.

send chat tojid:"[email protected]" message:"triggerd event has occurred"

ToDoList

  • chatrooms for multiuser enviroments (password protected)
  • built-in server ? for easy use of plugin

ChangeLog

  • 0.0.3 First public version. Use xmpp system over the rule section: predicates and action handler

  • 0.0.4

    • Full integrated command parser for all available pimatic actions
    • list all devices
    • xmpp core improvements; subscribe to admin user
    • some bug fixes
  • 0.0.5

    • code cleanup
    • autoreconnect
    • new Device: xmppUser as presence device
    • get commands for devices
    • security fixes
  • 0.0.6 BUGFIX

  • 0.0.7 BUGFIX

  • 0.0.8 BUGFIX

  • 0.0.9 BUGFIX

  • 0.0.10 BUGFIX

  • 0.0.11

    • disable remote control in config
    • BUGFIX

This plugin depends on node-xmpp-client.