Skip to content

Instantly share code, notes, and snippets.

http://miot-spec.org/miot-spec-v2/instances?status=all
http://miot-spec.org/miot-spec-v2/instances?status=debug
http://miot-spec.org/miot-spec-v2/instances?status=released
and for example air purifier 3 cn (zhimi.airpurifier.ma4)
https://miot-spec.org/miot-spec-v2/instance?type=urn:miot-spec-v2:device:air-purifier:0000A007:zhimi-ma4:1
http://miot-spec.org/miot-spec-v2/instance?type=urn:miot-spec-v2:device:light:0000A001:philips-bulb:1
http://miot-spec.org/miot-spec-v2/instance?type=urn:miot-spec-v2:device:fan:0000A005:zhimi-sa1:1
@hpyhacking
hpyhacking / add_pinyin_to_vcard.rb
Last active February 6, 2022 13:09
Can use index by pinyin with English language setting on iPhone.
require 'rubygems'
require 'chinese_pinyin'
name = []
cp = false
def p(z)
pinyin = Pinyin.t(z, '')
pinyin[0] = pinyin[0].upcase
pinyin