Weather App

From Cinemar Wiki
Jump to: navigation, search

About

Welcome to the Weather App for MLS4.

The Weather App uses your Internet connection to download the current and future weather conditions for any number of locations. It creates MLServer variables with this information so that you can build custom MainLobby user interface scenes to display the weather. Because this weather data is contained in MLServer4 variables, you can also leverage that data for weather related automation logic. An example would be to shut down the Irrigation Family from watering the lawn if the forecast was for rain.

System Requirements

  • MLServer version 4. or later
  • MainLobby Client ot Tablet scenes.
  • Microsoft Windows (XP, Vista, 7)
  • PC with persistent Internet connection

Installation

Download and run the Weather App from MLInstaller on the primary MLServer PC. You can optionally download the sample advanced weather scenes for MainLobby and install them on your client PCs.

Restart MLServer.

Adding Locations

Weather4 Locations.jpg

1. Open the Weather App.

2. Click on the Locations tab at the top.

3. Click on the New Location button on the toolbar.

Weather4 NewLocation.jpg

4. Enter the 5 digit zipcode or location name and press Find Location button.

5. Select the location from the list of items returned and double click it to add it to the Weather App.

6. Once it is added to the location tab select if you want current conditions, tides and pollen information.


Removing Locations

1. Open the WeatherLobby App.

2. Click on the locations tab at the top.

3. Select the locations to remove in the grid and then click on the Delete Location button on the toolbar.


Adding Maps

Weather4 map.jpg

1. Open the Weather App.

2. Click on the Maps tab at the top.

3. Click on the New Map button on the toolbar.

3. Enter the description and URL of the map in the apprppriate fields.

4. Click Save.


Removing Maps

1. Open the WeatherLobby App.

2. Click on the Maps tab at the top.

3. Select the maps to be removed in the grid and click on the delete button on the toolbar.


General Settings

Weather4 settings.jpg

1. Open the Weather App.

2. Click on the Setting tab at the top.

3. Set the weather update interval. 20 minutes is the the default and minimum time between updates.

4. On this page you can select to automatically resize a map and set the map size.

5. Select if you want to use Metric Measurements and if t=you want to use V3 variable prefixes.

MLServeCmds

Active

{MLServeCmd}Script Usage

Weather|Active~Number/Zip Code/Location ID


(Literal)

Weather|Active~1

Weather|Active~12345

Weather|Active~USWI0644


Parameters
Number/Zip Code/Location ID = The number, zip code, or location id of the location you wish to set to active.


Description

Sets the Active location.


Register

{MLServeCmd}Script Usage

Weather|Register~Number~Zip Code/Location ID


(Literal)

Weather|Register~1~12345

Weather|Register~2~USWI0644


Parameters
Number = The number of the new location Zip Code.
Zip Code/Location ID = The zip code or location of the new location.


Description

Registers a new location to be monitored.


Next

{MLServeCmd}Script Usage

Weather|Next


(Literal)

Weather|Next


Parameters
None =


Description

Sets the active location to the next one in the list. This command works in a circular fashion when the end of the list is reached it goes back to the beginning.


Previous

{MLServeCmd}Script Usage

Weather|Previous


(Literal)

Weather|Previous


Parameters
None =


Description

Sets the active location to the previous one in the list. This command works in a circular fashion when the beginning of the list is reached it goes back to the end.


ActiveMap

{MLServeCmd}Script Usage

Weather|ActiveMap~Number


(Literal)

Weather|ActiveMap~1

Weather|ActiveMap~2

Weather|ActiveMap~3


Parameters
Number = The number of the map you wish to make the active map.


Description

Sets the active map to the map with the specified number.


PreviousMap

{MLServeCmd}Script Usage

Weather|PreviousMap


(Literal)

Weather|PreviousMap


Parameters
None =


Description

Sets the active map to the next map in the list. This command works in a circular fashion, when the end of the list is reached it goes back to the beginning.


NextMap

{MLServeCmd}Script Usage

Weather|NextMap


(Literal)

Weather|NextMap


Parameters
None =


Description

Sets the active map to the previous map in the list. This command works in a circular fashion, when the beginning of the list is reached it goes back to the end.


MLServer Variables

Weather App Server Variables

The Weather App will auto generate variables in MLServer based on the settings you have entered. It will also update variables in certain circumstances such as changing the active location. These are most of the varibles, look at the MLS4 Server Variables for current variables generated.

  • Weather_city
  • Weather_climatestn
  • Weather_country
  • Weather_countryfips
  • Weather_county
  • Weather_countyfips
  • Weather_daily_reportedby
  • Weather_distanceunits
  • Weather_hourly_reportedby
  • Weather_icon
  • Weather_iconimage
  • Weather_isdayligthsavings
  • Weather_location#_city
  • Weather_location#_county
  • Weather_location#_id
  • Weather_location#_state
  • Weather_location#_zipcode
  • Weather_locationid
  • Weather_latitude
  • Weather_longtitude
  • Weather_measurementsunits
  • Weather_measurementsunitsalt
  • Weather_observesdaylightsavings
  • Weather_primaryairport
  • Weather_primarytide
  • Weather_primaryzipcode
  • Weather_speedunits
  • Weather_state
  • Weather_stateabbr
  • Weather_tempunits
  • Weather_tempunitslong
  • Weather_timezone
  • Weather_units
  • Weather_uvindex
  • Weather_weatherstation


10 Day forecast

  • Weather_forecast_#_chanceprecip
  • Weather_forecast_#_chanceprecipday
  • Weather_forecast_#_chanceprecipnight
  • Weather_forecast_#_chancesnow
  • Weather_forecast_#_cloudcoverageday
  • Weather_forecast_#_date
  • Weather_forecast_#_dateday
  • Weather_forecast_#_dateutc
  • Weather_forecast_#_dateyear
  • Weather_forecast_#_day
  • Weather_forecast_#_dayf
  • Weather_forecast_#_dayc
  • Weather_forecast_#_dayshort
  • Weather_forecast_#_dow
  • Weather_forecast_#_hitempf
  • Weather_forecast_#_hitempc
  • Weather_forecast_#_icon
  • Weather_forecast_#_iconcode
  • Weather_forecast_#_iconcodeday
  • Weather_forecast_#_iconcodenight
  • Weather_forecast_#_iconimage
  • Weather_forecast_#_lotempf
  • Weather_forecast_#_lotempc
  • Weather_forecast_#_month
  • Weather_forecast_#_moondescr
  • Weather_forecast_#_moonphase
  • Weather_forecast_#_moonrise
  • Weather_forecast_#_moonset
  • Weather_forecast_#_nightf
  • Weather_forecast_#_nightc
  • Weather_forecast_#_relhumidityday
  • Weather_forecast_#_relhumiditynight
  • Weather_forecast_#_skycode
  • Weather_forecast_#_skycodeday
  • Weather_forecast_#_skycodenight
  • Weather_forecast_#_skytext
  • Weather_forecast_#_skytextday
  • Weather_forecast_#_skytextnight
  • Weather_forecast_#_sunrise
  • Weather_forecast_#_sunset
  • Weather_forecast_#_uvdescr
  • Weather_forecast_#_uvindex
  • Weather_forecast_#_uvwarn
  • Weather_forecast_#_winddegreesday
  • Weather_forecast_#_winddegreesnight
  • Weather_forecast_#_winddirectionday
  • Weather_forecast_#_winddirectionnight
  • Weather_forecast_#_windspeedkmday
  • Weather_forecast_#_windspeedknday
  • Weather_forecast_#_windspeedkmnight
  • Weather_forecast_#_windspeedknnight
  • Weather_forecast_#_windspeedmphday
  • Weather_forecast_#_windspeedmphnight


Current Observation

  • Weather_Current_ReportTime
  • Weather_Current_DateYear
  • Weather_Current_DateMonth
  • Weather_Current_DateDay
  • Weather_Current_DateHour
  • Weather_Current_DateMinute
  • Weather_Current_DateSecond
  • Weather_Current_DateDOW
  • Weather_Current_TempF
  • Weather_Current_TempC
  • Weather_Current_DewPointF
  • Weather_Current_DewPointC
  • Weather_Current_RelHumidity
  • Weather_Current_WindSpeedMPH
  • Weather_Current_WindDirectionDegrees
  • Weather_Current_WindDirection
  • Weather_Current_WindGustsMPH
  • Weather_Current_Pressure
  • Weather_Current_Weather
  • Weather_Current_Sky
  • Weather_Current_Icon
  • Weather_Current_Ceiling
  • Weather_Current_Visibility
  • Weather_Current_HeatIndexF
  • Weather_Current_HeatIndexC
  • Weather_Current_WindChillF
  • Weather_Current_WindChillC
  • Weather_Current_FeelsLikeF
  • Weather_Current_FeelsLikeC
  • Weather_Current_SnowDepth
  • Weather_Current_SixHrMaxTemp
  • Weather_Current_TwentyFourHrMaxTemp
  • Weather_Current_SixHrMinTemp
  • Weather_Current_TwentyFourHrMinTemp
  • Weather_Current_ThreeHrPrecip
  • Weather_Current_SixHrPrecip
  • Weather_Current_TwentyFourHrPrecip
  • Weather_Current_CodedWeather
  • Weather_Current_EnhancedWeather
  • Weather_Current_ReportText

Historic Average

  • Weather_Historic_StationName
  • Weather_Historic_Month
  • Weather_Historic_Date
  • Weather_Historic_Interval
  • Weather_Historic_AvgHiF
  • Weather_Historic_AvgHiC
  • Weather_Historic_AvgLoF
  • Weather_Historic_AvgLoC
  • Weather_Historic_RecordHiF
  • Weather_Historic_RecordHiC
  • Weather_Historic_RecordHiDate
  • Weather_Historic_RecordLoF
  • Weather_Historic_RecordLoC
  • Weather_Historic_RecordLoDate
  • Weather_Historic_MeanTempF
  • Weather_Historic_MeanTempC
  • Weather_Historic_AvgPrecipIn
  • Weather_Historic_AvgPrecipCm
  • Weather_Historic_AvgSnowIn
  • Weather_Historic_AvgSnowCm

Hourly Forecast

  • Weather_HF_ReportTime
  • Weather_HF 1..48 _DOW
  • Weather_HF 1..48 _DateUTC
  • Weather_HF 1..48 _Date
  • Weather_HF 1..48 _DateYear
  • Weather_HF 1..48 _DateMonth
  • Weather_HF 1..48 _DateDay
  • Weather_HF 1..48 _DateHour
  • Weather_HF 1..48 _DateMinute
  • Weather_HF 1..48 _DateSecond
  • Weather_HF 1..48 _DateDOW
  • Weather_HF 1..48 _TempF
  • Weather_HF 1..48 _TempC
  • Weather_HF 1..48 _SkyCode
  • Weather_HF 1..48 _SkyCodeExt
  • Weather_HF 1..48 _Icon
  • Weather_HF 1..48 _SkyL
  • Weather_HF 1..48 _SkyM
  • Weather_HF 1..48 _SkyS
  • Weather_HF 1..48 _ChancePrecip
  • Weather_HF 1..48 _ChanceSnow
  • Weather_HF 1..48 _RelHumidity
  • Weather_HF 1..48 _WindSpeedMPH
  • Weather_HF 1..48 _WindSpeedKM
  • Weather_HF 1..48 _WindSpeedKN
  • Weather_HF 1..48 _WindDegrees
  • Weather_HF 1..48 _WindDirection
  • Weather_HF 1..48 _HeatIndexF
  • Weather_HF 1..48 _HeatIndexC
  • Weather_HF 1..48 _WindChillF
  • Weather_HF 1..48 _WindChillC
  • Weather_HF 1..48 _VisibilityMI
  • Weather_HF 1..48 _VisibilityKM
  • Weather_HF 1..48 _CloudCoverage
  • Weather_HF 1..48 _DewPointF
  • Weather_HF 1..48 _DewPointC
  • Weather_HF 1..48 _UVIndex
  • Weather_HF 1..48 _UVDescr
  • Weather_HF 1..48 _UVWarn


