Mostrar Mensajes

Esta sección te permite ver todos los posts escritos por este usuario. Ten en cuenta que sólo puedes ver los posts escritos en zonas a las que tienes acceso en este momento.


Mensajes - Oscar-EA5IEL

Páginas: 1 2 [3] 4 5
31
A que hace referencia el campo sum y wsum?
Yo lo tengo con US.

32
Hola,
Para poner a cero alguno de los valores creo que lo he entendido pero para aumentar me da error.
Necesito poner el valor anual de lluvia en 9 y cogiendo el ejemplo, tendría que ponerlo de la siguiente manera:

sudo sqlite3 /var/lib/weewx/weewx.sdb
sqlite> update archive_day_rain set min=0, max=9, sum=0, wsum=0 where sum>100;
sqlite>

Cuando lo ejecuto me da "error", ¿que es lo que no estoy haciendo bien?

Gracias de antemano.

33
Hola,

Tengo problemas con los datos que subo a meteoclimatic. No consigo que lleve las comas decimales.

meteoclimatic_http.php.old es el programa original de Meteoclimatic. No admite que la plantilla tenga comas decimales, deben ser puntos decimales
meteoclimatic_http.php es una modificación chapucera mia para que admita las comas decimales.

Este es mi script meteoclimatic.sh

#!/bin/bash
cd /root/meteoclimatic
#Si no quieres log
php meteoclimatic_http.php
#Si quieres log
#php meteoclimatic_http.php.old >> /var/log/meteoclimatic.log
exit

y esto es lo que estoy enviando:

DATA2
ESPVA0300000003009E

30-01-2016 13:45
173
11
135
10316
60
419
21
178
91
87
53
10336
10311
24
515
27
00

181
84
91
53
10336
10276
24
515
29
00
181
84
91
53
10336
10276
24
515
29
00


¿Puede haber algo que no este bien?

Gracias de antemano.

73

Me respondo:

Esta solucionado con el cambio en raspi-config no habia puesto el change locale en español es_ES.UTF-8 UTF-8 al cambiarlo ok

34
WeeWX / Re:Página web no disponible Weewx 3.4.0.
« en: 27 de Enero del 2016, 23:06:10 pm »
Ok Gracias

35
WeeWX / Re:Página web no disponible Weewx 3.4.0.
« en: 27 de Enero del 2016, 20:58:33 pm »
No me queda claro al abrirlo. En donde pongo el #

proc            /proc           proc    defaults          0       0
/dev/mmcblk0p1  /boot           vfat    defaults          0       2
/dev/mmcblk0p2  /               ext4    defaults,noatime  0       1
# a swapfile is not a swap partition, no line here
#   use  dphys-swapfile swap[on|off]  for that
#tmpfs   /var/log/       tmpfs   defaults,noatime,nosuid,mode=0755,size=20M      0       0

36
WeeWX / Re:Página web no disponible Weewx 3.4.0.
« en: 27 de Enero del 2016, 16:39:22 pm »
Procedo a modificar el rc.local

Muchas gracias a los dos, sin vosotros imposible.

37
WeeWX / Re:Página web no disponible Weewx 3.4.0.
« en: 26 de Enero del 2016, 20:18:33 pm »
 plau2 plau2

38
WeeWX / Re:Página web no disponible Weewx 3.4.0.
« en: 26 de Enero del 2016, 19:07:40 pm »
Te dice algo esto:

