Go to advanced search

by dan11
Thu Sep 11, 2014 5:44 pm
Forum: Python
Topic: GUI in Python
Replies: 22
Views: 6486

Re: GUI

I only had a quick scan through the code, but it looks like the update_lcd() function is the one you want to modify? I guess just underneath the LCD.message(msg) you need to add a function which also displays 'msg' on screen? It isn't so easy. Because it is necessary to put the part of the function...
by dan11
Mon Sep 08, 2014 2:17 pm
Forum: Python
Topic: GUI in Python
Replies: 22
Views: 6486

Re: GUI

Unfortunately I'm not familiar with these libraries at all and cannot test the program. On a quick inspection it seems that LCD_QUEUE is a queue where you put items into it with LCD_QUEUE.put and get items with LCD_QUEUE.get. If you want to display what you put into the queue, probably the best thi...
by dan11
Mon Sep 08, 2014 11:59 am
Forum: Python
Topic: GUI in Python
Replies: 22
Views: 6486

Re: GUI

Here is my code: # -*- encoding: utf-8 -*- #!/usr/bin/python # IMPORTAMOS MÓDULOS from Adafruit_I2C import Adafruit_I2C from Adafruit_MCP230xx import Adafruit_MCP230XX from Adafruit_CharLCDPlate import Adafruit_CharLCDPlate from datetime import datetime from subprocess import * from time import slee...
by dan11
Mon Sep 08, 2014 11:35 am
Forum: Python
Topic: GUI in Python
Replies: 22
Views: 6486

Re: GUI

