(Solved) weather error empty answer received

Begonnen von HarryT, 15 April 2016, 11:59:20

Vorheriges Thema - Nächstes Thema

HarryT

Zitat von: jschmitt am 15 April 2016, 15:45:32
Hi Harry,

I had the same Problem. Look here:

http://mkleine.de/blog/2014/01/19/raspberry-pi-zugriff-auf-fhem-per-https-sichern/

After that it worked for me.

Viele Grüße,

Johannes

Thanks for your answer Johannes, in the mean time I found out it was indeed with the difference between HTTP and HTTPS. However your description is about installing HTTPS for incoming traffic and the problem is with outgoing traffic. It might be that something is installed for both. However I have no idea how I should install that on a Fritzbox yet.

{HT}
FHEM 6.3 auf Raspberry Pi3  (1,2 Ghz)
RFXTRX433XL, ZWave, KFL200 and ConBeeIII
Raspberry Pi1 (0,7 Ghz) and Raspberry Pi4 for testing
German reading skills are good.

jschmitt

Hi Harry,

You can omit the step "attr WEB HTTPS".
But without the perl-ssl-modules and the directory fhem/certs
with the certs inside (and permissions set) it won't work.

As I wrote: I had exact the same Problem and after doing as described
in post #2 it worked!
BTW: look in Your Log. At the beginning of the log (after system starts) there is a line
"falling back to HTTP" or so, isn't it?


Viele Grüße,

Johannes
FHEM auf (QNAP TS-219P II, alt) HP T610 Thin Client : 1 x HM-CFG-LAN + 6 x HM-LC-Sw1PBU-FM (Rolladen) + 12 x  HM-Sec-SD (Rauchmelder) + 2 x HM-SWI-3-FM (diverses)

HarryT

Zitat von: jschmitt am 19 April 2016, 18:24:30
Hi Harry,

You can omit the step "attr WEB HTTPS".
But without the perl-ssl-modules and the directory fhem/certs
with the certs inside (and permissions set) it won't work.

As I wrote: I had exact the same Problem and after doing as described
in post #2 it worked!
BTW: look in Your Log. At the beginning of the log (after system starts) there is a line
"falling back to HTTP" or so, isn't it?


Viele Grüße,

Johannes

Thanks, but I have really no idea how I should install the necessary perl modules on my fritzbox. Anybody?????
Besides I am afraid the perl modules will need  ssl software on the fritzbox and as far as I know, the fritzbox has no ssl client installed.

I have no message in the logs about anything with HTTP or HTTPS.

Maybe the end of FHEM on a Fritzbox is closer as I expected. At the moment I can change the HTTPS call for weather back to HTTP, but Yahoo could change that in the near future and then block all work arounds.

{HT}
FHEM 6.3 auf Raspberry Pi3  (1,2 Ghz)
RFXTRX433XL, ZWave, KFL200 and ConBeeIII
Raspberry Pi1 (0,7 Ghz) and Raspberry Pi4 for testing
German reading skills are good.

Dr. Boris Neubert

Harry, I am working on an improved version of Weather that allows, among others, to choose whether HTTP or HTTPS are used. If the http call in YahooWeatherAPI works fine for you then just wait for the new version. Will take some time, though.
Globaler Moderator, Developer, aktives Mitglied des FHEM e.V. (Marketing, Verwaltung)
Bitte keine unaufgeforderten privaten Nachrichten!

HarryT

Zitat von: Dr. Boris Neubert am 23 April 2016, 18:09:47
Harry, I am working on an improved version of Weather that allows, among others, to choose whether HTTP or HTTPS are used. If the http call in YahooWeatherAPI works fine for you then just wait for the new version. Will take some time, though.

Boris,

Thanks for your work.

Time is not the problem, it works right now. I just wonder if this is indeed a https/http issue or there is an unsolvable issue with the Fritzbox. If the later, it is time to look for a Raspberry.

{HT}
FHEM 6.3 auf Raspberry Pi3  (1,2 Ghz)
RFXTRX433XL, ZWave, KFL200 and ConBeeIII
Raspberry Pi1 (0,7 Ghz) and Raspberry Pi4 for testing
German reading skills are good.

frank

FHEM: 6.0(SVN) => Pi3(buster)
IO: CUL433|CUL868|HMLAN|HMUSB2|HMUART
CUL_HM: CC-TC|CC-VD|SEC-SD|SEC-SC|SEC-RHS|Sw1PBU-FM|Sw1-FM|Dim1TPBU-FM|Dim1T-FM|ES-PMSw1-Pl
IT: ITZ500|ITT1500|ITR1500|GRR3500
WebUI [HMdeviceTools.js (hm.js)]: https://forum.fhem.de/index.php/topic,106959.0.html

HarryT

Zitat von: frank am 26 April 2016, 10:22:06
hi harry,

perhaps this workaround can help you: https://forum.fhem.de/index.php/topic,26959.msg201256.html#msg201256

Hi Frank

Thanks for your answer. In https://forum.fhem.de/index.php/topic,52596.0.html Rudolf Koening pointed me to this solution in another thread. I just pulled the libs and placed them. With these libs it is indeed still possible to use https

Thanks to all people who helped to solve this issue.

{HT}
FHEM 6.3 auf Raspberry Pi3  (1,2 Ghz)
RFXTRX433XL, ZWave, KFL200 and ConBeeIII
Raspberry Pi1 (0,7 Ghz) and Raspberry Pi4 for testing
German reading skills are good.