mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-24 19:14:56 +01:00
Weather updates
This commit is contained in:
parent
b6bc22ae63
commit
3c47375229
@@ -1,17 +1,19 @@
|
||||
|
||||
using MediaBrowser.Model.Weather;
|
||||
|
||||
namespace MediaBrowser.Model.Configuration
|
||||
{
|
||||
public class ServerConfiguration : BaseApplicationConfiguration
|
||||
{
|
||||
public bool EnableInternetProviders { get; set; }
|
||||
public string WeatherZipCode { get; set; }
|
||||
public bool EnableUserProfiles { get; set; }
|
||||
|
||||
public string WeatherZipCode { get; set; }
|
||||
public WeatherUnits WeatherUnit { get; set; }
|
||||
|
||||
public ServerConfiguration()
|
||||
: base()
|
||||
{
|
||||
EnableUserProfiles = true;
|
||||
WeatherZipCode = "02116";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,6 +61,7 @@
|
||||
<Compile Include="Weather\WeatherForecast.cs" />
|
||||
<Compile Include="Weather\WeatherInfo.cs" />
|
||||
<Compile Include="Weather\WeatherStatus.cs" />
|
||||
<Compile Include="Weather\WeatherUnits.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="protobuf-net">
|
||||
|
||||
9
MediaBrowser.Model/Weather/WeatherUnits.cs
Normal file
9
MediaBrowser.Model/Weather/WeatherUnits.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
|
||||
namespace MediaBrowser.Model.Weather
|
||||
{
|
||||
public enum WeatherUnits
|
||||
{
|
||||
Fahrenheit,
|
||||
Celsius
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user