Files


bluetooth printer drivers: https://drive.google.com/file/d/1LNf6noIWXCPbwS9Q2c5LNcohnY_WXbCS/view?usp=drive_link

Mqtt pritner drivers: https://drive.google.com/file/d/1Uf1Kwp7a2Gy7NZtnUrTPMYbqkDjM36P6/view?usp=sharing

Rego cloud recept printer 58mm ClientCloudToolsV2.3.zip

Bluetooth sprt tools: SettingToolV3.58_5.3 (1).zip

Android apk 1.3.10: link

Android apk telpo 1.4 (new not tested):link

Android apk telpo (turėtu palaikyti ir 58 ir 80 mm setinguose reikia tik parinkti kuris fiskale parinkti kad spausdinti kaip TEXT) link

APK kurio Pijui reikia: link

Secondary display code for windows python:

import sys
import ctypes
import time
import pygetwindow as gw
from pywinauto import Application
import screeninfo

# Function to check if the script is running with elevated privileges
def is_admin():
    try:
        return ctypes.windll.shell32.IsUserAnAdmin()
    except:
        return False

# If not running as administrator, re-run the script with elevated privileges
if not is_admin():
    ctypes.windll.shell32.ShellExecuteW(None, "runas", sys.executable, " ".join(sys.argv), None, 1)
    sys.exit()

# Path to Chrome executable
chrome_path = r"C:\Program Files\Google\Chrome\Application\chrome_proxy.exe"
url = "https://kalimera.smarton.app/pos/display/2"

# Start Chrome with the specified URL
app = Application().start(f'"{chrome_path}" --app={url}')

# Wait for the window to appear
time.sleep(5)

# Get the window that matches the URL or part of the title
chrome_windows = gw.getWindowsWithTitle('SMARTON POS DISPLAY')

if chrome_windows:
    chrome_window = chrome_windows[0]  # Assuming it's the first window found

    # Get the screen information (you may need to install `screeninfo` library using pip)
    screens = screeninfo.get_monitors()

    # Identify the primary monitor (usually Screen 1)
    primary_monitor = screens[0]  # Adjust the index if needed

    # Move the window to the primary monitor and maximize it
    chrome_window.moveTo(primary_monitor.x, primary_monitor.y)
    chrome_window.resizeTo(primary_monitor.width, primary_monitor.height)
    chrome_window.maximize()

else:
    print("Chrome window not found!")