ruuvitag-telegram-bot

0.0.5 • Public • Published

RuuviTelegramBot

Node.js module for reading data from a Ruuvitag weather station and retrieve them through Telegram Bot.

Tested on Raspberry Pi 3. Depends on node-ruuvitag and telebot.

Installation

npm i ruuvitag-telegram-bot

Usage example

const RuuviTelegramBot = require("ruuvitag-telegram-bot");

//my Ruuvitags
const places = ["place1", "place2"];

const Ruuvitags = {
	<ruuvi_uuid_1>: {
		"uuid": <ruuvi_uuid_1>,
		"ruuviid": <your_ruuvi_id>,
		"name": <your_ruuvi_id>,
		"location": places[0],
		"last_data": ""
	},
	<ruuvi_uuid_1>: {
		"uuid": <ruuvi_uuid_1>,
		"ruuviid": <your_ruuvi_id>,
		"name": <your_ruuvi_id>,
		"location": places[1],
		"last_data": ""
	}
};

// telegram token
const TELEGRAM_BOT_TOKEN = <your_bot_token>;

let ruuviTelegramBot = new RuuviTelegramBot(places, Ruuvitags, TELEGRAM_BOT_TOKEN);

You need to substitute all variable inside <>.

Developed by Francesco Longo (france193).

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i ruuvitag-telegram-bot

    Weekly Downloads

    0

    Version

    0.0.5

    License

    BSD 3-Clause License

    Last publish

    Collaborators

    • france193