Salut a tous,
Depuis longtemps j'utilise les WebInput sans probleme, par exemple en accedant au JSON d'OpenWeatherMap avec une url HTTP comme decrit sur le wiki.
Aujourd'hui j'essaie pour la premiere fois d'acceder a un JSON dont l'url est en HTTPS au lieu d'HTTP et ca ne semble pas marcher, j'ai une valeur zero qui est retournee a chaque fois. Comme OpenWeatherMap est aussi accessible en HTTPS, j'ai essaye et j'ai le meme probleme, ca ne marche pas en HTTPS mais ca marche en HTTP. Est-ce normal ?
Voici les logs dans le cas ou ca marche en HTTP (input_64 est correct) :
Voici les logs dans le cas ou ca marche pas en HTTPS (input_64=0) :
Depuis longtemps j'utilise les WebInput sans probleme, par exemple en accedant au JSON d'OpenWeatherMap avec une url HTTP comme decrit sur le wiki.
Aujourd'hui j'essaie pour la premiere fois d'acceder a un JSON dont l'url est en HTTPS au lieu d'HTTP et ca ne semble pas marcher, j'ai une valeur zero qui est retournee a chaque fois. Comme OpenWeatherMap est aussi accessible en HTTPS, j'ai essaye et j'ai le meme probleme, ca ne marche pas en HTTPS mais ca marche en HTTP. Est-ce normal ?
Voici les logs dans le cas ou ca marche en HTTP (input_64 est correct) :
Code:
Aug 07 15:57:48 raspberrypi calaos_server[452]: [INF] input (InputTemp.cpp:120) input_64: 23 °C
Aug 07 15:57:48 raspberrypi calaos_server[452]: [INF] server (CalaosConfig.cpp:276) State cache file written successfully (/home/root/.cache/calaos/iostates.cache)
Aug 07 15:57:31 raspberrypi calaos_server[452]: [ERR] websocket (WebSocket.cpp:508) Can't send data, websocket is not connected
Aug 07 15:57:31 raspberrypi calaos_server[452]: [ERR] websocket (WebSocket.cpp:508) Can't send data, websocket is not connected
Aug 07 15:57:31 raspberrypi calaos_server[452]: [ERR] websocket (WebSocket.cpp:508) Can't send data, websocket is not connected
Aug 07 15:57:31 raspberrypi calaos_server[452]: [ERR] websocket (WebSocket.cpp:508) Can't send data, websocket is not connected
Aug 07 15:57:31 raspberrypi calaos_server[452]: [ERR] websocket (WebSocket.cpp:508) Can't send data, websocket is not connected
Aug 07 15:57:31 raspberrypi calaos_server[452]: [ERR] websocket (WebSocket.cpp:508) Can't send data, websocket is not connected
Aug 07 15:57:31 raspberrypi calaos_server[452]: [ERR] websocket (WebSocket.cpp:508) Can't send data, websocket is not connected
Aug 07 15:57:31 raspberrypi calaos_server[452]: [ERR] websocket (WebSocket.cpp:508) Can't send data, websocket is not connected
Aug 07 15:57:31 raspberrypi calaos_server[452]: [ERR] websocket (WebSocket.cpp:508) Can't send data, websocket is not connected
Aug 07 15:57:31 raspberrypi calaos_server[452]: [ERR] websocket (WebSocket.cpp:508) Can't send data, websocket is not connected
Aug 07 15:57:31 raspberrypi calaos_server[452]: [ERR] websocket (WebSocket.cpp:508) Can't send data, websocket is not connected
Aug 07 15:57:31 raspberrypi calaos_server[452]: [ERR] websocket (WebSocket.cpp:508) Can't send data, websocket is not connected
Aug 07 15:57:31 raspberrypi calaos_server[452]: [INF] input (InputAnalog.cpp:115) input_70: 0
Aug 07 15:57:31 raspberrypi calaos_server[452]: [INF] input (InputAnalog.cpp:115) input_68: 70
Aug 07 15:57:31 raspberrypi calaos_server[452]: [INF] input (InputAnalog.cpp:115) input_67: 1.5
Aug 07 15:57:31 raspberrypi calaos_server[452]: [INF] input (InputAnalog.cpp:115) input_66: 1018
Aug 07 15:57:31 raspberrypi calaos_server[452]: [INF] input (InputAnalog.cpp:115) input_65: 43
Aug 07 15:57:31 raspberrypi calaos_server[452]: [WRN] rule.condition.standard (ConditionStd.cpp:147) get_value(int) not int !
Aug 07 15:57:31 raspberrypi calaos_server[452]: [INF] input (InputTemp.cpp:120) input_64: 23 °C
Aug 07 15:56:48 raspberrypi calaos_server[452]: [ERR] websocket (WebSocket.cpp:508) Can't send data, websocket is not connected
Aug 07 15:56:48 raspberrypi calaos_server[452]: [ERR] websocket (WebSocket.cpp:508) Can't send data, websocket is not connected
Aug 07 15:56:48 raspberrypi calaos_server[452]: [ERR] websocket (WebSocket.cpp:508) Can't send data, websocket is not connected
Voici les logs dans le cas ou ca marche pas en HTTPS (input_64=0) :
Code:
Aug 07 16:08:40 raspberrypi calaos_server[1947]: [INF] input (InputTemp.cpp:120) input_64: 0 °C
Aug 07 16:08:40 raspberrypi calaos_server[1947]: [INF] server (CalaosConfig.cpp:276) State cache file written successfully (/home/root/.cache/calaos/iostates.cache)
Aug 07 16:08:30 raspberrypi calaos_server[1947]: [INF] websocket (WebSocket.cpp:443) Received a PONG back in 00:00.0003
Aug 07 16:08:26 raspberrypi calaos_server[1947]: [INF] input (InputTemp.cpp:120) input_93: 22.75 °C
Aug 07 16:08:15 raspberrypi calaos_server[1947]: [INF] websocket (WebSocket.cpp:443) Received a PONG back in 00:00.0002
Aug 07 16:08:00 raspberrypi calaos_server[1947]: [INF] websocket (WebSocket.cpp:443) Received a PONG back in 00:00.0003
Aug 07 16:07:45 raspberrypi calaos_server[1947]: [INF] websocket (WebSocket.cpp:443) Received a PONG back in 00:00.0003
Aug 07 16:07:41 raspberrypi calaos_server[1947]: [INF] input (InputTemp.cpp:120) input_92: 23.75 °C
Aug 07 16:07:40 raspberrypi calaos_server[1947]: [INF] input (InputAnalog.cpp:115) input_70: 0
Aug 07 16:07:40 raspberrypi calaos_server[1947]: [INF] input (InputAnalog.cpp:115) input_68: 100
Aug 07 16:07:40 raspberrypi calaos_server[1947]: [INF] input (InputAnalog.cpp:115) input_67: 2.6
Aug 07 16:07:40 raspberrypi calaos_server[1947]: [INF] input (InputAnalog.cpp:115) input_66: 1018
Aug 07 16:07:40 raspberrypi calaos_server[1947]: [INF] input (InputAnalog.cpp:115) input_65: 41
Aug 07 16:07:40 raspberrypi calaos_server[1947]: [WRN] rule.condition.standard (ConditionStd.cpp:147) get_value(int) not int !
Aug 07 16:07:40 raspberrypi calaos_server[1947]: [INF] input (InputTemp.cpp:120) input_64: 0 °C
Aug 07 16:07:40 raspberrypi calaos_server[1947]: [INF] input (InputAnalog.cpp:115) input_70: 0
Aug 07 16:07:40 raspberrypi calaos_server[1947]: [INF] input (WebInputString.cpp:84) Read string value : ciel dégagé
Aug 07 16:07:40 raspberrypi calaos_server[1947]: [INF] input (InputAnalog.cpp:115) input_68: 100
Aug 07 16:07:40 raspberrypi calaos_server[1947]: [INF] input (InputAnalog.cpp:115) input_67: 2.6
Aug 07 16:07:40 raspberrypi calaos_server[1947]: [INF] input (InputAnalog.cpp:115) input_66: 1018
Aug 07 16:07:40 raspberrypi calaos_server[1947]: [INF] input (InputAnalog.cpp:115) input_65: 41
Aug 07 16:07:40 raspberrypi calaos_server[1947]: [WRN] rule.condition.standard (ConditionStd.cpp:147) get_value(int) not int !
Aug 07 16:07:40 raspberrypi calaos_server[1947]: [INF] input (InputTemp.cpp:120) input_64: 0 °C
Aug 07 16:07:40 raspberrypi calaos_server[1947]: [INF] server (CalaosConfig.cpp:276) State cache file written successfully (/home/root/.cache/calaos/iostates.cache)
Aug 07 16:07:30 raspberrypi calaos_server[1947]: [INF] websocket (WebSocket.cpp:443) Received a PONG back in 00:00.0002
▶ calaos-os-raspberrypi2-v3.0-alpha6-14-g341535a-2021-01-17 on Raspberry Pi 2 ▶ Wago_2.2/wago_881.pro on Wago 750-881 ▶ DS18B20 sensors on Pi GPIO ▶ Node-RED