Page 3 of 11 FirstFirst 12345 ... LastLast
Results 21 to 30 of 108

Thread: Google Calendar into Conky

  1. #21
    Join Date
    Aug 2008
    Beans
    34

    Re: Google Calendar into Conky

    Hi

    I followed this guide and was successful until I got here:

    In the script you need to set 1 variable, the file path to the text file that will hold the calendar data.
    Code:

    #!/bin/bash
    /usr/bin/gcalcli --nc agenda | tee /pathToTextFile/gcal.txt

    You need to cut and past the above code into a file called gcal.sh.
    Then you can run the script in a terminal by
    Code:

    sh /pathtoFolder/gcal.sh

    I am really a nooby. I created the file using gedit and changed the /pathToTextFile/ to /home. But then I could not get it to work. It kept saying .sh cannot open /home

    I know how to use Conky and have one running now. My problem seems to hinge on my not understanding or performing properly the steps laid out above.

    Thanks for any help.

  2. #22
    Join Date
    Mar 2008
    Beans
    4,715
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Google Calendar into Conky

    Change /pathToTextFile/ to /home/USERNAME/
    (where USERNAME is your username)

    Make a directory called bin in your home account (/home/USERNAME/bin).

    Save the script gcal.sh in /home/USERNAME/bin.

    Use gedit to either create or edit ~/.profile. Put these lines in ~/.profile:
    Code:
    PATH=$PATH:$HOME/bin
    export PATH
    Save and exit gedit.
    Log out. Log back in. This will make the change in PATH effective.
    From now on, whenever you type a command, ~/bin will be among the directories searched to find the executable. Thus you can just type the name of the script without the entire path and the script will execute.

    Make the script executable:
    Code:
    chmod +x ~/bin/gcal.sh
    Now to run the script simply type:
    Code:
    gcal.sh
    Last edited by unutbu; September 24th, 2008 at 03:41 AM.

  3. #23
    Join Date
    Jul 2005
    Beans
    740
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Google Calendar into Conky

    as mentioned above you need to use /home/username/gcal.txt

    You also don't have to edit the ~./profile
    if you are running the script file in cron using "/home/username/gcal.sh"

  4. #24
    Join Date
    Aug 2008
    Beans
    34

    Re: Google Calendar into Conky

    Hi again

    So, this is the output from the terminal:

    christian@christian-laptop:~$ gcalcli --nc agenda

    Wed Sep 24 10:00am Olin Music

    Thu Sep 25 12:00am 4:15pm - 5 Maya Ballet

    Fri Sep 26 8:30am pt Olin
    12:00pm Lunch with Guy Ortolano

    Sat Sep 27 2:00pm Maya Glass Palette

    Mon Sep 29 12:00am Rosh Hashana ends Oct 1

    christian@christian-laptop:~$ sudo gedit .gcal.sh.
    [sudo] password for christian:
    christian@christian-laptop:~$ sh /home/christian/gcal.sh
    sh: Can't open /home/christian/gcal.sh
    christian@christian-laptop:~$

    I created the script file and then renamed the txt file and then entered the command into the terminal. But what am I doing wrong? It's probably ovbious to well seasoned users, but not me. And I have no pride about this so point out the obvious! Thanks

  5. #25
    Join Date
    Mar 2008
    Beans
    4,715
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Google Calendar into Conky

    Try this:
    Code:
    sudo chown $USER:$USER .gcal.sh. # Makes you (the normal user) owner of the script
    mv .gcal.sh. gcal.sh             # Changes the name of the script to gcal.sh
    chmod +x gcal.sh                 # Makes sure the script is executable
    ./gal.sh                         # Runs the script
    Explanation:
    When you run
    Code:
    sudo gedit .gcal.sh.
    you are creating a file called ".gcal.sh." as root. So the file becomes owned by root.
    Also, the file should be called "gcal.sh", rather than ".gcal.sh."

  6. #26
    Join Date
    Aug 2008
    Beans
    34

    Re: Google Calendar into Conky

    Thanks!

    I think the problem was simply that I had added the . to the sh. I read your instructions to include the ., but it turns out it was just a period.

    I have included a screenshot of it working.
    Attached Images Attached Images

  7. #27
    Join Date
    Jul 2005
    Beans
    740
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Google Calendar into Conky

    Good to hear

  8. #28
    Join Date
    Aug 2008
    Beans
    34

    Re: Google Calendar into Conky

    Quote Originally Posted by unutbu View Post
    Try this:
    Code:
    sudo chown $USER:$USER .gcal.sh. # Makes you (the normal user) owner of the script
    mv .gcal.sh. gcal.sh             # Changes the name of the script to gcal.sh
    chmod +x gcal.sh                 # Makes sure the script is executable
    ./gal.sh                         # Runs the script
    Explanation:
    When you run
    Code:
    sudo gedit .gcal.sh.
    you are creating a file called ".gcal.sh." as root. So the file becomes owned by root.
    Also, the file should be called "gcal.sh", rather than ".gcal.sh."

    Hi again,

    I went to log on this evening and am locked in an infinite log in loop (right now I am in failsafe gnome). Could it be that following the above somehow changed my user status? If so, how do I undo the change? If not, any ideas as to what might have happened--the only changes I have made to the system are the ones followed here.

    Many thanks

  9. #29
    Join Date
    Aug 2008
    Beans
    34

    Re: Google Calendar into Conky

    And this is a message from syslog:

    Sep 25 19:14:26 christian-laptop gdm[6133]: WARNING: gdm_slave_xioerror_handler: Fatal X error - Restarting :0

  10. #30
    Join Date
    Sep 2008
    Beans
    1

    Smile Re: Google Calendar into Conky

    Quote Originally Posted by sweetthdevil View Post
    Well actually no, the problem come from the weather calendar I was using witinh my Google calendar, I deleted it, and is now working fine.

    Many thanks, great how to!
    I had the same problem too... The script worked fine after I deleted weather calendar.

    I wonder if that's because the weather calendar has a user id but no password?

Page 3 of 11 FirstFirst 12345 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •