🔔 Get an alert on Telegram when there are Raspberry in stock ready to buy

Overview

Raspberry instock check bot

Get an alert on Telegram when there are Raspberry in stock ready to buy. This bot uses the website https://rpilocator.com/ to check for stock updates.

Join the Telegram channel to get notifications: https://t.me/raspberry_stock_alert

screenshot

Install

pnpm i

Build

pnpm build

Run

If omitted, SEARCHED_RASPBERRY_MODELS will watch all Raspberry models.

TELEGRAM_TOKEN=<telegram_bot_token> \
TELEGRAM_ADMIN_CHAT_ID=<telegram_chat_id_where_to_send_debug_info> \
TELEGRAM_CHAT_ID=<telegram_chat_id_where_to_send_alerts> \
USE_DIRECT_PRODUCT_LINK=1 \
SEARCHED_RASPBERRY_MODELS=RPI4-MODBP-4GB,RPI4-MODBP-8GB \
pnpm start

List of Raspberry models:

Model (SKU) Description
CM4001000 RPi CM4 - 1GB RAM, No MMC, No Wifi
CM4001008 RPi CM4 - 1GB RAM, 8GB MMC, No Wifi
CM4001032 RPi CM4 - 1GB RAM, 32GB MMC, No Wifi
CM4002000 RPi CM4 - 2GB RAM, No MMC, No Wifi
CM4002008 RPi CM4 - 2GB RAM, 8GB MMC, No Wifi
CM4002016 RPi CM4 - 2GB RAM, 16GB MMC, No Wifi
CM4002032 RPi CM4 - 2GB RAM, 32GB MMC, No Wifi
CM4004000 RPi CM4 - 4GB RAM, No MMC, No Wifi
CM4004008 RPi CM4 - 4GB RAM, 8GB MMC, No Wifi
CM4004016 RPi CM4 - 4GB RAM, 16GB MMC, No Wifi
CM4004032 RPi CM4 - 4GB RAM, 32GB MMC, No Wifi
CM4008000 RPi CM4 - 8GB RAM, No MMC, No Wifi
CM4008008 RPi CM4 - 8GB RAM, 8GB MMC, No Wifi
CM4008016 RPi CM4 - 8GB RAM, 16GB MMC, No Wifi
CM4008032 RPi CM4 - 8GB RAM, 32GB MMC, No Wifi
CM4101000 RPi CM4 - 1GB RAM, No MMC, With Wifi
CM4101032 RPi CM4 - 1GB RAM, 32GB MMC, With Wifi
CM4102000 RPi CM4 - 2GB RAM, No MMC, With Wifi
CM4102008 RPi CM4 - 2GB RAM, 8GB MMC, With Wifi
CM4102016 RPi CM4 - 2GB RAM, 16GB MMC, With Wifi
CM4102032 RPi CM4 - 2GB RAM, 32GB MMC, With Wifi
CM4104000 RPi CM4 - 4GB RAM, No MMC, With Wifi
CM4104008 RPi CM4 - 4GB RAM, 8GB MMC, With Wifi
CM4104016 RPi CM4 - 4GB RAM, 16GB MMC, With Wifi
CM4104032 RPi CM4 - 4GB RAM, 32GB MMC, With Wifi
CM4108000 RPi CM4 - 8GB RAM, No MMC, With Wifi
CM4108008 RPi CM4 - 8GB RAM, 8GB MMC, With Wifi
CM4108016 RPi CM4 - 8GB RAM, 16GB MMC, With Wifi
CM4108032 RPi CM4 - 8GB RAM, 32GB MMC, With Wifi
RPI4-MODBP-1GB RPi 4 Model B - 1GB RAM
RPI4-MODBP-2GB RPi 4 Model B - 2GB RAM
RPI4-MODBP-4GB RPi 4 Model B - 4GB RAM
RPI4-MODBP-8GB RPi 4 Model B - 8GB RAM
SC0510 Raspberry Pi Zero 2 W

License

           DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
                   Version 2, December 2004

