@merphun said:
I’m not able to get the i-frame to display something
This maybe the case due to security restrictions:
- Case 1: pimatic paged loaded via https while iframe src is http. This will give you an error message on the web console as follows. Workaround: Either load pimatic page via http or load iframe src via https (if https is supported by the site).
Mixed Content: The page at 'https://localhost/' was loaded over HTTPS, but requested an insecure resource 'http://wetterstationen.meteomedia.de/messnetz/vorhersagegrafik/103770.png?ver=1442934610'. This request has been blocked; the content must be served over HTTPS.
- Case 2: Sourced web site denies embedding. This is the case for google.de, for example. Workaround: Some sites offer additional resources which can be embedded, for example, this is the case for googlemaps. Otherwise, you can only circumvent the restriction by putting a rewriting http proxy into the communication path.
Refused to display 'https://www.google.de/?gfe_rd=cr&ei=7wgIVuiXCY6r8wfYkLnoDQ&gws_rd=ssl' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.
NB: as far as I know it is not possible to catch iframe load errors.
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law