# Domestic Client Test Configuration for the development of domestic products
# This file will be generated by the Domestic SCMT some day...
# For now, fill in your product attributes and set the interestlists you need!

#
dsm.set('Config.1.PlaylistOverride','SouthernCalifornia', 0)
#
dsm.set('Config.1.affiliateNumber', '1023', 0)
dsm.set('Config.1.dmaCode','744', 0)
dsm.set('Config.1.primaryCounty','HIC007', 0)
dsm.set('Config.1.stateCode','HI', 0)
dsm.set('Config.1.secondaryObsStation','PHNL', 0)
dsm.set('Config.1.primaryClimoStation','515580', 0)
dsm.set('Config.1.primaryIndexId','PHLI', 0)
dsm.set('Config.1.ThemeOverride','standard', 0)
dsm.set('Config.1.expRev','655352', 0)
dsm.set('Config.1.primaryCoopId','91165000', 0)
dsm.set('Config.1.wda','LIH', 0)
dsm.set('Config.1.primaryObsStation','PHLI', 0)
dsm.set('Config.1.primaryLat',21.91916, 0)
dsm.set('Config.1.Clock','scmt.clock', 0)
dsm.set('Config.1.primaryLon',-159.52639, 0)
dsm.set('Config.1.primaryZone','HIZ002', 0)
dsm.set('Config.1.climoRegion','5', 0)
dsm.set('Config.1.SevereClock','scmt_severe.clock', 0)
#
wxdata.setTimeZone('HST')
#
# Use only for debugging
#dsm.set('Config.1.ldlStarIDMessage', 'Local weather ID: 5', 0)
ds.commit()

# Default Config for Forecast Pane
d = twc.Data()
d.locName = 'LIHUE'
d.coopId = '91165000'
dsm.set('Config.1.Fcst_TextForecast', d, 0, 1)
dsm.set('Config.1.Fcst_DaypartForecast', d, 0, 1)
dsm.set('Config.1.Fcst_ExtendedForecast', d, 0, 1)

# =============================================================================
# Interest Lists
wxdata.setInterestList('lambert.us', '1', [ 'radarSatellite.us', 'satellite.us'])
wxdata.setInterestList('mercator.us', '1', [ 'radar.us',])
wxdata.setInterestList('mercator.hi.regional', '1', ['satellite.hi',])
wxdata.setInterestList('mercator.hi.local', '1', ['radar.hi',])
#
wxdata.setInterestList('radar.hi.cuts', '1', [ 'Config.1.Local_RegionalDopplerRadar',
                                         'Config.1.Local_MetroDopplerRadar',])    # 'Config.1.Radar_LocalDoppler',])
wxdata.setInterestList('radarSatellite.us.cuts', '1', [ 'Config.1.Local_RadarSatelliteComposite',])
wxdata.setInterestList('satellite.hi.cuts', '1', [ 'Config.1.Local_Satellite',])
#
wxdata.setInterestList('indexId', '1', ['PHLI',])
wxdata.setInterestList('mapData', '1', ['mercator.hi.regional','mercator.hi.local',])
#
wxdata.setInterestList('imageData', '1', [ 'radar.hi','satellite.hi',])
#
wxdata.setInterestList('coopId', '1', ['72295023','72488037','72592032','74506009','91165000','91182000','91190000','91285000',])
#
wxdata.setInterestList('airportId', '1', ['ANC','HNL','OGG',])
wxdata.setInterestList('obsStation', '1', ['PANC','PHJH','PHKO','PHLI','PHMK','PHNL','PHNY','PHOG','PHTO',])
wxdata.setInterestList('zone.cwf', '1', ['PHZ111',])
wxdata.setInterestList('skiId', '1', ['916006','916012',])
wxdata.setInterestList('zone', '1', ['HIZ002',])
wxdata.setInterestList('tideStation', '1', ['W1611347','W1611443',])
wxdata.setInterestList('aq', '1', ['zz001',])
wxdata.setInterestList('climId', '1', ['515580',])
wxdata.setInterestList('county', '1', ['HIC007','HIC003',])
wxdata.setInterestList('metroId', '1', [ '32','23'])
wxdata.setInterestList('keyRoute', '1', [ '32.93121','32.93148','32.93066'])
dsm.set('Config.1.countyNameList',[('HIC007','Kauai'),('HIC003','Honolulu'),], 0)

# =============================================================================
# product override
d = twc.Data()
d.activeCue = 1
d.activeVocal = 1
dsm.set('Config.1.Override', d, 0)

