Go to advanced search

by dj_janker
Sun Oct 18, 2015 12:28 pm
Forum: Python
Topic: Sending attached images (last 5 created) by e-mail
Replies: 10
Views: 3227

Re: Sending attached images (last 5 created) by e-mail

finally I´m trying to use this script: #!/usr/bin/env python # encoding: utf-8 """ python_3_email_with_attachment.py Created by Robert Dempsey on 12/6/14. Copyright (c) 2014 Robert Dempsey. Use at your own peril. This script works with Python 3.x NOTE: replace values in ALL CAPS with your own values...
by dj_janker
Sun Oct 18, 2015 7:12 am
Forum: Python
Topic: Sending attached images (last 5 created) by e-mail
Replies: 10
Views: 3227

Sending attached images (last 5 created) by e-mail

Hi, I´m noob in python and I need to create a script to send the last 5 snapshots created by a external camera by email. I find in google this code that I think it´s possible to adapt it to my need. import smtplib from email.MIMEMultipart import MIMEMultipart from email.MIMEText import MIMEText from...
by dj_janker
Fri Oct 09, 2015 11:01 am
Forum: Español
Topic: arrancar jivelite en cada inicio
Replies: 2
Views: 515

Re: arrancar jivelite en cada inicio

Espero que te sirva: https://blog.gilyes.com/pi-squeeze-setup/ Un saludo. Precisamente por ese tutorial me he estado intentado guiar, pero a parte de no funcionar para la instalación, ya que alguno de los pasos no funciona, por lo que tuve que recurrir al post que indico más arriba, no consigo hace...
by dj_janker
Fri Oct 09, 2015 4:51 am
Forum: Español
Topic: arrancar jivelite en cada inicio
Replies: 2
Views: 515

arrancar jivelite en cada inicio

Hola, estoy intentando hacer un reproductor con una Rpi+Touchscreen de 3,5". Para ello uso squeezelite y Jivelite. Por si sirve de información la pantalla y el tactil funcionan bien (me aparece el escritorio de raspbian). Para instalar Jivelite he seguido el post nº 3 de este hilo: http://forums.sli...
by dj_janker
Fri Sep 18, 2015 11:28 am
Forum: Python
Topic: DHT11 readings onto a web page!
Replies: 254
Views: 77903

Re: DHT11 readings onto a web page!

Okay I forget that I add a parameter to select DHT11 or DHT22. I tought it was obvious :? Use this instead probe = DHT22.sensor(pi,SENSOR_GPIO) or use my python script, not Joan, and just change the first line #est-ce un DHT11 ou DHT22 ISDHT11 =False "#est-ce un DHT11 ou DHT22" means "is it a DHT11...
by dj_janker
Fri Sep 18, 2015 11:07 am
Forum: Python
Topic: DHT11 readings onto a web page!
Replies: 254
Views: 77903

Re: DHT11 readings onto a web page!

Hi, I need to modify this code to use with a DHT22, what´s must I change? Nothing! I slightly modified Joan's code for the DHT11 . Just import Joan's python class instead of mine in the main python script and it should work. No, in the code of my last post, I receive a error in line21, when I try t...
by dj_janker
Fri Sep 18, 2015 6:21 am
Forum: Python
Topic: DHT11 readings onto a web page!
Replies: 254
Views: 77903

Re: DHT11 readings onto a web page!

The best way will be to left the DHT22.py alone and create a new script. This way the DHT22.py will be an import . A class object and you could build with it. Create a new script in the same directory where DHT22.py is. Be sure that it is the original DHT22.py file. nano readDHT.py #!/usr/bin/pytho...
by dj_janker
Fri Aug 07, 2015 11:06 am
Forum: Español
Topic: Insertar Whatsapp (yowsup) en crontab
Replies: 3
Views: 2372

Re: Insertar Whatsapp (yowsup) en crontab

