Skip to content

Commit edcc95a

Browse files
AndrewAndrew
Andrew
authored and
Andrew
committed
initial
0 parents  commit edcc95a

9 files changed

+1057
-0
lines changed

.github/workflows/npm-publish.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: npm-publish
2+
on:
3+
push:
4+
branches:
5+
- master
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v1
12+
- uses: actions/setup-node@v1
13+
with:
14+
node-version: 10
15+
- run: npm install
16+
# - run: npm test
17+
- uses: JS-DevTools/npm-publish@v1
18+
with:
19+
token: ${{ secrets.NPM_TOKEN }}

.gitignore

+145
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,145 @@
1+
### Node ###
2+
# Logs
3+
logs
4+
*.log
5+
npm-debug.log*
6+
yarn-debug.log*
7+
yarn-error.log*
8+
9+
# Runtime data
10+
pids
11+
*.pid
12+
*.seed
13+
*.pid.lock
14+
15+
# Directory for instrumented libs generated by jscoverage/JSCover
16+
lib-cov
17+
18+
# Coverage directory used by tools like istanbul
19+
coverage
20+
21+
# nyc test coverage
22+
.nyc_output
23+
24+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
25+
.grunt
26+
27+
# Bower dependency directory (https://bower.io/)
28+
bower_components
29+
30+
# node-waf configuration
31+
.lock-wscript
32+
33+
# Compiled binary addons (https://nodejs.org/api/addons.html)
34+
build/Release
35+
36+
# Dependency directories
37+
node_modules/
38+
jspm_packages/
39+
40+
# TypeScript v1 declaration files
41+
typings/
42+
43+
# Optional npm cache directory
44+
.npm
45+
46+
# Optional eslint cache
47+
.eslintcache
48+
49+
# Optional REPL history
50+
.node_repl_history
51+
52+
# Output of 'npm pack'
53+
*.tgz
54+
55+
# Yarn Integrity file
56+
.yarn-integrity
57+
58+
# dotenv environment variables file
59+
.env
60+
61+
# parcel-bundler cache (https://parceljs.org/)
62+
.cache
63+
64+
# next.js build output
65+
.next
66+
67+
# nuxt.js build output
68+
.nuxt
69+
70+
# vuepress build output
71+
.vuepress/dist
72+
73+
# Serverless directories
74+
.serverless
75+
76+
.DS_Store
77+
78+
79+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
80+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
81+
82+
# User-specific stuff
83+
.idea/**/workspace.xml
84+
.idea/**/tasks.xml
85+
.idea/**/usage.statistics.xml
86+
.idea/**/dictionaries
87+
.idea/**/shelf
88+
89+
# Generated files
90+
.idea/**/contentModel.xml
91+
92+
# Sensitive or high-churn files
93+
.idea/**/dataSources/
94+
.idea/**/dataSources.ids
95+
.idea/**/dataSources.local.xml
96+
.idea/**/sqlDataSources.xml
97+
.idea/**/dynamic.xml
98+
.idea/**/uiDesigner.xml
99+
.idea/**/dbnavigator.xml
100+
101+
# Gradle
102+
.idea/**/gradle.xml
103+
.idea/**/libraries
104+
105+
# Gradle and Maven with auto-import
106+
# When using Gradle or Maven with auto-import, you should exclude module files,
107+
# since they will be recreated, and may cause churn. Uncomment if using
108+
# auto-import.
109+
# .idea/modules.xml
110+
# .idea/*.iml
111+
# .idea/modules
112+
113+
# CMake
114+
cmake-build-*/
115+
116+
# Mongo Explorer plugin
117+
.idea/**/mongoSettings.xml
118+
119+
# File-based project format
120+
*.iws
121+
122+
# IntelliJ
123+
out/
124+
125+
# mpeltonen/sbt-idea plugin
126+
.idea_modules/
127+
128+
# JIRA plugin
129+
atlassian-ide-plugin.xml
130+
131+
# Cursive Clojure plugin
132+
.idea/replstate.xml
133+
134+
# Crashlytics plugin (for Android Studio and IntelliJ)
135+
com_crashlytics_export_strings.xml
136+
crashlytics.properties
137+
crashlytics-build.properties
138+
fabric.properties
139+
140+
# Editor-based Rest Client
141+
.idea/httpRequests
142+
143+
# Android studio 3.1+ serialized cache file
144+
.idea/caches/build_file_checksums.ser
145+

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2018 Allow2
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# node-red-contrib-nexus21
2+
[![Donate](https://img.shields.io/badge/donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=JUYN6NBFELTC2&source=url)
3+
4+
Node-red nodes to enable you to automate your Nexus21 TV Lift. Works with the IPLink add on module.
5+
6+
![Basic Example](https://github.com/Anamico/node-red-contrib-light/raw/master/images/basic.png "Basic Example")
7+
8+
# Configuration
9+
10+
One node instance equals 1 TV Lift.
11+
12+
Put in the IP address to point it at the lift.
13+
14+
# Usage
15+
16+
The input connection takes basic commands as msg.payload
17+
18+
* UP
19+
* DOWN
20+
* MEM1
21+
* MEM2
22+
* MEM3
23+
24+
The output connection will pump out status updates as the lift changes.
25+
These are in JSON format as the msg payload and look like:
26+
27+
```json
28+
{
29+
“STATUS” : "OK",
30+
“VERTICAL” : "MOVING",
31+
“HORIZONTAL” : "NA",
32+
"EXTCMD" : "UP",
33+
"ERROR" : 13,
34+
"ERROR TEXT" : "Short circuit has been detected while running"
35+
}
36+
```
37+
38+
39+
# Donations [![Donate](https://img.shields.io/badge/donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=JUYN6NBFELTC2&source=url)
40+
41+
If you would like to donate some money to support ongoing development or as a simple thank you for me sharing this project for others to use, please feel free to send money via
42+
[PayPal](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=JUYN6NBFELTC2&source=url).
43+
44+
45+
# Disclaimer
46+
47+
Of course, this software is offered with absolutely NO WARRANTY whatsoever offered or implied. If something is not working right,
48+
log a ticket in github or better yet, fix it and submit a pull request.
49+
50+
If you choose to set up and your tv gets crumbled or smashed, it's your problem, nothing to do with this software as there is no warranty
51+
whatsoever. Up to you to use it completely at your own risk. So YOU HAVE BEEN WARNED!
52+
53+
# Error Codes
54+
55+
Here is a full list of error codes
56+
57+
**TBC**

nexus21/errorcodes.js

Whitespace-only changes.

0 commit comments

Comments
 (0)