Go to advanced search

by lmarmisa
Fri Jul 13, 2018 12:16 pm
Forum: Beginners
Topic: Serial connection troubleshooting
Replies: 10
Views: 757

Re: Serial connection troubleshooting

Before developing a script, I recommend using a terminal emulator like picocom : sudo apt-get install picocom picocom -b 9600 /dev/ttyUSB0 The exit sequence is Ctr-a Ctrl-x Once you will be able to see chars and lines with picocom, you can go back to your script if such script is really needed.
by lmarmisa
Fri Jul 13, 2018 11:26 am
Forum: Español
Topic: copiar de carpeta a usb raspian
Replies: 2
Views: 959

Re: copiar de carpeta a usb raspian

Entiendo que cuando insertas el pendrive o arrancas con él, éste se monta automáticamente en una carpeta bajo el directorio /media/pi . Lo primero que te recomendaría es que añadieras una etiqueta al pendrive al formatearlo. Suponte que esa etiqueta es USB01 . Con esa etiqueta el pendrive se automon...
by lmarmisa
Thu Jul 12, 2018 8:31 pm
Forum: Troubleshooting
Topic: CAn no longer ping by hostname
Replies: 19
Views: 2573

Re: CAn no longer ping by hostname

Many routers provide the capability to assign a static IP based on the MAC address of the dhcp client. I recommend this option whenever it is available. In relation with bonjour, I believe that the problem lies in your PC. I suppose that this command works correctly on your RPi: ping -c4 rpihostname...
by lmarmisa
Thu Jul 12, 2018 12:20 pm
Forum: Español
Topic: raspi 3 b+ iniciar con programa python
Replies: 2
Views: 1078

Re: raspi 3 b+ iniciar con programa python

¿Utilizas el entorno gráfico en tu RPi?. ¿Tu programa dispone de interfaz gráfica que interacciona con el usuario? O, aun no teniendo interfaz gráfica, ¿precisas que el script python se muestre en la pantalla del entorno gráfico?. ¿O simplemente pretendes que se arranque el programa en background de...
by lmarmisa
Wed Jul 11, 2018 10:10 pm
Forum: Troubleshooting
Topic: Git clone and apt not working.
Replies: 15
Views: 1730

Re: Git clone and apt not working.

You assigned the IP 192.168.0.111. This address belongs very probably to the dhcp pool managed by your router. So, according to that IP address, the router could consider your RPi as a intruder and therefore it could drop its TCP/UDP traffic to the Internet. Try defining a static IP not belonging to...
by lmarmisa
Tue Jul 10, 2018 12:40 pm
Forum: Python
Topic: Integrate pywws in python script
Replies: 1
Views: 423

Re: Integrate pywws in python script

I do not knot pywws, but that program supports a module for mqtt: The pywws.service.mqtt module can be used to send weather data to an MQTT broker. http://pywws.readthedocs.io/en/latest/essentials/dependencies.html#mqtt http://pywws.readthedocs.io/en/latest/api/pywws.service.mqtt.html#module-pywws.s...
by lmarmisa
Tue Jul 10, 2018 10:58 am
Forum: Troubleshooting
Topic: How to duplicate USB sound to 2 loopback devices using alsa?
Replies: 3
Views: 826

Re: How to duplicate USB sound to 2 loopback devices using alsa?

I do not know the trx tool but I can read that it supports multicast: It can be used for point-to-point audio links or multicast, eg. private transmitter links for a radio station or other live audio distribution. tx -h 239.0.0.1 # send audio over multicast rx -h 239.0.0.1 # recieve audio from the a...
by lmarmisa
Mon Jul 09, 2018 6:45 pm
Forum: Troubleshooting
Topic: Git clone and apt not working.
Replies: 15
Views: 1730

Re: Git clone and apt not working.

The behaviour of your Pi seems good. The protocol http works fine inside your LAN but it fails when you try to access to the internet. The default route looks good. The gateway (your router, 192.168.0.1) is apparently dropping your http connections to the Internet. I believe that the problem is due ...
by lmarmisa
Mon Jul 09, 2018 6:25 pm
Forum: Troubleshooting
Topic: CAn no longer ping by hostname
Replies: 19
Views: 2573

Re: CAn no longer ping by hostname

If you wish to use the service bonjour (hostname.local) on windows 10, you should install one of these two Apple applications:

1) iTunes

2) Bonjour Print Services for Windows

Are you sure that the service bonjour is currently active on your computer?.
by lmarmisa
Mon Jul 09, 2018 11:43 am
Forum: Advanced users
Topic: Remote control python
Replies: 1
Views: 665

Re: Remote control python

Consider using sockets: https://www.tutorialspoint.com/python/python_networking.htm https://pymotw.com/2/socket/tcp.html If the interaction is unidirectional or not too complex, mqtt could be a simple solution too: http://www.steves-internet-guide.com/into-mqtt-python-client/ https://www.infoq.com/a...
by lmarmisa
Sun Jul 08, 2018 4:51 pm
Forum: Troubleshooting
Topic: CAn no longer ping by hostname
Replies: 19
Views: 2573

Re: CAn no longer ping by hostname

by lmarmisa
Sun Jul 08, 2018 12:21 pm
Forum: Beginners
Topic: Stretch: clean-up after package upgrade or remove
Replies: 5
Views: 9141

Re: Stretch: clean-up after package upgrade or remove

I use both commands. This is my script /home/pi/bin/myupdate : #!/bin/bash echo echo "-> sudo apt-get update" sudo apt-get update echo echo "-> sudo apt-get -y upgrade" sudo apt-get -y upgrade echo echo "-> sudo apt-get -y dist-upgrade" sudo apt-get -y dist-upgrade echo echo "-> sudo apt-get -y auto...
by lmarmisa
Sun Jul 08, 2018 12:12 pm
Forum: Beginners
Topic: New to pi... wanting to use to send audio to wireless speakers
Replies: 1
Views: 162

