Weatherscan/webroot/js/config.js

478 lines
16 KiB
JavaScript

//Some of the settings may or may not work as this is not a fully completed update. Mainly Appearance settings and weather variables that arent finished.
//Input API Keys below. If no API is inputted, sim will default to no report.
var api_key = '';
var map_key = '';
//Apperance settings. Fields left blank will use defaults. Will only refresh upon reload.
var apperanceSettings = {
iconSet:"2007", //2007 or 2010
serialNumber:"",// Ex. "TWCS02983932"
headinID:"", // Ex. "0298393223"
affilateName:"Midco",// Ex. "Comcast"
logoURL:"", //image size must be...
corebackgroud:"buildings", //forest, mountain, city, buildings, neighborhood, southwest, ocean. Default is buildings.
backgroudType:"",//Set to
backgroudURL:"",//If background type set to "custom" will use this url. URL can be a website or local file path.
marqueeAd: ["This Weatherscan Emulation is brought to you by the 5D crew. Help from Mapguy11, Goldblazez, TWCBranden, and TWCJon! Please note this emulator is still in beta. If you encounter a bug, report it at https://github.com/buffbears/Weatherscan. To stay up to date with the latest on the emulator, join our Discord Server at https://discord.gg/eWsxxfDtayh.", "You are watching an emulation of the Weatherscan IntelliStar system. Weatherscan is a digital cable and satellite television network that is owned by a consortium owned in turn by NBCUniversal and investment firms The Blackstone Group and Bain Capital. A spinoff of The Weather Channel, Weatherscan features uninterrupted local weather information in graphical format on a continuous loop that is generated by an IntelliStar unit installed at the cable provider's headend; unlike The Weather Channel, Weatherscan does not feature on-air talent of any kind."],
}
//not functioning
var slideloopSettings = {
order:['cities']
}
var audioSettings = {
enableMusic: true, //Something is wrong if you set this to false.
order: [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33], //The order the music will play. To include or exclude tracks add or remove their number to the order. Default is 1-33. 34-46 are known 2003 tracks excluding duplicates with 2007. 47-51 are known 2006 tracks excluding duplicates with 2007 and 2003. 52-53 are other weatherscan tracks from unknown year. 54-66 is Trammel Starks 1 not used in any other section. 67-76 is Trammel Starks 2 excluding duplicates. 77-83 is Trammel Starks 3 excluding duplicates.
shuffle: false, //Shuffle audio. Default is false.
randomStart: true, //Starts the order from a random spot. Default is true.
enableNarrations: true, //Play narrations. Default is true.
narrationType: 'female',//allen or female. Default is female.
}
var locationSettings = {
mainLocation:{
displayName:"",//Name that will show up on the sim.
searchQuery:{ //Type and val are required fields for search to work. Will be overridden if location is given in URL.
type:"",//Leave type blank to use automatic search. "geocode", "state", "district", "city", "locality", "neighborhood", "postal" (zipcode), "address", "poi", "pws" (personal weatherstation) //If geocode is used all otherfields but val will be ignored.
fuzzy:true, //Attempt approximate search.
country:"US", //Two letter country code. //Recommend using "US".
state:"", //Two letter state code.
val:"", //for geocode "lat,lon"
searchResultNum:2,//Defaults to 0. Use if the first result for a particular location sucks.
}
},
extraLocations: {
useAutoLocations: true, //Will add automatically searched locations to the list.
maxLocations: 4, //Will limit amount of locations that appear on sim. Default is 3.
locationOrderNum:[5,4,3,9], //Ordernum for automatically generated locations. Lower number will be placed closer to the front.
locs:[
{
displayName:'',
orderNum:2,
searchQuery:{
type:"",
fuzzy:true,
country:"US",
state:"",
val:"",
searchResultNum:"",
}
},
{
displayName:"",
orderNum:3,
searchQuery:{
type:"",
fuzzy:true,
country:"US",
state:"",
val:"",
searchResultNum:"",
}
},
{
displayName:"",
orderNum:3,
searchQuery:{
type:"",
fuzzy:true,
country:"US",
state:"",
val:"",
searchResultNum:"",
}
},
]},
aroundCityInfoLocs: {
useAutoLocations: true, //Will add automatically searched locations to the list.
maxLocations: 8, //Will limit amount of locations that appear on sim. Default is 8. Hard Limit is 8.
locationOrderNum:[5,4,3], //Ordernum for automatically generated locations. Lower number will be placed closer to the front.
locs:[//Cities for the nearby cities slide
{
displayName:"",
searchQuery:{
type:"",
fuzzy:true,
country:"",
state:"",
val:"",
searchResultNum:"",
}
},
{
displayName:"",
searchQuery:{
type:"",
fuzzy:true,
country:"",
state:"",
val:"",
searchResultNum:"",
}
},
{
displayName:"",
searchQuery:{
type:"",
fuzzy:true,
country:"",
state:"",
val:"",
searchResultNum:"",
}
},
{
displayName:"",
searchQuery:{
type:"",
fuzzy:true,
country:"",
state:"",
val:"",
searchResultNum:"",
}
},
{
displayName:"",
searchQuery:{
type:"",
fuzzy:true,
country:"",
state:"",
val:"",
searchResultNum:"",
}
},
{
displayName:"",
searchQuery:{
type:"",
fuzzy:true,
country:"",
state:"",
val:"",
searchResultNum:"",
}
},
{
displayName:"",
searchQuery:{
type:"",
fuzzy:true,
country:"",
state:"",
val:"",
searchResultNum:"",
}
},
{
displayName:"",
searchQuery:{
type:"",
fuzzy:true,
country:"",
state:"",
val:"",
searchResultNum:"",
}
},
]},
marqueeCities: [// Cities for the ccticker.
{
displayName:"",
searchQuery:{
type:"",
fuzzy:true,
country:"",
state:"",
val:"",
searchResultNum:"",
}
},
{
displayName:"",
searchQuery:{
type:"",
fuzzy:true,
country:"",
state:"",
val:"",
searchResultNum:"",
}
},
{
displayName:"",
searchQuery:{
type:"",
fuzzy:true,
country:"",
state:"",
val:"",
searchResultNum:"",
}
},
{
displayName:"",
searchQuery:{
type:"",
fuzzy:true,
country:"",
state:"",
val:"",
searchResultNum:"",
}
},
{
displayName:"",
searchQuery:{
type:"",
fuzzy:true,
country:"",
state:"",
val:"",
searchResultNum:"",
}
},
{
displayName:"",
searchQuery:{
type:"",
fuzzy:true,
country:"",
state:"",
val:"",
searchResultNum:"",
}
},
{
displayName:"",
searchQuery:{
type:"",
fuzzy:true,
country:"",
state:"",
val:"",
searchResultNum:"",
}
},
{
displayName:"",
searchQuery:{
type:"",
fuzzy:true,
country:"",
state:"",
val:"",
searchResultNum:"",
}
},
{
displayName:"",
searchQuery:{
type:"",
fuzzy:true,
country:"",
state:"",
val:"",
searchResultNum:"",
}
},
{
displayName:"",
searchQuery:{
type:"",
fuzzy:true,
country:"",
state:"",
val:"",
searchResultNum:"",
}
},
],//to be functional in a future update
airportLocations:[//For main airports slide.
{
displayName:"",
iataCode:"",
},
{
displayName:"",
iataCode:"",
},
],
otherAirportLocations:[//For other airports slide.
{
displayName:"",
iataCode:"",
},
{
displayName:"",
iataCode:"",
},
{
displayName:"",
iataCode:"",
},
{
displayName:"",
iataCode:"",
},
{
displayName:"",
iataCode:"",
},
{
displayName:"",
iataCode:"",
},
{
displayName:"",
iataCode:"",
},
{
displayName:"",
iataCode:"",
},
{
displayName:"",
iataCode:"",
},
{
displayName:"",
iataCode:"",
},
{
displayName:"",
iataCode:"",
},
{
displayName:"",
iataCode:"",
},
{
displayName:"",
iataCode:"",
},
{
displayName:"",
iataCode:"",
},
{
displayName:"",
iataCode:"",
},
{
displayName:"",
iataCode:"",
},
]
}
//var mapSettings = {}
//to be functional in a future update
//This section will deal with all weather variables. Blank fields will use API data. You can update this via console and data will be refreshed on a set time.
var weatherInfoSettings = {
currentCond: {
sidebar: {
noReport:false, //If true, shows no report.
displayname:"", //Ove
temp:"", //
cond:"",
icon:"",
humid:"",
dewpt:"",
pressure:"",
wind:"",
windspeed:"",
gust:"",
feelslike: {type:"",val:""},
visibility:"",
uvidx:"",
ceiling:""
},
//loc:{noReport:"",displayname:"",temp:"",cond:"",icon:"",humid:"",dewpt:"",pressure:"",pressureTrend:"",wind:"",windspeed:"",gust:"",feelslike:{type:"",val:""},},
weatherLocs:[
],
//cityLoc:{noReport:false,displayname:"",temp:"",icon:"",wind:"",windspeed:""}
city8slides:{noReport:false, cities:[]},
}, dayPart: {
lowerbar:{noReport:false,displayname:"",daytitle:"",hour:[{time:"",cond:"",icon:"",temp:"",wind:"",windspeed:""},{time:"",cond:"",icon:"",temp:"",wind:"",windspeed:""},{time:"",cond:"",icon:"",temp:"",wind:"",windspeed:""},{time:"",cond:"",icon:"",temp:"",wind:"",windspeed:""},]},
/*loc:{noReport:"",displayname:"",daytitle:"",hour:[
{time:"",cond:"",icon:"",temp:"",wind:"",windspeed:""},
{time:"",cond:"",icon:"",temp:"",wind:"",windspeed:""},
{time:"",cond:"",icon:"",temp:"",wind:"",windspeed:""},
{time:"",cond:"",icon:"",temp:"",wind:"",windspeed:""},
]},*/
weatherLocs:[],
}, dayDesc: {
lowerbar: {noReport:false,displayname:"",day:[{name:"",desc:""},{name:"",desc:""},{name:"",desc:""},{name:"",desc:""}]},
/*loc:{noReport:"",displayname:"",day:[
{name:"",desc:""},
{name:"",desc:""},
{name:"",desc:""},
{name:"",desc:""}
]},*/
weatherLocs:[]
}, fiveDay: {
lowerbar: {noReport:false,displayname:"",day:[{name:"",cond:"",icon:"",high:"",low:"",windspeed:"",weekend:""},{name:"",cond:"",icon:"",high:"",low:"",windspeed:"",weekend:""},{name:"",cond:"",icon:"",high:"",low:"",windspeed:"",weekend:""},{name:"",cond:"",icon:"",high:"",low:"",windspeed:"",weekend:""},{name:"",cond:"",icon:"",high:"",low:"",windspeed:"",weekend:""}]},
/*loc:{noReport:"",displayname:"",day:[
{name:"",cond:"",icon:"",high:"",low:"",windspeed:""},
{name:"",cond:"",icon:"",high:"",low:"",windspeed:""},
{name:"",cond:"",icon:"",high:"",low:"",windspeed:""},
{name:"",cond:"",icon:"",high:"",low:"",windspeed:""},
{name:"",cond:"",icon:"",high:"",low:"",windspeed:""}
]},*/
weatherLocs:[]
}, alamanac: {displayname:"",date:"",avghigh:"",avglow:"",rechigh:"",reclow:"",rechighyear:"",reclowyear:"",sunrise:"",sunset:"",moonphases:[
{name:"NEW",date:"Feb 10"},
{name:"FIRST",date:"Feb 16"},
{name:"FULL",date:"Feb 21"},
{name:"LAST",date:"Feb 27"},
]}, bulletin: {
//loc:{displayname:"",pages:[]},
includesevereonbulletin: false,
weatherLocs:[],
severewarnings:[],
//{name:"", desc:"", status:""}
marqueewarnings:[],
severeweathermode: false
//{name:"", desc:"", status:"", significance:""}
}, healthforecast: {noReport:false, displayname:"",dayidx:0, day:"", high:"", low:"", precipChance:"", humid:"", wind:"",windspeed:"", icon:""
}, healthPollen: {noReport:false, displayname:"", total:"", totalcat:"", date:"", types:[
{type:"tree", treetype:"", pollenidx:""},
{type:"grass", pollenidx:""},
{type:"weed", pollenidx:""},
{type:"mold", pollenidx:""},
]}, healthAcheBreath: {noReport:false, date:"",achesindex:"",achescat:"",breathindex:"",breathcat:""
}, airquality: {noReport:false, date:"",ozoneactin: false, primarypolute:"", airqualityindex:""
}, uvindex: {noReport:false, currentuv:{index:"",desc:""},forecast:[
{day:"",time:"",index:"",desc:""},
{day:"",time:"",index:"",desc:""},
{day:"",time:"",index:"",desc:""}
]}, airport: {noReport: false, mainairports:[
{displayname:"",iata:"MIA",arrivals:{delay:"No Delay",reason:""},departures:{delay:"No Delay",reason:""},temp:"",cond:"",icon:"",windspeed:""},
{displayname:"",iata:"MCO",arrivals:{delay:"No Delay",reason:""},departures:{delay:"No Delay",reason:""},temp:"",cond:"",icon:"",windspeed:""}
], delays: [],
//{iato:"",type:"",amount:"",amountmin:"",reason:""}
otherairports:[
{displayname:"New York / LaGaurdia",iata:"LGA",delay:"No Delay",temp:"",icon:"",windspeed:""},
{displayname:"Chicago O'hare Int'l",iata:"ORD",delay:"No Delay",temp:"",icon:"",windspeed:""},
{displayname:"Los Angeles Int'l",iata:"LAX",delay:"No Delay",temp:"",icon:"",windspeed:""},
{displayname:"Atlanta International",iata:"LAX",delay:"No Delay",temp:"",icon:"",windspeed:""},
{displayname:"Dallas / Ft. Worth Int'l",iata:"DFW",delay:"No Delay",temp:"",icon:"",windspeed:""},
{displayname:"Denver International",iata:"DEN",delay:"No Delay",temp:"",icon:"",windspeed:""},
{displayname:"Boston / Logan Int'l",iata:"BOS",delay:"No Delay",temp:"",icon:"",windspeed:""},
{displayname:"Salt Lake City Int'l",iata:"SLC",delay:"No Delay",temp:"",icon:"",windspeed:""},
{displayname:"Miami International",iata:"MIA",delay:"No Delay",temp:"",icon:"",windspeed:""},
{displayname:"Phoenix / Sky Harbor",iata:"PHX",delay:"No Delay",temp:"",icon:"",windspeed:""},
{displayname:"Minneapolis - St. Paul",iata:"MSP",delay:"No Delay",temp:"",icon:"",windspeed:""},
{displayname:"Washington Dulles Int'l",iata:"IAD",delay:"No Delay",temp:"",icon:"",windspeed:""},
{displayname:"San Francisco Int'l",iata:"SFO",delay:"No Delay",temp:"",icon:"",windspeed:""},
{displayname:"Philadelphia Int'l",iata:"PHL",delay:"No Delay",temp:"",icon:"",windspeed:""},
{displayname:"Seattle - Tacoma Int'l",iata:"SEA",delay:"No Delay",temp:"",icon:"",windspeed:""},
{displayname:"Lambert - St. Louis Int'l",iata:"STL",delay:"No Delay",temp:"",icon:"",windspeed:""},
]},
ccticker: {noReportCC:false,noReportFC:false,noReportAC:false,arrow:"",ccLocs:[],ccairportdelays:[]},
radarTempUnavialable: false,
radarWinterLegend: false,
reboot: false,
ad: "You are watching an emulation of the Weatherscan IntelliStar system. Weatherscan is a digital cable and satellite television network that is owned by a consortium owned in turn by NBCUniversal and investment firms The Blackstone Group and Bain Capital. A spinoff of The Weather Channel, Weatherscan features uninterrupted local weather information in graphical format on a continuous loop that is generated by an IntelliStar unit installed at the cable provider's headend; unlike The Weather Channel, Weatherscan does not feature on-air talent of any kind."
}