vbguyny / ws4kp

WeatherStar 4000+
https://battaglia.ddns.net/twc
MIT License
414 stars 112 forks source link

running on linux using mono + fastcgi, advice sought #81

Closed gtxaspec closed 1 year ago

gtxaspec commented 1 year ago

Hello,

I know running on linux is not officially supported, but so far I have found some success using nginx + fastcgi-mono-server4.

All categories load, except for "Regional Forecast" and "Regional Observations", they are stuck on loading:

Screenshot at 2022-10-17 14-13-51

Could this be a CORS issue? Any advice would be appreciated. Hopefully I can get this working so others may enjoy this great project on linux as well.

here is the console log (chrome):

jquery-3.1.0.min.js:2 [Violation] 'setTimeout' handler took 80ms
index.js?v=70:509 Url: cors/?u=https%3A%2F%2Fforecast.weather.gov%2FMapClick.php%3Flat%3D32.7157%26lon%3D-117.1617
index.js?v=70:714 Play Toggled
index.js?v=70:739 Audio Play Toggled
70Canvas2D: Multiple readback operations using getImageData are faster with the willReadFrequently attribute set to true. See: <URL>
VM128 twc3.js:3521 {address: {…}, location: {…}}
index.js?v=70:707 Weather Parameters
VM128 twc3.js:3062 {ZoneId: 'CAZ043', Hazards: Array(0), HazardsText: '', HazardsTextC: '', HazardsScrollText: '', …}
VM128 twc3.js:11631 Image Loaded
VM119 jquery-3.1.0.min.js:4          GET http://localhost/ws4kp/cors/?u=https%3A%2F%2Fmesonet.agron.iastate.edu%2Farchive%2Fdata%2F2022%2F10%2F18%2FGIS%2Fuscomp%2F&_=1666040104999 500 (Internal Server Error)
send @ VM119 jquery-3.1.0.min.js:4
ajax @ VM119 jquery-3.1.0.min.js:4
DoAjax @ VM128 twc3.js:13274
$.ajaxCORS @ VM128 twc3.js:13295
(anonymous) @ VM128 twc3.js:11704
each @ VM119 jquery-3.1.0.min.js:2
each @ VM119 jquery-3.1.0.min.js:2
ShowDopplerMap2.img.onload @ VM128 twc3.js:11700
load (async)
ShowDopplerMap2 @ VM128 twc3.js:11629
(anonymous) @ VM128 twc3.js:3546
i @ VM119 jquery-3.1.0.min.js:2
fireWith @ VM119 jquery-3.1.0.min.js:2
A @ VM119 jquery-3.1.0.min.js:4
c @ VM119 jquery-3.1.0.min.js:4
dispatch @ VM119 jquery-3.1.0.min.js:3
q.handle @ VM119 jquery-3.1.0.min.js:3
load (async)
add @ VM119 jquery-3.1.0.min.js:3
(anonymous) @ VM119 jquery-3.1.0.min.js:3
each @ VM119 jquery-3.1.0.min.js:2
each @ VM119 jquery-3.1.0.min.js:2
wa @ VM119 jquery-3.1.0.min.js:3
on @ VM119 jquery-3.1.0.min.js:3
send @ VM119 jquery-3.1.0.min.js:4
ajax @ VM119 jquery-3.1.0.min.js:4
success @ VM128 twc3.js:3508
i @ VM119 jquery-3.1.0.min.js:2
fireWith @ VM119 jquery-3.1.0.min.js:2
A @ VM119 jquery-3.1.0.min.js:4
(anonymous) @ VM119 jquery-3.1.0.min.js:4
load (async)
send @ VM119 jquery-3.1.0.min.js:4
ajax @ VM119 jquery-3.1.0.min.js:4
GetWeather @ VM128 twc3.js:3413
(anonymous) @ VM128 twc3.js:3599
setInterval (async)
OnLoad @ VM128 twc3.js:3599
BackGroundImage.onload @ VM128 twc3.js:12521
load (async)
Progress.DrawProgress @ VM128 twc3.js:12455
Progress @ VM128 twc3.js:12528
(anonymous) @ VM128 twc3.js:3595
j @ VM119 jquery-3.1.0.min.js:2
k @ VM119 jquery-3.1.0.min.js:2
setTimeout (async)
(anonymous) @ VM119 jquery-3.1.0.min.js:2
i @ VM119 jquery-3.1.0.min.js:2
fireWith @ VM119 jquery-3.1.0.min.js:2
fire @ VM119 jquery-3.1.0.min.js:2
i @ VM119 jquery-3.1.0.min.js:2
fireWith @ VM119 jquery-3.1.0.min.js:2
ready @ VM119 jquery-3.1.0.min.js:2
R @ VM119 jquery-3.1.0.min.js:2
VM128 twc3.js:615 WeatherMonthlyTotalsParser {Precipitation: '0.03'}
VM128 twc3.js:618 WeatherMonthlyTotals {MonthName: 'October', PrecipitationTotal: '0.03', PrecipitationTotalC: 0.08}
VM128 twc3.js:646 MoonPhasesParser3 {Phases: Array(4)}
VM128 twc3.js:649 SunRiseSetParser3 {SunRise: '', SunSet: '', SunRiseLocal: '06:55', SunSetLocal: '18:14', TimeZone: 'CST'}
VM128 twc3.js:667 SunRiseSetParser3 {SunRise: '', SunSet: '', SunRiseLocal: '06:56', SunSetLocal: '18:13', TimeZone: 'CST'}
VM128 twc3.js:670 AlmanacInfo {MoonPhases: Array(4), TodaySunRise: Mon Oct 17 2022 06:55:00 GMT-0700 (Pacific Daylight Time), TodaySunSet: Mon Oct 17 2022 18:14:00 GMT-0700 (Pacific Daylight Time), TomorrowSunRise: Tue Oct 18 2022 06:56:00 GMT-0700 (Pacific Daylight Time), TomorrowSunSet: Tue Oct 18 2022 18:13:00 GMT-0700 (Pacific Daylight Time), …}
VM128 twc3.js:11824 Doppler Radar Images Loaded
VM128 twc3.js:11766 [Violation] 'load' handler took 948ms
VM128 twc3.js:3238 WeatherForecastParser {Alert: '', Text: Array(14)}
VM128 twc3.js:3241 WeatherLocalForecast {Alerts: '', AlertsC: '', Conditions: Array(6)}
VM128 twc3.js:285 #document
VM128 twc3.js:289 WeatherDwmlParser {xmlns_xsd: 'https://www.w3.org/2001/XMLSchema', xmlns_xsi: 'https://www.w3.org/2001/XMLSchema-instance', version: '1.0', xsi_noNamespaceSchemaLocation: 'https://graphical.weather.gov/xml/DWMLgen/schema/DWML.xsd', head: DwmlHead, …}
VM128 twc3.js:306 WeatherExtendedForecast {Day: Array(6)}
VM128 twc3.js:3145 #document
VM128 twc3.js:3149 WeatherMetarsParser {xmlns_xsd: 'http://www.w3.org/2001/XMLSchema', xmlns_xsi: 'http://www.w3.org/2001/XMLSchema-instance', version: '1.2', xsi_noNamespaceSchemaLocation: 'http://www.aviationweather.gov/static/adds/schema/metar1_2.xsd', request_index: '688175957', …}
VM128 twc3.js:3152 WeatherCurrentConditions {StationName: 'San Diego', StationId: 'KSAN', Latitude: '32.73361', Longitude: '-117.18306', Temperature: 73, …}
VM128 twc3.js:9705 WeatherCurrentRegionalConditions {StationIds: Array(7), WeatherMetarsParser: Array(0), WeatherDwmlParser: Array(0), WeatherCurrentConditions: Array(0), LatLons: Array(7), …}
VM128 twc3.js:9860 GetDwmlRegionalStations failed: Error: Invalid XML: 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>National Weather Service</title>
    <style type="text/css">
        #mainContainer
        {
            width:auto;
            height:auto;
            background-color:white;
        }
        #headerArea
        {
            margin-top:50px;
            border:1px solid #cccccc;
            height:125px;
            background-color: #ffffff;
        }
        #nwsLogo
        {
            float:left;
            width:100px;
            /*border:1px solid black;*/
        }
        #noaaLogo
        {
            float:right;
            width:100px;
            /*border:1px solid black;*/
        }
        #logoTitleArea
        {

            padding:15px;
            height:110px;
            /*border:1px solid black;*/
            text-align:center;
        }
        #titleArea
        {
            display:inline;
            display: -moz-inline-stack;
            color: black;
            font-family: Verdana,Geneva,Arial,Helvetica,sans-serif;
            font-size: 36px;
            font-weight: bold;
            /*border:1px solid black;*/
        }

        #mainContent
        {
            border-left:1px solid #cccccc;
            border-right:1px solid #cccccc;
            height:350px;
            text-align:left;
            padding:25px 65px 0px 60px;
            font-family: Verdana,Geneva,Arial,Helvetica,sans-serif;
            font-size:14px;
        }
        #footerContainer
        {
            border-left:1px solid #cccccc;
            border-right:1px solid #cccccc;
            border-bottom:1px solid #cccccc;
            border-top:1px solid #cccccc;
            margin:0px;
            padding:0px 20px 0px 20px;
            height:110px;
            width:auto;
        }
        #policySection ul, #disclaimerSection ul, #addressSection ul
        {
            list-style-type:none;
        }
        #addressSection
        {
            float:left;
            font-family: Verdana,Geneva,Arial,Helvetica,sans-serif;
            font-size:12px;
            width:375px;
            padding-right:100px;
        }
        #disclaimerSection
        {
            font-family: Verdana,Geneva,Arial,Helvetica,sans-serif;
            float:left;
            font-size:12px;
            width:150px;
            padding-right:100px;
        }
        #policySection
        {
            font-family: Verdana,Geneva,Arial,Helvetica,sans-serif;
            float:left;
            font-size:12px;
        }

        #linkContainerArea
        {
            border:1px solid #000078;
            height:190px;
            width:900px;
        }

        #linkArea1, #linkArea2
        {
            /*border:1px solid black;*/
            height:170px;
            margin:10px;
            float:left;
            width:auto;
            text-align:left;
            padding:5px 0px 0px 10px;
        }

        a:active, a:visited, a:link
        {
            color:blue;
        }
        a:hover
        {
            color:green;
        }

        #textLink
        {
            font-size:12px;
        }
    </style>

    <script type="text/javascript">
        function goToSelectedPage(data)
        {
            window.open(data);
        }

        function getMyTime()
        {
            var myDate = new Date();
            document.getElementById('myTime').innerHTML = myDate;
            browserDetection();
        }
        function browserDetection()
        {
            if(/MSIE (\d+\.\d+);/.test(navigator.userAgent))
            {
                var version = new Number(RegExp.$1);
                if(version < 8)
                {
                    document.getElementById('noaaLogo').style.marginTop = '-45px';
                    document.getElementById('footerContainer').style.paddingTop = '10px';
                }
            }
        }
    </script>
