Autor Thema: Yahoo weather  (Gelesen 3137 mal)

0 Mitglieder und 1 Gast betrachten dieses Thema.

Offline peewit

  • Moderator
  • *****
  • Beiträge: 2 232
    • Profil anzeigen
Re: Yahoo weather
« Antwort #15 am: 12. Januar 2017, 21:17:58 »
IPC_ERROR 0x0000_FF00 = Receive Timeout

this is one of the new problems
the response sometimes takes longer than 5 seconds

but not always !

Offline palif

  • Newbie
  • *
  • Beiträge: 18
    • Profil anzeigen
    • E-Mail
Re: Yahoo weather
« Antwort #16 am: 25. Januar 2017, 15:41:00 »
today does not work. yahoo responses xml some new

https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid%20in%20(select%20woeid%20from%20geo.places(1)%20where%20text%3D%22nome%2C%20ak%22)&format=xml&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys

Offline palif

  • Newbie
  • *
  • Beiträge: 18
    • Profil anzeigen
    • E-Mail
Re: Yahoo weather
« Antwort #17 am: 20. Juli 2017, 11:10:21 »
Hello. I updated codesys_network_135. Yahoo still does not work error_c = 4278190080
error_t = 2
Does anyone have a fully functioning Yahoo?
Please help



version 1.6      22. may. 2017
programmer       ks
tested by         ks

   (* Bit 0 = 1 -> PLCWinNT                                *)
    (* Bit 1 = 1 -> PLC WAGO 750-841                        *)
    (* Bit 2 = 1 -> PLC WAGO 750-881                        *)
   SYSLIBSOCKETS_OPTION : BYTE := BYTE#2#0000_0001;


*****************************************
version 1.5      01. jun. 2016
programmer       ks
tested by         ks

Old version works. But there is another problem after power failure or internet connection, it stops working, error error = 4278190080
Error_t = 2. How does the location change, it starts to work. How could he not write a buffer
« Letzte Änderung: 20. Juli 2017, 11:33:58 von palif »

Offline peewit

  • Moderator
  • *****
  • Beiträge: 2 232
    • Profil anzeigen
Re: Yahoo weather
« Antwort #18 am: 20. Juli 2017, 19:17:53 »
4278190080 = 0xFF000000 (http connect timeout)
error_t = 2
Http_get module cannot connect to the yahoo address

Offline palif

  • Newbie
  • *
  • Beiträge: 18
    • Profil anzeigen
    • E-Mail
Re: Yahoo weather
« Antwort #19 am: 21. Juli 2017, 15:50:48 »
4278190080 = 0xFF000000 (http connect timeout)
error_t = 2
Http_get module cannot connect to the yahoo address
Why can not I connect? Something must be missed? Old http_get joined normally.

Offline palif

  • Newbie
  • *
  • Beiträge: 18
    • Profil anzeigen
    • E-Mail
Re: Yahoo weather
« Antwort #20 am: 21. Juli 2017, 16:35:32 »
I solved with a colleague the problem of old Yahoo weather. The problem was with "IP_C". How did the block hit correctly IP_C = 1275927748, as was the power failure or internet connection when restarting the PLC IP_C = 9. I typed in hand and now the weather runs on the old version of Yahoo weather





Offline palif

  • Newbie
  • *
  • Beiträge: 18
    • Profil anzeigen
    • E-Mail
Re: Yahoo weather
« Antwort #21 am: 21. Juli 2017, 17:31:31 »
Version 1.6 22. may. 2017
Programmer ks
Tested by ks
It is working now !!!!! There was a problem with HTTP_GET (because it was an old version), but that's not all. In my case C_PORT = 53 does not work, I have to manually enter C_PORT = 80 and manually IP_C = 1275927748.
Now everything works


Offline peewit

  • Moderator
  • *****
  • Beiträge: 2 232
    • Profil anzeigen
Re: Yahoo weather
« Antwort #22 am: 22. Juli 2017, 18:36:54 »
Port 53 is for DNS resolution
Did you specify a working DNS server?


test:
network.lib 1.35 with codesys PLCWinNT V2.4 (SoftPLC)

no problem !

« Letzte Änderung: 22. Juli 2017, 18:42:41 von peewit »

Offline palif

  • Newbie
  • *
  • Beiträge: 18
    • Profil anzeigen
    • E-Mail
Re: Yahoo weather
« Antwort #23 am: 02. September 2017, 13:04:09 »

Today stopped working. Retrieves the data portion, and the rest is 0. Something with buffer?




Offline palif

  • Newbie
  • *
  • Beiträge: 18
    • Profil anzeigen
    • E-Mail
Re: Yahoo weather
« Antwort #24 am: 02. September 2017, 13:06:02 »



Offline peewit

  • Moderator
  • *****
  • Beiträge: 2 232
    • Profil anzeigen
Re: Yahoo weather
« Antwort #25 am: 02. September 2017, 15:36:33 »
65024 = 0x0000_FE00  = Receive data Value 254 - Receive buffer is full (overflow)
(Buffer size is automatically set to 0)

more data was received than would fit in the receive buffer

possible solution:     increase the network_buffer size

Offline palif

  • Newbie
  • *
  • Beiträge: 18
    • Profil anzeigen
    • E-Mail
Re: Yahoo weather
« Antwort #26 am: 03. September 2017, 15:16:00 »
Thank you!!!!!!