Go to advanced search

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: 526

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: 526

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: 493

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: 768

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: 768

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: 768

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: 768

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: 1142

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: 20
Views: 5246

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: 735

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: 322

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: 20
Views: 5246

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: 20
Views: 5246

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: 2567

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: 2567

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: 20
Views: 5246

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
by lmarmisa
Fri Jul 20, 2018 12:08 pm
Forum: General discussion
Topic: Is it suitable? For a Computer Science course?
Replies: 44
Views: 4117

Re: Is it suitable?

Unix/Linux is the best platform. For sure.

I am 59 years old. I got my telecommunication engineer degree in 1981. My first contact with Unix was in 1985. I love RPi and I continue to learn new things every day with my RPis.
by lmarmisa
Fri Jul 20, 2018 11:27 am
Forum: Español
Topic: Habilitar y Deshabilitar conexión a internet
Replies: 2
Views: 323

Re: Habilitar y Deshabilitar conexión a internet

Hay routers que permiten definir planes horarios para filtrar la salida a Internet de los ordenadores o dispositivos conectados a la LAN. Si quieres controlar la salida a Internet desde dentro de la RPi, creo que lo más fácil es borrar o añadir la ruta por defecto. Para ver las rutas, puedes usar es...
by lmarmisa
Fri Jul 20, 2018 8:30 am
Forum: Español
Topic: Error en pendrive "no space left on device"
Replies: 6
Views: 735

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

El máximo número de ficheros por directorio en una partición fat32 está limitado a 65535 ficheros. No parece que estés cerca de ese número. Dices que el número total de ficheros son unos 11000, pero probablemente estarán guardados en múltiples directorios. No parece tampoco que estés intentando copi...
by lmarmisa
Thu Jul 19, 2018 1:28 pm
Forum: Italiano
Topic: Matrice Keypad 1x4
Replies: 1
Views: 397

Re: Matrice Keypad 1x4

Se hai bisogno di aiuto, dovresti indicare il modello di keypad che hai acquistato.

Probabilmente dovresti collegare i 4 pin dei tasti a 4 ingressi GPIO, definendo questi pins come inputs open-collector.

Dovresti anche sviluppare uno script python per rilevare le sequenze di tasti della tastiera.
by lmarmisa
Thu Jul 19, 2018 1:14 pm
Forum: Français
Topic: Problème d'activation du Wifi sur Raspi 3 B+
Replies: 2
Views: 1056

Re: Problème d'activation du Wifi sur Raspi 3 B+

Ces deux commandes pourraient fournir des informations sur votre problème. Tapez-les après la validation du Wifi code:

Code: Select all

iwconfig wlan0
ifconfig wlan0
by lmarmisa
Thu Jul 19, 2018 12:59 pm
Forum: Español
Topic: Programar en pyhton desde SSH
Replies: 4
Views: 1373

Re: Programar en pyhton desde SSH

Si quieres programar en python en tu RPi mediante una conexión ssh, usa putty en tu PC: https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html Si deseas acceder remotamente a tu RPi con interfaz gráfica, podrías usar RealVNC Viewer: https://www.realvnc.com/en/connect/download/viewer/ El este...
by lmarmisa
Thu Jul 19, 2018 8:54 am
Forum: Beginners
Topic: I can not start motion as daemon
Replies: 20
Views: 5246

Re: I can not start motion as daemon

Why did you type the command?: sudo systemctl enable motiom This command is not necessary. You should enable the daemon simply by changing this line of the file /etc/default/motion : # set to 'yes' to enable the motion daemon start_motion_daemon=yes The command systemctl status motion will show the ...

Go to advanced search