Kodi Community Forum
[RELEASE] Calendar (Script) for XBMC - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Program Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=151)
+---- Thread: [RELEASE] Calendar (Script) for XBMC (/showthread.php?tid=66339)

Pages: 1 2 3 4 5 6


[RELEASE] Calendar (Script) for XBMC - cinpou - 2010-01-07

Yo!

I present you a script to show your local (.ics), web (.ics), and Google Calendar.

This script support english and french language.

You can also configure the script to set Sunday the first week day.

Final release will contain an event editor.

Download


Image


- rgf21 - 2010-01-07

Here is a Portuguese translation if you want:

Code:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<strings>
  <!--MAIN MENU -->
  <string id="0">Calendário</string>
  <string id="1">Actualizar</string>
  <string id="2">Eventos</string>
  <string id="3">Calendários</string>
  <string id="4">Sair</string>
  <!--SUB MENU -->
  <string id="10">Mostrar Calendário</string>
  <string id="11">Adicionar Calendário</string>
  <!--Titles -->
  <string id="20">HOJE</string>
  <string id="21">MOSTRAR CALENDÁRIO</string>
  <string id="22">ADICIONAR CALENDÁRIO</string>
  <!--Dialog -->
  <string id="30">A carregar calendários...</string>
  
  <!--Calendars months -->
  <string id="101">Janeiro</string>
  <string id="102">Fevereiro</string>
  <string id="103">Março</string>
  <string id="104">Abril</string>
  <string id="105">Maio</string>
  <string id="106">Junho</string>
  <string id="107">Julho</string>
  <string id="108">Agosto</string>
  <string id="109">Setembro</string>
  <string id="110">Outubro</string>
  <string id="111">Novembro</string>
  <string id="112">Dezembro</string>
  <!--Calendars days -->
  <string id="121">Segunda</string>
  <string id="122">Terça</string>
  <string id="123">Quarta</string>
  <string id="124">Quinta</string>
  <string id="125">Sexta</string>
  <string id="126">Sabado</string>
  <string id="127">Domingo</string>
  <!--Calendars days abr-->
  <string id="131">seg.</string>
  <string id="132">Ter.</string>
  <string id="133">Qua.</string>
  <string id="134">Qui.</string>
  <string id="135">Sex.</string>
  <string id="136">Sab.</string>
  <string id="137">Dom.</string>
  <!--Calendars colors-->
  <string id="141">Vermelho</string>
  <string id="142">Rosa</string>
  <string id="143">Violeta</string>
  <string id="144">Purpura</string>
  <string id="145">Azul-Marinho</string>
  <string id="146">Azul</string>
  <string id="147">Ciano</string>
  <string id="148">Verde</string>
  <string id="149">Lima</string>
  <string id="150">Laranja</string>
  <string id="151">Castanho</string>
  
  <!--Show Events Panel -->
  <string id="1210">Hoje</string>
  <string id="1211">até</string>
  <string id="1212">Todo o dia</string>
  
  <!--Add Calendar Panel -->
  <string id="1220">Título :</string>
  <string id="1221">Cor :</string>
  <string id="1222">Tipo :</string>
  <string id="1223">Caminho :</string>
  <string id="1224">Conta :</string>
  <string id="1225">Calendário :</string>
  
  
  <!--OPTIONS MENU STRING -->
  <string id="30001">Semana começa ao Domingo</string>
</strings>



- cinpou - 2010-01-07

Thanks, i've saved it and will publish it in the next release


- Ilia - 2010-01-07

great script!

I have an issue though, on some date for the google calendar I get:
PHP Code:
ERRORException in python script's onAction
20:43:40 T:2956161024 M:670470144  NOTICE: Traceback (most recent call last):
20:43:40 T:2956161024 M:670470144  NOTICE:   File "/Users/home/Library/Application Support/XBMC/scripts/Calendar/default.py", line 535, in onAction
20:43:40 T:2956161024 M:670470144  NOTICE: if action == ACTION_PREVIOUS_MENU :
20:43:40 T:2956161024 M:670470144  NOTICE:   File "/Users/home/Library/Application Support/XBMC/scripts/Calendar/default.py", line 855, in onClick
20:43:41 T:2956161024 M:670461952  NOTICE: self.returnListEvents()
20:43:41 T:2956161024 M:670461952  NOTICE:   File "/Users/home/Library/Application Support/XBMC/scripts/Calendar/default.py", line 434, in returnListEvents
20:43:41 T:2956161024 M:670461952  NOTICE: length = "%s" ( self.Language.getLocalizedString(1212) )
20:43:41 T:2956161024 M:670461952  NOTICE: TypeError
20:43:41 T:2956161024 M:670461952  NOTICE: :
20:43:41 T:2956161024 M:670461952  NOTICE: '
str' object is not callable 

any suggestions?


- cinpou - 2010-01-07

dunno...

perhaps a traduction problem...

what is your platform?


- Ilia - 2010-01-08

its Mac OS 10.6 running camelot 9.11, everything else works fine though


- cinpou - 2010-01-08

there's some problem in Linux, but i've found correction... for the next release

for MacOS, i can't test, and i don't understand the error...

any specialist in the place?


- Ilia - 2010-01-08

could it be something to do with a "all day" event?


- Temhil - 2010-01-08

Hum, I would check the string.xml, it seems the call "self.Language.getLocalizedString(1212)" does not return a string (possibly 'None'?) and that raise an exception.


- cinpou - 2010-01-08

yo Temhil!

Nice to read you in an other language!

i've tested the script in french and english, and there's no problem for me.
do you understand the error? what is it for?


- Ilia - 2010-01-08

have you tried it with a google calendar with a "all day event" this is what is not working for me. All other events are good. Am not sure if its system/xbmc related.


- cinpou - 2010-01-09

yep, it work for me with all day events

i will try to touch a mac before the next beta, but i can't promise...


- SGCZ - 2010-01-09

is possible synchronization with Microsoft Outlook or Exchange Server?


- cinpou - 2010-01-10

yo!

i've find the bug Ilia; Correction in the next beta.

sorry SGCZ, microsoft exchange support is not in my roadmap, for three reasons : i can't test it, it's a very close format, and there's lot of tools to synchronize outlook and gmail


- Ilia - 2010-01-10

Thanks cinpou! waiting patiently!

Ilia