Go to advanced search

by camolas
Sat May 17, 2014 1:52 pm
Forum: Python
Topic: is possible to add the weather in python xbmc script?
Replies: 6
Views: 1716

Re: is possible to add the weather in python xbmc script?

Hi, This is my script (addon): import calendar import time import datetime import sys import os import xbmc import xbmcgui import xbmcaddon import threading import serial import string import os ACTION_PREVIOUS_MENU = 10 ACTION_SELECT_ITEM = 7 ACTION_BACKSPACE = 92 ## TEXT_ALIGN_LEFT = 0 TEXT_ALIGN_...
by camolas
Sat May 17, 2014 1:42 am
Forum: Python
Topic: is possible to add the weather in python xbmc script?
Replies: 6
Views: 1716

Re: is possible to add the weather in python xbmc script?

Hi,

I want to import the weather from xbmx "system" <include>Weather</include> in home.xls skin and add in a python script gui. That means i want to import a <include>CommonTopBar</include> like in skin and creat in my script gui

Thanks
by camolas
Fri May 16, 2014 6:15 pm
Forum: Python
Topic: is possible to add the weather in python xbmc script?
Replies: 6
Views: 1716

is possible to add the weather in python xbmc script?

Hi, It is possible to add the weather like in home.xls from sckin to my script that have a gui? <include>CommonTopBar</include> <include>CommonBackgroundOverlay</include> <include>XbmcLogo</include> <include>Time</include> <include>Weather</include> Thanks
by camolas
Wed Apr 30, 2014 2:39 pm
Forum: Python
Topic: importing a "command button" from one scrip to the other?
Replies: 3
Views: 3650

Re: importing a "command button" from one scrip to the other

Hi Many thanks for helping me :) its so nice to learn 1st script #!/usr/bin/env python import serial import time import string import os import script2 myTBO = script2.TBOPlayer() myTBO.aa() 2sc script (named script2) #! /usr/bin/python class TBOPlayer: def __init__(self): print"ffff" def ...
by camolas
Tue Apr 29, 2014 4:42 pm
Forum: Python
Topic: importing a "command button" from one scrip to the other?
Replies: 3
Views: 3650

Re: importing a "command button" from one scrip to the other

Hi, Where is a more simple way from what i need help 1st script: #!/usr/bin/env python import serial import time import string import os import aa aa.TBOPlayer.aa() 2sc script: #! /usr/bin/python # Written by Dan Mandle http://dan.mandle.me September 2012 # License: GPL 2.0 class TBOPlayer: print&qu...
by camolas
Mon Apr 28, 2014 3:14 pm
Forum: Python
Topic: Time display on xbmc ??
Replies: 8
Views: 3171

Re: Time display on xbmc ??

[quote="bboyandru"]Hi! Camolas, here is an example of how can you create a continuous loop, using a new python thread: import datetime import xbmcgui import xbmcaddon import threading import time ACTION_PREVIOUS_MENU = 10 ACTION_SELECT_ITEM = 7 ACTION_BACKSPACE = 92 addon = xbmcaddon.Addon...
by camolas
Sat Apr 26, 2014 7:58 pm
Forum: Python
Topic: importing a "command button" from one scrip to the other?
Replies: 3
Views: 3650

importing a "command button" from one scrip to the other?

