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 - garbatella

Páginas: 1 [2] 3 4
16
WeeWX / Re:Problema invocando script meteowee
« en: 10 de Enero del 2022, 10:51:05 am »
BUenas de nuevo. A ver si alguien puede echarme una mano, no soy capaz de que esto eche a andar!

He tratado de escribir a @jantoni pero tiene los mensajes privados bloqueados  :-[

17
WeeWX / Problema invocando script meteowee
« en: 27 de Diciembre del 2021, 09:58:17 am »
Tras estar funcionando semanas con la raspberry y todo montado, esta petó. No sé si sería como dicen algo relacionado con la tarjeta SD, pero el caso es que no arrancaba...

Así que de nuevo a instalar todo. Y en esas me veo ahora, que cuando he ido a invocar el script de jantoni, me da un error rarísimo:

Código: [Seleccionar]
pi@raspberrypi:~ $ sudo bash /home/pi/meteowee-0.16-2
/home/pi/meteowee-0.16-2: line 327: syntax error near unexpected token `('
/home/pi/meteowee-0.16-2: line 327: `sed -i 's/week       = %X (%A)/week       = %H:%M on %A/g' "$CONFIG_FILE"'

He editado el fichero y para mi no tiene sentido quitar los paréntesis que parece que generan el problema. Pero igualmente lo he hecho, guardado y salta con otro error...

No sé, es algo raro. He flasheado de nuevo la imagen en la SD, vuelto a copiar los ficheros, accedo por SSH, invoco meteowee y de nuevo el error. ¿Alguna idea?

18
Incidencias en estaciones / Estacion parada [ ESCTB3900000039003A ]
« en: 08 de Diciembre del 2021, 16:02:48 pm »
Simplemente informar que la raspberry donde tenía weewx ha muerto. Así que ahora mismo mi estación no está operativa. Por si sirviese de algo de cara al cálculo IR

19
Forum General / Re:Auditorías de calidad Meteoclimatic
« en: 14 de Noviembre del 2021, 14:07:39 pm »
Perfecto, muchas gracias por la aclaración, en cuanto tenga un IR > 6 presentaré candidatura.

Saludos

20
Forum General / Re:Auditorías de calidad Meteoclimatic
« en: 14 de Noviembre del 2021, 10:53:59 am »
Buenos días.

He estado leyendo con detenimiento los requisitos para presentar candidatura para recibir una auditoria de la estación. Soy consciente de la nota IR, de las fotos necesarias, y demás. Por curiosidad, lo que he hecho es acudir a las estaciones de mi entorno y ver que sistemas tenían montados, ver sus IRs.

Claro, todas las estaciones que he visto hasta ahora con auditoría pasada, son tipo Davis. En mi caso tengo una humilde Sainlogic WS3500, que si bien no dispone de garita de protección y demás, sí que reporta (toquemos madera) los datos de forma consistente mediante weewx con raspberry.

Mi pregunta es: ¿se puede pasar una auditoría (siempre y cuando se cumpla IR >6, se adjunten fotos y demás) con una estación de este tipo? ¿O la realidad es que si no se tiene un equipo más profesional tipo Davis no es posible?

muchas gracias y disculpas si este mensaje no debería ir aquí.

21
WebCam / Re:como subir imagen de webcam
« en: 14 de Noviembre del 2021, 00:47:06 am »
Grandes!  :aplaude1:

Efectivamente, debía asignar permisos...

Bien, pues crontab está haciendo su trabajo y cada 5 minutos, obtiene una imagen, la guarda en home/pi/pictures y hace copia en el usb.

Ahora me queda insertar dicha imagen en el skin Belchertown. Lo ideal sería sustituir el gráfico de windy por la imagen capturada. He visto que en el skin.conf de Belchertown, debo activar (poniendo 1 en vez de -1) en index_hook_after_station_info. Pero no me queda muy claro los siguientes pasos... es decir, ¿dónde indico a weewx o mejor dicho, al skin belchertown, la ruta donde tengo las imágenes para que las publique en la web?

22
WebCam / Re:como subir imagen de webcam
« en: 13 de Noviembre del 2021, 22:24:45 pm »
Novedades!

Solcuionado la primera parte, es decir, hacer funcionar ffmpeg. Efectivamente debía ser un problema de permisos. He cambiado la ruta en la que guardar las fotos, y he usado /home/pi/Pictures y ahora, si lanzo la ejecución:

Código: [Seleccionar]
sudo ffmpeg -rtsp_transport tcp -i rtsp://user:password@10.0.1.133:554/cam/realmonitor?channel=1_subtype=0 -vframes 1 -r 1 /home/pi/Pictures/image.jpg
Efectivamente se ejecuta y guarda una captura en la carpeta home/pi/Pictures.

El tema es que he programado cron, pero no parece estar ejecutándose... En cron simplemente he hecho: sudo nano /etc/crontab y he metido:

Código: [Seleccionar]
# Toma de imagenes Webcam
1-59/5 *   * * *   root    /home/pi/imagen.sh

Por supuesto en /home/pi/imagen.sh tengo el siguiente script:

Código: [Seleccionar]
#!/bin/sh

export DATETIME=`date +%Y%m%d%H%M%S`

rm -f /home/pi/Pictures/image.jpg

sudo ffmpeg -rtsp_transport tcp -i rtsp://user:password@10.0.1.133:554/cam/realmonitor?channel=1_subtype=0 -vframes 1 -r 1 /home/pi/Pictures/image.jpg

cp /home/pi/Pictures/image.jpg /media/pi/8914-17F8/Dahua/$DATETIME.jpg

Pues nada, estoy controlado por ftp ambas carpetas (home/pi/pictures y el usb en media/pi...) y no parece que la imagen se actualice. ¿alguna idea? quizás el cron esté mal configurado?

23
WebCam / Re:como subir imagen de webcam
« en: 13 de Noviembre del 2021, 20:00:49 pm »
Una vez que ejecutando el comando sudo ffmpeg ....xxxx....etc compruebes que crea la imagen en la carpeta webcam, ya te metes con crear la tarea en crontab. Lo digo porque a mi me funciona con el modelo de dahua que tengo, pero a veces no todos los modelos de la misma marca funcionan con el mismo comando.

Luego para publicar las imágenes en la web con Belchertown yo lo hago en index_hook_after_station_info.inc

Gracias Miguelru!

Es lo que comentaba en mi último mensaje, que antes de preocuparme de automatizar la tarea, me puse a ejecutar ffmpeg para ver qué obtenía y me estoy encontrando con un error que no alcanzo a entender por qué sale. Te lo pongo:

Lanzo esto:

Código: [Seleccionar]
ffmpeg -rtsp_transport tcp -i rtsp://user:password@10.0.1.133:554/cam/realmonitor?channel=1_subtype=0 -vframes 1 -r 1 /var/www/html/webcam/image.jpg
Aparentemente se lo come, carga un chorro de texto y me pregunta:

Código: [Seleccionar]
Stream #0:0: Video: h264 (Main), yuvj420p(pc, progressive), 2560x1440, 20 fps, 20 tbr, 90k tbn, 180k tbc
File '/var/www/html/webcam/image.jpg' already exists. Overwrite ? [y/N] y

Le digo que sí. En realidad la imagen que ya hay en esa carpeta es falsa, simplemente una foto que tenía y que guardé en dicha carpeta, por aquello de que el script decía de sobreescribir, pensé que ya debía haber una sobre la que guardar la foto nueva.

El caso es que digo que sí y ocurre lo siguiente:

Código: [Seleccionar]
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (native))
Press [q] to stop, [?] for help
Output #0, image2, to '/var/www/html/webcam/image.jpg':
  Metadata:
    title           : Media Server
    encoder         : Lavf58.20.100
    Stream #0:0: Video: mjpeg, yuvj420p(pc), 2560x1440, q=2-31, 200 kb/s, 1 fps, 1 tbn, 1 tbc
    Metadata:
      encoder         : Lavc58.35.100 mjpeg
    Side data:
      cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
