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

bot-dac

v1.0.2

Published

This is a package to help managers of the Digital Addressable Controller 6000 system (DAC 6000). This package makes consults by webscraping to his web GUI and returns the data of the Set-Top Box such as for example Installation configuration of the Set-To

Downloads

21

Readme

Bot-dac :tv:

On HFC networks we have Digital Addressable Controllers providing secured access control for digital video distribution systems. Bot-dac is a library on JavaScript To help non-administrators users. Makes it easy to extract information from the DAC.


Installation :books:

To install bot-dac you need to have installed NodeJs. Then you will type:

npm i bot-dac

The package installation will be installing a Chromium version. It due to we used puppeteer, a library on JavaScript for web scraping. And his default web explorer is Chromium.

Deployment :package:

Bot-dac uses two principal libraries. The first one is Puppeteer that made web scraping and the second is Telegraf that interacts with the Telegram Bot API. You need to configure nothing on them. As you know. The DAC stores all set-top boxes information. So to extract that information. Bot-dac realizes a web scraping to the principal tabs and returns it via telegram message.

To reach to run the Bot-dac on your computer or server. You need to configure some environment variables on your operating system.

Bot-dac uses a robot of Telegram to return the information. So you need to create a robot on Telegram with BotFather. When you ended the process Telegram will give you a TOKEN. Save it, it will be confidential. You can review the Telegram API Doc to learn how it works.

  1. The first one environment variable is the bot token:

    TELEGRAM_TOKEN=1714671429:AAHNsMCbiLSsp9S8FkjycYP8F6I1WB3UWsM

    This is an example. The BotFather will give you your own and unique token.

  2. The DAC user:

    DAC_USER=user

  3. The DAC password:

    DAC_PASSWORD=password

  4. The DAC URL or IP:

    DAC_URL=https://...

To configure the environment variables I used dotenv. Feel free to configure at your way these environment variables on your operating system.

:pushpin: Make sure to configure the name of the environment variables how I showed you :point_up: