Script (Linux) for Daily Zaishen

lorazcyk

lorazcyk

Krytan Explorer

Join Date: Jul 2007

guildwiki.org/User:Lorazcyk

Mo/

Edit:
Nevermind, did it myself. See below.


Quote:
Looking for someone to make me a shell/python/whatever script (I use Linux) that fetches info from
http://wiki.guildwars.com/wiki/Daily_activities

And writes in a text file, in separate lines:
Today's ZMission
Today's ZVanquish
Tomorrow's ZMission
Tomorrow's ZVanquish

I want to use it on my conky, but I can take care of that part.
Thank you... if you want payment of some sort, please send me a private message.


Here's how I did it:




Replace USERNAME with your unix username in this file:
http://pastie.org/pastes/3082285/text
Save the file to /home/USERNAME/.conky/conky_zaishen.sh and make it executable with chmod +x /home/USERNAME/.conky/conky_zaishen.sh

On your .conkyrc, add this:
Code:
${color2}${hr}${color}
${execi 2024   ~/.conky/conky_zaishen.sh}
${color1}Today's Zaishen:${color}
${execi 2024 sed -n '763p' ~/.conky/conky_zaishen/zaishen-data}  &  ${execi 2024 sed -n '802p' ~/.conky/conky_zaishen/zaishen-data}

${color1}Tomorrow:${color}
${execi 2024 sed -n '867p' ~/.conky/conky_zaishen/zaishen-data}  &  ${execi 2024 sed -n '906p' ~/.conky/conky_zaishen/zaishen-data}

Use at your own risk, I have only used it since this moment and I don't know if it will work day after day.

I just modified the weather script (written by this guy).

I guess this post is now more appropriate at the Community Works subforum :P