[image2 @ 0x136cd30] Could not open file : /var/www/html/webcam/image.jpg
av_interleaved_write_frame(): Input/output error
frame=    1 fps=0.0 q=6.9 Lsize=N/A time=00:00:01.00 bitrate=N/A speed=2.07x   
video:76kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Conversion failed!






24
WebCam / Re:como subir imagen de webcam
« en: 12 de Noviembre del 2021, 23:37:25 pm »
Poniendo un poco de cabeza, pensé que antes de comprobar si la programación via cron funcionaba, debía comprobar que ffmpeg estaba ejecutándose correctamente.

Así que he lanzado lo siguiente:

Código: [Seleccionar]
ffmpeg -rtsp_transport tcp -i rtsp://user:password@10.0.1.133:554/cam/realmonitor?channel=1_subtype=0 -vframes 1 -r 1 /var/www/html/webcam/image.jpg
Aparentemente se lo come, carga un chorro de texto y me pregunta:

Código: [Seleccionar]
Stream #0:0: Video: h264 (Main), yuvj420p(pc, progressive), 2560x1440, 20 fps, 20 tbr, 90k tbn, 180k tbc
File '/var/www/html/webcam/image.jpg' already exists. Overwrite ? [y/N] y

Le digo que sí. En realidad la imagen que ya hay en esa carpeta es falsa, simplemente una foto que tenía y que guardé en dicha carpeta, por aquello de que el script decía de sobreescribir, pensé que ya debía haber una sobre la que guardar la foto nueva.

El caso es que digo que sí y ocurre lo siguiente:

Código: [Seleccionar]
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (native))
Press [q] to stop, [?] for help
Output #0, image2, to '/var/www/html/webcam/image.jpg':
  Metadata:
    title           : Media Server
    encoder         : Lavf58.20.100
    Stream #0:0: Video: mjpeg, yuvj420p(pc), 2560x1440, q=2-31, 200 kb/s, 1 fps, 1 tbn, 1 tbc
    Metadata:
      encoder         : Lavc58.35.100 mjpeg
    Side data:
      cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
[image2 @ 0x136cd30] Could not open file : /var/www/html/webcam/image.jpg
av_interleaved_write_frame(): Input/output error
frame=    1 fps=0.0 q=6.9 Lsize=N/A time=00:00:01.00 bitrate=N/A speed=2.07x   
video:76kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Conversion failed!

25
WebCam / Re:como subir imagen de webcam
« en: 12 de Noviembre del 2021, 22:39:06 pm »
Gracias jmviper.

Pues, algo no va bien, os cuento.

El script está creado como dije... Se llama imagen.sh y está en /usr/bin/

Luego he accedido a ctrontab. Aquí por cierto me surje una duda: ¿es lo mismo crontab que cron? Lo digo porque yo hasta ahora editaba cron así

sudo nano /etc/crontab donde tengo esto:

Código: [Seleccionar]
# .---------------- minute (0 - 59)
# |  .------------- hour (0 - 23)
# |  |  .---------- day of month (1 - 31)
# |  |  |  .------- month (1 - 12) OR jan,feb,mar,apr ...
# |  |  |  |  .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
# |  |  |  |  |
# *  *  *  *  * user-name command to be executed
17 *    * * *   root    cd / && run-parts --report /etc/cron.hourly
25 6    * * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6    * * 7   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6    1 * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
#

# Envía datos a Meteoclimatic cada 5 minutos, empezando en el minuto 1 de cada hora
1-59/5 *   * * *   root    /etc/weewx/meteoclimatic.py

# Pihole Logs
0 0 * * * root /usr/sbin/logrotate --force /etc/pihole/logrotate-custom
@reboot root /usr/sbin/logrotate /etc/pihole/logrotate-custom

Sin embargo, siguiendo tus indicaciones he accedido de esta forma: sudo crontab -e y tengo esto otro:

Código: [Seleccionar]
# Notice that tasks will be started based on the cron's system
# daemon's notion of time and timezones.
#
# Output of the crontab jobs (including errors) is sent through
# email to the user the crontab file belongs to (unless redirected).
#
# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
#
# For more information see the manual pages of crontab(5) and cron(8)
#
# m h  dom mon dow   command
*/5 * * * * /usr/bin/imagen.sh