Re: New to pi... wanting to use to send audio to wireless speakers

Consider using icecast and ices on your RPi #1. These packages are available in the raspbian repositories.

http://icecast.org/

Use vlc, mplayer or other audio player on other RPis.
by lmarmisa
Sun Jul 08, 2018 11:03 am
Forum: Python
Topic: how to store result in to csv file
Replies: 5
Views: 605

Re: how to store result in to csv file

Although the csv format is quite simple, there is a specific module for reading and writing csv files: https://docs.python.org/3/library/csv.html import RPi.GPIO as GPIO import dht11 import time import datetime import csv # initialize GPIO GPIO.setwarnings(False) GPIO.setmode(GPIO.BCM) GPIO.cleanup(...
by lmarmisa
Sat Jul 07, 2018 7:19 pm
Forum: Troubleshooting
Topic: Git clone and apt not working.
Replies: 15
Views: 1730

Re: Git clone and apt not working.

ping -c25 google.com wget http://downloads.raspberrypi.org/raspbian_lite_latest -O /dev/null wget https://downloads.raspberrypi.org/raspbian_lite_latest -O /dev/null Hi, it still timeouts. Hmmm. Including ping?. I believe that the problem could be related to your router in such a way that it is fil...
by lmarmisa
Fri Jul 06, 2018 12:18 pm
Forum: Beginners
Topic: spinning up usb hard disk on boot
Replies: 3
Views: 823

Re: spinning up usb hard disk on boot

I will suppose your disk is formatted with a ntfs file-system. Try this procedure: 1) Install the package ntfs-3g sudo apt-get install ntfs-3g 2) Create a mountpoint: sudo -p /media/wd4tb 2) Edit the file /etc/rc.local sudo nano /etc/rc.local 3) Add these commands to the file: #!/bin/sh -e # # rc.lo...
by lmarmisa
Wed Jul 04, 2018 9:27 pm
Forum: Français
Topic: Débutant perdu
Replies: 3
Views: 492

Re: Débutant perdu

Connaissez-vous le modèle de Somfy? Ce modèle peut-il être contrôlé par télécommande?.

Si oui, utilisez un émetteur radio 433 MHz comme celui-ci:

https://www.aliexpress.com/item/1set-RF ... 03475.html
by lmarmisa
Wed Jul 04, 2018 7:24 pm
Forum: Español
Topic: INSTALACION ISO RASPBIAN
Replies: 1
Views: 486

Re: INSTALACION ISO RASPBIAN

Por si acaso, una aclaración: el sha-256 que se muestra en la página de descargas corresponde al fichero que se descarga desde el servidor de raspberrypi.org, es decir, el que tiene como extensión ".zip". Si se descomprime el fichero zip, se obtiene un fichero "img" mucho más grande que es el que se...
by lmarmisa
Wed Jul 04, 2018 10:03 am
Forum: Español
Topic: WEBCAM
Replies: 1
Views: 349

Re: WEBCAM

Lo mejor en estos casos es leer la documentación técnica de la webcam para entender los detalles de cómo funciona.

Desde el punto de vista de la RPi puedes ver qué dispositivos USB se detectan en un momento dado tecleando este comando:

Code: Select all

lsusb
by lmarmisa
Wed Jul 04, 2018 9:48 am
Forum: General discussion
Topic: Vehicle detection for my nephew
Replies: 24
Views: 2119

Re: Vehicle detection for my nephew

Welcome to the forum. The title of your post refers to vehicle detection and the body to a four way traffic light prototype. So, I am not sure if I understand your project. If you wish to develop a four way traffic light prototype, you will need to control 12 independent outputs. Therefore you have ...
by lmarmisa
Mon Jul 02, 2018 8:41 am
Forum: Python
Topic: Is it possible to make a connection to a certain Wi Fi network as a condition?
Replies: 6
Views: 597

Re: Is it possible to make a connection to a certain Wi Fi network as a condition?

Try:

Code: Select all

#!/usr/bin/env python

import subprocess

try:
  ssid =  subprocess.check_output(["iwgetid", "-r"]).rstrip()
except subprocess.CalledProcessError:
  ssid = ""

if ssid == "mySSID" :
  ActionHere
  
by lmarmisa
Mon Jul 02, 2018 7:15 am
Forum: Troubleshooting
Topic: Problems replaying audio
Replies: 1
Views: 138

Re: Problems replaying audio

I recommend using mplayer.

This command will install the package:

Code: Select all

sudo apt-get install mplayer
The sound is perfect here:

Code: Select all

mplayer /usr/share/sounds/alsa/*wav
by lmarmisa
Sun Jul 01, 2018 6:56 am
Forum: Español
Topic: No me puedo conectar por SSH
Replies: 1
Views: 865

Re: No me puedo conectar por SSH

Abre un terminal en la RPi y teclea este comando: ifconfig La respuesta te mostrará la dirección IP de la RPi que probablemente será del tipo 192.168.x.y. Intenta conectarte entonces por ssh a tu propia RPi usando esa dirección IP: ssh pi@192.168.x.y Si funciona correctamente esa conexión ssh local,...
by lmarmisa
Sun Jul 01, 2018 6:22 am
Forum: Troubleshooting
Topic: Git clone and apt not working.
Replies: 15
Views: 1730

Re: Git clone and apt not working.

The ICMP protocol (ping) works but https does not. What about http?:

Code: Select all

ping -c25 google.com
wget http://downloads.raspberrypi.org/raspbian_lite_latest -O /dev/null
wget https://downloads.raspberrypi.org/raspbian_lite_latest -O /dev/null

Go to advanced search