Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
WebInput en HTTPS ne marche pas ?
#1
Question 
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) :

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









Reply


Messages In This Thread
WebInput en HTTPS ne marche pas ? - by mifrey - 08-06-2017, 10:28 PM
RE: WebInput en HTTPS ne marche pas ? - by raoulh - 08-07-2017, 08:52 AM
RE: WebInput en HTTPS ne marche pas ? - by mifrey - 08-14-2017, 12:25 PM
RE: WebInput en HTTPS ne marche pas ? - by raoulh - 08-14-2017, 01:24 PM
RE: WebInput en HTTPS ne marche pas ? - by mifrey - 08-14-2017, 01:26 PM
RE: WebInput en HTTPS ne marche pas ? - by raoulh - 08-14-2017, 02:17 PM
RE: WebInput en HTTPS ne marche pas ? - by raoulh - 08-15-2017, 07:11 PM
RE: WebInput en HTTPS ne marche pas ? - by mifrey - 08-16-2017, 12:03 AM
RE: WebInput en HTTPS ne marche pas ? - by raoulh - 08-16-2017, 08:46 AM
RE: WebInput en HTTPS ne marche pas ? - by mifrey - 08-16-2017, 09:20 AM
RE: WebInput en HTTPS ne marche pas ? - by raoulh - 08-21-2017, 02:49 PM
RE: WebInput en HTTPS ne marche pas ? - by chafre - 09-16-2017, 01:48 PM
RE: WebInput en HTTPS ne marche pas ? - by mifrey - 08-21-2017, 05:43 PM
RE: WebInput en HTTPS ne marche pas ? - by raoulh - 08-22-2017, 02:53 PM
RE: WebInput en HTTPS ne marche pas ? - by raoulh - 09-20-2017, 03:53 PM
RE: WebInput en HTTPS ne marche pas ? - by chafre - 09-20-2017, 04:49 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)