• Stars
    star
    109
  • Rank 319,077 (Top 7 %)
  • Language
    Swift
  • License
    GNU General Publi...
  • Created over 9 years ago
  • Updated about 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Control LIFX lights from your Mac via a Notification Center Widget

Lighting: Control LIFX lights from your Mac GitHub release GitHub license

A macOS widget for controlling LIFX lights via the LIFX HTTP API. Built on top of LIFXHTTPKit.

Note: This is not an official LIFX project.

Installation

Requires macOS 10.12 Sierra, 10.11 El Capitan, or 10.10 Yosemite.

  1. Download the latest zip file, extract the binary, and drag into your Application folder.
  2. Open "Lighting.app" and login with your personal access token.
  3. Open Notification Center and add the "Lighting" widget.

Alternatively, you can install via Homebrew-Cask.

$ brew cask install lighting

Development

First, you need the following system dependencies:

  • Swift 3.0 (Xcode 8.3)
  • macOS 10.10+
  • Carthage

Then, install the application dependencies:

$ carthage bootstrap --platform Mac

Finally, build the "Main" or "Widget" target.

Main target

The main target is responsible for configuring the access token. It notifies the widget when the access token changes.

  1. Open Lighting.xcodeproj
  2. Select "Main > My Mac"
  3. Run

Widget Target

The widget target implements a view controller conforming to NCWidgetProviding for toggling lights on and off.

  1. Open Lighting.xcodeproj
  2. Select "Widget > My Mac"
  3. Run
  4. Pick "Widget Simulator" when prompted to run the application

Special Thanks

Thanks to the following people for helping to improve this project:

Copyright

Following files, directories and their contents are copyright Webalys Limited. You may not reuse anything therein without purchasing a license:

  • Main/Images.xcassets/logged-in-icon-success.imageset/Icons-48px.png
  • Main/Images.xcassets/logged-in-icon-success.imageset/[email protected]

All other files and directories are copyright Tate Johnson and licensed under the GPLv3 license. See LICENSE.

More Repositories

1

delayed-web

A rails engine that provides a simple web interface for exposing the Delayed::Job queue.
Ruby
74
star
2

conformist

Bend CSVs to your will with declarative schemas.
Ruby
60
star
3

LIFXHTTPKit

A nice iOS/watchOS/macOS framework for interacting with the LIFX HTTP API that has no external dependencies.
Swift
40
star
4

simple_mock

A fast, tiny hybrid mocking library.
Ruby
37
star
5

tatey.com

This is data for my website. It is automatically generated by Jekyll into a static site.
HTML
26
star
6

jekyll_plugins

Collection of useful plugins for Jekyll.
Ruby
22
star
7

lifx-homekit-raspberry-pi

Turn a Raspberry Pi into a HomeKit bridge for LIFX lights
Shell
21
star
8

img2base64

CLI tool to convert image to base64 encoded string for markdown
Ruby
17
star
9

porth

Plain Old Ruby Template Handler
Ruby
16
star
10

jquery-zoomabletype

Mac OS X’s “Show in Large Type” for jQuery
JavaScript
14
star
11

lifx-http-client-ruby

A nice Ruby client for the LIFX HTTP API that has no external dependencies.
Ruby
13
star
12

desktoppr-chrome

Chrome Extension for Desktoppr
JavaScript
13
star
13

quotes

Quotes is a Sinatra application for browsing and submitting IRC quotes.
JavaScript
11
star
14

translink

Scrapes public transport data from TransLink into GTFS
Ruby
9
star
15

aviary

Aviary generates a static photo gallery using Twitter
Ruby
7
star
16

maps.antennamate.com

Find and link to terrestrial television transmitters in your browser. An AngularJS + Lineman project.
JavaScript
6
star
17

NextStop

An iPhone app that alerts you when it's time to hop off at the right stop.
Objective-C
4
star
18

posts

An example RubyMotion app using Storyboarding.
Ruby
4
star
19

iuri

Build complex URIs with chainability and immutability. No string concatenation required.
Ruby
3
star
20

ansible-rails

Provision and manage a solo server suitable for deploying a Ruby on Rails application on Ubuntu 12.04 LTS.
Shell
3
star
21

helpling

Helpers you wish were built into RSpec's request specs. Compatible with Rails and Rack.
Ruby
3
star
22

dotfiles

These are my dotfiles. There are many like them, but these ones are mine.
Shell
2
star
23

quiethub-chrome

Chrome extension that hides badges and broadcasts when you're logged in on GitHub.
2
star
24

nix_rails_example

A minimal example to get up and running with Ruby on Rails 7 and Ruby 3 in Nix
Ruby
2
star
25

list_of_baby_names

A list of baby names given to tiny humans in Ruby
Ruby
1
star
26

designate

A short hand for turning instance methods into a one-liner for service-type classes.
Ruby
1
star
27

rack-cloudflare

Ruby
1
star
28

bootstrap_form

A very simple form builder for rails that makes few assumptions about your markup.
Ruby
1
star
29

trace_privately

A robust and fully featured key server for the TracePrivately iOS app
Ruby
1
star