Herramientas de usuario

Herramientas del sitio


personas:brolin:proyectos:agentes_calidad_aire:infraestructura_iot

Diferencias

Muestra las diferencias entre dos versiones de la página.

Enlace a la vista de comparación

Ambos lados, revisión anteriorRevisión previa
Próxima revisión
Revisión previa
personas:brolin:proyectos:agentes_calidad_aire:infraestructura_iot [2017/09/28 22:49] – [MQTT] brolinpersonas:brolin:proyectos:agentes_calidad_aire:infraestructura_iot [2017/11/19 18:54] (actual) – [MQTT] brolin
Línea 32: Línea 32:
  
  
-**influx data format** -> +===== influx data format ===== 
 + 
 https://docs.influxdata.com/influxdb/v1.3/write_protocols/line_protocol_tutorial/\\ https://docs.influxdata.com/influxdb/v1.3/write_protocols/line_protocol_tutorial/\\
 https://docs.influxdata.com/influxdb/v1.3/concepts/glossary/#timestamp\\ https://docs.influxdata.com/influxdb/v1.3/concepts/glossary/#timestamp\\
Línea 38: Línea 39:
 timestamp tiene una formato definido por la precisión, para ajustarlo se hace por medio de un parámetro\\ timestamp tiene una formato definido por la precisión, para ajustarlo se hace por medio de un parámetro\\
 https://docs.influxdata.com/influxdb/v1.3/tools/api/#write https://docs.influxdata.com/influxdb/v1.3/tools/api/#write
 +
 +https://support.influxdb.com/hc/en-us/articles/205177928-What-time-formats-are-allowed-
  
 ^ Query String Parameter     ^ Optional/Required  ^ Description                                                                                                                                   ^ ^ Query String Parameter     ^ Optional/Required  ^ Description                                                                                                                                   ^
 | precision=[ns,u,ms,s,m,h]  | Optional           | Sets the precision for the supplied Unix time values. InfluxDB assumes that timestamps are in nanoseconds if you do not specify precision.**  | | precision=[ns,u,ms,s,m,h]  | Optional           | Sets the precision for the supplied Unix time values. InfluxDB assumes that timestamps are in nanoseconds if you do not specify precision.**  |
  
 +**Schema Design**\\
 +https://docs.influxdata.com/influxdb/v1.3/concepts/schema_and_data_layout/
  
-===== Convertir CSV en Flash a influx data format para enviar por MQTT ===== +===== ESP8266 Wireless NTP Server =====
- +
-**Función strtok:** Del manual de linux para strtok +
- +
-<code> +
-EXAMPLE +
-       The  program  below  uses  nested  loops  that employ strtok_r() to break a string into a two-level hierarchy of tokens.  The first command-line argument specifies the +
-       string to be parsed.  The second argument specifies the delimiter byte(s) to be used to separate that string into "major" tokens.  The  third  argument  specifies  the +
-       delimiter byte(s) to be used to separate the "major" tokens into subtokens. +
- +
-       An example of the output produced by this program is the following: +
- +
-           $ ./a.out 'a/bbb///cc;xxx:yyy:' ':;' '/' +
-           1: a/bbb///cc +
-                    --> a +
-                    --> bbb +
-                    --> cc +
-           2: xxx +
-                    --> xxx +
-           3: yyy +
-                    --> yyy +
- +
-   Program source +
- +
-       #include <stdio.h> +
-       #include <stdlib.h> +
-       #include <string.h> +
- +
-       int +
-       main(int argc, char *argv[]) +
-       { +
-           char *str1, *str2, *token, *subtoken; +
-           char *saveptr1, *saveptr2; +
-           int j; +
- +
-           if (argc != 4) { +
-               fprintf(stderr, "Usage: %s string delim subdelim\n", +
-                       argv[0]); +
-               exit(EXIT_FAILURE); +
-           } +
- +
-           for (j = 1, str1 = argv[1]; ; j++, str1 = NULL) { +
-               token = strtok_r(str1, argv[2], &saveptr1); +
-               if (token == NULL) +
-                   break; +
-               printf("%d: %s\n", j, token); +
- +
-               for (str2 = token; ; str2 = NULL) { +
-                   subtoken = strtok_r(str2, argv[3], &saveptr2); +
-                   if (subtoken == NULL) +
-                       break; +
-                   printf(" --> %s\n", subtoken); +
-               } +
-           }+
  
-           exit(EXIT_SUCCESS); +https://www.epochconverter.com/programming/c\\
-       } +
-</code>+
  
-**Crean servidor NTP de la hora obtenida con el GPS** -> https://www.hackster.io/Absolutelyautomation/esp8266-based-wireless-ntp-server-b77926+https://www.hackster.io/Absolutelyautomation/esp8266-based-wireless-ntp-server-b77926\\ 
 +http://www.instructables.com/id/ESP8266-Wireless-NTP-Stratum1-Server/\\ 
 +https://hackaday.io/project/28013-esp8266-gps-ntp-server\\
personas/brolin/proyectos/agentes_calidad_aire/infraestructura_iot.1506638972.txt.gz · Última modificación: 2017/09/28 22:49 por brolin