</head>

<body onload="getMyTime();" style="background-color:#F0F2F7;">
<div id="mainContainer">

    <div id="headerArea">
        <div id="logoTitleArea">
            <div id="nwsLogo">
                <img src="/error_nws/nws_logo.gif"  alt="NWS LOGO" title="NWS LOGO" width="94px" height="94px"></img>
            </div>
            <div id="titleArea">
                National Weather Service
            </div>

            <div id="noaaLogo">
                <img src="/error_nws/nws_logo.png" alt="NOAA LOGO" title="NOAA LOGO"></img>
            </div>
        </div>
    </div>
    <div id="mainContent">
        <span id="myTime" style="font-size:10px;"></span>
        <p>
            The page you requested cannot be found.  Please check your URL and try again.
        </p>
        <p>
            Please use the following links for NWS forecasts and services.
        </p>
        <div id="linkContainerArea">
            <div id="linkArea1">
                <p>
                    Forecasts:<br />
                    <a id="textLink" href="http://forecast.weather.gov/zipcity.php" target="_blank">http://forecast.weather.gov/zipcity.php</a><br />
                    <i style="font-size:11px;font-weight:bold;font-style:italic;">*Please type your zip code into the search box</i>
                </p>
                <p>
                    Radar:<br />
                    <a id="textLink" href="http://radar.weather.gov" target="_blank">http://radar.weather.gov</a>
                </p>
                <p>
                    Air Quality:<br />
                    <a id="textLink" href="http://airquality.weather.gov" target="_blank">http://airquality.weather.gov</a>
                </p>

            </div>
            <div id="linkArea2">
                <p>
                    Aviation:<br />
                    <a id="textLink" href="http://aviationweather.gov/" target="_blank">http://aviationweather.gov</a>
                </p>
                <p>
                    River and Lake Forecasts and Observations:<br />
                    <a id="textLink" href="http://water.weather.gov" target="_blank" id="textLink">http://water.weather.gov</a>
                </p>
                <p>
                    Graphical Forecasts:<br />
                    <a id="textLink" href="http://graphical.weather.gov" target="_blank" id="textLink">http://graphical.weather.gov</a>
                </p>

            </div>

        </div><br />
        <p>We apologize for any inconvenience that this might cause.</p>
    </div>
    <div id="footerContainer">

        <div id="addressSection">
            <ul>
                <li>National Weather Service</li>
                <li>Office of Operational Systems</li>
                <li>&nbsp;</li>
                <li>Page Author: NWS Webmaster</li>
                <li>Web Master's E-mail: <a href="mailto:w-nws.webmaster@noaa.gov">w-nws.webmaster@noaa.gov</a></li>
            </ul>
        </div>

        <div id="disclaimerSection">
            <ul>
                <li><a href="http://www.weather.gov/disclaimer.php" target="_blank">Disclaimer</a></li>
                <li><a href="http://www.weather.gov/credits.php" target="_blank">Credits</a></li>
                <li><a href="http://www.weather.gov/glossary/" target="_blank">Glossary</a></li>
            </ul>
        </div>

        <div id="policySection">
            <ul>
                <li><a href="http://www.weather.gov/privacy.php" target="_blank">Privacy Policy</a></li>
                <li><a href="http://www.weather.gov/admin.php" target="_blank">About Us</a></li>
                <li><a href="http://www.weather.gov/careers.php" target="_blank">Career Opportunities</a></li>
            </ul>
        </div>

    </div>