Jan 26 19:01:55 raspberrypi rsyslogd: [origin software="rsyslogd" swVersion="8.4.2" x-pid="433" x-info="http://www.rsyslog.com"] start
Jan 26 19:01:55 raspberrypi rsyslogd-2307: warning: ~ action is deprecated, consider using the 'stop' statement instead [try http://www.rsyslog.com/e/2307 ]
Jan 26 19:01:55 raspberrypi kernel: [    0.000000] Booting Linux on physical CPU 0xf00
Jan 26 19:01:55 raspberrypi kernel: [    0.000000] Initializing cgroup subsys cpuset
Jan 26 19:01:55 raspberrypi kernel: [    0.000000] Initializing cgroup subsys cpu
Jan 26 19:01:55 raspberrypi kernel: [    0.000000] Initializing cgroup subsys cpuacct
Jan 26 19:01:55 raspberrypi kernel: [    0.000000] Linux version 4.1.16-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.8.3 20140303 (prerelease) (crosstool-NG linaro-1.13.1+bzr2650 - Linaro GCC 2014.03) ) #832 SMP Sun Jan 24 12:57:43 GMT 2016
Jan 26 19:01:55 raspberrypi kernel: [    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
Jan 26 19:01:55 raspberrypi kernel: [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Jan 26 19:01:55 raspberrypi kernel: [    0.000000] Machine model: Raspberry Pi 2 Model B Rev 1.1
Jan 26 19:01:55 raspberrypi kernel: [    0.000000] cma: Reserved 8 MiB at 0x3a400000
Jan 26 19:01:55 raspberrypi kernel: [    0.000000] Memory policy: Data cache writealloc
Jan 26 19:01:55 raspberrypi kernel: [    0.000000] On node 0 totalpages: 241664
Jan 26 19:01:55 raspberrypi kernel: [    0.000000] free_area_init_node: node 0, pgdat 80860f00, node_mem_map b9bb4000
Jan 26 19:01:55 raspberrypi kernel: [    0.000000]   Normal zone: 2124 pages used for memmap
Jan 26 19:01:55 raspberrypi kernel: [    0.000000]   Normal zone: 0 pages reserved
Jan 26 19:01:55 raspberrypi kernel: [    0.000000]   Normal zone: 241664 pages, LIFO batch:31
Jan 26 19:01:55 raspberrypi kernel: [    0.000000] [bcm2709_smp_init_cpus] enter (9420->f3003010)
Jan 26 19:01:55 raspberrypi kernel: [    0.000000] [bcm2709_smp_init_cpus] ncores=4
Jan 26 19:01:55 raspberrypi kernel: [    0.000000] PERCPU: Embedded 12 pages/cpu @bafb1000 s20416 r8192 d20544 u49152
Jan 26 19:01:55 raspberrypi kernel: [    0.000000] pcpu-alloc: s20416 r8192 d20544 u49152 alloc=12*4096
Jan 26 19:01:55 raspberrypi kernel: [    0.000000] pcpu-alloc:
  • 0
  • 1
  • 2
  • 3

Jan 26 19:01:55 raspberrypi kernel: [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 239540
Jan 26 19:01:55 raspberrypi kernel: [    0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2709.boardrev=0xa01041 bcm2709.serial=0xf4879fb2 smsc95xx.macaddr=B8:27:EB:87:9F:B2 bcm2708_fb$
Jan 26 19:01:55 raspberrypi kernel: [    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
Jan 26 19:01:55 raspberrypi kernel: [    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Jan 26 19:01:55 raspberrypi kernel: [    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Jan 26 19:01:55 raspberrypi kernel: [    0.000000] Memory: 939508K/966656K available (5944K kernel code, 534K rwdata, 1660K rodata, 440K init, 757K bss, 18956K reserved, 8192K cma-reserved)
Jan 26 19:01:55 raspberrypi kernel: [    0.000000] Virtual kernel memory layout:
Jan 26 19:01:55 raspberrypi kernel: [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
Jan 26 19:01:55 raspberrypi kernel: [    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
Jan 26 19:01:55 raspberrypi kernel: [    0.000000]     vmalloc : 0xbb800000 - 0xff000000   (1080 MB)
Jan 26 19:01:55 raspberrypi kernel: [    0.000000]     lowmem  : 0x80000000 - 0xbb000000   ( 944 MB)
Jan 26 19:01:55 raspberrypi kernel: [    0.000000]     modules : 0x7f000000 - 0x80000000   (  16 MB)
Jan 26 19:01:55 raspberrypi kernel: [    0.000000]       .text : 0x80008000 - 0x807753c4   (7605 kB)
Jan 26 19:01:55 raspberrypi kernel: [    0.000000]       .init : 0x80776000 - 0x807e4000   ( 440 kB)
Jan 26 19:01:55 raspberrypi kernel: [    0.000000]       .data : 0x807e4000 - 0x80869a68   ( 535 kB)
Jan 26 19:01:55 raspberrypi kernel: [    0.000000]        .bss : 0x8086c000 - 0x8092975c   ( 758 kB)
Jan 26 19:01:55 raspberrypi kernel: [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
Jan 26 19:01:55 raspberrypi kernel: [    0.000000] Hierarchical RCU implementation.
Jan 26 19:01:55 raspberrypi kernel: [    0.000000]      Additional per-CPU info printed with stalls.
Jan 26 19:01:55 raspberrypi kernel: [    0.000000] NR_IRQS:608
Jan 26 19:01:55 raspberrypi kernel: [    0.000000] Architected cp15 timer(s) running at 19.20MHz (phys).
Jan 26 19:01:55 raspberrypi kernel: [    0.000000] clocksource arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns
Jan 26 19:01:55 raspberrypi kernel: [    0.000011] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns
Jan 26 19:01:55 raspberrypi kernel: [    0.000032] Switching to timer-based delay loop, resolution 52ns
Jan 26 19:01:55 raspberrypi kernel: [    0.000310] Console: colour dummy device 80x30
Jan 26 19:01:55 raspberrypi kernel: [    0.001504] console [tty1] enabled
Jan 26 19:01:55 raspberrypi kernel: [    0.001560] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=192000)
Jan 26 19:01:55 raspberrypi kernel: [    0.001637] pid_max: default: 32768 minimum: 301
Jan 26 19:01:55 raspberrypi kernel: [    0.001998] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
Jan 26 19:01:55 raspberrypi kernel: [    0.002050] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
Jan 26 19:01:55 raspberrypi kernel: [    0.003324] Initializing cgroup subsys blkio
Jan 26 19:01:55 raspberrypi kernel: [    0.003396] Initializing cgroup subsys memory
Jan 26 19:01:55 raspberrypi kernel: [    0.003457] Initializing cgroup subsys devices
Jan 26 19:01:55 raspberrypi kernel: [    0.003508] Initializing cgroup subsys freezer
Jan 26 19:01:55 raspberrypi kernel: [    0.003572] Initializing cgroup subsys net_cls
Jan 26 19:01:55 raspberrypi kernel: [    0.003675] CPU: Testing write buffer coherency: ok

39
WeeWX / Re:Página web no disponible Weewx 3.4.0.
« en: 26 de Enero del 2016, 19:04:42 pm »
Tenias razón, cuando he reiniciado ya no estaba funcionando.

pi@raspberrypi:~ $ /etc/init.d/apache2 status
● apache2.service - LSB: Apache2 web server
   Loaded: loaded (/etc/init.d/apache2)
   Active: failed (Result: exit-code) since mar 2016-01-26 19:01:56 CET; 2min 7s ago
  Process: 449 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)

40
Software de Meteoclimatic / Re:Problema Linux-PHP Meteoclimatic
« en: 26 de Enero del 2016, 16:32:16 pm »
Hola. Veréis yo también tengo un problema con el envío y en el meteoclimatic.log me aparece esto:

/var/www/weewx/meteoclimatic.htm?

He mirado en el directorio /var/www/weewx y no aparece el meteoclimatic.htm
Sabéis porque puede ser debido?
Gracias.

Solucionado con:

cp -r carpeta de origen      carpeta de destino

73


41
WeeWX / Re:Página web no disponible Weewx 3.4.0.
« en: 26 de Enero del 2016, 15:36:05 pm »
Gracias por el comentario, lo he interrogado y creo que está ok.

pi@raspberrypi:~ $  /etc/init.d/apache2 status
● apache2.service - LSB: Apache2 web server
   Loaded: loaded (/etc/init.d/apache2)
   Active: active (running) since lun 2016-01-25 22:16:24 CET; 17h ago
  Process: 3529 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS         )
  Process: 6276 ExecReload=/etc/init.d/apache2 reload (code=exited, status=0/SUC         CESS)
  Process: 3554 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCE         SS)
   CGroup: /system.slice/apache2.service
           ├─3569 /usr/sbin/apache2 -k start
           ├─6295 /usr/sbin/apache2 -k start
           └─6296 /usr/sbin/apache2 -k start

42
WeeWX / Re:Página web no disponible Weewx 3.4.0.
« en: 25 de Enero del 2016, 22:19:54 pm »
Bueno.... He desinstalado Apache y vuelto a instalar.

Por fin puedo ver la página en el navegador!!!!

Muchas gracias por vuestra ayuda.

43
WeeWX / Re:Página web no disponible Weewx 3.4.0.
« en: 25 de Enero del 2016, 21:32:10 pm »
Correcto, ahora ha dejado de ir.

pi@raspberrypi:~ $  /etc/init.d/apache2 status
● apache2.service - LSB: Apache2 web server
   Loaded: loaded (/etc/init.d/apache2)
   Active: failed (Result: exit-code) since lun 2016-01-25 21:30:15 CET; 13s ago
  Process: 13743 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)

pi@raspberrypi:~ $ sudo service apache2 restart
Job for apache2.service failed. See 'systemctl status apache2.service' and 'journalctl -xn' for details.


44
WeeWX / Re:Página web no disponible Weewx 3.4.0.
« en: 25 de Enero del 2016, 21:08:57 pm »
Te he comprendido el razonamiento que haces, lo he puesto en practica y lamentablemente sigo sin poder acceder a la página.
Si voy a var/www/html/weewx/index.html tengo generada la página, pero en el navegador no hay forma.

Sin querer cambiar de tema hasta que este no lo tenga resuelto.
Puede ser que también haya que modificar Linux-PHP Meteoclimatic para que funcione?

45
WeeWX / Re:Página web no disponible Weewx 3.4.0.
« en: 25 de Enero del 2016, 16:39:18 pm »
Creo que a lo que haces referencia es a esto:

El más corto es el siguiente

Editar weewx.conf y en la sección StdRprt sustituír

# Where the generated reports should go, relative to WEEWX_ROOT:
    HTML_ROOT = /var/www/weewx

Por

# Where the generated reports should go, relative to WEEWX_ROOT:
    HTML_ROOT = /var/www


Entiendo que ahora la página sería http://ip/var/www/index.html
Es lo que he puesto en el navegador y sigue sin aparecer.

73

Páginas: 1 2 [3] 4 5