# =============================================================================
# Playlist configs
# a value of 1 below is active (not required - this is the default behavior)
# a value of 0 below is inactive
# just substitute "yourProduct" for the XXX below
d = twc.Data()
d.activeTides = 1
d.activeXXX = 0
dsm.set('Config.1.DefaultUS.60.0', d, 0)
dsm.set('Config.1.DefaultUS.60.1', d, 0)
dsm.set('Config.1.DefaultUS.90.0', d, 0)
dsm.set('Config.1.DefaultUS.90.1', d, 0)
dsm.set('Config.1.DefaultUS.120.0', d, 0)
dsm.set('Config.1.DefaultUS.120.1', d, 0)
dsm.set('Config.1.DefaultUS.120.2', d, 0)
dsm.set('Config.1.SouthernCalifornia.60.0', d, 0)
dsm.set('Config.1.SouthernCalifornia.60.1', d, 0)
dsm.set('Config.1.SouthernCalifornia.90.0', d, 0)
dsm.set('Config.1.SouthernCalifornia.90.1', d, 0)
dsm.set('Config.1.SouthernCalifornia.120.0', d, 0)
dsm.set('Config.1.SouthernCalifornia.120.1', d, 0)
dsm.set('Config.1.SouthernCalifornia.120.2', d, 0)
dsm.set('Config.1.WestCoastUS.60.0', d, 0)
dsm.set('Config.1.WestCoastUS.60.1', d, 0)
dsm.set('Config.1.WestCoastUS.90.0', d, 0)
dsm.set('Config.1.WestCoastUS.90.1', d, 0)
dsm.set('Config.1.WestCoastUS.120.0', d, 0)
dsm.set('Config.1.WestCoastUS.120.1', d, 0)
dsm.set('Config.1.WestCoastUS.120.2', d, 0)

# =============================================================================
# LAS Crawl
d = twc.Data()
d.serialNum = 2
d.crawls = [
    (1064928109, 1139440000, [( 0, 23)], 'text of crawl 0'),
    (1064928109, 1139440000, [( 0, 23)], 'text of crawl 1'),
    (1064928109, 1139440000, [(10, 11), (17, 19)], 'text of crawl 2'),
]
dsm.set('Config.1.Ldl_LASCrawl', d, 0)

# =============================================================================
# TextForecast
d = twc.Data(coopId='91165000',
             locName='LIHUE METRO',
             minPageDuration=6,
             maxPageDuration=14,
)
dsm.set('Config.1.Local_TextForecast', d, 0)

# =============================================================================
# 7DayForecast
d = twc.Data(coopId='91165000',
             locName='LIHUE METRO',
)
dsm.set('Config.1.Local_7DayForecast', d, 0)

# =============================================================================
# AirQualityForecast
# There are 2 sets of ids and loc names because of the dual nature of the
# product.  It can be configured for 1 or 3 sites.
d = twc.Data(aq=['ca017','ca029','ca031'],
             locName=['Riverside/San Bernardino','Coastal Area','Hemet/Elsinore'],
             #aq=['va001',],
             #locName=['WASHINGTON, DC',],

)
dsm.set('Config.1.Local_AirQualityForecast', d, 0)

# =============================================================================
#Almanac
d = twc.Data(longitude=-159.35,
             latitude=21.98,
)
dsm.set('Config.1.Local_Almanac', d, 0)

# =============================================================================
# Climatology
d = twc.Data(longitude=-159.35,
             latitude=21.98,
             climId=['515580'],
             locName='LIHUE',
             obsStation='PHLI',
)
dsm.set('Config.1.Local_Climatology', d, 0)

# =============================================================================
# CurrentConditions
d = twc.Data(obsStation=['SENSOR','PHLI','PHNL'],
             locName=['Kalaheo','LIHUE','HONOLULU'],
)
dsm.set('Config.1.Local_CurrentConditions', d, 0)
# =============================================================================
# Squeeze Back CurrentConditions
d = twc.Data(obsStation=['SENSOR','PHLI','PHNL'],
             locName=['Kalaheo','LIHUE','HONOLULU'],
             elementDuration = 6,
)
dsm.set('Config.1.Cc_CurrentConditions', d, 0)

# =============================================================================
# DaypartForecast
d = twc.Data(coopId=['91165000', ],
             locName=['LIHUE METRO', ]
)
dsm.set('Config.1.Local_DaypartForecast', d, 0)

# =============================================================================
## EventForecast
#
## Event Types:
#A_MOMENT_IN_TIME = 0
#DAY_SUMMARY = 1
#
## TODO: The valid time should come from the dataStore,
## but until it does, do this...
#import time
#vTime = int(time.time())
#d = twc.Data(coopId='72219000',
#             text='Atlanta Motor Speedway',
#             text2='Wednesday',
#             eventType = DAY_SUMMARY,
#             overlayImage = '/rsrc/images/eventRacing',
#             bkgImage = ('domestic', 'domestic'),
#             validTime = vTime
#)
#dsm.set('Config.1.Local_EventForecast', d, 0)

# =============================================================================
# ExtendedForecast
d = twc.Data(coopId='91165000',
             location='LIHUE METRO',
)
dsm.set('Config.1.Local_ExtendedForecast', d, 0)

# =============================================================================
# GetawayForecast
d = twc.Data(coopId=['74506009','72295023','91182000'],
             locNameList=['San Francisco','Los Angeles','Honolulu'],
)
dsm.set('Config.1.Local_GetawayForecast', d, 0)

# =============================================================================
# HeatSafetyTips
d = twc.Data(obsStation='PHLI',
             locName='LIHUE',
             heatIndexThreshold=100,
)
dsm.set('Config.1.Local_HeatSafetyTips', d, 0)

# =============================================================================
# LocalObservations
d = twc.Data(obsStation=['PHTO','PHNL','PHOG','PHKO','PHJH','PHNY','PHLI','PHMK'],
             locName=['Hilo','Honolulu','Kahului','Kailua Kona','Kapalua/W Maui','Lanai City','Lihue','Molokai'],
)
dsm.set('Config.1.Local_LocalObservations', d, 0)