Copyright (C) 2022 rigwild <[email protected]> (https://rigwild.dev/)

Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.

           DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
  TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

 0. You just DO WHAT THE FUCK YOU WANT TO.
You might also like...

Telegram bot with a graphical interface that enables you to schedule messages and generate automatic replies 🤖

Telegram bot with a graphical interface that enables you to schedule messages and generate automatic replies 🤖

Telegram bot with a graphical interface that enables you to schedule messages and generate automatic replies 🤖

Dec 6, 2022

Telegram voice recognition bot

Node.js bot for telegram messenger based on Microsoft Azure Speech Service and Node.js Telegram Bot API

Mar 9, 2022

a Node.js boilerplate to start creating your telegram bot without too much configuration at the beginning

node-telegram-bot-starter-pack How to use clone the repo run npm install run cp .env.example .env and replace the variables with your data define your

Sep 7, 2022

Telegram bot for Youtube-dl

Telegram bot for Youtube-dl

English youtube-dl download telegram bot ydls와 함께 사용할 수 있는 봇으로, Docker가 설치되는 곳이면 어디든 설치가 가능하다 (ex: 리눅스 서버, 시놀로지 나스) 기존에 ydls 이미지를 그대로 사용하였지만, 채널 이름과,

Oct 19, 2022

Telegram-API Library Written in TypeScript

TeleLib a node js Telegram Wrapper written in TypeScript. installation yarn add @telelib/telelib or npm i --save @telelib/telelib how to use create a

Jul 27, 2022

Weblookup Telegram bot - The usefully bot like check website, screenshot

Weblookup Telegram bot - The usefully bot like check website, screenshot

Weblookup Telegram bot - The usefully bot like check website, screenshot

May 9, 2022

A telegram bot that sends the current day's foreign exchange rates to its subscribers

Birr Forex Bot A bot that sends the current day's foreign exchange rates to its subscribers. Using the bot Check out the bot here. Running the bot It

Dec 21, 2022

A typescript telegram bot with just two works in mind.

Minitsbot aka @Akagiprobot Made in ❤️ with Grammy and deno. A typescript telegram bot with just two works in mind: Autoapproves new join requests. (Ch

Jun 7, 2022

TypeScript bot for auto-deleting of Telegram premium stickers with some interesting features based on the grammY library

anti-premium-stickers-bot TypeScript bot for auto-deleting of Telegram premium stickers with some interesting features based on the grammY library Thi

Dec 15, 2022
Comments
  •  ELIFECYCLE  Command failed with exit code 1.

     ELIFECYCLE  Command failed with exit code 1.

    Hey, really cool bot, thanks!

    Unfortunately I'm running into this error causing it to crash, at which point I have to restart it every time. Any ideas?

    FetchError: request to https://rpilocator.com/ failed, reason: getaddrinfo ENOTFOUND rpilocator.com
        at ClientRequest.<anonymous> (file:///home/user/raspberry-instock-check/node_modules/.pnpm/[email protected]/node_modules/node-fetch/src/index.js:108:11)
        at ClientRequest.emit (node:events:527:28)
        at TLSSocket.socketErrorListener (node:_http_client:454:9)
        at TLSSocket.emit (node:events:527:28)
        at emitErrorNT (node:internal/streams/destroy:151:8)
        at emitErrorCloseNT (node:internal/streams/destroy:116:3)
        at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
      type: 'system',
      errno: 'ENOTFOUND',
      code: 'ENOTFOUND',
      erroredSysCall: 'getaddrinfo'
    }
    node:internal/process/promises:288
                triggerUncaughtException(err, true /* fromPromise */);
                ^
    
    
    TelegramError: ETELEGRAM: 400 Bad Request: can't parse entities: Can't find end of the entity starting at byte offset 696
        at /home/user/raspberry-instock-check/node_modules/.pnpm/[email protected]/node_modules/node-telegram-bot-api/src/telegram.js:291:15
        at tryCatcher (/home/user/raspberry-instock-check/node_modules/.pnpm/[email protected]/node_modules/bluebird/js/release/util.js:16:23)
        at Promise._settlePromiseFromHandler (/home/user/raspberry-instock-check/node_modules/.pnpm/[email protected]/node_modules/bluebird/js/release/promise.js:547:31)
        at Promise._settlePromise (/home/user/raspberry-instock-check/node_modules/.pnpm/[email protected]/node_modules/bluebird/js/release/promise.js:604:18)
        at Promise._settlePromise0 (/home/user/raspberry-instock-check/node_modules/.pnpm/[email protected]/node_modules/bluebird/js/release/promise.js:649:10)
        at Promise._settlePromises (/home/user/raspberry-instock-check/node_modules/.pnpm/[email protected]/node_modules/bluebird/js/release/promise.js:729:18)
        at _drainQueueStep (/home/user/raspberry-instock-check/node_modules/.pnpm/[email protected]/node_modules/bluebird/js/release/async.js:93:12)
        at _drainQueue (/home/user/raspberry-instock-check/node_modules/.pnpm/[email protected]/node_modules/bluebird/js/release/async.js:86:9)
        at Async._drainQueues (/home/user/raspberry-instock-check/node_modules/.pnpm/[email protected]/node_modules/bluebird/js/release/async.js:102:5)
        at Async.drainQueues [as _onImmediate] (/home/user/raspberry-instock-check/node_modules/.pnpm/[email protected]/node_modules/bluebird/js/release/async.js:15:14)
        at process.processImmediate (node:internal/timers:471:21) {
      code: 'ETELEGRAM',
    

    After this it's a bunch of telegram info, then finally:

    Node.js v18.0.0
     ELIFECYCLE  Command failed with exit code 1.
    
    opened by aweb-01 6
  • running raspberry-instock-check as a service

    running raspberry-instock-check as a service

    Hi there,

    I try to run your raspberry-instock-check as a service on my system but sadly I am not successful in doing so. It seems like when running as a service it cannot write its output to tty. Have you ever tried to run it as a service and could share how you managed to do so?

    Thank you! Keep up the excellent work!

    opened by careyer 2
Owner
⚡ :octocat:  your favorite blockchain engineer
null
When new tokens gets listed on a DEX, bots are able to detect this and be one of the first to buy the token for a low price. This is an example of such bot.

Listing Sniping Bot When a new token gets listed on a DEX, bots are able to detect the PairCreated event emitted from the DEX's factory contract. This

MouseLess.eth 15 Dec 21, 2022
Discord.js V14 Slash-Command and Context-Menu Handler. Most efficient and advanced Handler out there!

Base discord.js v14 Command Handler Written by Tomato6966 Made for Deezcord Features ✔ Slash Commands ✔ Sub-Slash Commands ✔ Group-Sub-Slash Commands

Tomato6966 9 Dec 21, 2022
Aeona is a multi-purpose discord bot ready to skill up and boost up your Discord server! It has an State of the Art AI chatbot to make sure you never feel bored!

Aeona | Chatbot Aeona is an ever-growing multipurpose bot; primarily a fun chatbot you can converse with, but also showcases a wide range of fun comma

null 29 Jan 9, 2023
About Discord bot draft that does not contain ready-made commands, compatible with discord.js v14. Create your own discord bot with this command handler.

discordJS-V14 About Discord bot draft that does not contain ready-made commands, compatible with discord.js v14. Create your own discord bot with this

Umut Bayraktar 36 Dec 28, 2022
Bot sviluppato in Node.js che permette la prenotazione e il successivo invio dello screenshot di quest'ultima tramite un bot di telegram.

Unimore-Bot Bot sviluppato in Node.js che permette la prenotazione e il successivo invio dello screenshot di quest'ultima tramite un bot di telegram I

Lorenzo Codeluppi 8 Jun 9, 2022
A Discord <-> Telegram bridge rewrote from scratch, in Node.js

Discord-Telegram-bridge A small and fast telegram to discord chat bridge, written in Node.js Setup: If you want to run it on heroku, you can just clic

Sebastiano Barezzi 6 Apr 14, 2022
Cem Karaca - Telegram Bot

Cem Karaca Telegram botu | Bot Cem Karaca şarkılarını tanıtmak için yapıldı. Bot: https://t.me/cem_karaca_bot Botun kullanımı: /start - Botu başlat /h

Lucifer25x 1 Jan 10, 2022
Um simples bot para o Telegram que baixa vídeos e áudios do TikTok & outras funcionalidades

Kelle Estella (Telegram) Um simples bot para o Telegram que baixa vídeos e áudios do TikTok & outras funcionalidades. Clique aqui para utilizá-lo. Com

Luis Gabriel Araújo 3 Apr 20, 2022
exercícios feitos com o pessoal do telegram

Turma - Pré-Trybe Desafios para treinos Exercícios feitos para pessoas que estão aprendendo agora!! Entre em nosso grupo no Telegram e no Discord Níve

Lucival dos Santos França Filho 3 Jun 13, 2022
Telegram & Discord chat bot for Airline Manager 4

AM4 Bot AM4 Bot was a Discord & Telegram chat bot used in 63 servers and across several Telegram chats between 2020-2022 for the game Airline Manager

Fin 5 Jun 5, 2022