Receipt Printer with JavaScript

Поделиться
HTML-код
  • Опубликовано: 24 янв 2025

Комментарии • 23

  • @kimwelch4499
    @kimwelch4499 3 месяца назад

    I got a receipt printer 2 weeks before you released this! I was thinking of doing this same method with sending a generated image!
    Thank you for the inspiration. The industry I am in (amusement attractions), needs creative receipts like this!
    Now I have to get it to work over Bluetooth 😊

  • @MaikelvandeLisdonk
    @MaikelvandeLisdonk 4 месяца назад +6

    I once build a cashregister prototype in the browser early 2000's... it also included a receipt printer interface.. but I used an activex control build in Delphi to communicate with the printer..😂😊

  • @twitchizle
    @twitchizle 4 месяца назад +3

    Just in time. I needed this for my new upcoming startup. Haha

  • @MikeSwatek
    @MikeSwatek 4 месяца назад +1

    Just bought a refurbished Epson receipt printer for a library app I built for my daughter!

  • @codeman99-dev
    @codeman99-dev 4 месяца назад +1

    I'm half disappointed by the screenshot solution. Maybe that's the next step? Proposing an extended / advanced version of the ESC/POS that supports more graphical widgets?
    I still think something that will let you use JSX for rendering directly to the printer would be awesome.

  • @2u841r
    @2u841r 4 месяца назад +4

    3:14 wow, nice goal. a vending machine with js!

    • @WesBos
      @WesBos 4 месяца назад +1

      100 likes and it happens next year

    • @smithdoesstuff
      @smithdoesstuff 4 месяца назад

      Is NextJs powered hardware the next evolution from all of the embedded windows errors we see throughout the world?

  • @nickwoodward819
    @nickwoodward819 4 месяца назад +1

    Would love to do a till/till drawer (you might call them cash registers?) would work great with your receipt machine!

    • @WesBos
      @WesBos 4 месяца назад +1

      cash drawer would be the perfect little locked storage under your laptop

    • @nickwoodward819
      @nickwoodward819 4 месяца назад

      @@WesBos yeah, always wanted to make a POS system tbh. Not the sexiest of ambitions... :D
      perfect timing on the reply btw - you got an email address I can contact you on? was looking for FEM github docs and found a site selling their content - and yours. Don't want to link it here

  • @SudevAmbadi
    @SudevAmbadi Месяц назад

    I'm trying to build a admin web portal where they can issue a print to the thermal printers. Is there a library that we can use to connect to printer from web and then issue the print? Or does it mean we can't issue a print or connect to printer directly from the web browser? Would you be able to share the codebase that you had tried?

  • @dadof3bytes
    @dadof3bytes 3 месяца назад

    You mention a seperate podcast on a barcode scanner. Which ep is that

  • @Danielo515
    @Danielo515 4 месяца назад +1

    Is there any link to the printer?

    • @81NARY
      @81NARY 4 месяца назад +1

      It's Rongta 80mm printer. Linked on his GitHub repo.

  • @gavrielo
    @gavrielo Месяц назад

    Any recommend printer to buy?

  • @NitinVarmaManthena
    @NitinVarmaManthena 3 месяца назад

    Can you share the printer you are using?

  • @muhammadtariq8323
    @muhammadtariq8323 3 месяца назад

    I got the following error when try to connect via webusb
    SecurityError: Failed to execute 'open' on 'USBDevice': Access denied.
    async connectToPrinter() {
    try {
    this.device = await navigator.usb.requestDevice({ filters: [{ vendorId: 1046 }] }); // Replace with your actual vendor ID
    await this.device.open();
    if (this.device.configuration === null) {
    await this.device.selectConfiguration(1);
    }
    await this.device.claimInterface(0);
    console.log('Printer connected');
    } catch (error) {
    console.error('Failed to connect to printer:', error);
    }
    }

  • @everyhandletaken
    @everyhandletaken 4 месяца назад

    😃 I want all new issue tickets printed out like this when they arrive.. for no valid reason, other than it is just cool!

  • @aschmelyun
    @aschmelyun 4 месяца назад

    Receipt printers, receipt printers for everyone!

  • @aldierygonzalez7249
    @aldierygonzalez7249 4 месяца назад

    I love it, a mini fax machine for bug reports, i imagine some lots devs would kill for that to be their workflow instead of teams or slack 😂