#==============================================================================
# Lower Display Line
d = twc.Data(
    obsStation=['PHLI'],
    obsLocName=['Honolulu Int\'l'],
)
dsm.set('Config.1.Ldl_CurrentApparentTemp', d, 0)
dsm.set('Config.1.Ldl_CurrentCeiling', d, 0)
dsm.set('Config.1.Ldl_CurrentDewpoint', d, 0)
dsm.set('Config.1.Ldl_CurrentGusts', d, 0)
dsm.set('Config.1.Ldl_CurrentHumidity', d, 0)
dsm.set('Config.1.Ldl_CurrentMTDPrecip', d, 0)
dsm.set('Config.1.Ldl_CurrentPressure', d, 0)
dsm.set('Config.1.Ldl_CurrentSkyTemp', d, 0)
dsm.set('Config.1.Ldl_CurrentVisibility', d, 0)
dsm.set('Config.1.Ldl_CurrentWinds', d, 0)

d = twc.Data(
    airportId=['HNL', 'OGG', 'ANC'],
    displayFlag=[1,1,0],
    obsStation=['PHNL', 'PHOG', 'PANC'],
    locName=[
        "Honolulu",
        "Kahului",
        "Anchorage"
    ],
)
dsm.set('Config.1.Ldl_AirportDelayConditions', d, 0, 1)

d = twc.Data(
    aq='zz001',
    locName='LIHUE',
    startDate=(10, 1),
    endDate=(12, 31),
)
dsm.set('Config.1.Ldl_AirQualityForecast', d, 0)

d = twc.Data(
    latitude = 21.98,
    longitude = -159.35,
)
dsm.set('Config.1.Ldl_SunriseSunset', d, 0)

d = twc.Data(
    coopId=['74506009', '72295023', '91182000'],
    locName=['San Francisco','Los Angeles','Honolulu'],
)
dsm.set('Config.1.Ldl_TravelForecast', d, 0)

d = twc.Data(
    startDate=(1, 1),
    endDate=(12, 31),
)
dsm.set('Config.1.Ldl_PromotionalMessage', d, 0)

# Note: This is optional (below) to test Promo Message
##d = 'This is a promotional message, yo yo yo!!'
##dsm.set('Config.1.promotionalMessage', d, 0)

d = twc.Data(
    coopId='91165000',
    locName='LIHUE',
    startDate=(1, 1),
    endDate=(12, 31),
)
dsm.set('Config.1.Ldl_UVForecast', d, 0)

d = twc.Data(
    displayMessage = 1,
)
dsm.set('Config.1.Ldl_LocalStarIDMessage', d, 0)

d = twc.Data(
    displayMessage = 1,
)
dsm.set('Config.1.Ldl_NationalStarIDMessage', d, 0)

#d = twc.Data(
#    trafficActive = 1,
#    routes = [(('32.93121', 'I-285 (Northside)', 'WB', 'Chamblee Dunwoody Rd (#30)', 'Georgia 400 (#27)'),
#               ('32.93122', 'I-285 (Northside)', 'EB', 'Georgia 400 (#27)', 'Chamblee Dunwoody Rd (#30)')),
#              (('32.93148', 'Georgia 400', 'SB', 'Holcomb Bridge Rd/SR-140 (#7)', 'I-285 (Northside)'),
#               ('32.93147', 'Georgia 400', 'NB', 'I-285 (Northside)', 'Holcomb Bridge Rd/SR-140 (#7)')),
#              (('32.93066', 'I-85', 'SB', 'I-285', 'Georgia 400'),
#               ('32.93065', 'I-85', 'NB', 'Georgia 400', 'I-285')),
#    ],
#    routeDisplayTime = [(((0, 00), (11, 59), 0, 0), # inbound monday
#                        ((12, 00), (23, 59), 0, 0)),# outbound monday
#
#                        (((6,0), (10,59), 0, 0),    # inbound tuesday
#                        ((14,00), (19,59), 1, 1)),  # outbound tuesday
#
#                        (((6,0), (10,59), 0, 0),    # inbound wednesday
#                        ((14,00), (19,59), 0, 0)),  # outbound wednesday
#
#                        (((6,0), (10,59), 0, 0),    # inbound thursday
#                        ((14,00), (19,59), 0, 0)),  # outbound thursday
#
#                        (((6,0), (10,59), 0, 0),    # inbound friday
#                        ((13,00), (19,59), 0, 0)),  # outbound friday
#
#                        (((8,0), (10,00), 0, 0),    # inbound saturday
#                        ((13,00), (19,59), 0, 0)),  # outbound satuday
#
#                        (((6,0), (10,59), 0, 0),    # inbound sunday
#                        ((13,00), (19,59), 0, 0)),  # outbound sunday
#
#    ],
#)
#dsm.set('Config.1.Ldl_TrafficTripTimes', d, 0)

d = twc.Data(
    coopId='91165000',
    locName='LIHUE',
)
dsm.set('Config.1.Ldl_ExtendedForecast', d, 0)
dsm.set('Config.1.Ldl_HourlyForecast', d, 0)
dsm.set('Config.1.Ldl_Shortcast', d, 0)
dsm.set('Config.1.Ldl_SummaryForecast', d, 0)

