Blinkit v1.4 | Philips Hue integration, Blink a lamp on new Upvotes, Followers and Posts
With this new update it is possible to blink a Philips Hue Lamp, new Upvotes will light up the lamp in green, and new Followers in blue, and on new Posts it will blink with red light.
The Philips Hue system works with a bridge that connects the lamps to your home network, beside controlling the lights with a app, the bridge can be send put, post, get commands, to be able to send and execute those commands a authorized user ID need to be created with the CLIP API Tool on your Bridge, this can be done by following this tutorial from Philips. Once the authorized user is created, the Bridge IP and ID can be copied and saved into the Blinkit interface and used to blink the Philips Hue light on new Upvotes, Followers and Posts.
Added Features:
Philips Hue integration for Blinkit
- Set/save IP of the Philips Hue Bridge (find the IP in the Philips Hue, Android or IOS app)
- Set/save the ID for the authorized user
- Set/save Blinklenght (0-11 seconds)
- Buttons to turn on and off, and blink the lights
- Buttons to start the upvotes, followers, posts script
- Blink Length slider
- Readme is updated with information about how to get the Authorized user ID
- Added Upvotes, Followers, Posts scripts that turn the light on in Green, Blue or Red
- Added settings files for the Philips Hue bridge IP and authorized user ID, and blink length
- Added blinkphilipshue.bat
- Added philipshuegreen.exe philipshueblue.exe philipshuered.exe and philipshueoff.exe
The executables make a put command to the Bridge and are made as well with VB.net:Public Class Form1 Dim lampstatus As String = "true" Dim IP As String = My.Computer.FileSystem.ReadAllText("C:\blinkit\config\philipshueip.txt") Dim ID As String = My.Computer.FileSystem.ReadAllText("C:\blinkit\config\philipshueid.txt") Dim colour As String = My.Computer.FileSystem.ReadAllText("C:\blinkit\config\philipshuegreen.txt") Dim lamp As String = 1 Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load Dim result As String Dim MyURL As String, postData As String Dim winHttpReq As Object winHttpReq = CreateObject("WinHttp.WinHttpRequest.5.1") MyURL = "http://" & IP & "/api/" & ID & "/lights/" & lamp & "/state" postData = "{""on"": " & lampstatus & " " & colour & " }" winHttpReq.Open("PUT", MyURL, False) winHttpReq.SetRequestHeader("Content-Type", "application/x-www-form-urlencoded") winHttpReq.Send(postData) result = winHttpReq.ResponseText Close() End Sub End Class
The above script is made in Visual Basic and used to build the .EXE files, the executable will use the saved Philips Hue settings: IP, ID and Colour to make PUT requests to the Philips Hue Bridge . The script is added into a text file next to the related executables, for me and others to tweak and reuse.
User Interface
- Sound module is resized
- Philips Hue module, next to the Sonoff module
Now with the new Philips Hue, and the previously added Sonoff Module, The interface is again getting a bit full, and to have maximum space for the improvements of already available and future features, the interface would need a redesign, and this will be my next point to focus on.
Suggestions are always welcome
- Interface ideas and examples
- What Smart lamps do you have and want to see added to Blinkit?
- What features do you want to see added ?
The following repositories are updated:
Blinkit VB .net source files
Blinkit software
Posted on Utopian.io - Rewarding Open Source Contributors
This is really a great work you are doing @techtek, new development
Thank you, more to come :)
really good work, have you been able to sell any of these?
Thank you, i don't sell the supported hardware, but i try to integrate popular (cheap) widely available hardware instead. maybe in the near future i will look into offering custom USB sticks with a bright LED, in exchange for Steem, but that's not a main purpose, but it is a option for the project, and is depending on the popularity of the project.
(The software is free and will always be free)
how much would the hardware cost? would it be worth your while setting them up and selling them for STEEM or SBD?
The custom Blinkit USB sticks would not cost much maybe around 15 - 20 euro +/- , the biggest investment / risk for me to start / preparing to sell a Blinkit Product would be, minimal order quantity of at least few honderd sticks as required by the manufacturer.
The other option is to look into less customized sticks, and basically buy them from the manufacturer of the shelve. (would result in a less functional / unique product) but minimum order quantity would be low.
The goal would than be to offer something similar looking to this:
you could see if people on steemit would pre-order them before you order them, that way you would not have a risk. i would buy one
Thanks that's nice to hear, i will look more into custom Blinkit Hardware, and how to bring life in that part of the project.
Until that moment you could search in shops / in your drawers for a regular USB stick with status light, Blinkit works with all brands and models.
(setup is as easy as download blinkit, plugin the stick in, select the drive letter, and press the upvotes, followers, posts buttons.)
you make it sound so easy :-)
Always standby to help :) , and in the future the interface will be less confusing :p
Too fun to make your house blink!!
Thanks again :) for trying the new features :)
Thank you for the contribution. It has been approved.
You can contact us on Discord.
[utopian-moderator]
Thank you for approving
Join our Discord Channel to connect with us and nominate your own or somebody else's posts in our review channel.
Help us to reward you for making it ! Join our voting trail or delegate steem power to the community account.
Your post is also presented on the community website www.steemmakers.com where you can find other selected content.
If you like our work, please consider upvoting this comment to support the growth of our community. Thank you.
Hey @techtek I am @utopian-io. I have just upvoted you!
Achievements
Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!
Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x