Git Product home page Git Product logo

cinnamon_applets's Introduction

World Clock Calendar

UUID: [email protected]

A fork of the Cinnamon calendar applet with support for displaying multiple timezones.

Current Version: 1.2 (2015-08-26).

World Clock Calendar Screenshot

Features:

Notes:

  • The times and dates will be formatted according to the system locale settings, specifically LC_TIME (as with the default Calendar applet). If you wish to change this, you can use (e.g.) sudo update-locale LC_TIME=zh_TW.UTF-8 (you will need to log out and in again for changes to take effect).

Version History:

  • v1.2 (2015-08-26) -- update support for more environments, including multiple distinct instances of the applet.
  • v1.1 (2014-12-18) -- first Cinnamon 2.4 compatible version.
  • v1.0 (2013-08-28) -- rewrite to update to Cinnamon 2.0 support, and move to the Cinnamon 1.8+ settings api.
  • v0.6 (2013-06-25) -- minor optimization.
  • v0.5 (2013-06-23) -- Updated to use GLib.DateTime and TimeZone to handle the timezone conversion (credit to Maciej Katafiasz, a.k.a. mathrick).
  • v0.4 (2012-12-25) -- Updated to use GSettings (now updates automatically when the settings are changed, without the need to restart Cinnamon).
  • v0.3 (2012-12-20) -- fix to work with older versions of GLib (e.g. on Fedora 17). Thanks to Pulsar.
  • v0.2 (2012-12-12) -- Initial release.

Credits:

  • Clem and the Mint Team for the original calendar applet
  • mbokil for the idea and code to move the "Date and Time Settings" to a right-click menu.
  • Maciej Katafiasz, a.k.a. mathrick for the overdue update to GLib for the timezone handling.
  • gsmcmullin for code updates

cinnamon_applets's People

Contributors

gsmcmullin avatar mathrick avatar simonwiles avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cinnamon_applets's Issues

Clock does not update

After latest upgrade on Fedora 24 clock does not update. It seems a problem only with this applet, as you can see default clock applet works as expected. Right one is World Clock Calendar (it is stopped) and left one is Cinnamon clock.

os: Fedora 24
version: Cinnamon 3.2.2

image

Cinnamon 2.4 Compatibility Issue

On a test machine with Mint 17 I have just upgraded to Cinnamon 2.4. World Clock Calendar fails to load. Error importing applet.js: calendar.js:3, applet.js:22

I haven't looked into this much yet, but suffice to say it didn't handle the upgrade from 2.2 to 2.4 very nicely.

Default clock does not update the time on panel

Everything works well except the default clock on the main panel
The time does not get updated regularly, hanging periodically at the wrong time.
As image below shows, time on panel should be the same as time below, (1.45 and not 1.11):
Image of panel

Does not handle 24 hour time

Hi,

With the standard clock, I can check configure the Date and Time settings and select 'use 24h clock'.

Unfortunately when using the World clock, that settings is not listened to.

Thanks,
Anand

World Clock causes CPU spikes and UI freezes

I'm seeing periodic (~1s) short freezes of everything on screen when World Clock applet is enabled. It's not hugely noticeable when say browsing, but annoying when watching video, and a deal breaker for games. The same does not happen when using the stock calendar applet.

Since the freezes happen every second, it's fairly obvious that the applet is doing something to tie up Cinnamon's UI in the refresh function.

not showing alternate times

I have added a couple of world times to this applet however it does not show them in either the tooltip nor the box that pops up when you click the time on the panel. It looks just like the stock Calendar applet clock in fact.

Not working with cinnamon 3.0.x

When I try to add this applet to my Cinnamon 3.0.x installation on Fedora 23 I get nothing on the panel and the Looking Glass Log says:

error t=2016-06-21T23:46:48Z No signal 'notify-resume' on object 'UpClient'

Is this applet being maintained or has it been abandoned? Notice that the last commit was almost a year ago now.

Ability to set time relative to UTC

I would like to add Chennai India. There is not standard code for UTC+5:30. It would be nice to just specify a timezone offset as an alternative to the code.

Hour off for Hawaii Standard time

The stock cinnamon clock applet shows Hawaii time properly, (the system clock setting) but the world clock applet is an hour behind, I think because it is computing daylight savings time, which we do not have in Hawaii. Otherwise it is a fantastic applet, just can't replace my stock clock with it yet. If the image works, the stcok clock is on the right side of the panel with the correct time, the world clock on the left with the hour-off time.
screenshot-area-2014-06-13-192549

Arch Linux Compatibility Issue (Cinnamon 2.4.5 and Python 3.4.2)

Does not launch when running Cinnamon 2.4.5 on Arch Linux (running Python 3.4.2-1).

Looking Glass says that the applet loads properly:
info t=2014-12-22T18:37:21Z Loaded applet [email protected] in 23 ms

However, the applet doesn't show up in the panel.

Meanwhile, the following has already been configured, as per Simon's previous suggestion:

  1. The top line in "/.local/share/cinnamon/applets/[email protected]/world_clock_calendar_settings.py" has been changed to:

    !/usr/bin/env python2

  2. Line number 254 in "/.local/share/cinnamon/applets/[email protected]/applet.js" has been edited to:
    Util.spawnCommandLine("/usr/bin/env python2 " + APPLET_DIR + "/world_clock_calendar_settings.py");

