Go to advanced search

by lmarmisa
Wed Aug 08, 2018 9:20 am
Forum: Español
Topic: Ruta estática dos IP fija
Replies: 3
Views: 1000

Re: Ruta estática dos IP fija

Creo que lo más fácil es que añadas al fichero /etc/rc.local tus comandos tal como los teclearías manualmente y en el mismo orden. Este fichero de comandos se ejecuta tras el arranque del sistema con privilegios de root , de modo que no debes preceder con sudo los comandos que añadas. Pon tus comand...
by lmarmisa
Sun Aug 05, 2018 6:04 pm
Forum: Troubleshooting
Topic: USB Hub killed my raspberry pi?
Replies: 2
Views: 243

Re: USB Hub killed my raspberry pi?

Maybe the problem is related to the micro SD card (for example, corrupt data due to an uncontrolled shutdown). I recommend to repair the two partitions ( vfat boot and ext4 root ) of the SD card. You will need a Linux system (PC, Live DVD, virtual machine, RPi, etc) for such procedure. If you have m...
by lmarmisa
Sun Aug 05, 2018 7:51 am
Forum: Español
Topic: Consulta sobre la memoria sd
Replies: 1
Views: 365

Re: Consulta sobre la memoria sd

Soy usuario habitual de Ubuntu MATE para PC, pero no lo he instalado en la RPi. No obstante, creo poder responder a tus preguntas: 1) De acuerdo a https://ubuntu-mate.org/raspberry-pi/ el tamaño mínimo de la tarjeta sería de 6GB. Pero, dado que no existen físicamente tarjetas de 6GB, en la práctica ...
by lmarmisa
Thu Aug 02, 2018 10:01 pm
Forum: Español
Topic: Programar en pyhton desde SSH
Replies: 4
Views: 1772

Re: Programar en pyhton desde SSH

Ya hice la comunicacion con Putty. Pero desde SSH como hago para programar en pyhton?? Porque solo puedo enviar comandos desde la terminal, Para abrir una shell interactiva en python 2, teclea este comando: python Si prefieres python 3, el comando será: python3 Si pretendes ejecutar un script pytho...
by lmarmisa
Mon Jul 30, 2018 3:39 pm
Forum: General discussion
Topic: Changing LED (ex. Heartbeat) when service is active/running
Replies: 10
Views: 724

Re: Changing LED (ex. Heartbeat) when service is active/running

ok...works...... but how/when running the script .... with cron job ? Richard Of course, you can use cron. Type the command: crontab -e For example, if you want to run your script every two minutes, add an entry like this: */2 * * * * /home/pi/ledcontrol.sh If you prefer a period lower than 60 seco...
by lmarmisa
Fri Jul 27, 2018 2:01 pm
Forum: General discussion
Topic: Changing LED (ex. Heartbeat) when service is active/running
Replies: 10
Views: 724

Re: Changing LED (ex. Heartbeat) when service is active/running

This is a starting point for your script: #!/bin/bash ps -A | grep -q homebridge if [ $? -eq 0 ]; then echo "LED on" else echo "LED off" fi exit 0 If homebridge is running, the outputl will show LED on . If homebridge is not running, the output will be LED off . If you want to use this shell script,...
by lmarmisa
Thu Jul 26, 2018 9:50 pm
Forum: Español
Topic: Ayuda... Se me borran todas las aplicaciones y actualizaciones cada que reinicio
Replies: 1
Views: 324

Re: Ayuda... Se me borran todas las aplicaciones y actualizaciones cada que reinicio

Si no has instalado ninguna aplicación para convertir tu sistema en sólo-lectura, lo más probable es que tu tarjeta microSD este dañada.
by lmarmisa
Thu Jul 26, 2018 9:29 pm
Forum: Español
Topic: Problema con transmission
Replies: 1
Views: 382

Re: Problema con transmission

Los routers de los ISP suelen ser bastante limitados en cuanto a funcionalidad. Un tema fundamental es conocer el modo de entrar en el router para configurarlo como desees, siempre con las limitaciones que imponga el propio router. Aparentemente tienes dos problemas: 1) Acceso desde otros ordenadore...
by lmarmisa
Thu Jul 26, 2018 3:10 pm
Forum: General discussion
Topic: Changing LED (ex. Heartbeat) when service is active/running
Replies: 10
Views: 724

