Be able to control MiLight bulbs with Amazon Alexa via the MiLight Wifi Bridge.
- At least one MiLight Bulb: http://www.limitlessled.com/shop/rgbw-color-led-light-bulb/
| In shell: | |
| export RUBYLIB=/path/to/RubyMine/rb/testing/patch/common:/path/to/RubyMine/rb/testing/patch/bdd | |
| spring rspec spec/ # to launch spring server | |
| In Rubymine: | |
| Uncheck bundler | |
| Select custom runner script as spring_rspec.rb | |
| add same variable to environment variables: | |
| RUBYLIB=/path/to/RubyMine/rb/testing/patch/common:/path/to/RubyMine/rb/testing/patch/bdd |
| var myApp = angular.module('myApp').service('CordovaNetwork', ['$ionicPlatform', '$q', function($ionicPlatform, $q) { | |
| // Get Cordova's global Connection object or emulate a smilar one | |
| var Connection = window.Connection || { | |
| "CELL" : "cellular", | |
| "CELL_2G" : "2g", | |
| "CELL_3G" : "3g", | |
| "CELL_4G" : "4g", | |
| "ETHERNET" : "ethernet", | |
| "NONE" : "none", | |
| "UNKNOWN" : "unknown", |
| # Encoding: utf-8 | |
| # | |
| # idle.rb | |
| # | |
| # goal: | |
| # Ruby script to test how to fetch IMAP mails with IDLE mode. | |
| # IMAP IDLE allow a sort of "push" / "real-time" delivery. | |
| # | |
| # I used the script to test LATENCY (end-to-end delivery times) |
| -- Create a group | |
| CREATE ROLE readaccess; | |
| -- Grant access to existing tables | |
| GRANT USAGE ON SCHEMA public TO readaccess; | |
| GRANT SELECT ON ALL TABLES IN SCHEMA public TO readaccess; | |
| -- Grant access to future tables | |
| ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO readaccess; |
Be able to control MiLight bulbs with Amazon Alexa via the MiLight Wifi Bridge.
| package main | |
| import ( | |
| "fmt" | |
| "net/http" | |
| "sort" | |
| "time" | |
| ) | |
| // a struct to hold the result from each request including an index |
| FROM arm32v6/alpine | |
| RUN apk add --no-cache dnsmasq | |
| EXPOSE 53/tcp \ | |
| 53/udp \ | |
| 67/udp | |
| ENTRYPOINT ["dnsmasq", "--no-daemon", "--user=dnsmasq", "--group=dnsmasq"] |
| #!/usr/bin/env bash | |
| # | |
| # This script was created to flash firmwares for the MK2, MK3 and the MMU2, | |
| # all from the command line of your OctoPrint installation. | |
| # | |
| # The script assumes that you have avrdude and jq installed on your raspbian and that you | |
| # have filled the API key below. | |
| # | |
| # Usage: flash.sh mk2|mk3|mmu2 firmware.hex |