<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix">On 29/9/22 05:27, Roland Ernst wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAO+qqbOC_2=MRd3E6CQn8MyYSuD1wxwfrpK51+_59UgMSyQALw@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div dir="ltr"><br>
        </div>
        <br>
        <div class="gmail_quote">
          <div dir="ltr" class="gmail_attr">On Wed, Sep 28, 2022 at 9:15
            AM Kingsley Turner <<a href="mailto:krt@krt.com.au"
              moz-do-not-send="true" class="moz-txt-link-freetext">krt@krt.com.au</a>>
            wrote:<br>
          </div>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px
            0.8ex;border-left:1px solid
            rgb(204,204,204);padding-left:1ex">G'day,<br>
            <br>
            During an extended internet outage that thankfully has just
            finished, I came <br>
            to realise that MythWeb depends on some external google
            javascript for basic <br>
            functionality.<br>
            <br>
            Is the any will for removing this dependency?<br>
            <br>
            I'm happy to make the changes, but not if there's any
            resistance to it.<br>
            <br>
            cheers,<br>
            -kt<br>
            <br>
          </blockquote>
          <div><br>
          </div>
          <div>Fortunately, you do not need to re-event the wheel.<br>
            <br>
            You just need to download two files and place them on the<br>
            locations mentioned in the file<br>
            <a
href="https://github.com/MythTV/mythweb/blob/92f0f9bc6d15f6d6534e5d5e40bdddbb6f431254/modules/_shared/tmpl/default/header.php#L109"
              moz-do-not-send="true" class="moz-txt-link-freetext">https://github.com/MythTV/mythweb/blob/92f0f9bc6d15f6d6534e5d5e40bdddbb6f431254/modules/_shared/tmpl/default/header.php#L109</a>
            <br>
            <br>
            Then, you need to set the global setting `mythweb_use_cdn`
            to 0,<br>
            as described in <br>
            <a
              href="https://forum.mythtv.org/viewtopic.php?f=2&t=3253&p=15747"
              moz-do-not-send="true">https://forum.mythtv.org/viewtopic.php?f=2&t=3253&p=15747</a><br>
            and<br>
            <a href="https://code.mythtv.org/trac/ticket/13191"
              moz-do-not-send="true" class="moz-txt-link-freetext">https://code.mythtv.org/trac/ticket/13191</a></div>
          <div><br>
          </div>
          <div>Roland</div>
          <div><br>
          </div>
          <div>P.S.: Please report a simple howto in order to make this
            repeatable for other users.   <br>
          </div>
        </div>
      </div>
      <br>
    </blockquote>
    <br>
    > Please report a simple howto<br>
    <br>
    Please find below.  <br>
    <br>
    Of course IMHO, I'd rather there not be a dependency at all.  As
    it's already too late to look this up once you're offline.<br>
    <br>
    thanks,<br>
    -kt<br>
    <br>
    <br>
    <code># HOWTO Configure MythWeb to _NOT_ Use Online Javascript
      Sources<br>
      <br>
      Based on notes by "rds55" (and further comments) found on the
      [MythTV
Forum](<a class="moz-txt-link-freetext" href="https://forum.mythtv.org/viewtopic.php?f=2&t=3253&p=15747">https://forum.mythtv.org/viewtopic.php?f=2&t=3253&p=15747</a>).<br>
      <br>
      ## STEP 1 - Make appropriate directories to hold Offline Copies of
      the Javascript<br>
      <br>
          sudo mkdir -p
      /usr/share/mythtv/mythweb/js/ajax/libs/jquery/3.2.1/<br>
          sudo mkdir -p
      /usr/share/mythtv/mythweb/js/ajax/libs/prototype/1.7.3.0/<br>
      <br>
      <br>
      ## STEP 2 - Download the javascript into these Directories<br>
      <br>
      Note: This is different to the forum instructions (which appear to
      be a little backwards), but it is tested and working.<br>
      <br>
          sudo wget
      <a class="moz-txt-link-freetext" href="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js">https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js</a>
      -O
      /usr/share/mythtv/mythweb/js/ajax/libs/jquery/3.2.1/jquery.min.js<br>
          sudo wget
      <a class="moz-txt-link-freetext" href="https://ajax.googleapis.com/ajax/libs/prototype/1.7.3.0/prototype.js">https://ajax.googleapis.com/ajax/libs/prototype/1.7.3.0/prototype.js</a>
      -O
      /usr/share/mythtv/mythweb/js/ajax/libs/prototype/1.7.3.0/prototype.js<br>
      <br>
      <br>
      ## STEP3 - Configure MythWeb to use the Offline Copy<br>
      <br>
          MYTHSERVER=127.0.0.1  # TODO - use the address of your myth
      box<br>
          curl --data Key=mythweb_use_cdn --data Value=0
      $MYTHSERVER:6544/Myth/PutSetting<br>
    </code><br>
    <code></code>
    <p><code></code></p>
    <br>
  </body>
</html>