Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
[RELEASE] Calendar (Script) for XBMC
#1
Thumbs Up 
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
Reply
#2
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>
Reply
#3
Thanks, i've saved it and will publish it in the next release
Reply
#4
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?
Reply
#5
dunno...

perhaps a traduction problem...

what is your platform?
Reply
#6
its Mac OS 10.6 running camelot 9.11, everything else works fine though
Reply
#7
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?
Reply
#8
could it be something to do with a "all day" event?
Reply
#9
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.
Image
_____________________________

Repositories Installer: select and install unofficial repositories / TAC.TV: watch videos on TAC.TV
Installer Passion-XBMC: Download and Install Add-ons (pre-Dharma only)

Image
Reply
#10
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?
Reply
#11
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.
Reply
#12
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...
Reply
#13
is possible synchronization with Microsoft Outlook or Exchange Server?
Reply
#14
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
Reply
#15
Thanks cinpou! waiting patiently!

Ilia
Reply

Logout Mark Read Team Forum Stats Members Help
[RELEASE] Calendar (Script) for XBMC1