0.0.5 • Published 6 years ago

ruuvitag-telegram-bot v0.0.5

Weekly downloads
4
License
BSD 3-Clause Lice...
Repository
github
Last release
6 years ago

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).