AutoTools Web Screen, store files locally

Discussion in 'AutoApps' started by mcfrojd, Apr 1, 2017.

  1. mcfrojd

    mcfrojd New Member

    When i move my html and image files to a local folder on the phone (instead of my previous hosted storage) /storage/emulated/0/Tasker/STORAGE/
    And i browse for the html file it's found in the path /storage/emulated/0/Tasker/STORAGE/hass_status.html
    and opens fine.
    But when i change the path for the images from http://domain.com:8123/local/image1.png
    to /storage/emulated/0/Tasker/STORAGE/image1.png
    I get broken link images on my Web Screen output.
    Is it not possible to use:
    <a href="autotoolscommand://screenPush=:=getLocation"><img alt="" src="/storage/emulated/0/Tasker/STORAGE/image1.png?dummy=%TIMES" /></a>
    when you have the files locally?
    Have tried these path to, since the html and images is in same folder.
    src="/image1.png?dummy=%TIMES"
    src="image1.png?dummy=%TIMES"
     
    Last edited: Apr 1, 2017
  2. mcfrojd

    mcfrojd New Member

    If i dont use "inject" in web screed but use taskers "write file" with the html code generated with all my variables and then use web screen to view that local html, all images are shown when i use the path src="image1.png?dummy=%TIMES"
     
  3. joaomgcd

    joaomgcd Administrator Staff Member

    Sorry, unfortunately you need to provide the full local path for the images when you use HTML injection. Relative file paths won't work unfortunately. That would be a nice think to have though, right? :) Maybe I can make it work. What do you think?
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice