Skip to content

Instantly share code, notes, and snippets.

View spect88's full-sized avatar

Tomasz Szczęśniak-Szlagowski spect88

View GitHub Profile
@spect88
spect88 / README.md
Last active April 10, 2021 09:56
Home Assistant + Nature Remo + Nitori ceiling lamp + Flic 2

This is a simplified explanation of the setup I'm using to get rid of the IR remote that came with my Nitori ceiling lamps.

The setup assumes:

  • I never touch the original IR remotes or the 'master' light switches (the ones that cut the power off)
  • I have internet access and Nature Remote Cloud API is working fine (yes, it's not a local setup).

Devices

  • 2x Nitori ceiling light with an IR remote allowing for brightness and color temperature control (similar to this)
  • 2x Nature Remo Mini
@spect88
spect88 / unicode_translator.rb
Created October 23, 2015 20:03
Translator of unicode regex ranges
#!/usr/bin/env ruby
# Prints what regex unicode ranges passed via STDIN actually mean
#
# Example input:
#
# [\u0021-\u0027\u002A-\u002E\u003F\u0041-\u005A\u005C\u005F-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]
#
# Output:
#