From 231030290754fc56eac8e6e6d2e9cd3b27b29860 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ge=CC=81rondal=20Thibault?= Date: Sat, 29 Dec 2018 19:20:48 +0100 Subject: [PATCH] Move configuration file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Configuration file should not be versioned, let's give an example one to copy. Signed-off-by: Gérondal Thibault --- .gitignore | 2 +- README.md | 6 ++++++ config.json => config.json.sample | 0 3 files changed, 7 insertions(+), 1 deletion(-) rename config.json => config.json.sample (100%) diff --git a/.gitignore b/.gitignore index 1c781a7..a2070c6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ devices/ test/ - +config.json # Logs logs diff --git a/README.md b/README.md index f5c46c1..1ab67ca 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,12 @@ Ignore all Warnings. This involves MIM of the connection. Instructions can be found here: https://github.com/codetheweb/tuyapi/blob/master/docs/SETUP.md +Create your configuration file: +``` +cp config.json.sample config.json +nano config.json // edit the configuration file +``` + Start command ``` node tuya-mqtt.js diff --git a/config.json b/config.json.sample similarity index 100% rename from config.json rename to config.json.sample