d = twc.Data(obsStation=['PHLI'])
dsm.set('Config.1.TimeTemp_Default', d, 0)

# =============================================================================
# Bulletin Crawl
d = twc.Data(
    activeVocal=1,
)
dsm.set('Config.1.Bulletin_Default', d, 0)

# =============================================================================
# MarineForecast
d = twc.Data(zone='PHZ111',
             locName='KAUAI WINDWARD WATERS',
)
dsm.set('Config.1.Local_MarineForecast', d, 0)
# =============================================================================
# MetroDopplerRadar (MAP DATA)
#
d = twc.Data(mapName='mercator.hi.local.tif',
             mapcutCoordinate=(511,965),
             mapcutSize=(1572,1048),
             mapFinalSize=(720,480),
             mapMilesSize=(330,220),
             datacutType='radar.hi',
             datacutCoordinate=(124,455),
             datacutSize=(716,390),
             dataFinalSize=(720,480),
             dataOffset=(0,0),
)
wxdata.setMapData('Config.1.Local_MetroDopplerRadar', d, 0)
#
#
#
# MetroDopplerRadar (PRODUCT DATA)
#
d = twc.Data(
    textString = [
                    (
                     # font, fontSize, fontColor, fontShadow, tracking, justification, fontOutlineColor, layerMask, eraseBit, dataLabel
                     ( 'Interstate-Black', 22, (212,212,212,255), 1, -35, 0, (20,20,20,128), 1, 0, 0,), #Properties
                     # list of locNames with positions
                     ( ( (559,144),'Honolulu',),
                       ( (318,234),'Kalaheo',),
                     ),
                    ),

                    (
                     # font, fontSize, fontColor, fontShadow, tracking, justification, fontOutlineColor, layerMask, eraseBit, dataLabel
                     ( 'Interstate-Black', 22, (212,212,212,205), 1, -35, 0, (20,20,20,128), 2, 0, 0,), #Properties
                     # list of locNames with positions
                     ( ( (559,144),'Honolulu',),
                       ( (318,234),'Kalaheo',),
                     ),
                    ),
                  ],

    tiffImage = [
                   # the property of a tiffImage is the image name and its justification
                   ( ( 'locatorDot', 0, 1, 0),
                     ( ( (539,141),),
                       ( (298,231),),
                     ),
                   ),

                   ( ( 'locatorDotOutline', 0, 2, 1),
                     ( ( (539,141),),
                       ( (298,231),),
                     ),
                   ),
                 ],

    labeledTiffImage = [],
    vector = [],
)
dsm.set('Config.1.Local_MetroDopplerRadar', d, 0)
#
# =============================================================================
# Radar_LocalDoppler

# Put the mini-me map after the other radars. It doesn't have to cut first, but
# "soon" would be nice so we have a radar map cut when squeezeback locals run.
#
# Special Mini-Me Window! (NO, mini-me! We do NOT eat Mini Mr. Bigglesworth!!)
d = twc.Data(mapName           = 'mercator.us.bfg',
             mapcutCoordinate  = (25849,8526),
             mapcutSize        = (656,375),
             mapFinalSize      = (240,137),
             mapMilesSize      = (70,48),
             datacutType       = 'radar.us',
             datacutCoordinate = (2767,708),
             datacutSize       = (80,46),
             dataFinalSize     = (240,137),
             dataOffset        = (0,0),
             vectors           = [ 'mercator.us.counties.vg',
                                   'mercator.us.coastlines.vg',
                                   'mercator.us.interstates.vg',
                                   'mercator.us.states.vg',
                                   'mercator.us.ushighways.vg',
                                   'mercator.us.statehighways.vg',
                                   'mercator.us.otherroutes.vg',],
)
wxdata.setMapData('Config.1.Radar_LocalDoppler', d, 0, 0)