Re: Changing LED (ex. Heartbeat) when service is active/running

One question, Richard. How do you launch the program homebridge?.
by lmarmisa
Thu Jul 26, 2018 2:09 pm
Forum: General discussion
Topic: Changing LED (ex. Heartbeat) when service is active/running
Replies: 10
Views: 724

Re: Changing LED (ex. Heartbeat) when service is active/running

roe1974 wrote:
Thu Jul 26, 2018 2:06 pm
its a systemd service an is not listed @

sudo service --status-all

???!?!?!?

and i am not able to write a "script " :-(

any helo out there ?

Richard
Hi Richard,

what about this command?

Code: Select all

ps -ef | grep homebridge
by lmarmisa
Thu Jul 26, 2018 1:27 pm
Forum: General discussion
Topic: Changing LED (ex. Heartbeat) when service is active/running
Replies: 10
Views: 724

Re: Changing LED (ex. Heartbeat) when service is active/running

You will need to develop a script. This command will help: service --status-all | grep homebridge These other commands could be more useful: service --status-all | grep homebridge | cut -d' ' -f3 status=$(service --status-all | grep homebridge | cut -d' ' -f3) #the variable status will contain a cha...
by lmarmisa
Thu Jul 26, 2018 11:20 am
Forum: Beginners
Topic: Recording micro-seconds for more than 1 second
Replies: 4
Views: 617

Re: Recording micro-seconds for more than 1 second

Try this code: from datetime import datetime, date, time while True: now = datetime.now() usec = now.second * 1000000 + now.microsecond print(usec) If you prefer to get an string, try this alternative: usec = "%02d%06d" %(now.second, now.microsecond) NOTE: the range will be from 00000000 to 59999999.
by lmarmisa
Thu Jul 26, 2018 10:14 am
Forum: Networking and servers
Topic: NTP between two Pi Zero
Replies: 8
Views: 1076

Re: NTP between two Pi Zero

I have just found out that I have to wait 5 minutes since I start my server. After this 5 minutes , I can synchronize my client using ntpdate: pi@client:~ $ sudo ntpdate -B 192.168.4.1 26 Jul 07:58:00 ntpdate[574]: adjust time server 192.168.4.1 offset 0.000033 sec Thanks for all the answers! I wil...
by lmarmisa
Wed Jul 25, 2018 9:30 am
Forum: Networking and servers
Topic: NTP between two Pi Zero
Replies: 8
Views: 1076

Re: NTP between two Pi Zero

Hmmm. I think it's not a good idea to restart the service ( sudo service ntp restart ) and immediately look at its statistics ( ntpq -pn ). When you restart the service, the statistics are restarted too. :o Therefore, wait a few minutes and then type the two commands ntpq -pn . This link will help y...
by lmarmisa
Tue Jul 24, 2018 6:37 pm
Forum: Networking and servers
Topic: NTP between two Pi Zero
Replies: 8
Views: 1076

Re: NTP between two Pi Zero

I have tried to add another Raspberry as a client and when I do: sudo ntpdate-debian I do not know the command ntpdate-debian . Are you using a raspbian distro?. I believe that you need to install the package ntp on both RPis: sudo apt-get install ntp Then you have to configure the file /etc/ntp.co...
by lmarmisa
Tue Jul 24, 2018 1:40 pm
Forum: Networking and servers
Topic: NTP between two Pi Zero
Replies: 8
Views: 1076

Re: NTP between two Pi Zero

These commands will be useful:

Code: Select all

ntpq -pn
timedatectl status
First step: check that the server is working properly.

Second step: verify the subnet between both RPis (use the command ping on both sides).

Third step: verify that the client is able to synchronize date/time with the server.
by lmarmisa
Tue Jul 24, 2018 9:39 am
Forum: Español
Topic: Consejos para soldar PI 3B
Replies: 7
Views: 1595

Re: Consejos para soldar PI 3B

Hay una solución de compromiso que podría funcionar sin necesidad de soldadura. Me refiero a usar los pines de 5V y GND del conector de GPIO: https://www.raspberrypi.org/documentation/usage/gpio/ https://www.raspberrypi.org/documentation/hardware/raspberrypi/schematics/README.md Para el caso de la R...
by lmarmisa
Tue Jul 24, 2018 5:07 am
Forum: Beginners
Topic: I can not start motion as daemon
Replies: 21
Views: 9788

Re: I can not start motion as daemon

We are looking in a wrong file ( /var/log/syslog ). ... # Use a file to save logs messages, if not defined stderr and syslog is used. (default: not defined) logfile /var/log/motion/motion.log ... According to your configuration the log file is /var/log/motion/motion.log . Take a look at this file in...
by lmarmisa
Mon Jul 23, 2018 3:06 pm
Forum: Español
Topic: Error en pendrive "no space left on device"
Replies: 6
Views: 1175

Re: Error en pendrive "no space left on device"

Si sólo vas a conectar el pendrive a la RPi, te recomiendo usar una partición nativa Linux ext4 . Para formatear usa la herramienta gparted : sudo apt-get install gparted Arranca gparted mediante Inicio -> Preferencias -> gparted. Selecciona arriba a la derecha el dispositivo del pendrive (probablem...
by lmarmisa
Mon Jul 23, 2018 12:45 pm
Forum: Beginners
Topic: Babel routing protocol on Raspberry Pi
Replies: 1
Views: 489

Re: Babel routing protocol on Raspberry Pi

I have no knowledge about Babel, but maybe your program is working correctly. Try launching your program in background: sudo babeld wlan0 & Take a look at these links: https://www.raspberrypi.org/forums/viewtopic.php?t=179901 http://www.ericerfanian.com/mobile-mesh-networks-with-the-raspberry-pi-par...
by lmarmisa
Mon Jul 23, 2018 7:54 am
Forum: Beginners
Topic: I can not start motion as daemon
Replies: 21
Views: 9788

Re: I can not start motion as daemon

Your system started at 06:34:01 ( Jul 23 06:34:11 raspberrypi kernel: [ 9.924340] Bluetooth: RFCOMM TTY layer initialized ) but the first event shown on syslog shows the time 06:34:11 ( Jul 23 06:34:11 raspberrypi bluetoothd[676]: sap-server: Operation not permitted (1) ). No luck. One hundred lines...
by lmarmisa
Sun Jul 22, 2018 8:05 am
Forum: Beginners
Topic: I can not start motion as daemon
Replies: 21
Views: 9788

Re: I can not start motion as daemon

If in the console I type :~ $ motion the two errors happen If I type :~ $ sudo motion the program starts normally. This behavior is good. The user pi has no privileges for running motion but root is able to run that program. If the syntax of start_motion_daemon=yes is correct, simply reboot your sy...
by lmarmisa
Sat Jul 21, 2018 5:39 pm
Forum: Español
Topic: Cable de alimentación para Raspberry 3B+
Replies: 7
Views: 3260

Re: Cable de alimentación para Raspberry 3B+

Entiendo que el cargador oficial si lo integra, no? Haciendo inecesaro el condensador. Lo pregunto, porque aunque preferia evitarme usar el cargador oficial, si se evita este problema quiza merezca la pena. Personalmente no tengo experiencia con el alimentador oficial, aunque las referencias que te...
by lmarmisa
Sat Jul 21, 2018 8:27 am
Forum: Español
Topic: Cable de alimentación para Raspberry 3B+
Replies: 7
Views: 3260

Re: Cable de alimentación para Raspberry 3B+

La RPi 3B+ es muy puñetera con la alimentación y da muchos problemas incluso con alimentadores que dan un nivel de tensión adecuado y corriente suficiente. ¿Por qué pasa esto?. El problema se debe a que la RPi no dispone de un condensador de gran capacidad que amortigüe los picos instantáneos de con...
by lmarmisa
Sat Jul 21, 2018 7:52 am
Forum: Beginners
Topic: I can not start motion as daemon
Replies: 21
Views: 9788

Re: I can not start motion as daemon

I have checked here that the file /etc/default/motion should not include any blank space character. If motion detects a syntax error (blank space), the daemon is not started.

This is the correct syntax, not yours:

Code: Select all

# set to 'yes' to enable the motion daemon
start_motion_daemon=yes

Go to advanced search