Blinkit v1.3 | Sonoff integration, Blink the lights in your house on new Upvotes, Followers and Posts

in #utopian-io7 years ago (edited)

image.png

This new updated version of Blinkit makes it possible to blink a regular light in your house when new Upvotes, Followers, and Post are detected.

(The previous versions of Blinkit could already blink USB sticks status LEDs and give a sound notification when new Upvotes, Followers and Posts are detected.)


To blink a light in your house with Blinkit, you do need to have a 5$, Sonoff Wifi smart switch, they are very cheap, popular and widely (online) available, for example on DealExtreme, Aliexpress, Banggood, and you would need to put the latest Tasmota firmware on it. (which is a must, to have running on them because of all the extra features it offers compared to the stock firmware that runs on it)

image.png


image.png


Blink a regular light bulb

How is it implemented ?

The most popular custom firmware for Sonoff smart switches is Theo Arends, Tasmota firmware, his firmware is free available for a wide variate of models (30+/-) his firmware makes it possible for the Sonoff to accept direct commands send to it by URL:

http://192.168.1.123/cm?cmnd=

http://192.168.1.123/cm?cmnd=power%20on
http://192.168.1.123/cm?cmnd=power%20off
http://192.168.1.123/cm?cmnd=power%20toggle

Blinkit makes use of this function to send the On, Off, and Toggle commands to the Wifi connected Sonoff switch.

image.png


Features of the newly added Sonoff module in Binkit:

  • IP / Hostname of your Sonoff switch can be typed in and saved
  • The light connected to your Sonoff switch can be switched On and Off with the buttons
  • The blink length can be set with a slider, and saved by the user (0-11 sec)
  • The blink button can be used to test the saved blink settings. (it will toggle the light, a toggle is used because the light could already be On, for normal use or be Off because not in use)
  • Blink the light when new Steem Upvotes, Followers and Posts are detected for a specified user.

image.png
Blinkit interface v1.3, with the newly added Sonoff module

image.png
Script that toggles the Sonoff: blinksonoff.bat

Files that where added/updated:

  • form1.vb (The interface is updated)

  • blinksonoff.bat is added (this script toggles the Sonoff device, and waits for X seconds and toggles it back into the previous state)

  • upvotessonoff.bat is added (this script watches for new Upvotes and when found calls blinksonoff.bat)

  • followerssonoff.bat is added (this script watches for new Followers and when found calls blinksonoff.bat)

  • postssonoff.bat is added (this script watches for new posts and when found calls blinksonoff.bat

The following repositories are updated:

VB .net source files

Github commit

Blinkit software

Github Commit



Blinkit is open source and free to download

Your input and suggestions are always welcome and will help to improve Blinkit, What features do you want to see integrated?

Do you have suggestions on improving the .bat scripts that look for new Votes, Followers, and Posts or suggestions on improving the the interface ?

Do you have a Sonoff switch?
What USB sticks do you have laying around, and does it have a status LED?
Do you have smart light bulbs in your house?


ezgif.com-optimize (7).gif
- New Upvotes and Follows on my account will Blink the light in my room, give it a try and blink the light?

- Search your drawers for a USB stick (and/or order a Sonoff) and start blinking your own lights on Steem related actions with Blinkit!



Posted on Utopian.io - Rewarding Open Source Contributors



Sort:  

Postingan yang sangat bagus