## Radar_LocalDoppler (PRODUCT DATA for Mini Me Window)
d = twc.Data(
    textString = [
        # font, fontSize, fontColor, fontShadow, tracking, justification, fontOutlineColor, layerMask
        # list of locNames with positions
        (
            ( 'Interstate-Bold', 14, (229,229,229,205), 1, 0, 0, (20,20,20,68), 2,0,0,), #Properties
            (   #Elements
                ( (49,35), 'Villa Rica',     ),
                ( (79,85), 'Dallas',    ),
                ( (170,62), "Atlanta",   ),
            ),
        ),
        (
            ( 'Interstate-Bold', 14, (229,229,229,205), 1, 0, 0, (20,20,20,68), 2,0,0,), #Properties
            (   #Elements
                ( (49,35), 'Villa Rica',    ),
                ( (79,85),  'Dallas',   ),
                ( (170,62), "Atlanta",   ),
            ),
        ),
    ],

    tiffImage = [
                   # the property of a tiffImage is the image name, justification, layer mask, and erase bit
                   (( 'locatorDotSmall', 0, 1, 0),
                    ( ( (30,32), ),
                      ( (62,80), ),
                      ( (155,52), ),
                    ),
                   ),

                   (( 'locatorDotSmallOutline', 0, 2, 1),
                    ( ( (30,32), ),
                      ( (62,80), ),
                      ( (155,52), ),
                    ),
                   ),
                ],

    vector = [
                # This is a list of vector objects.
                # Each vector object contains a Properties tuple and an Elements tuple.
                # Each Properties tuple contains a width, color tuple, and layer number.
                # Each Elements tuple contains a list of vectorfile tuples to draw.
                # Currently, each vectorfile tuple contains only the prefix of the *.vg file
                    (   (6, (20,20,20,96), 1,), #Properties
                        (   #Elements
                            ('interstates',),
                        ),
                    ),

                    (   (1, (20,20,20,255), 2,), #Properties
                        (   #Elements
                            ('coastlines',),
                            ('counties',),
                        ),
                    ),

                    (   (2, (20,20,20,255), 3,), #Properties
                        (   #Elements
                            ('states',),
                        ),
                    ),

                    (   (3, (130,130,130,255), 3,), #Properties
                        (   #Elements
                            ('interstates',),
                        ),
                    ),
             ],
)
dsm.set('Config.1.Radar_LocalDoppler', d, 0, 0)
#
# =============================================================================
## MetroForecastMap (MAP DATA)
d = twc.Data(mapName          = 'mercator.us.bfg',
             mapcutCoordinate = (25739,8325),
             mapcutSize       = (1090,727),
             mapFinalSize     = (720,480),
             mapMilesSize     = (300,250),
             vectors          = [ 'mercator.us.counties.vg','mercator.us.coastlines.vg',
                                  'mercator.us.interstates.vg','mercator.us.states.vg',
                                  'mercator.us.ushighways.vg','mercator.us.statehighways.vg',
                                  'mercator.us.otherroutes.vg',],
)
wxdata.setMapData('Config.1.Local_MetroForecastMap', d, 0)
#
## MetroForecastMap (PRODUCT DATA)
d = twc.Data(
    textString = [
                    (
                     # font, fontSize, fontColor, fontShadow, tracking, justification, fontOutlineColor, layerMask, eraseBit, dataLabel
                     # NOTE: If dataLabel is set, then the elements will display only if the data is not expired.
                     ('Interstate-Bold', 24, (212,212,212,255), 1, 0, 0, (), 2, 0, 0,), #Properties
                     # list of locNames with positions
                     ( (  (214,145), 'Peachtree City') ,
                       (  (292,305), 'Atlanta'),
                       (  (157,385), 'Acworth'),
                       (  (95,245),  'Douglasville'),
                       (  (435,209), 'Conyers'),
                       (  (497,328), 'Lawrenceville'),
                       (  (310,375), 'Alpharetta'),
                     ),
                    ),
                  ],

    fcstValue = [
                  # font, fontSize, fontColor, fontShadow, tracking, obsValueType, justification,
                  # list of coopIds with positions
                  (( 'Interstate-BlackCondensed', 38, (212,212,50,255), 1, 0, 'temp', 1, (), 2,0,0,),
                   ( ( '72215002', (288,100)),
                     ( '72219000', (322,262)),
                     ( '72227016', (192,341)),
                     ( '72227025', (159,205)),
                     ( '72219020', (477,168)),
                     ( '72227037', (553,294)),
                     ( '72227024', (355,335)),
                   ),
                  ),
                ],

    fcstIcon = [
                  # fcstIcons have one property: (horizontal) justification
                  # fcstIcons have an coopId and a position
                  (
                   (0, 2, 0,), #Properties - justification and layerMask, eraseBit
                   ( ( '72215002', (295,76)),
                     ( '72219000', (325,235)),
                     ( '72227016', (195,317)),
                     ( '72227025', (163,175)),
                     ( '72219020', (480,148)),
                     ( '72227037', (560,263)),
                     ( '72227024', (355,310)),
                   ),
                  ),
                ],

    vector = [
                # vector files have a thickness and a color
                (( 2, (20,20,20,255), 1, ), ( ('counties',),),),
                (( 2, (20,20,20,255), 1, ), ( ('coastlines',),),),
                (( 4, (20,20,20,255), 1, ), ( ('states',),),),
                (( 8, (20,20,20,96), 1, ), ( ('ushighways',),),),
                (( 8, (20,20,20,96), 1, ), ( ('statehighways',),),),
                (( 8, (20,20,20,96), 1, ), ( ('otherroutes',),),),
                (( 8, (20,20,20,96), 1, ), ( ('interstates',),),),
                (( 4, (130,130,130,255), 1, ), ( ('ushighways',),),),
                (( 4, (130,130,130,255), 1, ), ( ('statehighways',),),),
                (( 4, (130,130,130,255), 1, ), ( ('otherroutes',),),),
                (( 4, (130,130,130,255), 1, ), ( ('interstates',),),),
              ],

    tiffImage = [
                   # the property of a tiffImage is the image name and its justification, layerMask, eraseBit
                   (( 'airplane', 0, 1, 0),
                    ( ( (336,199),),
                    ),
                   ),

                   (( 'airplaneOutline', 0, 1, 0), #NOTE: This is on layer 1
                    ( ( (336,199),),
                    ),
                   ),
                ],

    # just like a tiffImage, but with a text string label centered over it
    labeledTiffImage = [
                          (( ('interstateSign', 0, 1, 0), 'Interstate-BoldCondensed', 18, (212,212,212,255), 0, 0, 0,),
                           # labeledTiffImage have a position and a string to center over the image
                           ( ( (75,214),  '20'),
                             ( (432,93),  '75'),
                             ( (451,314), '85'),
                             ( (583,183), '20'),
                           ),
                          ),

                          (( ('interstateSign', 0, 1, 0), 'Interstate-BoldCondensed', 16, (212,212,212,255), 0, 0, 0,),
                           ( ( (281,171), '285'),
                           ),
                          ),

              # NOTE: The outlines are on layer1 for the forecast products
                          (( ('interstateSignOutline', 0, 1, 0), 'Interstate-BoldCondensed', 18, (212,212,212,255), 0, 0, 0,),
                           # labeledTiffImage have a position and a string to center over the image
                           ( ( (75,214),  '20'),
                             ( (432,93),  '75'),
                             ( (451,314), '85'),
                             ( (583,183), '20'),
                           ),
                          ),

                          (( ('interstateSignOutline', 0, 1, 0), 'Interstate-BoldCondensed', 16, (212,212,212,255), 0, 0, 0,),
                           ( ( (281,171), '285'),
                           ),
                          ),
                       ],
)
dsm.set('Config.1.Local_MetroForecastMap', d, 0)
#
#
# =============================================================================
# NWSHeadlines
d = twc.Data(zone = 'HIZ002',
)
dsm.set('Config.1.Local_NWSHeadlines', d, 0)