Sin embargo, nada, entro por ftp a las carpetas, y no veo que se esté creando nada en var/www/html/webcam (que es la ruta del imagen.sh, pongo el código a continuación:

Código: [Seleccionar]
#!/bin/sh

export DATETIME=`date +%Y%m%d%H%M%S`

rm -f /var/www/html/webcam/image.jpg

ffmpeg -rtsp_transport tcp -i rtsp://xxxxxxxx:xxxxxxx#@10.10.1.122:554/cam/realmonitor?channel=1_subtype=0 -vframes 1 -r 1 /var/www/html/webcam/image.jpg

cp /var/www/html/webcam/image.jpg /media/pi/8914-17F8/Dahua/$DATETIME.jpg


(por supuesto user y pass he puesto xxxx)

26
Skin Belchertown / Re:Problemas con Belchertown skin
« en: 12 de Noviembre del 2021, 12:30:08 pm »
Entendidísimo jmviper. No deja de sorprenderme que esté así programado!

Pero bueno, ahora al próximo reto, que es tratar de meter una imagen de la cámara IP que tengo en el mastil.

Un saludo

27
Skin Belchertown / Re:Problemas con Belchertown skin
« en: 09 de Noviembre del 2021, 22:29:18 pm »
No me lo puedo creer.

Efectivamente acudí a aerisweather como he comentado para "reactivar" (no sé por qué habría de hacerlo, yo entendí que en aeris una vez te registrabas y activavas una APP y te linkabas con tu cuenta PWS Weather, ya te dejaban tirar de sus forecasts) he reiniciado la raspberry, y efectivamente ya está operativo Weewx con Belchertown funcionando.

Es decir, los forecasts de Aeris son responsables de que deje de funcionar el portal web de weewx! Alucinante... y lo que no acabo de entender es, qué hizo que en su día, algo desactivase el reporte de datos de mi cuenta AerisWeather, para que acto seguido la skin fallase y por tanto weewex dejase de estar accesible via web.

28
Skin Belchertown / Re:Problemas con Belchertown skin
« en: 09 de Noviembre del 2021, 21:55:03 pm »
Y finalmente el log una vez que hago el cambio indicando que el log sea Belchertown.

Código: [Seleccionar]
Nov  9 21:20:11 raspberrypi weewx[1205] DEBUG user.interceptor: empty queue
Nov  9 21:20:21 raspberrypi weewx[1205] DEBUG user.interceptor: empty queue
Nov  9 21:20:25 raspberrypi weewx[1205] DEBUG user.interceptor: POST: PASSKEY=XXXX&stationtype=EasyWeatherV1.5.9&dateutc=2021-11-09+20:20:22&tempinf=75.6&humidityin=50&baromrelin=29.929&baromabsin=30.130&tempf=51.6&humidity=85&winddir=59&windspeedmph=0.0&windgustmph=0.0&maxdailygust=9.$
Nov  9 21:20:25 raspberrypi weewx[1205] DEBUG user.interceptor: raw data: PASSKEY=F2DCB928FAE3933F0D7647399ACFAF17&stationtype=EasyWeatherV1.5.9&dateutc=2021-11-09+20:20:22&tempinf=75.6&humidityin=50&baromrelin=29.929&baromabsin=30.130&tempf=51.6&humidity=85&winddir=59&windspeedmph=0.0$
Nov  9 21:20:25 raspberrypi weewx[1205] DEBUG user.interceptor: ignored parameter PASSKEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Nov  9 21:20:25 raspberrypi weewx[1205] DEBUG user.interceptor: ignored parameter stationtype=EasyWeatherV1.5.9
Nov  9 21:20:25 raspberrypi weewx[1205] DEBUG user.interceptor: ignored parameter baromrelin=29.929
Nov  9 21:20:25 raspberrypi weewx[1205] DEBUG user.interceptor: ignored parameter maxdailygust=9.2
Nov  9 21:20:25 raspberrypi weewx[1205] DEBUG user.interceptor: ignored parameter eventrainin=0.291
Nov  9 21:20:25 raspberrypi weewx[1205] DEBUG user.interceptor: ignored parameter hourlyrainin=0.000
Nov  9 21:20:25 raspberrypi weewx[1205] DEBUG user.interceptor: ignored parameter dailyrainin=0.008
Nov  9 21:20:25 raspberrypi weewx[1205] DEBUG user.interceptor: ignored parameter weeklyrainin=0.311
Nov  9 21:20:25 raspberrypi weewx[1205] DEBUG user.interceptor: ignored parameter monthlyrainin=4.551
Nov  9 21:20:25 raspberrypi weewx[1205] DEBUG user.interceptor: ignored parameter freq=868M
Nov  9 21:20:25 raspberrypi weewx[1205] DEBUG user.interceptor: ignored parameter model=WS2900_V2.01.16
Nov  9 21:20:25 raspberrypi weewx[1205] DEBUG user.interceptor: raw packet: {'dateTime': 1636489222, 'usUnits': 1, 'temperature_in': 75.6, 'humidity_in': 50.0, 'pressure': 30.13, 'temperature_out': 51.6, 'humidity_out': 85.0, 'wind_dir': 59.0, 'wind_speed': 0.0, 'wind_gust': 0.0, 'rain$
Nov  9 21:20:25 raspberrypi weewx[1205] DEBUG user.interceptor: mapped packet: {'dateTime': 1636489222, 'usUnits': 1, 'pressure': 30.13, 'outHumidity': 85.0, 'inHumidity': 50.0, 'outTemp': 51.6, 'inTemp': 75.6, 'windSpeed': 0.0, 'windGust': 0.0, 'windDir': 59.0, 'radiation': 0.0, 'rain$
Nov  9 21:20:25 raspberrypi weewx[1205] INFO weewx.manager: Added record 2021-11-09 21:20:00 CET (1636489200) to database 'weewx.sdb'
Nov  9 21:20:25 raspberrypi weewx[1205] INFO weewx.manager: Added record 2021-11-09 21:20:00 CET (1636489200) to daily summary in 'weewx.sdb'
Nov  9 21:20:25 raspberrypi weewx[1205] DEBUG weewx.reportengine: Running reports for latest time in the database.
Nov  9 21:20:25 raspberrypi weewx[1205] DEBUG weewx.reportengine: Report 'SeasonsReport' not enabled. Skipping.
Nov  9 21:20:25 raspberrypi weewx[1205] DEBUG weewx.reportengine: Report 'SmartphoneReport' not enabled. Skipping.
Nov  9 21:20:25 raspberrypi weewx[1205] DEBUG weewx.reportengine: Report 'MobileReport' not enabled. Skipping.
Nov  9 21:20:25 raspberrypi weewx[1205] DEBUG weewx.reportengine: Report 'StandardReport' not enabled. Skipping.
Nov  9 21:20:25 raspberrypi weewx[1205] DEBUG weewx.reportengine: Running report 'Belchertown'
Nov  9 21:20:26 raspberrypi weewx[1205] DEBUG weewx.reportengine: Found configuration file /etc/weewx/skins/Belchertown/skin.conf for report 'Belchertown'
Nov  9 21:20:26 raspberrypi weewx[1205] DEBUG weewx.cheetahgenerator: Using search list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extr$
Nov  9 21:20:26 raspberrypi weewx[1205] DEBUG weewx.manager: Daily summary version is 4.0
Nov  9 21:20:26 raspberrypi weewx[1205] INFO user.belchertown: version 1.2
Nov  9 21:20:26 raspberrypi weewx[1205] ERROR weewx.reportengine: Caught unrecoverable exception in generator 'weewx.cheetahgenerator.CheetahGenerator'
Nov  9 21:20:26 raspberrypi weewx[1205] ERROR weewx.reportengine:         ****  Error downloading forecast data. Check the URL in your configuration and try again. You are trying to use URL: https://api.aerisapi.com/forecasts/43.465,-3.800?&format=json&filter=day&limit=7&client_id=2mit$
Nov  9 21:20:26 raspberrypi weewx[1205] ERROR weewx.reportengine:         ****  Traceback (most recent call last):
Nov  9 21:20:26 raspberrypi weewx[1205] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/user/belchertown.py", line 937, in get_extension_list
Nov  9 21:20:26 raspberrypi weewx[1205] ERROR weewx.reportengine:         ****      response = urlopen( req )
Nov  9 21:20:26 raspberrypi weewx[1205] ERROR weewx.reportengine:         ****    File "/usr/lib/python3.7/urllib/request.py", line 222, in urlopen
Nov  9 21:20:26 raspberrypi weewx[1205] ERROR weewx.reportengine:         ****      return opener.open(url, data, timeout)
Nov  9 21:20:26 raspberrypi weewx[1205] ERROR weewx.reportengine:         ****    File "/usr/lib/python3.7/urllib/request.py", line 531, in open
Nov  9 21:20:26 raspberrypi weewx[1205] ERROR weewx.reportengine:         ****      response = meth(req, response)
Nov  9 21:20:26 raspberrypi weewx[1205] ERROR weewx.reportengine:         ****    File "/usr/lib/python3.7/urllib/request.py", line 641, in http_response
Nov  9 21:20:26 raspberrypi weewx[1205] ERROR weewx.reportengine:         ****      'http', request, response, code, msg, hdrs)
Nov  9 21:20:26 raspberrypi weewx[1205] ERROR weewx.reportengine:         ****    File "/usr/lib/python3.7/urllib/request.py", line 569, in error
Nov  9 21:20:26 raspberrypi weewx[1205] ERROR weewx.reportengine:         ****      return self._call_chain(*args)
Nov  9 21:20:26 raspberrypi weewx[1205] ERROR weewx.reportengine:         ****    File "/usr/lib/python3.7/urllib/request.py", line 503, in _call_chain
Nov  9 21:20:26 raspberrypi weewx[1205] ERROR weewx.reportengine:         ****      result = func(*args)
Nov  9 21:20:26 raspberrypi weewx[1205] ERROR weewx.reportengine:         ****    File "/usr/lib/python3.7/urllib/request.py", line 649, in http_error_default
Nov  9 21:20:26 raspberrypi weewx[1205] ERROR weewx.reportengine:         ****      raise HTTPError(req.full_url, code, msg, hdrs, fp)
Nov  9 21:20:26 raspberrypi weewx[1205] ERROR weewx.reportengine:         ****  urllib.error.HTTPError: HTTP Error 401: Unauthorized
Nov  9 21:20:26 raspberrypi weewx[1205] ERROR weewx.reportengine:         ****
Nov  9 21:20:26 raspberrypi weewx[1205] ERROR weewx.reportengine:         ****  During handling of the above exception, another exception occurred:
Nov  9 21:20:26 raspberrypi weewx[1205] ERROR weewx.reportengine:         ****
Nov  9 21:20:26 raspberrypi weewx[1205] ERROR weewx.reportengine:         ****  Traceback (most recent call last):
Nov  9 21:20:26 raspberrypi weewx[1205] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/reportengine.py", line 196, in run
Nov  9 21:20:26 raspberrypi weewx[1205] ERROR weewx.reportengine:         ****      obj.start()
Nov  9 21:20:26 raspberrypi weewx[1205] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/reportengine.py", line 281, in start
Nov  9 21:20:26 raspberrypi weewx[1205] ERROR weewx.reportengine:         ****      self.run()
Nov  9 21:20:26 raspberrypi weewx[1205] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 152, in run
Nov  9 21:20:26 raspberrypi weewx[1205] ERROR weewx.reportengine:         ****      ngen = self.generate(gen_dict[section_name], self.gen_ts)
Nov  9 21:20:26 raspberrypi weewx[1205] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 222, in generate
Nov  9 21:20:26 raspberrypi weewx[1205] ERROR weewx.reportengine:         ****      ngen += self.generate(section[subsection], gen_ts)
Nov  9 21:20:26 raspberrypi weewx[1205] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 222, in generate
Nov  9 21:20:26 raspberrypi weewx[1205] ERROR weewx.reportengine:         ****      ngen += self.generate(section[subsection], gen_ts)
Nov  9 21:20:26 raspberrypi weewx[1205] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 311, in generate
Nov  9 21:20:26 raspberrypi weewx[1205] ERROR weewx.reportengine:         ****      default_binding)
Nov  9 21:20:26 raspberrypi weewx[1205] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 387, in _getSearchList
Nov  9 21:20:26 raspberrypi weewx[1205] ERROR weewx.reportengine:         ****      searchList += obj.get_extension_list(timespan, db_lookup)
Nov  9 21:20:26 raspberrypi weewx[1205] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/user/belchertown.py", line 971, in get_extension_list
Nov  9 21:20:26 raspberrypi weewx[1205] ERROR weewx.reportengine:         ****      raise Warning( "Error downloading forecast data. Check the URL in your configuration and try again. You are trying to use URL: %s, and the error is: %s" % ( forecast_url, error ) )
Nov  9 21:20:26 raspberrypi weewx[1205] ERROR weewx.reportengine:         ****  Warning: Error downloading forecast data. Check the URL in your configuration and try again. You are trying to use URL: https://api.aerisapi.com/forecasts/43.465,-3.800?&format=json&filter=day&limit=7&clien$
Nov  9 21:20:26 raspberrypi weewx[1205] ERROR weewx.reportengine:         ****  Generator terminated
Nov  9 21:20:26 raspberrypi weewx[1205] INFO weewx.reportengine: Copied 37 files to /var/www/html/weewx
Nov  9 21:20:26 raspberrypi weewx[1205] DEBUG weewx.manager: Daily summary version is 4.0
Nov  9 21:20:27 raspberrypi weewx[1205] INFO weewx.restx: PWSWeather: Published record 2021-11-09 21:20:00 CET (1636489200)
Nov  9 21:20:28 raspberrypi weewx[1205] DEBUG weewx.reportengine: Report 'FTP' not enabled. Skipping.
Nov  9 21:20:28 raspberrypi weewx[1205] DEBUG weewx.reportengine: Report 'RSYNC' not enabled. Skipping.
Nov  9 21:20:35 raspberrypi weewx[1205] DEBUG user.interceptor: empty queue
Nov  9 21:20:45 raspberrypi weewx[1205] DEBUG user.interceptor: empty queue
Nov  9 21:20:55 raspberrypi weewx[1205] DEBUG user.interceptor: empty queue
Nov  9 21:21:05 raspberrypi weewx[1205] DEBUG user.interceptor: empty queue
Nov  9 21:21:15 raspberrypi weewx[1205] DEBUG user.interceptor: empty queue
Nov  9 21:21:25 raspberrypi weewx[1205] DEBUG user.interceptor: empty queue
Nov  9 21:21:28 raspberrypi weewx[1205] DEBUG user.interceptor: POST: PASSKEY=XXXX&stationtype=EasyWeatherV1.5.9&dateutc=2021-11-09+20:21:26&tempinf=75.6&humidityin=50&baromrelin=29.926&baromabsin=30.127&tempf=51.6&humidity=84&winddir=59&windspeedmph=0.0&windgustmph=0.0&maxdailygust=9.$
Nov  9 21:21:28 raspberrypi weewx[1205] DEBUG user.interceptor: raw data: PASSKEY=F2DCB928FAE3933F0D7647399ACFAF17&stationtype=EasyWeatherV1.5.9&dateutc=2021-11-09+20:21:26&tempinf=75.6&humidityin=50&baromrelin=29.926&baromabsin=30.127&tempf=51.6&humidity=84&winddir=59&windspeedmph=0.0$
Nov  9 21:21:28 raspberrypi weewx[1205] DEBUG user.interceptor: ignored parameter PASSKEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Nov  9 21:21:28 raspberrypi weewx[1205] DEBUG user.interceptor: ignored parameter stationtype=EasyWeatherV1.5.9
Nov  9 21:21:28 raspberrypi weewx[1205] DEBUG user.interceptor: ignored parameter baromrelin=29.926
Nov  9 21:21:28 raspberrypi weewx[1205] DEBUG user.interceptor: ignored parameter maxdailygust=9.2

Y como comentario, indicar que ya me he encargado de "resolver" el error que indica sobre la descarga de forecasts. He accedido a aerisweather, y aparentemente, en APPs he tenido que re-activar el uso de mi user-phrasekey. No sé por qué se habría desactivado.

Sea como fuere, entiendo que el resto de errores no tienen que ver con este de la descarga de los forecasts. Y que en cualquier caso, el error en la descarga de forecasts no impediría que se mostrase la web en sí...

29
Skin Belchertown / Re:Problemas con Belchertown skin
« en: 09 de Noviembre del 2021, 21:54:52 pm »
Ahora parte del fichero conf donde indico que es Belchertown la skin que avtivo en vez de la Seasons:
Código: [Seleccionar]
#   This section specifies what reports, using which skins, to generate.

[StdReport]

    # Where the skins reside, relative to WEEWX_ROOT
    SKIN_ROOT = /etc/weewx/skins

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

    # The database binding indicates which data should be used in reports.
    data_binding = wx_binding

    # Whether to log a successful operation
    log_success = True

    # Whether to log an unsuccessful operation
    log_failure = True

    # Each of the following subsections defines a report that will be run.
    # See the customizing guide to change the units, plot types and line
    # colors, modify the fonts, display additional sensor data, and other
    # customizations. Many of those changes can be made here by overriding
    # parameters, or by modifying templates within the skin itself.

    [[SeasonsReport]]
        # The SeasonsReport uses the 'Seasons' skin, which contains the
        # images, templates and plots for the report.
        skin = Seasons
        enable = false

    [[SmartphoneReport]]
        # The SmartphoneReport uses the 'Smartphone' skin, and the images and
        # files are placed in a dedicated subdirectory.
        skin = Smartphone
        enable = false
        HTML_ROOT = /var/www/html/weewx/smartphone

    [[MobileReport]]
        # The MobileReport uses the 'Mobile' skin, and the images and files
        # are placed in a dedicated subdirectory.
        skin = Mobile
        enable = false
        HTML_ROOT = /var/www/html/weewx/mobile

    [[StandardReport]]
        # This is the old "Standard" skin. By default, it is not enabled.
        skin = Standard
        enable = false

    [[Belchertown]]
        skin = Belchertown
        # HTML_ROOT = public_html/belchertown
        enable = true

    [[FTP]]
        # FTP'ing the results to a webserver is treated as just another report,
        # albeit one with an unusual report generator!
        skin = Ftp

        # If you wish to use FTP, set "enable" to "true", then
        # fill out the next four lines.
        # Use quotes around passwords to guard against parsing errors.
        enable = false
        user = replace_me
        password = replace_me
        server = replace_me    # The ftp server name, e.g, www.myserver.org
        path = replace_me    # The destination directory, e.g., /weather

        # Set to True for an FTP over TLS (FTPS) connection. Not all servers
        # support this.
        secure_ftp = False

        # To upload files from something other than what HTML_ROOT is set
        # to above, specify a different HTML_ROOT here.
        #HTML_ROOT = /var/www/html/weewx

        # Most FTP servers use port 21
        port = 21

        # Set to 1 to use passive mode, zero for active mode

30
Skin Belchertown / Re:Problemas con Belchertown skin
« en: 09 de Noviembre del 2021, 21:54:33 pm »
Tienes toda la razón jmviper. Allá voy:

Primero el log del server funcionando correctamente. Es decir, habiendo indicado que el skin sea el Seasons:

Código: [Seleccionar]
Nov  9 16:22:33 raspberrypi weewx[1298] DEBUG user.interceptor: POST: PASSKEY=XXXX&stationtype=EasyWeatherV1.5.9&dateutc=2021-11-09+15:22:30&tempinf=76.3&humidityin=48&baromrelin=29.909&baromabsin=30.110&tempf=58.3&humidity=72&winddir=37&windspeedmph=2.2&windgustmph=3.4&maxdailygust=9.2&rainratein=0.000&eventrainin=0.291&hourlyrainin=0.000&$
Nov  9 16:22:33 raspberrypi weewx[1298] DEBUG user.interceptor: raw data: PASSKEY=F2DCB928FAE3933F0D7647399ACFAF17&stationtype=EasyWeatherV1.5.9&dateutc=2021-11-09+15:22:30&tempinf=76.3&humidityin=48&baromrelin=29.909&baromabsin=30.110&tempf=58.3&humidity=72&winddir=37&windspeedmph=2.2&windgustmph=3.4&maxdailygust=9.2&rainratein=0.000&event$
Nov  9 16:22:33 raspberrypi weewx[1298] DEBUG user.interceptor: ignored parameter PASSKEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Nov  9 16:22:33 raspberrypi weewx[1298] DEBUG user.interceptor: ignored parameter stationtype=EasyWeatherV1.5.9
Nov  9 16:22:33 raspberrypi weewx[1298] DEBUG user.interceptor: ignored parameter baromrelin=29.909
Nov  9 16:22:33 raspberrypi weewx[1298] DEBUG user.interceptor: ignored parameter maxdailygust=9.2
Nov  9 16:22:33 raspberrypi weewx[1298] DEBUG user.interceptor: ignored parameter eventrainin=0.291
Nov  9 16:22:33 raspberrypi weewx[1298] DEBUG user.interceptor: ignored parameter hourlyrainin=0.000
Nov  9 16:22:33 raspberrypi weewx[1298] DEBUG user.interceptor: ignored parameter dailyrainin=0.008
Nov  9 16:22:33 raspberrypi weewx[1298] DEBUG user.interceptor: ignored parameter weeklyrainin=0.311
Nov  9 16:22:33 raspberrypi weewx[1298] DEBUG user.interceptor: ignored parameter monthlyrainin=4.551
Nov  9 16:22:33 raspberrypi weewx[1298] DEBUG user.interceptor: ignored parameter freq=868M
Nov  9 16:22:33 raspberrypi weewx[1298] DEBUG user.interceptor: ignored parameter model=WS2900_V2.01.16
Nov  9 16:22:33 raspberrypi weewx[1298] DEBUG user.interceptor: raw packet: {'dateTime': 1636471350, 'usUnits': 1, 'temperature_in': 76.3, 'humidity_in': 48.0, 'pressure': 30.11, 'temperature_out': 58.3, 'humidity_out': 72.0, 'wind_dir': 37.0, 'wind_speed': 2.2, 'wind_gust': 3.4, 'rain_rate': 0.0, 'rain_total': 5.642, 'solar_radiation': 86.$
Nov  9 16:22:33 raspberrypi weewx[1298] DEBUG user.interceptor: mapped packet: {'dateTime': 1636471350, 'usUnits': 1, 'pressure': 30.11, 'outHumidity': 72.0, 'inHumidity': 48.0, 'outTemp': 58.3, 'inTemp': 76.3, 'windSpeed': 2.2, 'windGust': 3.4, 'windDir': 37.0, 'radiation': 86.73, 'rain': 0.0, 'rainRate': 0.0, 'UV': 0.0}
Nov  9 16:22:43 raspberrypi weewx[1298] DEBUG user.interceptor: empty queue
Nov  9 16:22:53 raspberrypi weewx[1298] DEBUG user.interceptor: empty queue
Nov  9 16:23:03 raspberrypi weewx[1298] DEBUG user.interceptor: empty queue
Nov  9 16:23:13 raspberrypi weewx[1298] DEBUG user.interceptor: empty queue
Nov  9 16:23:23 raspberrypi weewx[1298] DEBUG user.interceptor: empty queue
Nov  9 16:23:33 raspberrypi weewx[1298] DEBUG user.interceptor: empty queue
Nov  9 16:23:36 raspberrypi weewx[1298] DEBUG user.interceptor: POST: PASSKEY=XXXX&stationtype=EasyWeatherV1.5.9&dateutc=2021-11-09+15:23:34&tempinf=76.3&humidityin=48&baromrelin=29.909&baromabsin=30.110&tempf=58.3&humidity=72&winddir=45&windspeedmph=1.8&windgustmph=3.4&maxdailygust=9.2&rainratein=0.000&eventrainin=0.291&hourlyrainin=0.000&$
Nov  9 16:23:36 raspberrypi weewx[1298] DEBUG user.interceptor: raw data: PASSKEY=F2DCB928FAE3933F0D7647399ACFAF17&stationtype=EasyWeatherV1.5.9&dateutc=2021-11-09+15:23:34&tempinf=76.3&humidityin=48&baromrelin=29.909&baromabsin=30.110&tempf=58.3&humidity=72&winddir=45&windspeedmph=1.8&windgustmph=3.4&maxdailygust=9.2&rainratein=0.000&event$
Nov  9 16:23:36 raspberrypi weewx[1298] DEBUG user.interceptor: ignored parameter PASSKEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Nov  9 16:23:36 raspberrypi weewx[1298] DEBUG user.interceptor: ignored parameter stationtype=EasyWeatherV1.5.9
Nov  9 16:23:36 raspberrypi weewx[1298] DEBUG user.interceptor: ignored parameter baromrelin=29.909
Nov  9 16:23:36 raspberrypi weewx[1298] DEBUG user.interceptor: ignored parameter maxdailygust=9.2
Nov  9 16:23:36 raspberrypi weewx[1298] DEBUG user.interceptor: ignored parameter eventrainin=0.291
Nov  9 16:23:36 raspberrypi weewx[1298] DEBUG user.interceptor: ignored parameter hourlyrainin=0.000
Nov  9 16:23:36 raspberrypi weewx[1298] DEBUG user.interceptor: ignored parameter dailyrainin=0.008
Nov  9 16:23:36 raspberrypi weewx[1298] DEBUG user.interceptor: ignored parameter weeklyrainin=0.311
Nov  9 16:23:36 raspberrypi weewx[1298] DEBUG user.interceptor: ignored parameter monthlyrainin=4.551
Nov  9 16:23:36 raspberrypi weewx[1298] DEBUG user.interceptor: ignored parameter freq=868M
Nov  9 16:23:36 raspberrypi weewx[1298] DEBUG user.interceptor: ignored parameter model=WS2900_V2.01.16
Nov  9 16:23:36 raspberrypi weewx[1298] DEBUG user.interceptor: raw packet: {'dateTime': 1636471414, 'usUnits': 1, 'temperature_in': 76.3, 'humidity_in': 48.0, 'pressure': 30.11, 'temperature_out': 58.3, 'humidity_out': 72.0, 'wind_dir': 45.0, 'wind_speed': 1.8, 'wind_gust': 3.4, 'rain_rate': 0.0, 'rain_total': 5.642, 'solar_radiation': 76.$
Nov  9 16:23:36 raspberrypi weewx[1298] DEBUG user.interceptor: mapped packet: {'dateTime': 1636471414, 'usUnits': 1, 'pressure': 30.11, 'outHumidity': 72.0, 'inHumidity': 48.0, 'outTemp': 58.3, 'inTemp': 76.3, 'windSpeed': 1.8, 'windGust': 3.4, 'windDir': 45.0, 'radiation': 76.94, 'rain': 0.0, 'rainRate': 0.0, 'UV': 0.0}
Nov  9 16:23:46 raspberrypi weewx[1298] DEBUG user.interceptor: empty queue
Nov  9 16:23:56 raspberrypi weewx[1298] DEBUG user.interceptor: empty queue
Nov  9 16:24:06 raspberrypi weewx[1298] DEBUG user.interceptor: empty queue
Nov  9 16:24:16 raspberrypi weewx[1298] DEBUG user.interceptor: empty queue
Nov  9 16:24:26 raspberrypi weewx[1298] DEBUG user.interceptor: empty queue
Nov  9 16:24:36 raspberrypi weewx[1298] DEBUG user.interceptor: empty queue
Nov  9 16:24:40 raspberrypi weewx[1298] DEBUG user.interceptor: POST: PASSKEY=XXXX&stationtype=EasyWeatherV1.5.9&dateutc=2021-11-09+15:24:38&tempinf=76.3&humidityin=48&baromrelin=29.903&baromabsin=30.104&tempf=58.3&humidity=71&winddir=126&windspeedmph=2.5&windgustmph=4.5&maxdailygust=9.2&rainratein=0.000&eventrainin=0.291&hourlyrainin=0.000$
Nov  9 16:24:40 raspberrypi weewx[1298] DEBUG user.interceptor: raw data: PASSKEY=F2DCB928FAE3933F0D7647399ACFAF17&stationtype=EasyWeatherV1.5.9&dateutc=2021-11-09+15:24:38&tempinf=76.3&humidityin=48&baromrelin=29.903&baromabsin=30.104&tempf=58.3&humidity=71&winddir=126&windspeedmph=2.5&windgustmph=4.5&maxdailygust=9.2&rainratein=0.000&even$
Nov  9 16:24:40 raspberrypi weewx[1298] DEBUG user.interceptor: ignored parameter PASSKEY=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Nov  9 16:24:40 raspberrypi weewx[1298] DEBUG user.interceptor: ignored parameter stationtype=EasyWeatherV1.5.9
Nov  9 16:24:40 raspberrypi weewx[1298] DEBUG user.interceptor: ignored parameter baromrelin=29.903
Nov  9 16:24:40 raspberrypi weewx[1298] DEBUG user.interceptor: ignored parameter maxdailygust=9.2
Nov  9 16:24:40 raspberrypi weewx[1298] DEBUG user.interceptor: ignored parameter eventrainin=0.291
Nov  9 16:24:40 raspberrypi weewx[1298] DEBUG user.interceptor: ignored parameter hourlyrainin=0.000
Nov  9 16:24:40 raspberrypi weewx[1298] DEBUG user.interceptor: ignored parameter dailyrainin=0.008
Nov  9 16:24:40 raspberrypi weewx[1298] DEBUG user.interceptor: ignored parameter weeklyrainin=0.311
Nov  9 16:24:40 raspberrypi weewx[1298] DEBUG user.interceptor: ignored parameter monthlyrainin=4.551
Nov  9 16:24:40 raspberrypi weewx[1298] DEBUG user.interceptor: ignored parameter freq=868M
Nov  9 16:24:40 raspberrypi weewx[1298] DEBUG user.interceptor: ignored parameter model=WS2900_V2.01.16
Nov  9 16:24:40 raspberrypi weewx[1298] DEBUG user.interceptor: raw packet: {'dateTime': 1636471478, 'usUnits': 1, 'temperature_in': 76.3, 'humidity_in': 48.0, 'pressure': 30.104, 'temperature_out': 58.3, 'humidity_out': 71.0, 'wind_dir': 126.0, 'wind_speed': 2.5, 'wind_gust': 4.5, 'rain_rate': 0.0, 'rain_total': 5.642, 'solar_radiation': 8$
Nov  9 16:24:40 raspberrypi weewx[1298] DEBUG user.interceptor: mapped packet: {'dateTime': 1636471478, 'usUnits': 1, 'pressure': 30.104, 'outHumidity': 71.0, 'inHumidity': 48.0, 'outTemp': 58.3, 'inTemp': 76.3, 'windSpeed': 2.5, 'windGust': 4.5, 'windDir': 126.0, 'radiation': 87.88, 'rain': 0.0, 'rainRate': 0.0, 'UV': 0.0}
Nov  9 16:24:50 raspberrypi weewx[1298] DEBUG user.interceptor: empty queue
Nov  9 16:25:00 raspberrypi weewx[1298] DEBUG user.interceptor: empty queue
Nov  9 16:25:10 raspberrypi weewx[1298] DEBUG user.interceptor: empty queue
Nov  9 16:25:20 raspberrypi weewx[1298] DEBUG user.interceptor: empty queue
Nov  9 16:25:30 raspberrypi weewx[1298] DEBUG user.interceptor: empty queue



Páginas: 1 [2] 3 4