Skip to content

Instantly share code, notes, and snippets.

View jorgeassuncao's full-sized avatar

Jorge Assunção jorgeassuncao

  • Lisbon, Portugal
View GitHub Profile
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
[
{
"id": "1e661f9e.f2684",
"type": "schedex",
"z": "24273f3e.4e1ef",
"name": "",
"suspended": false,
"lat": "38.782591",
"lon": "-9.322595",
"ontime": "",
@jorgeassuncao
jorgeassuncao / ESP_Energy_Monitor_MQTT.ino
Last active January 23, 2019 19:19
ESP_Energy_Monitor_MQTT
/**
* This script is based on these sources:
*
* To count pulses using interruptions: https://github.com/mysensors/MySensors/blob/master/examples/EnergyMeterPulseSensor/EnergyMeterPulseSensor.ino
* To connect to Wifi and publish MQTT messages: https://github.com/knolleary/pubsubclient/blob/master/examples/mqtt_esp8266/mqtt_esp8266.ino
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 2 as published by the Free Software Foundation.
*