# =============================================================================
# RadarSatelliteComposite (MAP DATA)
d = twc.Data(mapName           = 'lambert.us.tif',
             mapcutCoordinate  = (3869,1695),
             mapcutSize        = (1816,1211),
             mapFinalSize      = (720,480),
             mapMilesSize      = (1500,750),
             vectors           = ['lambert.us.states.vg','lambert.us.coastlines.vg',],
             datacutType       = 'radarSatellite.us',
             datacutCoordinate = (1095,529),
             datacutSize       = (934,625),
             dataFinalSize     = (720,480),
             dataOffset        = (0,0),
)
wxdata.setMapData('Config.1.Local_RadarSatelliteComposite', d, 0)

# RadarSatelliteComposite (PRODUCT DATA)
d = twc.Data(
    vector = [
                # vector files have a thickness and a color and a layerMask
                (( 2, (20,20,20,255), 2, ), ( ('states',),),),
                (( 2, (20,20,20,255), 2, ), ( ('coastlines',),),),
              ],
)
dsm.set('Config.1.Local_RadarSatelliteComposite', d, 0)

# =============================================================================
# RecordHighLow
d = twc.Data(coopId=['91165000', ],
             climId=['515580', ],
             obsStation=['PHLI', ],
             locName=['Lihue', ],
             fcstLowOffset=0,
             fcstHighOffset=0,
)
dsm.set('Config.1.Local_RecordHighLow', d, 0)

# =============================================================================
# SchoolDayWeather
d = twc.Data(coopId='72295023',
             obsStation=['PANC', 'PHJH', ],
             schedule=[((11,24,16,0,0),(11,26,16,0,0)),
                       ((12,17,16,0,0),( 1, 7,16,0,0)),],
)
dsm.set('Config.1.Local_SchoolDayWeather', d, 0)

# =============================================================================
# OutdoorActivityForecast
d = twc.Data(coopId='72295023',
)
dsm.set('Config.1.Local_OutdoorActivityForecast', d, 0)

