Estaciones Meteoclimatic > Envío de datos a Meteoclimatic
Utilidad de envío de la plantilla en Python
Telares:
root@raspberrypi:~# ls -l /var/www/html/weewx
total 636
-rw-r--r-- 1 root root 3865 feb 12 16:05 celestial.html
-rw-r--r-- 1 root root 7294 feb 12 16:05 daybarometer.png
-rw-r--r-- 1 root root 6072 feb 12 16:05 dayhum.png
-rw-r--r-- 1 root root 5935 feb 12 16:05 dayradiation.png
-rw-r--r-- 1 root root 6132 feb 12 16:05 dayrain.png
-rw-r--r-- 1 root root 5894 feb 12 16:05 dayrx.png
-rw-r--r-- 1 root root 8842 feb 12 16:05 daytempdew.png
-rw-r--r-- 1 root root 6846 feb 12 16:05 daytempfeel.png
-rw-r--r-- 1 root root 7352 feb 12 16:05 daytempin.png
-rw-r--r-- 1 root root 8233 feb 12 16:05 daytemp.png
-rw-r--r-- 1 root root 5269 feb 12 16:05 dayuv.png
-rw-r--r-- 1 root root 11168 feb 12 16:05 dayvolt.png
-rw-r--r-- 1 root root 8349 feb 12 16:05 daywinddir.png
-rw-r--r-- 1 root root 9568 feb 12 16:05 daywind.png
-rw-r--r-- 1 root root 8048 feb 12 16:05 daywindvec.png
-rw-r--r-- 1 root root 1150 feb 12 15:06 favicon.ico
drwxr-xr-x 2 root root 4096 feb 11 23:25 font
-rw-r--r-- 1 root root 21272 feb 12 16:05 index.html
-rw-r--r-- 1 root root 513 feb 12 16:05 meteoclimatic.htm
-rw-r--r-- 1 root root 7795 feb 12 15:06 monthbarometer.png
-rw-r--r-- 1 root root 7687 feb 12 15:06 monthhum.png
-rw-r--r-- 1 root root 5649 feb 12 15:06 monthradiation.png
-rw-r--r-- 1 root root 6064 feb 12 15:06 monthrain.png
-rw-r--r-- 1 root root 5719 feb 12 15:06 monthrx.png
-rw-r--r-- 1 root root 10340 feb 12 15:06 monthtempdew.png
-rw-r--r-- 1 root root 9198 feb 12 15:06 monthtempfeel.png
-rw-r--r-- 1 root root 7533 feb 12 15:06 monthtempin.png
-rw-r--r-- 1 root root 7943 feb 12 15:06 monthtemp.png
-rw-r--r-- 1 root root 4976 feb 12 15:06 monthuv.png
-rw-r--r-- 1 root root 10877 feb 12 15:06 monthvolt.png
-rw-r--r-- 1 root root 9079 feb 12 15:06 monthwinddir.png
-rw-r--r-- 1 root root 10640 feb 12 15:06 monthwind.png
-rw-r--r-- 1 root root 7766 feb 12 15:06 monthwindvec.png
drwxr-xr-x 2 root root 4096 feb 12 16:05 NOAA
-rw-r--r-- 1 root root 6111 feb 12 16:05 rss.xml
-rw-r--r-- 1 root root 5106 feb 12 15:06 seasons.css
-rw-r--r-- 1 root root 6232 feb 12 15:06 seasons.js
-rw-r--r-- 1 root root 14892 feb 12 16:05 statistics.html
-rw-r--r-- 1 root root 3024 feb 12 16:05 tabular.html
-rw-r--r-- 1 root root 5200 feb 12 16:05 telemetry.html
-rw-r--r-- 1 root root 8766 feb 12 16:00 weekbarometer.png
-rw-r--r-- 1 root root 7557 feb 12 16:00 weekhum.png
-rw-r--r-- 1 root root 5884 feb 12 16:00 weekradiation.png
-rw-r--r-- 1 root root 5884 feb 12 16:00 weekrain.png
-rw-r--r-- 1 root root 5810 feb 12 16:01 weekrx.png
-rw-r--r-- 1 root root 11320 feb 12 16:00 weektempdew.png
-rw-r--r-- 1 root root 8720 feb 12 16:00 weektempfeel.png
-rw-r--r-- 1 root root 8155 feb 12 16:00 weektempin.png
-rw-r--r-- 1 root root 8175 feb 12 16:00 weektemp.png
-rw-r--r-- 1 root root 5225 feb 12 16:00 weekuv.png
-rw-r--r-- 1 root root 11091 feb 12 16:01 weekvolt.png
-rw-r--r-- 1 root root 8857 feb 12 16:00 weekwinddir.png
-rw-r--r-- 1 root root 10799 feb 12 16:00 weekwind.png
-rw-r--r-- 1 root root 8055 feb 12 16:00 weekwindvec.png
-rw-r--r-- 1 root root 7211 feb 12 00:01 yearbarometer.png
-rw-r--r-- 1 root root 10116 feb 12 00:02 yearhilow.png
-rw-r--r-- 1 root root 8101 feb 12 00:01 yearhum.png
-rw-r--r-- 1 root root 5114 feb 12 00:02 yearradiation.png
-rw-r--r-- 1 root root 6409 feb 12 00:01 yearrain.png
-rw-r--r-- 1 root root 5224 feb 12 00:02 yearrx.png
-rw-r--r-- 1 root root 10533 feb 12 00:01 yeartempdew.png
-rw-r--r-- 1 root root 8154 feb 12 00:01 yeartempfeel.png
-rw-r--r-- 1 root root 8099 feb 12 00:01 yeartempin.png
-rw-r--r-- 1 root root 7417 feb 12 00:01 yeartemp.png
-rw-r--r-- 1 root root 4436 feb 12 00:02 yearuv.png
-rw-r--r-- 1 root root 10353 feb 12 00:02 yearvolt.png
-rw-r--r-- 1 root root 8712 feb 12 00:02 yearwinddir.png
-rw-r--r-- 1 root root 11285 feb 12 00:02 yearwind.png
-rw-r--r-- 1 root root 7733 feb 12 00:02 yearwindvec.png
Telares:
No, lo de abrir puertos es una de las cosas que me han traído de cabeza estos días. No tengo claro ningún concepto y además en el router no veo nada que diga claramente "abrir puertos" aunque fuese en inglés. Puedo decirte que me ha costado un huevo conectarla por wifi y que la asigné una IP fija.
jmviper:
Ok he modificado el script
Edita meteoclimatic.py con nano meteoclimatic.py y desciende hasta las líneas donde pone esto:
for i in inicont:
if '=' in i:
valor = i.strip().split('=')
values[valor[0]] = valor[1]
y déjalas así:
for i in inicont:
if '=' in i:
valor = i.split('=')
values[valor[0].strip()] = valor[1].strip()
No copies y pegues
De todas formas lo pondré en un nuevo adjunto pero no tendrá configuradas las opciones del correo.
En cuanto a lo de abrir el puerto de momento lo dejamos.
Telares:
root@raspberrypi:~/meteoclimatic# ./meteoclimatic.py
T=25;2E;8;2d;-c;2d;-13&H=u;1O;q;1U;o;1U;W&B=2cc;2eA;2cc;2h3;2cc;2j0;2cc&W=3d;;;1w;4M;76&P=;y;74&S=;;;&V=;;;&U=3a;ESCYL2400000024820A;fffb94d8f2
Envio aceptado
jmviper:
Perfecto
En el meteoclimatic.ini habría algún espacio alrededor de los valores. Con la modificación que le hemos hecho no deberá ya haber problema.
Siento el mal rato que has pasado ;)
Navegación
[#] Página Siguiente
[*] Página Anterior
Ir a la versión completa