psieg / Lightpack

Lightpack and Prismatik open repository
GNU General Public License v3.0
1.58k stars 189 forks source link

Profile to make light color according to sun #615

Open ariefadha opened 3 months ago

ariefadha commented 3 months ago

is that possible to use clock to modify led color?

for example when 12 oclock leds are white, and when dawn leds are warm.

zomfg commented 2 months ago

you have 2 options:

ariefadha commented 2 months ago

you have 2 options:

  • write a plugin that does that (assuming you are just using static white light with lamp mode)
  • if on your system you use f.lux/redshift/nightshift/nightlight, in theory, in capture mode (and not lamp/music), it should try following the color temp of your screen

thanks for replying, but i dont know how to write the plugin, can you address me where I can learn that? or maybe example of plugin

zomfg commented 2 months ago

actually technically you can use any program/script that runs on it's own, watches the time (or whatever else) and gives to prismatik the new colors in prismatik you enable the API then you can use something like telnet to connect to it by hand and type commands (help will give you an idea of whats there) to try it out you have few old examples here on how to script it ruby example is straight to the point: you connect to the API via a socket and then send same commands as you do by hand via telnet above, that's it you can use any language as long as it's allowing you to do that