Pages

Sunday, July 13, 2025

How to connect Tuya device to Node-Red

Here is the process how to get Device ID and Local Key for Tuya device.   

  1. Create a Tuya Developer Account
    • Go to https://iot.tuya.com and register for a developer account. 
  2. Create a Cloud Project
  3. Link Tuya App Account
    • In your cloud project, navigate to the "Devices" tab and select "Link Tuya App Account." You'll typically scan a QR code with your Immax NEO PRO app (or Tuya Smart/Smart Life app) to authorize the link.
  4. Get Device ID
    • Once linked, your devices from the app should appear under the "Devices" tab in your cloud project. Note down the "Device ID" for each Tuya device you want to control. 
  5. Create API Subscription
    • Go to "Cloud" > "Cloud Services"
    • Subscribe to
      •  IoT Core Services
  6. Still within the "Cloud Services" section, after subscribing, click on "My Service"
    • For each of the services you just subscribed to, click "View Details"
    • Go to the "Authorized Projects" tab 
    • Ensure your specific cloud project is listed and authorized here. If not, you may need to click "Add Authorization" and select your project.
  7. Get Local Key
    • Go to "Cloud" -> "API Explorer."
    • Under "Smart Home Device Control" (or similar), look for an option like "Query Device Details in Bulk" or "Get Device Specification Attribute."
      • Device Management > Query Device Details 
    • Input your Device ID and submit the request.
      • The "Local Key" should be in the JSON response.

 


Sunday, July 6, 2025

Převod souboru z MKV na MP4 pomocí ffmpeg

Pro převod souboru z MKV na MP4 pomocí ffmpeg použij následující příkaz:

ffmpeg -i vstup.mkv -codec copy vystup.mp4

Pokud MKV obsahuje kodeky, které nejsou kompatibilní s MP4 (např. některé titulky nebo audio kodeky), můžeš použít překódování:

ffmpeg -i vstup.mkv -c:v libx264 -c:a aac -strict experimental vystup.mp4

Thursday, July 3, 2025

How to install and configure network printer and scanner in Linux Mint

Because of sustainability, I would like to use old Laptop/Printer/Scanner devices. 

This blog post is focused on Printer and Scanner.

I have a Canon MX350, so the runbooks for installing and using the printer and scanner were tested only with this model.