Jump to content

KAOS

Members
  • Posts

    1,167
  • Joined

  • Last visited

Posts posted by KAOS

  1. Create new <script src="js/Radar.js"></script> by appending existing <script src="js/WeatherFetching.js"></script>

    with... window.location.href = "https://radar.weather.gov/?settings=v1_"+mapSettings;

    Edit existing index.html to create a new radar.html file utilizing Radar.js by adding the following...

    <head>

         <link rel="stylesheet" type="text/css" href="css/radar.css">

    </head>

     

    This works locally, I will upload the files to the repository to ensure that it can be accessed remotely. Link to follow...

     

    • Like 1
    • Thanks 1
  2. <link rel="prefetch" href="https://radar.weather.gov/?ettings=v1_eyJhZ2VuZGEiOnsiaWQiOiJ3ZWF0aGVyIiwiY2VudGVyIjpbLTc2LjUxNywzOS4xMTldLCJsb2NhdGlvbiI6bnVsbCwiem9vbSI6OH0sImFuaW1hdGluZyI6dHJ1ZSwiYmFzZSI6InN0YW5kYXJkIiwiYXJ0Y2MiOmZhbHNlLCJjb3VudHkiOmZhbHNlLCJjd2EiOmZhbHNlLCJyZmMiOmZhbHNlLCJzdGF0ZSI6ZmFsc2UsIm1lbnUiOmZhbHNlLCJzaG9ydEZ1c2VkT25seSI6ZmFsc2UsIm9wYWNpdHkiOnsiYWxlcnRzIjowLCJsb2NhbCI6MCwibG9jYWxTdGF0aW9ucyI6MCwibmF0aW9uYWwiOjAuNn19">

  3. Downpour with full sunshine... I knew that was going to happen just by looking at the "storm" structure.

    BTW... I measured exactly seven raindrops yesterday. I live in a precipitation  Bermuda Triangle aka Rain-Hole.

  4. I think I will try to pre-load a "static" hi-rez nws radar location (mid-atlantic) first. If that doesn't work there is no sense in persuing this further.

    The revised NWS hi-rez was an absolute disaster upon launch and continues to be slow loading, requiring higher-end hardware to compensate.

    This is most likely why they have made some low-rez resources available.

    Regardless, I already have a low rez-version that works fine on devices with limited hardware resources.

    If all else fails, I will make a "desktop" (hi-rez) verson and a "mobile" (low-rez version). We essentially have that as it is exists currently.

    Hi-Rez... https://k-a-0-s.github.io/

    Low-Rez... https://kaosfactor.github.io/

    I will periodically post some of my code here because... weirdo.

  5. On 5/28/2024 at 7:22 AM, vastateofmind said:

    I'm definitely enjoying all of this and TY again. I used to watch Wx on the 8's from start to finish, every time...I'm a weirdo.  ;) 

    This is the definitive mid Atlantic old school "eastern weather" type channel emulator thread. If you know... you know.

    You are not a weirdo... I am weird.

    That said, I invite all weird people to participate. Would be cool to have a AMWX Mid Atlantic specific emulator.

    • Like 1
    • Thanks 1
  6. Code to determine https radar link based off of geolocation...

    //WeatherFetching.js

     

    function fetchRadarImages(){
      radarImage = document.createElement("iframe");
      radarImage.onerror = function () {
        getElement('radar-container').style.display = 'none';
      }

      mapSettings = btoa(JSON.stringify({
        "agenda": {
          "id": "weather",
          "center": [longitude, latitude],
          "location": null,
          "zoom": 8
        },
        "animating": true,
        "base": "standard",
        "artcc": false,
        "county": false,
        "cwa": false,
        "rfc": false,
        "state": false,
        "menu": false,
        "shortFusedOnly": false,
        "opacity": {
          "alerts": 0.0,
          "local": 0.0,
          "localStations": 0.0,
          "national": 0.6
        }
      }));
      radarImage.setAttribute("src", "https://radar.weather.gov/?settings=v1_" + mapSettings);
      radarImage.style.width = "1230px"
      radarImage.style.height = "740px"
      radarImage.style.marginTop = "-220px"
      radarImage.style.overflow = "hidden"

     

    • Like 2
  7. The https://battaglia.ddns.net/twc/ site has been updated to address the issues I identified earlier relating to missing data and failure to load many locations.

    Let me know if you encounter any other issues. I will try to troubleshoot locally and relay the information to to the original developer.

    Hope you enjoy the "flashback" to a time in which the weather channel was iconic.

    • Like 1
  8. 12 hours ago, vastateofmind said:

    And TY for helping the other dev. Again...I love your work, and your willingness to help others! Absolutely LOVE what you've created here!  :D 

    It is only possible because of the work from those who preceded me.

     

    • Like 1
  9. 12 hours ago, vastateofmind said:

    This is an EXCELLENT emulator, @KAOS, TY for sharing! I'm sharing another here from real "old school" TWC, that someone else here on the sub turned me onto a month or two ago. I sometimes just let it cycle in the background on my laptop while working through the day...but will swap it out with this excellent Intellistar emulator now....  :) 

    WeatherStar 4000+ (battaglia.ddns.net)

    Yes, the WeatherStar 4000+ is probably one of the best working emulators currently available. I have my fork of it installed on an IIS server. I've actually helped the developer (vbguyny) resolve an issue with the API and a problem with wind data that was preventing it from loading.

    • Like 1
×
×
  • Create New...