# =============================================================================
# MAP: 70848
# RegionalDopplerRadar (MAP DATA)
#
d = twc.Data(mapName='mercator.hi.local.tif',
             mapcutCoordinate=(189,0),
             mapcutSize=(3312,2208),
             mapFinalSize=(720,480),
             mapMilesSize=(702,467),
             datacutType='radar.hi',
             datacutCoordinate=(0,96),
             datacutSize=(1486,822),
             dataFinalSize=(709,480),
             dataOffset=(11,0),
)
wxdata.setMapData('Config.1.Local_RegionalDopplerRadar', d, 0)
#
#
# RegionalDopplerRadar (PRODUCT DATA)
#
d = twc.Data(
    textString = [
                    (
                     # font, fontSize, fontColor, fontShadow, tracking, justification, fontOutlineColor, layerMask, eraseBit, dataLabel
                     ( 'Interstate-Black', 22, (212,212,212,255), 1, -35, 0, (20,20,20,128), 1, 0, 0,), #Properties
                     # list of locNames with positions
                     ( ( (521,161),'Hilo',),
                       ( (342,275),'Honolulu',),
                       ( (227,318),'Kalaheo',),
                       ( (416,245),'Lahaina',),
                     ),
                    ),

                    (
                     # font, fontSize, fontColor, fontShadow, tracking, justification, fontOutlineColor, layerMask, eraseBit, dataLabel
                     ( 'Interstate-Black', 22, (212,212,212,205), 1, -35, 0, (20,20,20,128), 2, 0, 0,), #Properties
                     # list of locNames with positions
                     ( ( (521,161),'Hilo',),
                       ( (342,275),'Honolulu',),
                       ( (227,318),'Kalaheo',),
                       ( (416,245),'Lahaina',),
                     ),
                    ),
                  ],

    tiffImage = [
                   # the property of a tiffImage is the image name and its justification, layer mask, and erase bit
                   (( 'locatorDot', 0, 1, 0),
                    ( ( (501,158),),
                      ( (322,272),),
                      ( (207,315),),
                      ( (396,242),),
                    ),
                   ),

                   (( 'locatorDotOutline', 0, 2, 1),
                    ( ( (501,158),),
                      ( (322,272),),
                      ( (207,315),),
                      ( (396,242),),
                    ),
                   ),
                 ],

    # just like a tiffImage, but with a text string label centered over it
    labeledTiffImage = [],

    vector = [],
)
dsm.set('Config.1.Local_RegionalDopplerRadar', d, 0)
#
# =============================================================================
# MAP: 70852
# RegionalForecastMap (MAP DATA)
#
d = twc.Data(mapName='mercator.hi.local.tif',
             mapcutCoordinate=(519,217),
             mapcutSize=(2652,1768),
             mapFinalSize=(720,480),
             mapMilesSize=(562,374),
)
wxdata.setMapData('Config.1.Local_RegionalForecastMap', d, 0)
#
#
#
#####
# NOTE: For the ForecastMap products (those w/o raster data) layerMask=1 is used for things such as borders which last the entire
#       prooduct duration and layerMask=2 is used for sequenced data
#
# RegionalForecastMap (PRODUCT DATA)
#
d = twc.Data(
    textString = [
                    (
                     # font, fontSize, fontColor, fontShadow, tracking, justification, fontOutlineColor, layerMask, eraseBit, dataLabel
                     # NOTE: If dataLabel is set, then the elements will display only if the data is not expired.
                     ('Interstate-Bold', 24, (212,212,212,255), 1, 0, 0, (), 2, 0, 1,), #Properties
                     # list of locNames with positions
                     ( ( (158,372),'Lihue',),
                       ( (261,311),'Honolulu',),
                       ( (397,274),'Kahului',),
                       ( (526,170),'Hilo',),
                     ),
                    ),
                 ],

    fcstValue = [
                  # font, fontSize, fontColor, fontShadow, tracking, obsValueType, justification,
                  # list of coopIds with positions
                  (( 'Interstate-BlackCondensed', 38, (212,212,50,255), 1, 0, 'temp', 1, (), 2,0,0,)
,
                   ( ( '91165000',(182,336),),
                     ( '91182000',(303,275),),
                     ( '91190000',(432,238),),
                     ( '91285000',(541,134),),
                   ),
                  ),
                ],

    fcstIcon = [
                  # fcstIcons have one property: justification
                  # fcstIcons have an coopId and a position
                  (
                   (0, 2, 0,), #Properties - justification and layerMask, eraseBit
                   ( ( '91165000',(185,300),),
                     ( '91182000',(306,239),),
                     ( '91190000',(435,202),),
                     ( '91285000',(544,98),),
                   ),
                  ),
               ],

    # NOTE: Vectors go on layer 1 because they are displayed for the entire duration
    vector = [],
)
dsm.set('Config.1.Local_RegionalForecastMap', d, 0)
#
#
# =============================================================================
# MAP: 70851
# RegionalObservationMap (MAP DATA)
#
d = twc.Data(mapName='mercator.hi.local.tif',
             mapcutCoordinate=(519,217),
             mapcutSize=(2652,1768),
             mapFinalSize=(720,480),
             mapMilesSize=(562,374),
)
wxdata.setMapData('Config.1.Local_RegionalObservationMap', d, 0)
wxdata.setMapData('Config.1.Local_MetroObservationMap', d, 0)

# RegionalObservationMap (PRODUCT DATA)
#
d = twc.Data(
  obsValue = [
                 # font, fontSize, fontColor, fontShadow, tracking, obsValueType, justification,
                 # list of obsStations with positions
                 (( 'Interstate-BlackCondensed', 38, (212,212,50,255), 1, 0, 'temp', 1, (), 1,0,0,),
                  ( ( 'PHLI',(182,336),),
                    ( 'PHNL',(303,275),),
                    ( 'PHOG',(432,238),),
                    ( 'PHTO',(541,134),),
                  ),
                 ),
            ],
  obsIcon = [
                 (
                  (0, 2, 0,), #Properties - justification and layerMask, eraseBit
                  ( ( 'PHLI',(185,300),),
                    ( 'PHNL',(306,239),),
                    ( 'PHOG',(435,202),),
                    ( 'PHTO',(544,98),),
                  ),
                 ),
            ],
  textString = [
                    # font, fontSize, fontColor, fontShadow, tracking, justification, fontOutlineColor, layerMask, eraseBit, dataLabel
                    # NOTE: If dataLabel is set, then the elements will display only if the data isnot expired.
                    (
                     ('Interstate-Bold', 24, (212,212,212,255), 1, 0, 0, (), 1, 0, 0,), #Properties
                     ( ( (158,372),'Lihue',),
                       ( (261,311),'Honolulu',),
                       ( (397,274),'Kahului',),
                       ( (526,170),'Hilo',),
                     ),
                    ),
               ],
)
dsm.set('Config.1.Local_RegionalObservationMap', d, 0)
dsm.set('Config.1.Local_MetroObservationMap', d, 0)
#
# =============================================================================
# MAP: 70850
# Satellite (MAP DATA)
#
d = twc.Data(mapName='mercator.hi.regional.tif',
             mapcutCoordinate=(1034,0),
             mapcutSize=(1408,939),
             mapFinalSize=(720,480),
             mapMilesSize=(2519,1669),
             datacutType='satellite.hi',
             datacutCoordinate=(57,52),
             datacutSize=(553,369),
             dataFinalSize=(720,480),
             dataOffset=(0,0),
)
wxdata.setMapData('Config.1.Local_Satellite', d, 0)

