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
package main | |
import ( | |
"fmt" | |
"github.com/google/go-github/github" | |
) | |
func main() { |
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 | |
if command -v nvm 1&>2 >/dev/null; then | |
if [ -f "$HOME/.nvmrc" ]; then | |
nvm use | |
echo -n "Using Node: `nvm current`" | |
else | |
echo -n "nvm installed but .nvmrc not found." | |
fi | |
else | |
echo -n "nvm not installed" |
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
cameras: | |
Exterior (South): | |
camera_id: hab_camera-1 | |
url : http://HOST:8091/?action=stream | |
low_image : http://HOST:8091/low.png | |
type : mjpeg-streamer | |
Exterior IR (South): | |
camera_id: hab_camera-2 | |
url : http://HOST:8090/?action=stream | |
low_image : http://HOST:8090/low.png |
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
package main | |
import ( | |
"encoding/json" | |
"io" | |
"io/ioutil" | |
"os" | |
"sort" | |
"time" |
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/sh | |
# Check for image directory and create it if it doesn't exist. | |
s=${0##*/} | |
image_dir="/tmp/${s%.*}" | |
if [ ! -d $image_dir ] | |
then | |
mkdir $image_dir | |
echo "Created $image_dir."; |
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
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"os" | |
log "github.com/Sirupsen/logrus" | |
MQTT "github.com/eclipse/paho.mqtt.golang" | |
) |
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
package main | |
import ( | |
"fmt" | |
"encoding/json" | |
"os" | |
"time" | |
MQTT "github.com/eclipse/paho.mqtt.golang" | |
) |
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
[Unit] | |
Description=mjpg-streamer | |
[Install] | |
WantedBy=multi-user.target | |
[Service] | |
Type=oneshot | |
RemainAfterExit=yes | |
ExecStart=/opt/mjpg-streamer/mjpg-streamer-experimental/mjpg-streamer.sh |
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
[Unit] | |
Description=Mosquitto MQTT Broker daemon | |
ConditionPathExists=/etc/mosquitto/mosquitto.conf | |
After=network.target | |
Requires=network.target | |
[Service] | |
Type=forking | |
RemainAfterExit=no | |
StartLimitInterval=0 |