Local image tile (hosted on HE Hub) not loading


#1

Has anyone had success loading a image into a dashboard tile that is locally hosted on the HE Hub?

I have image tiles that currently display things like a weather radar for example…


results in this:
image

Image hosted externally seem to work well however when trying to pull a local image hosted on my HE hub (via file manger), the image is not displayed
Simple test piston


results in this
image

  • The image is viewable in a browser my entering that same address as shown.
  • Tried with and without http://

    Any thoughts?


  • #2

    I have not really messed with image files in wc before. Only thing I see that stands out to me is the filename, can wc load external svg file in a tile?


    #3

    I haven’t specifically tried an external svg but I did try to load an internal jpg and png file with the same result.


    #4

    I actually just tried to pull a jpeg image from a local rPi (with simple apache web server running) and get the same result.

    Again the file is viewable via web browser on a separate local PC. Tried with and without http://

    Does it not recognize that it is local? Anyway to test that?


    #5

    I tried it also and failed. @E_Sch would probably have the skills/tools to check it out.

    Edit: I’m not up to date on my wc code. There was some discussion on local stuff that was addressed and if I remember correctly, it was a local http call.


    #6

    I repaired my wc code to latest, same result.


    #7

    Have you tried a different browser?

    I don’t see webcore re-writing addresses in the groovy code. This is is a browser, or dashboard issue (or browser security).


    #8

    Yes, Chrome and Edge on two separate PCs. Even logged out and re-registered the browsers.


    #9

    Perhaps @ipaterson can have a look or say more how to debug.


    #10

    Aha! Allow insecure content from dashboard.webcore.co :slight_smile:

    image


    #11

    Something so simple…thanks @eibyer @E_Sch

    Side note, it seems to only work when viewing for a locally networked device.
    And does appear to work with jpeg, svg, and png files if anyone is curious.