This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# /etc/init.d/garagerelay | |
# Carry out specific functions when asked to by the system | |
case "$1" in | |
start) | |
echo "Starting Relay" | |
/usr/local/bin/gpio write 7 0 | |
/usr/local/bin/gpio mode 7 out |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Requires | |
const express = require('express'); | |
const app = express(); | |
const path = require('path'); | |
const chalk = require('chalk'); | |
const { exec } = require('child_process'); | |
const morgan = require('morgan'); | |
//Static Routes | |
app.use('/dist', express.static(path.join(__dirname, 'dist'))); |