Weather Alerts

  • Weather_Alert_Count
  • Weather_Alert#_CountryFIPS
  • Weather_Alert#_StateAbbr
  • Weather_Alert#_Type
  • Weather_Alert#_StartTime
  • Weather_Alert#_EndTime
  • Weather_Alert#_Headline
  • Weather_Alert#_Bulletin
  • Weather_Alert#_URL
  • Weather_Alert#_Category
  • Weather_Alert#_Urgency
  • Weather_Alert#_Severity
  • Weather_Alert#_Certainty
  • Weather_Alert#_Geoname
  • Weather_Alert#_StateName
  • Weather_Alert#_CountyName

Tides

  • Weather_Tide_Distance
  • Weather_Tide_CityName
  • Weather_Tide_CityLatitude
  • Weather_Tide_CityLongtitude
  • Weather_Tide_Count
  • Weather_Tide_Reportedby
  • Weather_Tide 1..n _Date
  • Weather_Tide 1..n _TimeZone
  • Weather_Tide 1..n _FirstHiTide
  • Weather_Tide 1..n _FirstHiTideHeight
  • Weather_Tide 1..n _SecondHiTide
  • Weather_Tide 1..n _SecondHiTideHeight
  • Weather_Tide 1..n _FirstLoTide
  • Weather_Tide 1..n _FirstLoTideHeight
  • Weather_Tide 1..n _SecondLoTide
  • Weather_Tide 1..n _SecondLoTideHeight
  • Weather_Tide 1..n _Sunrise
  • Weather_Tide 1..n _Sunset

