Skip to content

Instantly share code, notes, and snippets.

View luisgcu's full-sized avatar

luisgcu luisgcu

View GitHub Profile
@luisgcu
luisgcu / README.md
Created May 10, 2020 18:18 — forked from keymon/README.md
Simple bash script to wire up Grafana 2.x with InfluxDB 0.8

Simple bash script to wire up Grafana 2.x with graphite and add dashboards

This Bash script exposes a few functions to create a Grafana data source, like graphite.

Also allows to upload some dashboards.

Usage

version: '2.1'
services:
grafana:
container_name: grafana
image: proxx/grafana-armv7
user: "1000"
ports:
- 3000:3000
volumes:
- /opt/grafana:/etc/grafana:rw
@luisgcu
luisgcu / home-assistant_nodered_mqtt.yml
Created September 4, 2019 01:57 — forked from Red5d/home-assistant_nodered_mqtt.yml
docker-compose file for setting up homeassistant, node-red, and mqtt services
version: "3"
services:
homeassistant:
image: homeassistant/home-assistant
ports:
- "8123:8123"
- "3218:3218"
volumes:
- /opt/docker/home-assistant:/config
- /etc/localtime:/etc/localtime:ro
@luisgcu
luisgcu / rgb_spectrum.c
Created February 17, 2019 19:48 — forked from jimsynz/rgb_spectrum.c
Arduino sketch to cycle an RGB LED through the colour spectrum.
const int redPin = 11;
const int greenPin = 10;
const int bluePin = 9;
void setup() {
// Start off with the LED off.
setColourRgb(0,0,0);
}
void loop() {
@luisgcu
luisgcu / rpi3_iot_server.md
Created December 1, 2018 00:58 — forked from xoseperez/rpi3_iot_server.md
Raspberry Pi 3 with Mosquitto, Node-RED, InfluxDB, Grafana and Nginx (as a reverse proxy)
@luisgcu
luisgcu / README.md
Created November 15, 2018 03:50 — forked from hofmannsven/README.md
My simply MySQL Command Line Cheatsheet
@luisgcu
luisgcu / mqtt_tls_working.ino
Created August 18, 2018 18:44 — forked from eLement87/mqtt_tls_working.ino
ESP8266 Secure MQTT Connection with Client Certificate Authentication
#include <FS.h>
#include <ESP8266WiFi.h>
#include <WiFiClientSecure.h>
#include <PubSubClient.h>
#include <time.h>
// Insert your FQDN of your MQTT Broker
#define MQTT_SERVER "mqtt.srvx1.local"
const char* mqtt_server = MQTT_SERVER;