</div>

</body>
</html>

error @ VM128 twc3.js:9860
error @ VM128 twc3.js:13287
i @ VM119 jquery-3.1.0.min.js:2
fireWith @ VM119 jquery-3.1.0.min.js:2
A @ VM119 jquery-3.1.0.min.js:4
(anonymous) @ VM119 jquery-3.1.0.min.js:4
load (async)
send @ VM119 jquery-3.1.0.min.js:4
ajax @ VM119 jquery-3.1.0.min.js:4
DoAjax @ VM128 twc3.js:13274
$.ajaxCORS @ VM128 twc3.js:13295
(anonymous) @ VM128 twc3.js:9805
each @ VM119 jquery-3.1.0.min.js:2
each @ VM119 jquery-3.1.0.min.js:2
GetDwmlRegionalStations @ VM128 twc3.js:9779
success @ VM128 twc3.js:9707
i @ VM119 jquery-3.1.0.min.js:2
fireWith @ VM119 jquery-3.1.0.min.js:2
A @ VM119 jquery-3.1.0.min.js:4
(anonymous) @ VM119 jquery-3.1.0.min.js:4
load (async)
send @ VM119 jquery-3.1.0.min.js:4
ajax @ VM119 jquery-3.1.0.min.js:4
DoAjax @ VM128 twc3.js:13274
$.ajaxCORS @ VM128 twc3.js:13295
GetRegionalStations @ VM128 twc3.js:9651
success @ VM128 twc3.js:9720
i @ VM119 jquery-3.1.0.min.js:2
fireWith @ VM119 jquery-3.1.0.min.js:2
A @ VM119 jquery-3.1.0.min.js:4
(anonymous) @ VM119 jquery-3.1.0.min.js:4
load (async)
send @ VM119 jquery-3.1.0.min.js:4
ajax @ VM119 jquery-3.1.0.min.js:4
DoAjax @ VM128 twc3.js:13274
$.ajaxCORS @ VM128 twc3.js:13295
GetRegionalStations @ VM128 twc3.js:9651
success @ VM128 twc3.js:9720
i @ VM119 jquery-3.1.0.min.js:2
fireWith @ VM119 jquery-3.1.0.min.js:2
A @ VM119 jquery-3.1.0.min.js:4
(anonymous) @ VM119 jquery-3.1.0.min.js:4
load (async)
send @ VM119 jquery-3.1.0.min.js:4
ajax @ VM119 jquery-3.1.0.min.js:4
DoAjax @ VM128 twc3.js:13274
$.ajaxCORS @ VM128 twc3.js:13295
GetRegionalStations @ VM128 twc3.js:9651
success @ VM128 twc3.js:9720
i @ VM119 jquery-3.1.0.min.js:2
fireWith @ VM119 jquery-3.1.0.min.js:2
A @ VM119 jquery-3.1.0.min.js:4
(anonymous) @ VM119 jquery-3.1.0.min.js:4
load (async)
send @ VM119 jquery-3.1.0.min.js:4
ajax @ VM119 jquery-3.1.0.min.js:4
DoAjax @ VM128 twc3.js:13274
$.ajaxCORS @ VM128 twc3.js:13295
GetRegionalStations @ VM128 twc3.js:9651
success @ VM128 twc3.js:3163
i @ VM119 jquery-3.1.0.min.js:2
fireWith @ VM119 jquery-3.1.0.min.js:2
A @ VM119 jquery-3.1.0.min.js:4
(anonymous) @ VM119 jquery-3.1.0.min.js:4
load (async)
send @ VM119 jquery-3.1.0.min.js:4
ajax @ VM119 jquery-3.1.0.min.js:4
DoAjax @ VM128 twc3.js:13274
$.ajaxCORS @ VM128 twc3.js:13295
GetWeatherMetar @ VM128 twc3.js:3136
success @ VM128 twc3.js:317
i @ VM119 jquery-3.1.0.min.js:2
fireWith @ VM119 jquery-3.1.0.min.js:2
A @ VM119 jquery-3.1.0.min.js:4
(anonymous) @ VM119 jquery-3.1.0.min.js:4
load (async)
send @ VM119 jquery-3.1.0.min.js:4
ajax @ VM119 jquery-3.1.0.min.js:4
DoAjax @ VM128 twc3.js:13274
$.ajaxCORS @ VM128 twc3.js:13295
GetCurrentWeather @ VM128 twc3.js:323
success @ VM128 twc3.js:1077
i @ VM119 jquery-3.1.0.min.js:2
fireWith @ VM119 jquery-3.1.0.min.js:2
A @ VM119 jquery-3.1.0.min.js:4
(anonymous) @ VM119 jquery-3.1.0.min.js:4
load (async)
send @ VM119 jquery-3.1.0.min.js:4
ajax @ VM119 jquery-3.1.0.min.js:4
DoAjax @ VM128 twc3.js:13274
$.ajaxCORS @ VM128 twc3.js:13295
(anonymous) @ VM128 twc3.js:1003
each @ VM119 jquery-3.1.0.min.js:2
each @ VM119 jquery-3.1.0.min.js:2
success @ VM128 twc3.js:981
i @ VM119 jquery-3.1.0.min.js:2
fireWith @ VM119 jquery-3.1.0.min.js:2
A @ VM119 jquery-3.1.0.min.js:4
(anonymous) @ VM119 jquery-3.1.0.min.js:4
load (async)
send @ VM119 jquery-3.1.0.min.js:4
ajax @ VM119 jquery-3.1.0.min.js:4
DoAjax @ VM128 twc3.js:13274
$.ajaxCORS @ VM128 twc3.js:13295
GetTideInfo2 @ VM128 twc3.js:958
ImageOnLoad @ VM128 twc3.js:1319
load (async)
GetOutlook @ VM128 twc3.js:1332
success @ VM128 twc3.js:672
i @ VM119 jquery-3.1.0.min.js:2
fireWith @ VM119 jquery-3.1.0.min.js:2
A @ VM119 jquery-3.1.0.min.js:4
(anonymous) @ VM119 jquery-3.1.0.min.js:4
load (async)
send @ VM119 jquery-3.1.0.min.js:4
ajax @ VM119 jquery-3.1.0.min.js:4
DoAjax @ VM128 twc3.js:13274
$.ajaxCORS @ VM128 twc3.js:13295
success @ VM128 twc3.js:659
i @ VM119 jquery-3.1.0.min.js:2
fireWith @ VM119 jquery-3.1.0.min.js:2
A @ VM119 jquery-3.1.0.min.js:4
(anonymous) @ VM119 jquery-3.1.0.min.js:4
load (async)
send @ VM119 jquery-3.1.0.min.js:4
ajax @ VM119 jquery-3.1.0.min.js:4
DoAjax @ VM128 twc3.js:13274
$.ajaxCORS @ VM128 twc3.js:13295
success @ VM128 twc3.js:638
i @ VM119 jquery-3.1.0.min.js:2
fireWith @ VM119 jquery-3.1.0.min.js:2
A @ VM119 jquery-3.1.0.min.js:4
(anonymous) @ VM119 jquery-3.1.0.min.js:4
load (async)
send @ VM119 jquery-3.1.0.min.js:4
ajax @ VM119 jquery-3.1.0.min.js:4
DoAjax @ VM128 twc3.js:13274
$.ajaxCORS @ VM128 twc3.js:13295
success @ VM128 twc3.js:606
i @ VM119 jquery-3.1.0.min.js:2
fireWith @ VM119 jquery-3.1.0.min.js:2
A @ VM119 jquery-3.1.0.min.js:4
(anonymous) @ VM119 jquery-3.1.0.min.js:4
VM128 twc3.js:9705 WeatherCurrentRegionalConditions {StationIds: Array(7), WeatherMetarsParser: Array(0), WeatherDwmlParser: Array(0), WeatherCurrentConditions: Array(0), LatLons: Array(11), …}
VM128 twc3.js:9705 WeatherCurrentRegionalConditions {StationIds: Array(7), WeatherMetarsParser: Array(0), WeatherDwmlParser: Array(0), WeatherCurrentConditions: Array(0), LatLons: Array(12), …}
VM128 twc3.js:9889 WeatherCurrentRegionalConditions {StationIds: Array(7), WeatherMetarsParser: Array(0), WeatherDwmlParser: Array(0), WeatherCurrentConditions: Array(0), LatLons: Array(12), …}
index.js?v=70:509 Url: cors/?u=https%3A%2F%2Fforecast.weather.gov%2FMapClick.php%3Flat%3D29.6993%26lon%3D-98.1215
index.js?v=70:714 Play Toggled
index.js?v=70:739 Audio Play Toggled
twc3.js?v=70:3521 {address: {…}, location: {…}}
index.js?v=70:707 Weather Parameters
twc3.js?v=70:11631 Image Loaded
twc3.js?v=70:3062 {ZoneId: 'TXZ206', Hazards: Array(0), HazardsText: '', HazardsTextC: '', HazardsScrollText: '', …}
jquery-3.1.0.min.js:4          GET http://localhost/ws4kp/cors/?u=https%3A%2F%2Fmesonet.agron.iastate.edu%2Farchive%2Fdata%2F2022%2F10%2F18%2FGIS%2Fuscomp%2F&_=1666040307071 500 (Internal Server Error)
send @ jquery-3.1.0.min.js:4
ajax @ jquery-3.1.0.min.js:4
DoAjax @ twc3.js?v=70:13274
$.ajaxCORS @ twc3.js?v=70:13295
(anonymous) @ twc3.js?v=70:11704
each @ jquery-3.1.0.min.js:2
each @ jquery-3.1.0.min.js:2
ShowDopplerMap2.img.onload @ twc3.js?v=70:11700
load (async)
ShowDopplerMap2 @ twc3.js?v=70:11629
(anonymous) @ twc3.js?v=70:3546
i @ jquery-3.1.0.min.js:2
fireWith @ jquery-3.1.0.min.js:2
A @ jquery-3.1.0.min.js:4
c @ jquery-3.1.0.min.js:4
dispatch @ jquery-3.1.0.min.js:3
q.handle @ jquery-3.1.0.min.js:3
load (async)
add @ jquery-3.1.0.min.js:3
(anonymous) @ jquery-3.1.0.min.js:3
each @ jquery-3.1.0.min.js:2
each @ jquery-3.1.0.min.js:2
wa @ jquery-3.1.0.min.js:3
on @ jquery-3.1.0.min.js:3
send @ jquery-3.1.0.min.js:4
ajax @ jquery-3.1.0.min.js:4
success @ twc3.js?v=70:3508
i @ jquery-3.1.0.min.js:2
fireWith @ jquery-3.1.0.min.js:2
A @ jquery-3.1.0.min.js:4
(anonymous) @ jquery-3.1.0.min.js:4
load (async)
send @ jquery-3.1.0.min.js:4
ajax @ jquery-3.1.0.min.js:4
GetWeather @ twc3.js?v=70:3413
OnLoad @ twc3.js?v=70:3600
BackGroundImage.onload @ twc3.js?v=70:12521
load (async)
Progress.DrawProgress @ twc3.js?v=70:12455
Progress @ twc3.js?v=70:12528
(anonymous) @ twc3.js?v=70:3595
j @ jquery-3.1.0.min.js:2
k @ jquery-3.1.0.min.js:2
setTimeout (async)
(anonymous) @ jquery-3.1.0.min.js:2
i @ jquery-3.1.0.min.js:2
fireWith @ jquery-3.1.0.min.js:2
fire @ jquery-3.1.0.min.js:2
i @ jquery-3.1.0.min.js:2
fireWith @ jquery-3.1.0.min.js:2
ready @ jquery-3.1.0.min.js:2
R @ jquery-3.1.0.min.js:2
twc3.js?v=70:615 WeatherMonthlyTotalsParser {Precipitation: '0.23'}
twc3.js?v=70:618 WeatherMonthlyTotals {MonthName: 'October', PrecipitationTotal: '0.23', PrecipitationTotalC: 0.58}
twc3.js?v=70:646 MoonPhasesParser3 {Phases: Array(4)}
twc3.js?v=70:649 SunRiseSetParser3 {SunRise: '', SunSet: '', SunRiseLocal: '05:36', SunSetLocal: '17:01'}
twc3.js?v=70:667 SunRiseSetParser3 {SunRise: '', SunSet: '', SunRiseLocal: '05:37', SunSetLocal: '17:00'}
twc3.js?v=70:670 AlmanacInfo {MoonPhases: Array(4), TodaySunRise: Mon Oct 17 2022 05:36:00 GMT-0700 (Pacific Daylight Time), TodaySunSet: Mon Oct 17 2022 17:01:00 GMT-0700 (Pacific Daylight Time), TomorrowSunRise: Tue Oct 18 2022 05:37:00 GMT-0700 (Pacific Daylight Time), TomorrowSunSet: Tue Oct 18 2022 17:00:00 GMT-0700 (Pacific Daylight Time), …}
twc3.js?v=70:3238 WeatherForecastParser {Alert: '', Text: Array(11)}
twc3.js?v=70:3241 WeatherLocalForecast {Alerts: '', AlertsC: '', Conditions: Array(6)}
twc3.js?v=70:11824 Doppler Radar Images Loaded
twc3.js?v=70:11766 [Violation] 'load' handler took 950ms
twc3.js?v=70:285 #document
twc3.js?v=70:289 WeatherDwmlParser {xmlns_xsd: 'https://www.w3.org/2001/XMLSchema', xmlns_xsi: 'https://www.w3.org/2001/XMLSchema-instance', version: '1.0', xsi_noNamespaceSchemaLocation: 'https://graphical.weather.gov/xml/DWMLgen/schema/DWML.xsd', head: DwmlHead, …}
twc3.js?v=70:306 WeatherExtendedForecast {Day: Array(6)}
twc3.js?v=70:3145 #document
twc3.js?v=70:3149 WeatherMetarsParser {xmlns_xsd: 'http://www.w3.org/2001/XMLSchema', xmlns_xsi: 'http://www.w3.org/2001/XMLSchema-instance', version: '1.2', xsi_noNamespaceSchemaLocation: 'http://www.aviationweather.gov/static/adds/schema/metar1_2.xsd', request_index: '688201560', …}
twc3.js?v=70:3152 WeatherCurrentConditions {StationName: 'New Braunfels', StationId: 'KBAZ', Latitude: '29.71', Longitude: '-98.05', Temperature: 73, …}
twc3.js?v=70:9705 WeatherCurrentRegionalConditions {StationIds: Array(7), WeatherMetarsParser: Array(0), WeatherDwmlParser: Array(0), WeatherCurrentConditions: Array(0), LatLons: Array(7), …}
twc3.js?v=70:9889 WeatherCurrentRegionalConditions {StationIds: Array(7), WeatherMetarsParser: Array(0), WeatherDwmlParser: Array(0), WeatherCurrentConditions: Array(0), LatLons: Array(7), …}LatLons: (7) ['29.88,-97.87', '29.57,-97.9', '29.53,-98.27', '29.53,-98.48', '29.38,-98.57', '29.33,-98.47', '29.72,-98.7']SkipStationIds: (4) ['KANE', 'KMIC', 'KLVN', 'KFCM']SortedArray: (7) [WeatherCurrentConditions, WeatherCurrentConditions, WeatherCurrentConditions, WeatherCurrentConditions, WeatherCurrentConditions, WeatherCurrentConditions, WeatherCurrentConditions]StationIds: (7) ['KHYI', 'KSEQ', 'KRND', 'KSAT', 'KSKF', 'KSSF', 'K5C1']StationNames: (7) ['San Marcos', 'San Antonio', 'Kelly Afb', 'S Antonio', 'Seguin - Randolph AFB Auxiliary Field, TX', 'Randolph Afb', 'S Antonio-Boerne']WeatherCurrentConditions: [KHYI: WeatherCurrentConditions, KSAT: WeatherCurrentConditions, KSKF: WeatherCurrentConditions, KSSF: WeatherCurrentConditions, KSEQ: WeatherCurrentConditions, …]WeatherDwmlParser: [KHYI: WeatherDwmlParser, KSAT: WeatherDwmlParser, KSKF: WeatherDwmlParser, KSSF: WeatherDwmlParser, KSEQ: WeatherDwmlParser, …]WeatherMetarsParser: [KHYI: WeatherMetarsParser, KSEQ: WeatherMetarsParser, KRND: WeatherMetarsParser, KSAT: WeatherMetarsParser, KSKF: WeatherMetarsParser, …][[Prototype]]: Object
vbguyny commented 1 year ago