Hi, I need help on importing a "command button" action from one script to the other. My problem is that the command ( def play(self):) is in class TBOPlayer: import pexpect import re from threading import Thread from time import sleep class OMXPlayer(object): _FILEPROP_REXP = re.compile(r&...
by camolas
Thu Apr 03, 2014 7:03 pm
Forum: Python
Topic: Bluetooth serial freezing
Replies: 23
Views: 5227

Re: Bluetooth serial freezing

Please explain it better and i will try to hellpe
by camolas
Thu Apr 03, 2014 6:43 pm
Forum: Python
Topic: Bluetooth serial freezing
Replies: 23
Views: 5227

Re: Bluetooth serial freezing

My idea is to use minicom -s to connect to lego bt and send the commands and see if you can communicate without any freezing
by camolas
Thu Apr 03, 2014 5:52 pm
Forum: Python
Topic: Bluetooth serial freezing
Replies: 23
Views: 5227

Re: Bluetooth serial freezing

try minicom -s set the serial device to be /dev/rfcomm0 (see in /etc/bluetooth/rfcomm.conf if is rfcomm0) and see if it works from there
by camolas
Thu Apr 03, 2014 2:50 pm
Forum: Python
Topic: Bluetooth serial freezing
Replies: 23
Views: 5227

Re: Bluetooth serial freezing

are you using a usb bt or this serial? http://blog.miguelgrinberg.com/post/a-c ... spberry-pi
by camolas
Thu Apr 03, 2014 2:40 pm
Forum: Python
Topic: Bluetooth serial freezing
Replies: 23
Views: 5227

Re: Bluetooth serial freezing

The easy way is to buy a serial bt module for the pi and use it in python as serial port i have one and it works. You need to test your setup with a different bt device to see if the problem is from pi or lego... try to use a phone with bt serial port or bt gps...
by camolas
Thu Apr 03, 2014 2:23 pm
Forum: Python
Topic: Bluetooth serial freezing
Replies: 23
Views: 5227

Re: Bluetooth serial freezing

I dont have one to try :( , can you try with a PC or something else to see if the problem is the same?
by camolas
Thu Apr 03, 2014 2:15 pm
Forum: Python
Topic: Bluetooth serial freezing
Replies: 23
Views: 5227

Re: Bluetooth serial freezing

What device are you connecting to?
by camolas
Thu Apr 03, 2014 12:48 pm
Forum: Python
Topic: Bluetooth serial freezing
Replies: 23
Views: 5227

Re: Bluetooth serial freezing

Hi,

Can you please explain me how you setup the bt usb for serial port? You are communicate with kind of device ?
Im trying to communicate to a android phone but no success, i will try to help you after you explain me your setup

Bye
by camolas
Wed Mar 05, 2014 6:33 pm
Forum: Python
Topic: Time display on xbmc ??
Replies: 8
Views: 3171

Re: Time display on xbmc ??

Hi,

Thankz for the help i will try to find a away to

Bye
by camolas
Tue Mar 04, 2014 11:11 pm
Forum: Python
Topic: Time display on xbmc ??
Replies: 8
Views: 3171

Re: Time display on xbmc ??

Hi,

Thanks i will move to xbmc python forum, i dont now how to loop can you help?

Thanks all
by camolas
Mon Mar 03, 2014 6:57 pm
Forum: Python
Topic: Time display on xbmc ??
Replies: 8
Views: 3171

Time display on xbmc ??

Hi, Im very noob in programming for xbmc, im trying to display time clock in xbmc but the time dont update ever second its get stoped. import calendar import datetime import sys import os import xbmc import xbmcgui import xbmcaddon import socket import serial import time import Tkinter as tk from Tk...
by camolas
Mon Feb 17, 2014 2:04 am
Forum: HATs and other add-ons
Topic: Raspberry + dongle 3G Huawei E220 orange France
Replies: 2
Views: 7329

Re: Raspberry + dongle 3G Huawei E220 orange France

Hi,

I have tha same dongle working fine using sakis3g but firset you need to disable the dongle auto-boot.

Bye
by camolas
Sun Dec 29, 2013 11:17 pm
Forum: Python
Topic: using a imported code to work in the "main" code ?
Replies: 2
Views: 616

using a imported code to work in the "main" code ?

Hi,

I need hellp on creating a "dependent" code to work with the "main" when asked. I have tryed this:

Main

Code: Select all

 from dependent import *

while True:
	print g 
	time.sleep(10) 
dependent:

Code: Select all

 def er():   
    g =  1
Please help me i cant put this to work

Thanks
by camolas
Wed Dec 11, 2013 5:54 pm
Forum: Other projects
Topic: Airplay Mirroring finally works on Raspberry Pi
Replies: 858
Views: 408589

Re: Airplay Mirroring finally works on Raspberry Pi

Hi,

Can i please test it with my TMN (Portuguese) sof stone andriod?

camolas71@gmail.com

Thanks
by camolas
Thu Nov 14, 2013 8:49 pm
Forum: Python
Topic: press a button on Tk and "erase" a photoimage?
Replies: 9
Views: 1790

Re: press a button on Tk and "erase" a photoimage?

Touch working now not all keys for the time because i do not have time to do it all :D but you can use this pin number 3388 and then the key image erase and more code will be add... #!/usr/bin/env python # -*- coding: utf-8 -*- import serial import time import datetime import Tkinter as tk from Tkin...
by camolas
Sat Nov 09, 2013 5:01 pm
Forum: Python
Topic: press a button on Tk and "erase" a photoimage?
Replies: 9
Views: 1790

Re: press a button on Tk and "erase" a photoimage?

Hi, Many thanks for you help. it's very good to learn new thinks :) thanks for providing that to me Working code: #!/usr/bin/env python # -*- coding: utf-8 -*- import serial import time import datetime import Tkinter as tk from Tkinter import * y = 0.64 # INDASH 0.84 class ScreenClass(object): def _...
by camolas
Thu Nov 07, 2013 5:32 pm
Forum: Python
Topic: press a button on Tk and "erase" a photoimage?
Replies: 9
Views: 1790

Re: press a button on Tk and "erase" a photoimage?

Can you post a simple code example ? im new to Python pleassse

thanks

Go to advanced search