#
# Satellite (PRODUCT DATA)
#
d = twc.Data(
    textString = [
                    (
                     # font, fontSize, fontColor, fontShadow, tracking, justification, fontOutlineColor, layerMask, eraseBit, dataLabel
                     ('Interstate-Bold', 21, (212,212,212,255), 1, 0, 0, (20,20,20,128), 2, 0, 0,),
                     #Properties
                     # list of locNames with positions
                     ( ( (283,192),'Honolulu',),),
                    ),
                 ],

    tiffImage = [
                   # the property of a tiffImage is the image name and its justification, layerMask, eraseBit
                   (('locatorDot', 0, 2, 0),
                    ( ( (263,189),),),
                   ),

                   (('locatorDotOutline', 0, 2, 0),
                    ( ( (263,189),),),
                   ),
                ],

    vector = [],
)
dsm.set('Config.1.Local_Satellite', d, 0)

# =============================================================================
# Tides
d = twc.Data(tideStation=['W1611347','W1611443'],
             locName=['Port Allen, Hanapepe Bay','Hanamaulu Bay'],
)
dsm.set('Config.1.Local_Tides', d, 0)

# =============================================================================
## Traffic Overview
#d = twc.Data(locName = ["Atlanta", "Orlando", "South Boston"],
#             mapName = ["32.1", "23.1", "18.3"])
#dsm.set('Config.1.Local_TrafficOverview', d, 0, 1)
#
## =============================================================================
## TrafficFlow
##                          Route ID    Description
#d = twc.Data(
#routes = [
#    [
#    (("32.90805", "NB, I-85 North to I-285 (Northside).", "interstateHighwaySignLarge", "75", (212,212,212,255), 1, ),
#     ("32.90806", "SB, I-285 (Northside) to I-85 North.", "interstateHighwaySignLarge", "75", (212,212,212,255), 1, )),
#    (("32.90827", "EB, Georgia 400 to I-75.", "interstateHighwaySignLarge", "285", (212,212,212,255), 1, ),
#     ("32.90828", "WB, I-75 to Georgia 400.", "interstateHighwaySignLarge", "285", (212,212,212,255), 1, )),
#    (("32.93148", "SB, Holcomb Bridge Rd/State Rd-141 to I-285.", "stateHighwaySignLarge", "400", (13,13,13,255), 0, ),
#     ("32.93147", "NB, I-285 to Holcomb Bridge Rd/State Rd-141.", "stateHighwaySignLarge", "400", (13,13,13,255), 0, )),
#    ],
#    [
#    (("32.90828", "WB, I-85 to Georgia 400.", "interstateHighwaySignLarge", "285", (212,212,212,255), 1, ),
#     ("32.90829", "EB, Georgia 400 to I-85.", "interstateHighwaySignLarge", "285", (212,212,212,255), 1, )),
#    (("32.93117", "WB, I-85 to I-75.", "interstateHighwaySignLarge", "285", (212,212,212,255), 1, ),
#     ("32.93118", "EB, I-75 to I-85.", "interstateHighwaySignLarge", "285", (212,212,212,255), 1, )),
#    (("32.93068", "SB, SR 316 to I-285.", "interstateHighwaySignLarge", "85", (212,212,212,255), 1, ),
#     ("32.93068", "NB, I-285 to SR 316.", "interstateHighwaySignLarge", "85", (212,212,212,255), 1, )),
#    ]
#],
#routeDisplayTime = ( ((0,00),(11,59)), ((12,00),(23,59)) ),  # Start/End times for primary routes, Start/End times for reverse/alt routes
#)
#dsm.set('Config.1.Local_TrafficFlow', d, 0)
#
## =============================================================================
## TrafficReport
#d = twc.Data(locName = 'ATLANTA',
#             #metroId=['32','23'], # uncomment these two lines to test support for multiple metro ids
#             metroId=['32',],
#             activeVocalCue = 1,
#             maxPages = 3,
#             latLongBoxes=[((-84.4664,33.8712),(-84.2453,34.0922)), # 400
#                       ((-84.3014,33.7914),(-83.7952,34.0685)),  # Northeast 85
#                       ((-84.3209,33.6557),(-83.9906,33.8698)),  # east 20
#                       ((-84.777,33.8614),(-84.4286,34.1048)),  # Northwest 75
#                       #((-81.955,28.265),(-80.797,28.925)),  # Orlando
#                       ],
#             severityList=[('Incident', 2),
#                           ('Construction', 1)
#                          ]
#)
#dsm.set('Config.1.Local_TrafficReport', d, 0)

# =============================================================================
# no commit needed - loadSCMTconfig.py does it for us now
