Skip to content

Instantly share code, notes, and snippets.

/*
Basic MQTT example
*/
#include <SPI.h>
#include <Ethernet.h>
#include <PubSubClient.h>
// Our first sensor, a cheap DHT11 temperature and humidty sensor
#include <DHT.h>
@balloob
balloob / MQTT_ESP8266_temperature_humidity.ino
Created June 20, 2016 04:11
Sketch for the ESP8266 to publish temperature and humidity values received from a DHT22 to MQTT
// Get ESP8266 going with Arduino IDE
// - https://github.com/esp8266/Arduino#installing-with-boards-manager
// Required libraries (sketch -> include library -> manage libraries)
// - PubSubClient by Nick ‘O Leary
// - DHT sensor library by Adafruit
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
#include <DHT.h>
@franga2000
franga2000 / Xiaomi YI.md
Last active May 14, 2024 20:17
Xiaomi Yi

Xiaomi Yi camera

General info

  • OS: Buildroot
  • CPU: ARMv6-compatible processor rev 5 (v6l)
  • BogoMIPS: 524.28
  • Memory: 37MB

The root filesystem is rootfs, which is stored in memory and therefore wiped on reboot. The Micro SD card is mounted at /tmp/fuse_d/. Something is also mounted at /tmp/fuse_a and /tmp/fuse_z.

@fpuga
fpuga / listado_grupos_tecnologia_galicia.csv
Last active June 17, 2017 15:26
Listado de Grupos y Asociaciones de Tecnología en Galicia
Nombre Twitter Web Contacto Zona Actividad
Ghandalf http://ghandalf.org http://www.ghandalf.org/contacto/ Galicia GUL
Galpón @galpon http://galpon.org galpon@listas.galpon.org Vigo GUL
gpul @gpul_ http://gpul.org http://lists.gpul.org/cgi-bin/mailman/listinfo/ Coruña GUL
O Zulo @ozulo http://www.comunidadeozulo.org/ https://groups.google.com/group/ozulo Mugardos GUL
Melisa http://webmelisa.es/ melisa.melide@gmail.com Melide GUL
BricoLabs @Brico_Labs http://bricolabs.cc/ contacto@bricolabs.cc Coruña Maker
Xeopesca @xeopesca http://xeopesca.com info@xeopseca.com Galicia GUL
Trasno @proxectotrasno http://trasno.gal/ Pontevedra GUL
Vigolabs @vigolabs http://vigolabs.gal/ http://vigolabs.gal/contact/ Vigo Maker
#
# CCS811_RPi
#
# Petr Lukas
# July, 11 2017
#
# Version 1.0
import struct, array, time, io, fcntl