Theme change on-the-fly (variables based on date and time of the day, weather, etc.)?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Mntz Offline
Skilled Skinner
Posts: 193
Joined: Dec 2004
Reputation: 0
Location: Belgium
Question  Theme change on-the-fly (variables based on date and time of the day, weather, etc.)?
Post: #1
I think you all know the clocks/lights with colored led's that change color every now and then.
Is it, at the moment, possible to create this effect in xbmc?
I have this idea to bring skins more alive.
For example take the Zest mockups.
At noon you would see
[Image: homemock.jpg]

and in the evening/at night you would get
[Image: homemockwinter.jpg]

So the skin changes automatically with the hour.
find quote
Jezz_X Offline
Team-XBMC Skinner
Posts: 5,289
Joined: Jun 2006
Reputation: 57
Location: Earth
Post: #2
Probably easily done with an auto run script at the start but you would still notice it reloading
find quote
Nuka1195 Offline
Skilled Python Coder
Posts: 3,910
Joined: Dec 2004
Reputation: 18
Post: #3
Couldn't the script just change a skin setting.

If the skin was designed right. Then it should be seemless.

For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
find quote
MikeBeecham Offline
Team Plex
Posts: 987
Joined: Apr 2007
Post: #4
hmmm pretty interesting idea. What would be nice would be to have the colours fade from one to the other, instead of a quick snap change?

Possibilities for the future, perhaps?
find quote
Freddo Offline
Skilled Skinner
Posts: 489
Joined: Apr 2004
Reputation: 13
Post: #5
or make time a visability condition, that'd do it, and the skin could change in realtime too.
find quote
aka013 Offline
Junior Member
Posts: 16
Joined: Apr 2007
Reputation: 0
Location: SD
Post: #6
Great Idea. You should give the option to change by night and day but also in smaller increments like OS X. Every 10 minutes or so. Kind of like a slide show. Again Great Idea. Smile
find quote
Gamester17 Offline
Team-XBMC Forum Moderator
Posts: 10,523
Joined: Sep 2003
Reputation: 10
Location: Sweden
Lightbulb  Automaticly change theme based on time-of-day (and/or the weather)...
Post: #7
it be cool to have it based on the time-of-day, (or way cool; the weather), so it gets lighter color themes during the day and darker color skin during the evening and even darker during the night, (if it could be tied into the weather it should automaticly change to a lighter skin if it is sunny outside and a darker one if it is raining, and could have like a white theme if it was snowing, all to 'set the mood' based on the weather)

Rolleyes
find quote
MikeBeecham Offline
Team Plex
Posts: 987
Joined: Apr 2007
Post: #8
this would be such a great interactive function of the skin...probably something that no-one else does.

I hope a coding brain can get round this?
find quote
Gamester17 Offline
Team-XBMC Forum Moderator
Posts: 10,523
Joined: Sep 2003
Reputation: 10
Location: Sweden
Post: #9
if JM or someone implements something like this then hope it gets added via the Built In Functions API (xbmc/Util.cpp) and/or the HTTP API (xbmc/lib/libGoAhead/XBMChttp.cpp) so not only skinners could use it but python and web-interface scripters can use it as well

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
MikeBeecham Offline
Team Plex
Posts: 987
Joined: Apr 2007
Post: #10
it would be especially good for skins that have total colour changes, as opposed to just elements that change colour, such as buttons, etc.

Mntz is right about looking at skins, such as Zest, clearity, etc because it is feasible to create different colour schemes easily for them which would work in conjunction with the time-fade
find quote
Gamester17 Offline
Team-XBMC Forum Moderator
Posts: 10,523
Joined: Sep 2003
Reputation: 10
Location: Sweden
Lightbulb   
Post: #11
...just 'simple' colordefuse and fading transitions based on time-of-day and/or weather would also be nice IMHO

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
Asteron Offline
"Skilled" Python Coder
Posts: 928
Joined: Feb 2004
Reputation: 0
Post: #12
Im pretty sure this can be done right now with multiple images with diffferent visibility conditions (same fading animation) along with a python script that runs on a timer that manages the skin settings. Even changing font colors could be done by fading between overlapping label controls (with only one visible at a time).

Might not be the most memory efficient though... and the skin xmls would get alot bigger (mostly copy and paste). If an image control is completely faded out does it still take memory?

I'm not sure if its possible for a skin to start a script at startup... anyone know?
(This post was last modified: 2007-07-19 19:32 by Asteron.)
find quote
dinkelheimer Offline
Junior Member
Posts: 36
Joined: Mar 2006
Reputation: 0
Location: Canada
Post: #13
I think this sounds like a really interesting idea. Having XBMC change the hue/color of skin elements based on time would be really cool.. I leave my Xbox on most of the time and it'd be really neat to see some of the skin elements change throughout the day.

Other cool possibilities related to this idea:

Hard drive space color change based on amount of free space in file manager [or better yet, have files that are large be brighter than those that are smaller]
List of movies could change color (or brightness) based on rating [movies with a higher rating would be brighter than those with lower ratings]

I just thought I'd throw some ideas out, I'm really excited to see where this goes. Keep up the good work guys!

James
find quote
Asteron Offline
"Skilled" Python Coder
Posts: 928
Joined: Feb 2004
Reputation: 0
Post: #14
Actually the cleanest/easiest way to do this is to have a new visibility condition that takes a time/date range as an argument.
find quote
d4rk Offline
Team-XBMC Developer
Posts: 499
Joined: May 2007
Reputation: 1
Location: Albuquerque
Post: #15
The PS3's Cross Media Bar changes color not only based on time of day, but also month of the year:

http://en.wikipedia.org/wiki/Cross_Media...tion_3_XMB
find quote
Post Reply