Global times not displaying correctly

Freshly installed build of 1.1 from the cinnamon spices page.

I added UTC to the list of world clocks I'd like to display, but it doesn't appear in the list.

I also tried this with Europe/London and it didn't work either.

Screenshot

It's probably worth noting that I havne't restarted cinnamon since I installed the applet. Maybe cinnamon restart is required to run correctly?

Any plans to integrate new calendar/planner support?

As the title says:
Are you planning to merge the new features added to the default Cinnamon calendar applet? (shipped with Mint 20.3)
It would be great to have scheduled events and timezone clocks in one applet.

sorry if this is the wrong place for feature requests

Applet makes gwendal-lebihan's cinnamon 2.0.2 crash

I run Ubuntu precise (don't ask), and cinnamon installed from gwendal-lebihan's repo. World Clock Calendar is installed via cinnamon-settings. A few days ago, cinnamon in the repo was updated to 2.0.2-20131011040307-precise. Since then, it segfaults as long as the World Clock Calendar is enabled.

I'll be happy to collect and send more details if necessary, tell me what would you need.

World Clocks Don't Show - Mint13 Cinnamon 2.0

This applet is a must have, but unfortunately I can't get the world clocks to show in Cinnamon 2.0 / Mint 13. I do have the 1.0 version of the applet, installed via Cinnamon Settings / Applets module.

Here is a screen shot of my world clock settings:
screenshot from 2013-12-18 11 46 05

And here is a screen shot of the calendar:
work_001

I had tried clearing out ~/.cinnamon/configs/[email protected] so it would re-generate, but no success.

Any other troubleshooting advice welcomed. Thanks again for a great applet.

Can't change Timezone on Fedora 18

When trying to change the timezone of a world clock (world_clock_calendar_settings.py), I get the following Gtk errors:

(world_clock_calendar_settings.py:14068): Gtk-CRITICAL **: gtk_widget_get_style_context: assertion `GTK_IS_WIDGET (widget)' failed

(world_clock_calendar_settings.py:14068): Gtk-CRITICAL **: gtk_style_context_add_class: assertion `GTK_IS_STYLE_CONTEXT (context)' failed

(world_clock_calendar_settings.py:14068): Gtk-CRITICAL **: gtk_cell_area_activate_cell: assertion `GTK_IS_CELL_EDITABLE (editable_widget)' failed

Applet incompatible with Cinnamon 2.0

Using the official Cinnamon 2.0 Stable PPA (https://launchpad.net/~gwendal-lebihan-dev/+archive/cinnamon-stable) and Mint 15, I can't get the World Clock applet to run. It fails with this error:

JS ERROR: !!!   WARNING: 'assignment to undeclared variable mountedDirList'
JS ERROR: !!!   WARNING: file '/home/xxx/.local/share/cinnamon/applets/multicore-sys-monitor@ccadeptic23/DataProviders.js' line 390 exception 0 number 156
JS ERROR: !!!   Exception was: Error: No JS module 'calendar' found in search path
JS ERROR: !!!     message = '"No JS module 'calendar' found in search path"'
JS ERROR: !!!     fileName = '"/home/xxx/.local/share/cinnamon/applets/[email protected]/applet.js"'
JS ERROR: !!!     lineNumber = '19'
JS ERROR: !!!     stack = '"@/home/xxx/.local/share/cinnamon/applets/[email protected]/applet.js:19

Add Keybinding To Open/Close Applet

Title says it all. Would be nice to be able to use a shortcut to open and close the applet for those of us less inclined to mouse use. I've only been able to find one resource for adding keybindings but I was unable to make it work. This applet also has a functioning keybinding. Thanks for the useful applet!

After restarting cinnamon, calendar doesn't display anything.

After running cinnamon --replace the calendar applet doesn't load correctly.

Instead of displaying a date, it doesn't show anything. To get it to show up again, I went into it's settings, cleared the Date format field and replaced it with my custom date format (%F %T). After doing this it loaded correctly.

Merge world clock into stock Cinnamon

Clem has said he'd like to merge it into stock and use it as the basis for further work. Would you mind rebasing it onto [email protected] and making a pull request?

<mathrick> clem: would you be very opposed to merging
           https://github.com/simonwiles/cinnamon_applets into stock? It's
           just stock calendar applet + world clock, which is a very handy
           function a lot of people use
<clem>     mathrick: no, it looks good
<mathrick> clem: cool. Simon is online right now (I've just talked
           with him), so if you shot him a message, I'm sure he'd
           be thrilled to see it merged :)
<clem>     I'd change a few things probably
<mathrick> oh?
           * mathrick is all ears
<clem>     I'd also look into the possibility to merge weather in
      there
<mathrick> yeah
<clem>     not saying it would fit but it's worth considering
<mathrick> that was something I wanted to do later
<mathrick> the old GNOME applet had local weather and I miss it
           all the time
<mathrick> world clock + world weather is supremely useful

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.