Code Monkey home page Code Monkey logo

tuya-panel-demo's Introduction

Tuya Panel Templates

English | 简体中文

This document provides development templates of common categories.

You can read the official documents for more information.

Prerequisites

  • nodejs 8+
  • npm or yarn

Running

To quickly run a panel project, run:

$ cd examples/${TemplateName}
$ npm install && npm run start
# or
$ yarn && yarn start # if you use yarn

Then, open your Tuya Smart app for debugging.

Examples

It is recommended to use the template of tuya-panel-ki 4.0.0 or above for development, and the 2.0.0 series is no longer maintained

You can check the complete list of Tuya Panel examples here.

Batch upgrade tuya-panel-kit

# 4.x & 2.x
$ sudo ./scripts/tuya-panel-kit 4.x 2.x
# 4.x
$ sudo ./scripts/tuya-panel-kit 4.x
# 2.x
$ sudo ./scripts/tuya-panel-kit "" 2.x

License

Copyright © 2020

tuya-panel-demo's People

Contributors

dependabot[bot] avatar doraemon91 avatar funnybunnyqaq avatar jinjuan-li avatar risatoar avatar shinyleee avatar sound2gd avatar tongjinfeng avatar xiaoose avatar yuanlllshuai avatar zengbeauty avatar zerol avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tuya-panel-demo's Issues

Package installation and building are not working due to outdate.

The yarn or npm installation is failing due to license expiry in https://npm.taobao.org/.

Even if you by pass the license expiry, the code is not building due to an error. This is an example output of lampClassic using npm build.

error Invalid regular expression: /(.\fixtures\.|node_modules[\]react[\]dist[\].|website\node_modules\.|heapCapture\bundle.js|.\tests\.)$/: Unterminated character class. Run CLI with --verbose
flag for more details.

[Docs] URL link to RF Remote is not available

Hi, I am trying to integrate with an IR + RF remote control, and I saw the documentation contains a link to this repository, (link: https://github.com/tuya/tuya-panel-demo/tree/master/examples/rfRemote), however the folder doesn't exist in this repo.

Just wondering where can I find that code?

Link to the Docs: https://developer.tuya.com/en/docs/iot/rf-basic-template?id=Kb9ozf6hljcpu#title-1-Directories

您好,我正在尝试与红外+射频遥控器集成,我看到文档中包含一个链接到这个资源库,(链接:https://github.com/tuya/tuya-panel-demo/tree/master/examples/rfRemote),然而这个文件夹在这个资源库中并不存在。

我想知道在哪里可以看到这部分相关的代码?

文档的链接:https://developer.tuya.com/en/docs/iot/rf-basic-template?id=Kb9ozf6hljcpu#title-1-Directories

yarn install failure

Description(描述)
yarn install failure, the error shows below:

yarn install v1.19.0
warning ../../../package.json: No license field
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
error An unexpected error occurred: "https://registry.nlark.com/tuya-panel-kit/download/tuya-panel-kit-2.1.0.tgz: read ECONNRESET".

Steps to Reproduce(复现步骤)

  1. run command cd examples/lampDimmer
  2. run command yarn install
  3. can see the error log

Environment(复现环境)

  • Node version: v16.14.0
  • OS: OSX 12.5
  • tuya-panel-cli: 0.5.0

NPM dependencies

Description(描述)
Dependency error:
code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: @tuya/[email protected] npm ERR! Found: [email protected] npm ERR! node_modules/react npm ERR! react@"16.8.3" from the root project npm ERR! peer react@"^16.0" from @react-native-community/[email protected] npm ERR! node_modules/@react-native-community/masked-view npm ERR! peer @react-native-community/masked-view@">= 0.1.0" from @react-navigation/[email protected] npm ERR! node_modules/@react-navigation/stack npm ERR! @react-navigation/stack@"5.9.0" from [email protected] npm ERR! node_modules/tuya-panel-kit npm ERR! tuya-panel-kit@"^4.7.5" from the root project npm ERR! @react-native-community/masked-view@"0.1.10" from [email protected] npm ERR! node_modules/tuya-panel-kit npm ERR! tuya-panel-kit@"^4.7.5" from the root project npm ERR! 20 more (@react-navigation/core, @react-navigation/native, ...) npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@"16.9.0" from @tuya/[email protected] npm ERR! node_modules/@tuya/rn-robot-map npm ERR! @tuya/rn-robot-map@"1.0.45-beta-10" from the root project npm ERR! npm ERR! Conflicting peer dependency: [email protected] npm ERR! node_modules/react npm ERR! peer react@"16.9.0" from @tuya/[email protected] npm ERR! node_modules/@tuya/rn-robot-map npm ERR! @tuya/rn-robot-map@"1.0.45-beta-10" from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution. npm ERR! npm ERR! npm ERR! For a full report see: npm ERR! /home/codespace/.npm/_logs/2023-12-27T13_03_10_128Z-eresolve-report.txt
error_log.txt

Steps to Reproduce(复现步骤)

  1. Run npm install in laserSweepRobot example

Environment(复现环境)

  • Node version: v20.10.0
  • OS: Linux
  • Example: laserSweepRobot
  • Platform: None
  • Phone Model: None

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.