Hola, Podrías hacer lo siguiente: sudo nano /etc/init.d/yowsupscript Guardarlo con Ctrl + O y Salir con Ctrl + X Hacerlo ejecutable , sudo chmod 755 /etc/init.d/yowsupscript Registrarlo , sudo update-rc.d yowsupscript defaults Y probarlo, sudo reboot Saludos @raspdroid: Este es el mensaje que recib...
by dj_janker
Thu Aug 06, 2015 3:33 pm
Forum: Español
Topic: Insertar Whatsapp (yowsup) en crontab
Replies: 3
Views: 2372

Insertar Whatsapp (yowsup) en crontab

Hola, he instalado whatsapp en mi Rpi, usando yowsup (ver siguiente tutorial https://jadasupport.wordpress.com/2015/04/25/rf-switch-con-raspberry-y-arduino-via-whatsapp/ ). El caso es que funciona muy bien, pero hay que iniciar el servicio a mano cada vez que se reinicia la Rpi. cd /home/pi/yowsup y...
by dj_janker
Sat Jul 18, 2015 4:37 pm
Forum: Español
Topic: Sonido por HDMI y BT a la vez?
Replies: 1
Views: 545

Sonido por HDMI y BT a la vez?

Hola tengo una Rpi que uso con Kodi, y a veces quiero oir música online en otras habitaciones y/o patio, por lo que tengo que dejar la tv encendida y dale mucho volumen... :lol: :lol: :lol: Sería posible de que funcione simultáneamente el sonido en la tv a través del hdmi y a través de unos altavoce...
by dj_janker
Sat Jun 06, 2015 6:03 am
Forum: Python
Topic: python for mq-135 sensor
Replies: 5
Views: 5302

Re: python for mq-135 sensor

I have several MCP3008 and MCP23017
could them work?
by dj_janker
Fri Jun 05, 2015 1:41 pm
Forum: Python
Topic: python for mq-135 sensor
Replies: 5
Views: 5302

python for mq-135 sensor

Hi,
somebody knows any python script to read in real time the differents parameters of the mq-135 sensor?
I would like to make a air quality sensor with my Rpi, but I haven´t found any python...
by dj_janker
Wed May 27, 2015 6:47 pm
Forum: Python
Topic: DHT11 readings onto a web page!
Replies: 254
Views: 77903

Re: DHT11 readings onto a web page!

You are my idol! Amazing work !!! :D :D :D :D :D :D Thank you for your help and for all your time . You do not know how I appreciate ... A question , you must pass the script to crontab -e so that it starts with each restart of the Rpi ? I would like include a infinite loop that make a mesure every ...
by dj_janker
Wed May 27, 2015 3:48 pm
Forum: Python
Topic: DHT11 readings onto a web page!
Replies: 254
Views: 77903

Re: DHT11 readings onto a web page!

Put a sleep of 30 second between readings . It will be more easier to debug. Don't forget a minimum of 2 seconds between readings. In your jeedom() function add a print for req and value. You will see if you send the right thing. Like this? # Ajout pour Jeedom import urllib def Jeedom(id, value): b...
by dj_janker
Wed May 27, 2015 2:50 pm
Forum: Python
Topic: DHT11 readings onto a web page!
Replies: 254
Views: 77903

Re: DHT11 readings onto a web page!

Put some debug on the script to check if everything is working. 1- Re-enable the print("{} {} {} {:3.2F ....... We will be able to figure out if the DHT sensor work. P.S. On power ON, the first reading is always bad. Also it looks like that the next reading was capture from the last request. This i...
by dj_janker
Wed May 27, 2015 1:36 pm
Forum: Python
Topic: DHT11 readings onto a web page!
Replies: 254
Views: 77903

Re: DHT11 readings onto a web page!

@danjperron # print("{} {} {} {:3.2f} {} {} {} {}".format( # r, s.humidity(), s.temperature(), s.staleness(), # s.bad_checksum(), s.short_message(), s.missing_message(), # s.sensor_resets())) # next_reading += INTERVAL # time.sleep(next_reading-time.time()) # Overall INTERVAL second polling. # Ajout...
by dj_janker
Wed May 27, 2015 5:20 am
Forum: Python
Topic: DHT11 readings onto a web page!
Replies: 254
Views: 77903

Re: DHT11 readings onto a web page!

P.D: How could I agree a code, like the next, to DHT22.py? Sorry be more specific i can't figure it out what you mean? ....to my domotic center, using it url API KEY. Same thing here ?????? What is you domotic center? Which protocol are you using ? Could you use MQTT because with MQTT is simple. so...
by dj_janker
Tue May 26, 2015 7:29 pm
Forum: Python
Topic: DHT11 readings onto a web page!
Replies: 254
Views: 77903

Re: DHT11 readings onto a web page!

Did you disable the loopback network? it needs to be there in the /etc/network/interfaces pi@Pi2 ~ $ cat /etc/network/interfaces auto lo iface lo inet loopback ... ... Ok, now works ok!!! :D :D :D The problem was in the interfaces folder. It was desappeared the auto lo line.... I have rewritten it,...
by dj_janker
Tue May 26, 2015 3:53 pm
Forum: Python
Topic: DHT11 readings onto a web page!
Replies: 254
Views: 77903

Re: DHT11 readings onto a web page!

This is my report: AttributeError: 'NoneType' object has no attribute 'send' root@raspberrypi:~# sudo service pigpiod stop [....] Stopping system pigpiod daemon:start-stop-daemon: warning: failed to kill 10843: No such process No process in pidfile '/var/run/pigpiod.pid' found running; none killed. ...
by dj_janker
Tue May 26, 2015 2:52 pm
Forum: Python
Topic: DHT11 readings onto a web page!
Replies: 254
Views: 77903

Re: DHT11 readings onto a web page + an led

There is a small differences between the DHT11 and the DHT22 The DHT11 is way less precise and don't go below 0 Celsius. The data stream output of the DHT22 is 16 bit big endian with the bit 15 for negative indicator. The DHT11 is 16 bit little endian and both MSB byte are set to zero. This is a pr...
by dj_janker
Thu Apr 23, 2015 8:03 pm
Forum: Español
Topic: Media Center con Openelec by MoDi
Replies: 1225
Views: 413223

Re: Media Center con Openelec by MoDi

Llevo varios días intentándolo en la versión 18, pero no lo consigo.
Alguien puede ver Eurosport?
Casi uso openelec para eso.... :lol: :lol:
by dj_janker
Tue Mar 17, 2015 12:08 pm
Forum: Español
Topic: Activar con pulsador una tarjeta sonido usb en Rpi B+
Replies: 0
Views: 339

Activar con pulsador una tarjeta sonido usb en Rpi B+

Necesitaría saber como podría hacer para que la tarjeta de sonido usb conectada a la Rpi se active cuando se pulse un pulsador conectado al pin 4 del puerto GPIO, funcione durante un tiempo determinado, y deje de estar activa tras este tiempo?

Un saludo
by dj_janker
Tue Mar 10, 2015 1:53 pm
Forum: Español
Topic: Problema automatización script python en inicio Rpi
Replies: 3
Views: 1571

Re: Problema automatización script python en inicio Rpi

Perfecto!!!
funciona perfecto.
Muchísimas gracias.

Un saludo.
by dj_janker
Tue Mar 10, 2015 9:04 am
Forum: Español
Topic: Problema automatización script python en inicio Rpi
Replies: 3
Views: 1571

Problema automatización script python en inicio Rpi

Hola, he creado un script en python (timbre.py) que se activa con un pulsador, hace una tarea durante un tiempo determinado (5seg), y se para automáticamente. De manera que si vuelvo a pulsar el pulsador, se inicia de nuevo el ciclo. El problema es que necesito que el script esté activo desde el ini...
by dj_janker
Sun Mar 01, 2015 9:48 am
Forum: Español
Topic: Arrancar 2 SO a la vez Rpi B+
Replies: 3
Views: 808

Re: Arrancar 2 SO a la vez Rpi B+

Muchas gracias fruitoftheloom
La verdad es que desconocía esto, pero puede servirme para lo que busco.

Go to advanced search