Here is a small sample program of writing text to the display: import pygame, sys WINDOWWIDTH = 620 WINDOWHEIGHT = 480 FONT_SIZE = 50 FONT_COLOR = (255,255,255) BG_COLOR = (0,0,0) POSITION = (int(WINDOWWIDTH/2.0), int(WINDOWHEIGHT/2.0)) pygame.init() screen = pygame.display.set_mode((WINDOWWIDTH, W...
by dan11
Mon Sep 08, 2014 10:05 am
Forum: Python
Topic: GUI in Python
Replies: 22
Views: 6486

Re: GUI

Hi guys! I want to improve my gui.

I would like to show the same messages that are shown in my LCD in my gui.

How I could do it? Any idea?

Thanks
by dan11
Sat Sep 06, 2014 10:56 am
Forum: Python
Topic: GUI in Python
Replies: 22
Views: 6486

Re: GUI

I solved the issue. I did this: • Create the folder home/pi/.config/lxsession/LXDE • In this folder put a file named autostart containing one line specifying the full path of the file to be executed: e.g. python /home/pi/pipresents/pipresents.py <options> • Make the autostart file executable by usin...
by dan11
Thu Sep 04, 2014 10:23 am
Forum: Python
Topic: GUI in Python
Replies: 22
Views: 6486

Re: GUI

Hi guys! I need some help again. If I run my program since terminal I dont have any problem all is working perfectly. But now I want to start automatically my script when I turn on my RPi, I have done it. But when I do it the pygame starts and I see the image of my LCD but RPi is very busy and the m...
by dan11
Wed Aug 27, 2014 8:48 am
Forum: Python
Topic: GUI in Python
Replies: 22
Views: 6486

Re: GUI

Thanks for your answers, the gui is working.

The clock object solved the issue and I've attached the gui code into the radio code and now all is running.

Thanks very much.
by dan11
Tue Aug 26, 2014 7:39 am
Forum: Python
Topic: GUI in Python
Replies: 22
Views: 6486

Re: GUI

Thanks for your reply Sleep. I know where I have to put the calls of the functions what I don't know exactly is what I've to write inside each function to achieve that clicking in the image will be the same that pushing the button on the lcd. Any help please? Because the function used only reads the...
by dan11
Mon Aug 25, 2014 8:41 pm
Forum: Python
Topic: GUI in Python
Replies: 22
Views: 6486

Re: GUI

I need some help please. Finally I've decided to do it like a pygame. My project uses the script of python of Sheldon: http://usualpanic.com/2013/05/raspberry-pi-plate-internet-radio/ Now I want to control it at the same time with the lcd or with the gui. I've created a code that shows a photo of th...
by dan11
Wed Aug 20, 2014 11:44 am
Forum: Python
Topic: GUI in Python
Replies: 22
Views: 6486

Re: GUI

AndrewS wrote:Have you looked at https://wiki.python.org/moin/TkInter yet :?:
Thanks. I'll see it. One more question, is possible to do what I want with Tkinter?
by dan11
Wed Aug 20, 2014 11:25 am
Forum: Python
Topic: GUI in Python
Replies: 22
Views: 6486

GUI in Python

Hi! I've been working in a project with my RPi. I've created a radio wifi that permits you to select between different countries playlist and you can control it with buttons and see it in a lcd. All is programmed in python and the python script is started when the RPi switches on. I would like to cr...
by dan11
Wed May 14, 2014 3:19 pm
Forum: Español
Topic: Raspberry altavoces Home cinema
Replies: 8
Views: 12230

Re: Raspberry altavoces Home cinema

Buenas, yo estoy trabajando con la RPi en un pequeño proyecto de radio. Hasta ahora la escuchaba a través de unos auriculares pero ahora me gustaría poder escucharla mediante un altavoz. Por lo que estoy buscando algún altavoz para conectar a la salida de audio de la RPi, si es posible del tamaño má...
by dan11
Mon May 12, 2014 4:36 pm
Forum: Graphics, sound and multimedia
Topic: Lunchbox Internet Radio Guide
Replies: 10
Views: 10491

Re: Lunchbox Internet Radio Guide

My problem is adding new radios to the playlist. If I add the three ones that you said to the usualpanic playlist it doesn't work. It only works the playlist from here to me:

http://www.raspberrypi.org/forums/viewt ... 51#p547551

Please, any help?
by dan11
Mon May 12, 2014 4:07 pm
Forum: General discussion
Topic: Small speaker
Replies: 4
Views: 4131

Small speaker

Hi!

I'm looking for a small speaker to connect to my RPi. I wish it was as small as possible. It'll connect to the audio jack output.

Any suggestion?

Thanks
by dan11
Thu May 08, 2014 4:37 pm
Forum: Graphics, sound and multimedia
Topic: Pi WiFi Radio ... again
Replies: 9
Views: 8189

Re: Pi WiFi Radio ... again

Hi!

I'm working in my own playlist and I want to know how to add the links of the most famous europe radios and the best spanish radios, I have to say that I'm spanish. I don't know how to add the links, where I can find them and which type of link must be.

Any help please?

Thanks
by dan11
Sun May 04, 2014 3:04 pm
Forum: Troubleshooting
Topic: wpa_gui Issue
Replies: 8
Views: 1588

Re: wpa_gui Issue

Up!! Please
by dan11
Thu May 01, 2014 5:35 pm
Forum: Troubleshooting
Topic: wpa_gui Issue
Replies: 8
Views: 1588

Re: wpa_gui Issue

Anyone can help please?
by dan11
Tue Apr 29, 2014 1:44 pm
Forum: Troubleshooting
Topic: wpa_gui Issue
Replies: 8
Views: 1588

Re: wpa_gui Issue

Anyone knows how to do it?

Thanks
by dan11
Mon Apr 28, 2014 2:30 pm
Forum: Troubleshooting
Topic: wpa_gui Issue
Replies: 8
Views: 1588

Re: wpa_gui Issue

Sounds like the wifi driver may not be loading when you boot. Edit: not right if the GUI can start the wifi Before you use the GUI to start your wifi what do commands lsusb and lsmod show? What is the output of file /etc/network/interfaces? You could try this command and see if it makes any differe...
by dan11
Thu Apr 24, 2014 4:24 pm
Forum: Troubleshooting
Topic: wpa_gui Issue
Replies: 8
Views: 1588

wpa_gui Issue

Hi, I'm working in a new project with my RPi. My internet connection is correctly configured with WI-PI internet usb and I've modified /etc/network/interfaces conveniently so I can connect to internet but I have a problem. When I enter to my RPi I have to push connect button in the wpa_gui menu and ...
by dan11
Mon Feb 17, 2014 9:35 am
Forum: Python
Topic: Symbol Degrees Celsius Python
Replies: 6
Views: 18444

Re: Symbol Degrees Celsius Python

supra wrote:It is chr(223)
This is the solution.

Thanks everyone.
by dan11
Fri Feb 14, 2014 12:15 pm
Forum: Python
Topic: Symbol Degrees Celsius Python
Replies: 6
Views: 18444

Re: Symbol Degrees Celsius Python

The Adafruit LCD seems to use a HD44780 compatible display - this supports an extended ASCII character set, not Unicode. It should have a '0' superscript character which you could use as the degree symbol. You should be able to print this character using chr(176) like this: lcd.message("Temperature...
by dan11
Fri Feb 14, 2014 9:45 am
Forum: Python
Topic: Symbol Degrees Celsius Python
Replies: 6
Views: 18444

Symbol Degrees Celsius Python

Hi! I'm working with the Adafruit 16x2 Character LCD + Keypad and the temperature sensor DS18B20. I want that temperature is shown in the LCD and I got it but I'm not able to shown ºC in the LCD. Temperature is shown with the next line: lcd.message("Temperature: \n"+ str(temp)+ " C") Temp is the tem...
by dan11
Thu Feb 13, 2014 10:23 am
Forum: Troubleshooting
Topic: RTC DS1307 I2C not detected
Replies: 16
Views: 3856

Re: RTC DS1307 I2C not detected

All right! Thanks everybody for his help.

Go to advanced search