Compare commits
No commits in common. "node-conversion" and "develop" have entirely different histories.
node-conve
...
develop
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,4 +1,3 @@
|
||||
tmp/
|
||||
log/thin.log
|
||||
*.swp
|
||||
node_modules/
|
||||
|
9
Gemfile
Normal file
9
Gemfile
Normal file
@ -0,0 +1,9 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
source "https://rubygems.org"
|
||||
|
||||
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
|
||||
|
||||
gem "thin"
|
||||
gem "sinatra"
|
||||
gem 'rpi_gpio'
|
31
Gemfile.lock
Normal file
31
Gemfile.lock
Normal file
@ -0,0 +1,31 @@
|
||||
GEM
|
||||
remote: https://rubygems.org/
|
||||
specs:
|
||||
daemons (1.3.1)
|
||||
eventmachine (1.2.7)
|
||||
mustermann (1.0.3)
|
||||
rack (2.0.6)
|
||||
rack-protection (2.0.5)
|
||||
rack
|
||||
rpi_gpio (0.3.3)
|
||||
sinatra (2.0.5)
|
||||
mustermann (~> 1.0)
|
||||
rack (~> 2.0)
|
||||
rack-protection (= 2.0.5)
|
||||
tilt (~> 2.0)
|
||||
thin (1.7.2)
|
||||
daemons (~> 1.0, >= 1.0.9)
|
||||
eventmachine (~> 1.0, >= 1.0.4)
|
||||
rack (>= 1, < 3)
|
||||
tilt (2.0.9)
|
||||
|
||||
PLATFORMS
|
||||
ruby
|
||||
|
||||
DEPENDENCIES
|
||||
rpi_gpio
|
||||
sinatra
|
||||
thin
|
||||
|
||||
BUNDLED WITH
|
||||
2.0.1
|
3
config.ru
Normal file
3
config.ru
Normal file
@ -0,0 +1,3 @@
|
||||
require File.expand_path '../main.rb', __FILE__
|
||||
|
||||
run Sinatra::Application
|
17
config.yml
Normal file
17
config.yml
Normal file
@ -0,0 +1,17 @@
|
||||
---
|
||||
chdir: "/home/pi/led-hands-pri"
|
||||
rackup: "/home/pi/led-hands-pri/config.ru"
|
||||
user: pi
|
||||
group: pi
|
||||
environment: development
|
||||
address: 0.0.0.0
|
||||
port: 3000
|
||||
timeout: 30
|
||||
log: "/home/pi/led-hands-pri/log/thin.log"
|
||||
pid: tmp/pids/thin.pid
|
||||
max_conns: 1024
|
||||
max_persistent_conns: 100
|
||||
require: []
|
||||
wait: 30
|
||||
threadpool_size: 20
|
||||
daemonize: true
|
17
main.js
17
main.js
@ -1,17 +0,0 @@
|
||||
let gpio = require('rpi-gpio')
|
||||
|
||||
const BLUE = 37
|
||||
const WHITE = 35
|
||||
const RED = 33
|
||||
const GREEN = 31
|
||||
const YELLOW = 29
|
||||
const LEDS = [BLUE, WHITE, RED, GREEN, YELLOW]
|
||||
|
||||
// gpio.setMode();
|
||||
gpio.setup(WHITE, gpio.DIR_OUT, gpio.write);
|
||||
// gpio.setup(BLUE, gpio.DIR_OUT, gpio.write);
|
||||
// gpio.setup(RED, gpio.DIR_OUT, gpio.write);
|
||||
// gpio.setup(GREEN, gpio.DIR_OUT, gpio.write);
|
||||
// gpio.setup(YELLOW, gpio.DIR_OUT, gpio.write);
|
||||
|
||||
gpio.write(WHITE, true);
|
18
package.json
18
package.json
@ -1,18 +0,0 @@
|
||||
{
|
||||
"name": "led-hands-pri",
|
||||
"version": "0.0.0",
|
||||
"description": "just an led service",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "ssh://git@git.markamoser.com:6791/mmoser/led-hands-rpi.git"
|
||||
},
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"rpi-gpio": "^2.1.3"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user