Questions tagged [lifx]

LIFX (pronounced LIFE-X) is a WiFi enabled LED that's controllable via smart devices.

22 questions
11
votes
3 answers

Dart: HTTP GET with Header

I'm working on creating a Flutter application that works with LIFX. I'm trying to follow their instructions here, but I'm having issues adding a header to my HTTP GET request. TestHttpGet() async { var httpClient = new HttpClient(); var header =…
Altkey
  • 133
  • 1
  • 2
  • 6
4
votes
1 answer

C# LIifxNet Toggle Light Power, LIFX

I use a nuget package called LifxNet by dotMorten. I can change the color of the bulb and turn it on and off. I now want to have a button that toggles the power of a bulb. I am trying to use the method GetLightStateAsync() in order to check if the…
Tom upton
  • 41
  • 1
3
votes
0 answers

AllJoyn Android - LightingDirector crash when I run the demo twice (and the back key is pressed)

I am creating an Android app that uses AllJoyn to connect to a Lifx bulb and provides functionality to control this bulb. I used the tutorial app and the sample app from AllJoyn demonstrating their lightning sdk as a basis. When the app is loaded it…
vnsal
  • 31
  • 2
1
vote
1 answer

Trying to call Lifx API and getting Error in one case but not the other

Okay to save on space I will post pieces of the code. Secondly I am not a Python coder. I am usually C#. So I did my best especially when finding out there was no SWITCH STATEMENT. So I have one method in my class to talk to Lifx Cloud API and it…
Cubicle.Jockey
  • 3,288
  • 1
  • 19
  • 31
1
vote
1 answer

C++ curl POST for LiFx Control

I'm using curl with c++ to list all the bulbs successfully curl_easy_setopt(curl,CURLOPT_USERNAME, MY_API_key); curl_easy_setopt(curl, CURLOPT_URL, "https://api.lifx.com/v1beta1/lights/all/"); curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER,…
YMDW
  • 411
  • 1
  • 5
  • 16
1
vote
2 answers

LiFx HTTP API Request with PHP

long shot, but has anyone managed to get the LiFx API to work from php? I want to set-up a few simple commands from a web interface, posting to a php file, but I am not sure exactly how it all works. http://developer.lifx.com/ Their documentation…
Citris
  • 79
  • 1
  • 9
1
vote
1 answer

wireless communication with lifx virtual bulb

I saw LIFX Virtual Bulb the other day and am curious to know how does this communication take place... For those who don't know what is LIFX - it is a wireless RGB LED bulb which can be controlled via iPhone and Android app. If you don't have a bulb…
jainam
  • 363
  • 1
  • 6
  • 16
1
vote
2 answers

Arduino function to fade an RGB from one color to the next

For my Arduino project I have a Neopixel RGB Strip with 72 LED's. I can successfully change the colour of any of the LED's (at the moment I'm only setting the first one 0 for testing purposes) so I know my wiring isn't the problem here, it's my…
gotnull
  • 26,454
  • 22
  • 137
  • 203
1
vote
1 answer

Rendering partial that belongs to another controller

I've got a menu controller, which is set as my root controller in routes.rb. In my menu view, i try and render the _lights.slim partial with = render :partial => 'lights/lights' but i get the following error: undefined method `lights' for…
Chris
  • 7,830
  • 6
  • 38
  • 72
0
votes
1 answer

Insert msg.payload into LIFX Node as a value

I want to control the brightness of my LIFX bulb by injecting the value of a slider on my NodeRed Dashboard into the node-red-contrib-lifx-api node. I managed to control the light if I am using fixed values but somehow it won't take the msg.payload…
0
votes
1 answer

Which port to listen to after UDP Broadcast?

I am working with Smart Bulbs. They have a LAN protocol that allows to communicate with the devices. The first step is to discover all the devices on the network. Here in the documentation it says that i can broadcast a udp message at port 56700 and…
Untimely Answers
  • 512
  • 1
  • 6
  • 18
0
votes
0 answers

How to extract the connection from function with return in swift?

I am trying to connect with my smart lamp by LIFXClient framework, but unfortunately I do not understand how to use this library. The library looks very simple, here is link. I'm trying changing color by this function: LIFXClient.connect(host:…
Madrox24
  • 31
  • 1
  • 5
0
votes
0 answers

Searching nearby LifX Bulbs in Xamarin

I am working on a project to integrate light bulb controls using LifX. I tested out on the official Lifx app, it can scan on nearby lightbulbs that hasn't been added on its signed on account before. I would like to do the same. The most promising…
MetaSnarf
  • 5,857
  • 3
  • 25
  • 41
0
votes
0 answers

Connecting Lifx light with Python

Error importing class from installed package I've installed and reinstalled lazylights I've change import to the entire library, but then error: Lifx not defined when creating instance of the class from lazylights import Lifx import time lifx =…
Karen
  • 1
0
votes
1 answer

LIFX Z LAN - Lights don't respond when packets are sent quickly

So I've been trying to make a music visualizer that actually works in real-time. I've struggled a lot to get it to work, but then, yesterday, out of nowhere, it started working when I added a small delay after sending packets. I took it off and…
HoldenGs
  • 87
  • 2
  • 8
1
2