Ski Resort

  • Weather_Ski_CityID
  • Weather_Ski_Name
  • Weather_Ski_CityName
  • Weather_Ski_StateAbbr
  • Weather_Ski_ZipCode
  • Weather_Ski_Latitude
  • Weather_Ski_Longtitude
  • Weather_Ski_BaseElevation
  • Weather_SkiConditions_crosscountrykm
  • Weather_SkiConditions_snowmakingpercent
  • Weather_SkiConditions_snowmakingtrails
  • Weather_SkiConditions_groomingpercent
  • Weather_SkiConditions_groomingtrails
  • Weather_SkiConditions_hastubinglift
  • Weather_SkiConditions_tubinglanes
  • Weather_SkiConditions_tubinglocation
  • Weather_SkiConditions_tubinghours
  • Weather_SkiConditions_halfpipelocation
  • Weather_SkiConditions_terrainparklocation
  • Weather_SkiConditions_terrainparkfeatures
  • Weather_SkiConditions_halfpipeterrainother
  • Weather_SkiConditions_currentweather
  • Weather_SkiConditions_currenttemperature
  • Weather_SkiConditions_forecastweather
  • Weather_SkiConditions_forecasttemperature
  • Weather_SkiConditions_roads
  • Weather_SkiConditions_winds
  • Weather_SkiConditions_visibility
  • Weather_SkiConditions_suggestedtrails
  • Weather_SkiConditions_hasiceskating
  • Weather_SkiConditions_haswalkingtrails
  • Weather_SkiConditions_hassledding
  • Weather_SkiConditions_hascurling
  • Weather_SkiConditions_crosscountrynotes
  • Weather_SkiConditions_descent
  • Weather_SkiConditions_runconditions
  • Weather_SkiConditions_specialevents
  • Weather_SkiConditions_avalancherisk
  • Weather_SkiConditions_crosscountrysingletrack
  • Weather_SkiConditions_crosscountryskatingkm
  • Weather_SkiConditions_crosscountryopentrails
  • Weather_SkiConditions_latitude
  • Weather_SkiConditions_longitude
  • Weather_SkiConditions_cityname
  • Weather_SkiConditions_physicaladdressshort
  • Weather_SkiConditions_zipcode
  • Weather_SkiConditions_physicaladdresslong
  • Weather_SkiConditions_secondarysurface
  • Weather_SkiConditions_snowcomments
  • Weather_SkiConditions_hoursopen
  • Weather_SkiConditions_nighttrails
  • Weather_SkiConditions_nightlifts
  • Weather_SkiConditions_hascrosscountry
  • Weather_SkiConditions_issnowmaking
  • Weather_SkiConditions_isgrooming
  • Weather_SkiConditions_hastubing
  • Weather_SkiConditions_hashalfpipe
  • Weather_SkiConditions_hasterrainpark
  • Weather_SkiConditions_projectedterrain
  • Weather_SkiConditions_totaltrails
  • Weather_SkiConditions_totalmiles
  • Weather_SkiConditions_totalacres
  • Weather_SkiConditions_totallifts
  • Weather_SkiConditions_lastsnow
  • Weather_SkiConditions_previoussnow
  • Weather_SkiConditions_phonenumber
  • Weather_SkiConditions_stateabbreviation
  • Weather_SkiConditions_areaname
  • Weather_SkiConditions_reporttime
  • Weather_SkiConditions_newsnow24hours
  • Weather_SkiConditions_primarysurface
  • Weather_SkiConditions_averagebase
  • Weather_SkiConditions_trailsopen
  • Weather_SkiConditions_liftsopen
  • Weather_SkiConditions_milesopen
  • Weather_SkiConditions_acresopen
  • Weather_SkiConditions_percentopen
  • Weather_SkiConditions_hasnightskiing
  • Weather_SkiConditions_openstatus
  • Weather_SkiConditions_crosscountryopenkm
  • Weather_SkiConditions_entrytype
  • Weather_SkiConditions_lastsnowamount
  • Weather_SkiConditions_previoussnowdate
  • Weather_SkiConditions_previoussnowamount
  • Weather_SkiConditions_seasontotalsnow
  • Weather_SkiConditions_newsnowminimum
  • Weather_SkiConditions_newsnowmaximum
  • Weather_SkiConditions_baseminimum
  • Weather_SkiConditions_basemaximum
  • Weather_SkiConditions_lastsnowdate

Pollen Forecast

  • Weather_PF 1..n _DayNum
  • Weather_PF 1..n _Grass_Date
  • Weather_PF 1..n _Grass_Pollendescr
  • Weather_PF 1..n _Grass_Pollindex
  • Weather_PF 1..n _Grass_Reportime
  • Weather_PF 1..n _Grass_Station
  • Weather_PF 1..n _Grass_utcdate
  • Weather_PF 1..n _Pollentype
  • Weather_PF 1..n _Tree_Date
  • Weather_PF 1..n _Tree_Pollendescr
  • Weather_PF 1..n _Tree_Pollindex
  • Weather_PF 1..n _Tree_Reportime
  • Weather_PF 1..n _Tree_Station
  • Weather_PF 1..n _Tree_utcdate
  • Weather_PF 1..n _Weed_Date
  • Weather_PF 1..n _Weed_Pollendescr
  • Weather_PF 1..n _Weed_Pollindex
  • Weather_PF 1..n _Weed_Reportime
  • Weather_PF 1..n _Weed_Station
  • Weather_PF 1..n _Weed_utcdate
  • Weather_Pollen_Reportedby