Hello @gtxaspec I am not familiar with ngenx and the other tools that you are using. That being said HTTP error 500 indicates that there is an error on the server side. Is there a log that you get additional details from ngenx?

gtxaspec commented 1 year ago

some logs at:

https://gist.github.com/gtxaspec/70d8c9462f223c64f9e015800713bc56

gtxaspec commented 1 year ago

for anyone else wanting to attempt this:

  1. Install mono & nginx (example from https://www.mono-project.com/download/stable/#download-lin)

    sudo apt install gnupg ca-certificates
    sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
    echo "deb https://download.mono-project.com/repo/ubuntu stable-focal main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
    sudo apt update
    sudo apt install mono-complete mono-xsp4 mono-fastcgi-server4 nginx
  2. configure nginx with ssl

  3. follow the directions at: https://www.mono-project.com/docs/web/fastcgi/nginx/

  4. git clone https://github.com/vbguyny/ws4kp, place the folderws4kp at /var/www/html/ws4kp run fastcgi-mono-server4 /applications=/:/var/www/html /socket=tcp:127.0.0.1:9000 /verbose=True /printlog /loglevels=All /multiplex &

  5. load http://localhost/ws4kp/index.html in your browser

vbguyny commented 1 year ago

@gtxaspec I don't see anything in the log. Without the error details I can only speculate to what is the issue. I found this on the web: https://ubiq.co/tech-blog/fix-500-internal-server-error-nginx/

vbguyny commented 1 year ago

Also did you happen to update the code in the switch block for cors/default.aspx accordingly as indicated here: https://github.com/vbguyny/ws4kp#setup

gtxaspec commented 1 year ago

@vbguyny thanks, i will keep digging. I did update the code for the hosts in the switch block. If I may ask, is there a way in the code to easily disable the non working categories?

thanks!

vbguyny commented 1 year ago

@gtxaspec I know that it's possible. Check out this fork of this project that optionally let's you pick which categories you want: https://github.com/netbymatt/ws4kp#weatherstar-4000

mikeD1970 commented 1 year ago

@gtxaspec Thank you for sharing the information, I was successful in running and installing it on Ubuntu 21.04. Very cool, it's like being back in the 90s.

I can confirm that the two categories you listed as non functional, are sadly not working.

@vbguyny I found your project from nedbymatt's repository. Their project is missing some information that this one has.

I hope someone can figure out what is causing missing categories from loading!

gtxaspec commented 1 year ago

@mikeD1970 right, both projects are great it's peculiar that only those two categories don't load. I'll keep digging.

gtxaspec commented 1 year ago

So I wasn't able to get this running properly under mono, but I found that @samhza was able to make some modifications to run it using golang. I have tested this and it works under linux and golang 1.19.2

see: https://github.com/samhza/ws4kp

vbguyny commented 1 year ago

Awesome!!!

samhza commented 1 year ago

Hello, I actually made the fork after seeing this issue. I figured it'd be easier to have a more portable alternative to the C# bits than to run the C# on Linux. I'm glad to see you stumbled upon it. My fork doesn't remove/modify any of the existing JS/C#, just adds a Go alternative to the C# stuff. I added some build instructions to the readme. It works on macOS/Windows as well. Thanks!