Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated Weather Hazards URL + Upgrade to .NET 9 + Added Docker Support #130

Open
wants to merge 28 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
9dc35f1
Updated Weather Hazards URL
arcusic Jan 4, 2025
37f5b65
Updated spanState.text to pull from ZoneID
arcusic Jan 4, 2025
7c7c882
Updated JQuery to 3.7.1
arcusic Jan 5, 2025
ffdefd0
Updated JQuery to 3.7.1
arcusic Jan 5, 2025
a274ea1
Updated JQuery to 3.7.1
arcusic Jan 5, 2025
197f7dd
Updated JQuery to 3.7.1
arcusic Jan 5, 2025
113e891
Merge branch 'master' of https://github.com/arcusic/ws4kp
arcusic Jan 5, 2025
3e0f585
Added Docker Support
arcusic Jan 5, 2025
7927c51
Added Hazard Headline to Hazard Scroll
arcusic Jan 5, 2025
57d098e
Upgraded Project to .NET 9
arcusic Jan 5, 2025
5294272
Renaming Media Directories for Docker (Linux)
arcusic Jan 5, 2025
ba6f751
Adding Media Folders Back - Docker Support (Linux)
arcusic Jan 5, 2025
f36d54c
Adding Media Folders Back - Docker Linux Support
arcusic Jan 5, 2025
201298f
Adding Media Folders Back - Docker Linux Support
arcusic Jan 5, 2025
ecae92a
Adding Media Folders Back - Docker Linux Support
arcusic Jan 5, 2025
8f47598
Adding Media Folders Back - Docker Linux Support
arcusic Jan 5, 2025
4d7f7d8
Adding Media Folders Back - Docker Linux Support
arcusic Jan 5, 2025
b128f1d
Adding Media Folders Back - Docker Linux Support
arcusic Jan 5, 2025
44fb219
Adding Media Folders Back - Docker Linux Support
arcusic Jan 5, 2025
7a16d69
Revert "Adding Media Folders Back - Docker Linux Support"
arcusic Jan 5, 2025
3093276
Adding Media Folders Back - Docker Linux Support
arcusic Jan 5, 2025
951bc39
Adding Media Folders Back - Docker Linux Support
arcusic Jan 5, 2025
cdb752e
Adding Media Folders Back - Docker Linux Support
arcusic Jan 5, 2025
ab867f9
Adding Media Folders Back - Docker Linux Support
arcusic Jan 5, 2025
03e5af0
Adding Media Folders Back - Docker Linux Support
arcusic Jan 5, 2025
b0b663a
Adding Media Folders Back - Docker Linux Support
arcusic Jan 5, 2025
f9452da
Adding Media Folders Back - Docker Linux Support
arcusic Jan 5, 2025
fc0891a
Removing Unneeded Debug Files from Repo.
arcusic Jan 5, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
30 changes: 30 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
**/.classpath
**/.dockerignore
**/.env
**/.git
**/.gitignore
**/.project
**/.settings
**/.toolstarget
**/.vs
**/.vscode
**/*.*proj.user
**/*.dbmdl
**/*.jfm
**/azds.yaml
**/bin
**/charts
**/docker-compose*
**/Dockerfile*
**/node_modules
**/npm-debug.log
**/obj
**/secrets.dev.yaml
**/values.dev.yaml
LICENSE
README.md
!**/.gitignore
!.git/HEAD
!.git/config
!.git/packed-refs
!.git/refs/heads/**
30 changes: 30 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# See https://aka.ms/customizecontainer to learn how to customize your debug container and how Visual Studio uses this Dockerfile to build your images for faster debugging.

# This stage is used when running from VS in fast mode (Default for Debug configuration)
FROM mcr.microsoft.com/dotnet/aspnet:9.0-noble AS base
USER $APP_UID
WORKDIR /app
EXPOSE 8080
EXPOSE 8081


# This stage is used to build the service project
FROM mcr.microsoft.com/dotnet/sdk:9.0-noble AS build
ARG BUILD_CONFIGURATION=Release
WORKDIR /src
COPY ["ws4kp.csproj", "."]
RUN dotnet restore "./ws4kp.csproj"
COPY . .
WORKDIR "/src/."
RUN dotnet build "./ws4kp.csproj" -c $BUILD_CONFIGURATION -o /app/build

# This stage is used to publish the service project to be copied to the final stage
FROM build AS publish
ARG BUILD_CONFIGURATION=Release
RUN dotnet publish "./ws4kp.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false

# This stage is used in production or when running from VS in regular mode (Default when not using the Debug configuration)
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "ws4kp.dll"]
Binary file removed Images/2/r/Motionless/Thumbs.db
Binary file not shown.
11 changes: 11 additions & 0 deletions Properties/launchSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,17 @@
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"Container (Dockerfile)": {
"commandName": "Docker",
"launchBrowser": true,
"launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}",
"environmentVariables": {
"ASPNETCORE_HTTPS_PORTS": "8081",
"ASPNETCORE_HTTP_PORTS": "8080"
},
"publishAllPorts": true,
"useSSL": true
}
},
"$schema": "http://json.schemastore.org/launchsettings.json",
Expand Down
4 changes: 2 additions & 2 deletions Scripts/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// <reference path="jquery-3.1.0.min.js" />
/// <reference path="jquery-3.7.1.min.js" />
/// <reference path="jquery.touchSwipe.min.js" />

// Redirect user to SSL version of site.
Expand Down Expand Up @@ -1810,7 +1810,7 @@ var btnGetGps_click = function ()
var PopulateWeatherParameters = function ()
{
spanCity.text(_WeatherParameters.City + ", ");
spanState.text(_WeatherParameters.State);
spanState.text(_WeatherParameters.ZoneId.substring(0,2));
spanStationId.text(_WeatherParameters.StationId);
spanRadarId.text(_WeatherParameters.RadarId);
spanZoneId.text(_WeatherParameters.ZoneId);
Expand Down
4 changes: 0 additions & 4 deletions Scripts/jquery-3.1.0.min.js

This file was deleted.

2 changes: 2 additions & 0 deletions Scripts/jquery-3.7.1.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Scripts/outlook1.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// <reference path="jquery-3.1.0.min.js" />
/// <reference path="jquery-3.7.1.min.js" />

var canvas1;

Expand Down
2 changes: 1 addition & 1 deletion Scripts/speech1.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// <reference path="jquery-3.1.0.min.js" />
/// <reference path="jquery-3.7.1.min.js" />

var frmSpeech;
var btnSpeak;
Expand Down
2 changes: 1 addition & 1 deletion Scripts/twc1.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// <reference path="jquery-3.1.0.min.js" />
/// <reference path="jquery-3.7.1.min.js" />

var frmGetLatLng;
var txtAddress;
Expand Down
2 changes: 1 addition & 1 deletion Scripts/twc2.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// <reference path="jquery-3.1.0.min.js" />
/// <reference path="jquery-3.7.1.min.js" />
/// <reference path="jquery.touchSwipe.min.js" />

// Redirect user to SSL version of site.
Expand Down
17 changes: 9 additions & 8 deletions Scripts/twc3.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// <reference path="jquery-3.1.0.min.js" />
/// <reference path="jquery-3.7.1.min.js" />
/// <reference path="Timer.js" />

//timemachine.config({
Expand Down Expand Up @@ -2991,7 +2991,7 @@ var GetWeatherHazards3 = function (WeatherParameters)
Hazards: [],
};

var Url = "https://alerts.weather.gov/cap/wwaatmget.php?x=" + ZoneId + "&y=0";
var Url = "https://api.weather.gov/alerts/active.atom?zone=" + ZoneId;
//Url = "cors/?u=" + encodeURIComponent(Url);

// Load the xml file using ajax
Expand Down Expand Up @@ -3085,7 +3085,8 @@ var GetWeatherHazards3 = function (WeatherParameters)
console.log(xml);

var description = $xml.find("description");
WeatherParameters.WeatherHazardConditions.Hazards.push(description.text());
var title = $xml.find("headline");
WeatherParameters.WeatherHazardConditions.Hazards.push(title.text() + " " + description.text());

HazardCounter++;
if (HazardCounter == HazardUrls.length)
Expand Down Expand Up @@ -12921,8 +12922,8 @@ var DrawNoaaImage = function (context)
{
context.drawImage(_NoaaImage, 356, 39);
};
//_NoaaImage.src = "Images/noaa4.png";
_NoaaImage.src = "Images/noaa5.gif";
//_NoaaImage.src = "images/noaa4.png";
_NoaaImage.src = "images/noaa5.gif";
}
else
{
Expand All @@ -12941,9 +12942,9 @@ var DrawLogoImage = function (context)
//SmoothingEnabled(context, true);
context.drawImage(_LogoImage, 50, 30, 85, 67);
};
//LogoImage.src = "Images/Logo1.png";
//_LogoImage.src = "Images/Logo3.gif";
_LogoImage.src = "Images/Logo3.png";
//LogoImage.src = "images/Logo1.png";
//_LogoImage.src = "images/Logo3.gif";
_LogoImage.src = "images/Logo3.png";
}
else
{
Expand Down
Binary file removed bin/Debug/net8.0/Microsoft.OpenApi.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
8 changes: 0 additions & 8 deletions bin/Debug/net8.0/appsettings.Development.json

This file was deleted.

9 changes: 0 additions & 9 deletions bin/Debug/net8.0/appsettings.json

This file was deleted.

13 changes: 0 additions & 13 deletions bin/Debug/net8.0/manifest.json

This file was deleted.

28 changes: 0 additions & 28 deletions bin/Debug/net8.0/web.config

This file was deleted.

115 changes: 0 additions & 115 deletions bin/Debug/net8.0/ws4kp.deps.json

This file was deleted.

Binary file removed bin/Debug/net8.0/ws4kp.dll
Binary file not shown.
Binary file removed bin/Debug/net8.0/ws4kp.exe
Binary file not shown.
Binary file removed bin/Debug/net8.0/ws4kp.pdb
Binary file not shown.
21 changes: 0 additions & 21 deletions bin/Debug/net8.0/ws4kp.runtimeconfig.json

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Loading