XBMC Community Forum  

Go Back   XBMC Community Forum > Help and Support > Plugin/Script (Python) Help and Support

Plugin/Script (Python) Help and Support Python requests/suggestions, support, bugs, and everything python goes in here!
Please, add platform prefix to threads that are not platform-independent!:
Thread prefixes; "[LINUX]", "[LIVE]", "[MAC]", and "[WINDOWS]"

Reply
 
Thread Tools Search this Thread Display Modes
Old 2010-01-07, 00:02   #1
cinpou
Junior Member
 
Join Date: Feb 2009
Posts: 29
cinpou is on a distinguished road
Thumbs up [RELEASE] Calendar (Script) for XBMC

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


cinpou is offline   Reply With Quote
Old 2010-01-07, 00:34   #2
rgf21
Junior Member
 
Join Date: Dec 2008
Posts: 25
rgf21 is on a distinguished road
Default

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>
rgf21 is offline   Reply With Quote
Old 2010-01-07, 08:51   #3
cinpou
Junior Member
 
Join Date: Feb 2009
Posts: 29
cinpou is on a distinguished road
Default

Thanks, i've saved it and will publish it in the next release
cinpou is offline   Reply With Quote
Old 2010-01-07, 10:46   #4
Ilia
Senior Member
 
Join Date: Dec 2008
Posts: 137
Ilia is on a distinguished road
Default

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?
Ilia is offline   Reply With Quote
Old 2010-01-07, 16:56   #5
cinpou
Junior Member
 
Join Date: Feb 2009
Posts: 29
cinpou is on a distinguished road
Default

dunno...

perhaps a traduction problem...

what is your platform?
cinpou is offline   Reply With Quote
Old 2010-01-07, 23:32   #6
Ilia
Senior Member
 
Join Date: Dec 2008
Posts: 137
Ilia is on a distinguished road
Default

its Mac OS 10.6 running camelot 9.11, everything else works fine though
Ilia is offline   Reply With Quote
Old 2010-01-08, 01:55   #7
cinpou
Junior Member
 
Join Date: Feb 2009
Posts: 29
cinpou is on a distinguished road
Default

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?
cinpou is offline   Reply With Quote
Old 2010-01-08, 02:12   #8
Ilia
Senior Member
 
Join Date: Dec 2008
Posts: 137
Ilia is on a distinguished road
Default

could it be something to do with a "all day" event?
Ilia is offline   Reply With Quote
Old 2010-01-08, 05:52   #9
Temhil
Skilled Python Coder
 
Temhil's Avatar
 
Join Date: Apr 2008
Location: Canada
Posts: 268
Temhil is on a distinguished road
Default

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.
__________________

_____________________________
Installer Passion-XBMC: download and install scripts, plugin, skins ans scrapers
TAC.TV / ArtePLUS7 / NABBOX

Temhil is offline   Reply With Quote
Old 2010-01-08, 07:15   #10
cinpou
Junior Member
 
Join Date: Feb 2009
Posts: 29
cinpou is on a distinguished road
Default

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?
cinpou is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 17:16.


Protected by Akismet, We recommend WordPress blogs
Copyright © 2010, XBMC Project