Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Is it possible to set a random wallpaper?

If you have a question or need help, this is the place to be.
Post Reply
ZaViper
Posts: 3
Joined: Tue Nov 04, 2014 4:22 am

Is it possible to set a random wallpaper?

Post by ZaViper »

On my phone with the help of the all mighty Tasker and plugins for it I can grab the current weather and use that information to change my wallpaper on my phone to a random wallpaper not only showing the current weather, but also deeps on if the sun is out or night time, or the season of the year like Fall or Spring, or if it's a holiday week/month. I have a ton of wallpapers in several folders to randomize it so I'll always see something new. I thought it would be cool if I can do the same thing on the desktop. I was thinking Eventghost must be able to do this. I began testing by sending a message to Eventghost with AutoRemote whenever Tasker updates weather information. I can easily set it up to change the wallpaper on the computer depending on the season, time of day, current weather, and if it's a holiday week or month - but I can only set it to one image for each. I'd like to open it up to randomly pick a wallpaper in a directory. I attempted this by having Tasker randomly pick a number 1 - 10 and then sending it to Eventghost along with the information I was telling it like "Weather[Fall/Evening/Cloudy]=:=8" and then when the Eventghost event "AutoRemote.message.Weather[Fall/Evening/Cloudy]" gets trigger I would have it set the wallpaper to C:/path to wallpapers/{eg.event.payload.arcomm}.jpg. Instead of setting the wallpaper to C:/path to wallpapers/8.jpg I get an error because it is trying to set it to C:/path to wallpapers/{eg.event.payload.arcomm}.jpg. Can anyone help me out with this?
ZaViper
Posts: 3
Joined: Tue Nov 04, 2014 4:22 am

Re: Is it possible to set a random wallpaper?

Post by ZaViper »

Where can I find it? I've only been able to find the one action were I can set a wallpaper but it only gives me the option to set just one wallpaper, not a folder were it will choose a random image in the folder.
z3us
Posts: 42
Joined: Fri Jul 29, 2011 2:35 am

Re: Is it possible to set a random wallpaper?

Post by z3us »

ZaViper wrote: I was telling it like "Weather[Fall/Evening/Cloudy]=:=8" and then when the Eventghost event "AutoRemote.message.Weather[Fall/Evening/Cloudy]" gets trigger I would have it set the wallpaper to C:/path to wallpapers/{eg.event.payload.arcomm}.jpg. Instead of setting the wallpaper to C:/path to wallpapers/8.jpg I get an error because it is trying to set it to C:/path to wallpapers/{eg.event.payload.arcomm}.jpg. Can anyone help me out with this?
It┬┤s the same path.
Did u try {eg.event.payload.arpar}?
ZaViper
Posts: 3
Joined: Tue Nov 04, 2014 4:22 am

Re: Is it possible to set a random wallpaper?

Post by ZaViper »

Thanks for the reply!

I tired "{eg.event.payload.arpar}" and that didn't work either. Eventghost tired to literally set the wallpaper to the file C:/path to wallpapers/{eg.event.payload.arpar}.jpg but there is no file named {eg.event.payload.arpar}.jpg. Eventghost wouldn't change {eg.event.payload.arcomm} or {eg.event.payload.arpar} into the random number it was when AutoRemote sent it to it.
Post Reply