Skip to content

Instantly share code, notes, and snippets.

View rantanlan's full-sized avatar

rantanlan

View GitHub Profile
def get_wantedlist_from_couch(couchurl)
api_call = "movie.list/?status=active"
couchurl = couchurl + api_call
puts "talking to couch using this call: " + couchurl.to_s
urlresponse = RestClient.get(couchurl)
puts "couch reponse code: " + urlresponse.code.to_s
wanted_response = Hashie::Mash.new (JSON.parse(urlresponse.body))
return wanted_response
end
adb shell content query --uri content://settings/secure --where "name=\'android_id\'"
adb shell content delete --uri content://settings/secure --where "name=\'android_id\'"
adb shell content insert --uri content://settings/secure --bind name:s:android_id --bind value:s:7373de1e9e9670c2
@rantanlan
rantanlan / zha-moes-zigbee-rotary-smart-knob.yaml
Last active February 8, 2025 16:41 — forked from blizzrdof77/zha-moes-zigbee-rotary-smart-knob.yaml
ZHA - Moes Tuya Smart Knob (TS004F) controller for lights
blueprint:
name: ZHA - Moes Tuya Smart Knob (TS004F) controller for lights
description: Control lights with a Moes Tuya smart knob (the spinny ones). You can set functions for single press, and rotating left/right will change the brightness smoothly of the selected light.
domain: automation
source_url: https://gist.github.com/rantanlan/84c91cdc781192f41efff0f4ac275065
input:
remote:
name: Remote
description: Moes Tuya Smart Knob Device to use
selector: