Skip to content

Instantly share code, notes, and snippets.

View placidorevilla's full-sized avatar

Plácido Revilla placidorevilla

View GitHub Profile
diff -uNr googlecl-0.9.13.orig/src/googlecl/picasa/service.py googlecl-0.9.13.new/src/googlecl/picasa/service.py
--- googlecl-0.9.13.orig/src/googlecl/picasa/service.py 2011-03-26 03:03:35.000000000 +0100
+++ googlecl-0.9.13.new/src/googlecl/picasa/service.py 2013-06-06 17:42:26.521465995 +0200
@@ -105,10 +105,10 @@
if photo_title or query or force_photos:
uri = '/data/feed/api/user/' + user
if query and not album_entry:
- entries = self.GetEntries(uri + '?kind=photo&q=' + query, photo_title)
+ entries = self.GetEntries(uri + '?kind=photo&imgmax=d&q=' + query, photo_title)
else:
@placidorevilla
placidorevilla / tuyadimmer_lightoutput.h
Last active July 13, 2020 12:15
Prototype esphome component for Tuya Dimmer
#pragma once
#include "esphome.h"
using namespace esphome;
enum TuyaCmd : uint8_t {
HEARTBEAT = 0x00,
QUERY_PRODUCT = 0x01,
MCU_CONF = 0x02,
WIFI_STATE = 0x03,
#GPIO0 Long Press MCU
#GPIO14 Green LED
#GPIO1 UART TX
#GPIO3 UART RX
esphome:
board_flash_mode: dout
includes:
- custom/tuyadimmer_lightoutput.h