diff --git a/Students/Dave Fugelso/Project/Alpine/TestHarness.py b/Students/Dave Fugelso/Project/Alpine/TestHarness.py
new file mode 100644
index 00000000..b6b18cf3
--- /dev/null
+++ b/Students/Dave Fugelso/Project/Alpine/TestHarness.py
@@ -0,0 +1,262 @@
+#
+# TestHarness.py
+# Copyright (c) 2014 Airbiquity
+#
+# The tester emulates the body of requests coming over the network interface
+#
+
+import sys
+import threading
+import json
+import time
+import Templates
+import FileCache
+import logger
+
+# Remove this import if non interface to Alpine
+import HupInterface
+
+msglogger = logger.Logger()
+
+
+'''
+The following are test for the Template interface
+'''
+
+def testTemplate1 (filename):
+ #print 'template1 file: ' + filename
+ #msglogger.logMessage(logger.DEBUG, 'testTemplate1', filename)
+ try:
+ with open(filename) as tmp1_file:
+ t = Templates.Template1 ()
+ t.HandleRequest (tmp1_file.read())
+ #print json.dumps(tmp1_file, indent=2)
+ except IOError as e:
+ print 'File read error' # TBD goes to error handler
+
+def testTemplate2 (filename):
+ try:
+ with open(filename) as tmp1_file:
+ t = Templates.Template2 ()
+ t.HandleRequest (tmp1_file.read())
+ #print json.dumps(tmp1_file, indent=2)
+ except IOError as e:
+ print 'File read error' # TBD goes to error handler
+
+def testTemplate3 (filename):
+ try:
+ with open(filename) as tmp1_file:
+ t = Templates.Template3 ()
+ t.HandleRequest (tmp1_file.read())
+ #print json.dumps(tmp1_file, indent=2)
+ except IOError as e:
+ print 'File read error' # TBD goes to error handler
+
+def testTemplate4 (filename):
+ try:
+ with open(filename) as tmp1_file:
+ t = Templates.Template4 ()
+ t.HandleRequest (tmp1_file.read())
+ #print json.dumps(tmp1_file, indent=2)
+ except IOError as e:
+ print 'File read error' # TBD goes to error handler
+
+def testTemplate5 (filename):
+ try:
+ with open(filename) as tmp1_file:
+ t = Templates.Template5 ()
+ t.HandleRequest (tmp1_file.read())
+ #print json.dumps(tmp1_file, indent=2)
+ except IOError as e:
+ print 'File read error' # TBD goes to error handler
+
+def testTemplate6 (filename):
+ try:
+ with open(filename) as tmp1_file:
+ t = Templates.Template6 ()
+ t.HandleRequest (tmp1_file.read())
+ #print json.dumps(tmp1_file, indent=2)
+ except IOError as e:
+ print 'File read error' # TBD goes to error handler
+
+def testTemplate7 (filename):
+ try:
+ with open(filename) as tmp1_file:
+ t = Templates.Template7 ()
+ t.HandleRequest (tmp1_file.read())
+ #print json.dumps(tmp1_file, indent=2)
+ except IOError as e:
+ print 'File read error' # TBD goes to error handler
+
+def testTemplate8 (filename):
+ try:
+ with open(filename) as tmp1_file:
+ t = Templates.Template8 ()
+ t.HandleRequest (tmp1_file.read())
+ #print json.dumps(tmp1_file, indent=2)
+ except IOError as e:
+ print 'File read error' # TBD goes to error handler
+
+
+def testApplicationList(filename):
+ try:
+ with open(filename) as tmp1_file:
+ t = Templates.SendApplicationInformation()
+ t.HandleRequest (tmp1_file.read())
+ #print json.dumps(tmp1_file, indent=2)
+ except IOError as e:
+ print 'File read error' # TBD goes to error handler
+
+def testNowExecuting(filename):
+ try:
+ with open(filename) as tmp1_file:
+ t = Templates.RequestNowExecutingInfomation()
+ t.HandleRequest(tmp1_file.read())
+ except IOError as e:
+ print 'File read error nowExecuting.json'
+
+def testRequestAudioFocus(filename):
+ try:
+ with open(filename) as tmp1_file:
+ t = Templates.RequestAudioFocusInformation()
+ t.HandleRequest(tmp1_file.read())
+ except IOError as e:
+ print 'File read error requestAudioFocus.json'
+
+def testSetLocation(filename):
+ try:
+ with open(filename) as tmp1_file:
+ t = Templates.RequestSetLocationInformation()
+ t.HandleRequest(tmp1_file.read())
+ except IOError as e:
+ print 'File read error setlocation.json'
+
+def testPhoneIsAvailable(filename):
+ try:
+ with open(filename) as tmp1_file:
+ t = Templates.RequestSetPhoneAvailabilityInformation()
+ t.HandleRequest(tmp1_file.read())
+ except IOError as e:
+ print 'File read error setPhoneAvailability.json'
+
+def testGoToKeyboard():
+ t = Templates.RequestRequestGoToKeyboard()
+ t.HandleRequest()
+
+def startMIPApp ():
+ dictionary = dict()
+ dict['appType'] = 1
+ dict['appName'] = 'Pandora'
+ # Create event broker with path '/hap/api/1.0/StartApplication'
+ # and json code json.dumps(dict)
+
+
+
+# Removed Native Platform Testing for TestHarness for template testers. Creating separate
+# Native Platform Test Harness.
+
+
+def starttest(testfilepath):
+
+ msglogger.logMessage(logger.DEBUG, 'starttest', 'start')
+
+
+ #print 'Make a connection'
+ #MakeAConnection()
+ #time.sleep(5)
+ #print 'Done with connection'
+
+ # print 'test NowExecuting'
+ # testNowExecuting(testfilepath + 'nowExecuting.json')
+ # print 'test RequestAudioFocus'
+ # testRequestAudioFocus(testfilepath + 'requestAudioFocus.json')
+ # print 'test setLocation'
+ # testSetLocation(testfilepath + 'setlocation.json')
+ # print 'test PhoneIsAvailable'
+ # testPhoneIsAvailable(testfilepath + 'setPhoneAvailability.json')
+ # print 'test GoToKeyboard'
+ # testGoToKeyboard()
+ # time.sleep(2)
+
+
+ testTemplate1( testfilepath + 'template1A.json' )
+ print 'testTemplate1A done.'
+ time.sleep(2)
+
+ # testTemplate1( testfilepath + 'template1A2.json' )
+ # print 'testTemplate1A2 done.'
+ # time.sleep (3)
+
+ # testTemplate1( testfilepath + 'template1A3.json' )
+ # print 'testTemplate1A3 done.'
+ # time.sleep(2)
+
+ # testTemplate1( testfilepath + 'template1B.json' )
+ # print 'testTemplate1B done.'
+ # time.sleep(2)
+
+ # testTemplate2(testfilepath + 'template2A.json')
+ # print 'testTemplate2A done.'
+ # time.sleep(2)
+
+ # testTemplate2(testfilepath + 'template2B.json')
+ # print 'testTemplate2B done.'
+ # time.sleep(2)
+
+ # testTemplate3(testfilepath + 'template3A.json')
+ # print 'testTemplate3A done.'
+ # time.sleep(2)
+
+ # testTemplate3(testfilepath + 'template3B.json')
+ # print 'testTemplate3B done.'
+ # time.sleep(2)
+
+ # testTemplate4(testfilepath + 'template4A.json')
+ # print 'testTemplate4A done.'
+ # time.sleep(2)
+
+ # testTemplate4(testfilepath + 'template4B.json')
+ # print 'testTemplate4B done.'
+ # time.sleep(2)
+
+ # testTemplate5(testfilepath + 'template5.json')
+ # print 'testTemplate5 done.'
+ # time.sleep(2)
+
+ # testTemplate6(testfilepath + 'template6.json')
+ # print 'testTemplate6 done.'
+ # time.sleep(2)
+
+ # testTemplate7(testfilepath + 'template7.json')
+ # print 'testTemplate7 done.'
+ # time.sleep(2)
+
+ # testTemplate8(testfilepath + 'template8A.json')
+ # print 'testTemplate8A done.'
+ # time.sleep(2)
+
+ # testTemplate8(testfilepath + 'template8B.json')
+ # print 'testTemplate8B done.'
+ # time.sleep(2)
+
+ # testApplicationList(testfilepath + 'applications.json')
+
+ #uncomment following to run an infinite loop to test incoming messages
+ # otherwise execution will end at the end of this script.
+ while (True):
+ time.sleep(1)
+
+
+ print 'Okay we\'re done.'
+ HupInterface.stopHupInterface()
+
+ print 'call exit'
+ exit()
+
+
+'''
+Run tests as needed. Modify json files in testfiles to get different behaviors on tempaltes.
+'''
+if __name__ == "__main__":
+ HupInterface.startHupInterface()
+ starttest('testfiles/')
diff --git a/Students/Dave Fugelso/Project/Alpine/build/Common/PrintData.o b/Students/Dave Fugelso/Project/Alpine/build/Common/PrintData.o
new file mode 100644
index 00000000..d52e976d
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/build/Common/PrintData.o differ
diff --git a/Students/Dave Fugelso/Project/Alpine/build/Common/Serialize_UnSerialize.o b/Students/Dave Fugelso/Project/Alpine/build/Common/Serialize_UnSerialize.o
new file mode 100644
index 00000000..1b97306d
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/build/Common/Serialize_UnSerialize.o differ
diff --git a/Students/Dave Fugelso/Project/Alpine/build/temp.linux-x86_64-2.7/ABQHUPWrapperInterface.o b/Students/Dave Fugelso/Project/Alpine/build/temp.linux-x86_64-2.7/ABQHUPWrapperInterface.o
new file mode 100644
index 00000000..ac8308ae
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/build/temp.linux-x86_64-2.7/ABQHUPWrapperInterface.o differ
diff --git a/Students/Dave Fugelso/Project/Alpine/build/temp.linux-x86_64-2.7/ABQNativeInterface.o b/Students/Dave Fugelso/Project/Alpine/build/temp.linux-x86_64-2.7/ABQNativeInterface.o
new file mode 100644
index 00000000..945716b1
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/build/temp.linux-x86_64-2.7/ABQNativeInterface.o differ
diff --git a/Students/Dave Fugelso/Project/Alpine/build/temp.linux-x86_64-2.7/HupInterface.o b/Students/Dave Fugelso/Project/Alpine/build/temp.linux-x86_64-2.7/HupInterface.o
new file mode 100644
index 00000000..565db574
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/build/temp.linux-x86_64-2.7/HupInterface.o differ
diff --git a/Students/Dave Fugelso/Project/Alpine/build/temp.linux-x86_64-2.7/apn_abq_API.o b/Students/Dave Fugelso/Project/Alpine/build/temp.linux-x86_64-2.7/apn_abq_API.o
new file mode 100644
index 00000000..564cd95c
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/build/temp.linux-x86_64-2.7/apn_abq_API.o differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/100x100A.png b/Students/Dave Fugelso/Project/Alpine/testfiles/100x100A.png
new file mode 100644
index 00000000..e12f4fed
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/100x100A.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/100x100B.png b/Students/Dave Fugelso/Project/Alpine/testfiles/100x100B.png
new file mode 100644
index 00000000..c005abb0
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/100x100B.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/100x100C.png b/Students/Dave Fugelso/Project/Alpine/testfiles/100x100C.png
new file mode 100644
index 00000000..15ea8a89
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/100x100C.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/100x100D.png b/Students/Dave Fugelso/Project/Alpine/testfiles/100x100D.png
new file mode 100644
index 00000000..d6f4f507
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/100x100D.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/120x64A.png b/Students/Dave Fugelso/Project/Alpine/testfiles/120x64A.png
new file mode 100644
index 00000000..968c4ce2
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/120x64A.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/120x64B.png b/Students/Dave Fugelso/Project/Alpine/testfiles/120x64B.png
new file mode 100644
index 00000000..f8fdb9b8
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/120x64B.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/120x64C.png b/Students/Dave Fugelso/Project/Alpine/testfiles/120x64C.png
new file mode 100644
index 00000000..03deeafb
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/120x64C.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/135x30A.png b/Students/Dave Fugelso/Project/Alpine/testfiles/135x30A.png
new file mode 100644
index 00000000..8ff8757a
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/135x30A.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/135x30B.png b/Students/Dave Fugelso/Project/Alpine/testfiles/135x30B.png
new file mode 100644
index 00000000..01df8d73
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/135x30B.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/135x30C.png b/Students/Dave Fugelso/Project/Alpine/testfiles/135x30C.png
new file mode 100644
index 00000000..4a55966e
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/135x30C.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/135x30D.png b/Students/Dave Fugelso/Project/Alpine/testfiles/135x30D.png
new file mode 100644
index 00000000..0dda84ad
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/135x30D.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/135x30E.png b/Students/Dave Fugelso/Project/Alpine/testfiles/135x30E.png
new file mode 100644
index 00000000..22ab90a1
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/135x30E.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/140x60A.png b/Students/Dave Fugelso/Project/Alpine/testfiles/140x60A.png
new file mode 100644
index 00000000..8671039b
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/140x60A.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/140x60B.png b/Students/Dave Fugelso/Project/Alpine/testfiles/140x60B.png
new file mode 100644
index 00000000..c6c41697
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/140x60B.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/140x60C.png b/Students/Dave Fugelso/Project/Alpine/testfiles/140x60C.png
new file mode 100644
index 00000000..43b6a49f
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/140x60C.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/140x60D.png b/Students/Dave Fugelso/Project/Alpine/testfiles/140x60D.png
new file mode 100644
index 00000000..99a5256f
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/140x60D.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/140x60E.png b/Students/Dave Fugelso/Project/Alpine/testfiles/140x60E.png
new file mode 100644
index 00000000..6230364b
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/140x60E.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/140x60F.png b/Students/Dave Fugelso/Project/Alpine/testfiles/140x60F.png
new file mode 100644
index 00000000..2fa6206b
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/140x60F.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/140x64A.png b/Students/Dave Fugelso/Project/Alpine/testfiles/140x64A.png
new file mode 100644
index 00000000..a5bf1710
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/140x64A.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/140x64B.png b/Students/Dave Fugelso/Project/Alpine/testfiles/140x64B.png
new file mode 100644
index 00000000..61843887
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/140x64B.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/140x64C.png b/Students/Dave Fugelso/Project/Alpine/testfiles/140x64C.png
new file mode 100644
index 00000000..f13b97ce
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/140x64C.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/140x64D.png b/Students/Dave Fugelso/Project/Alpine/testfiles/140x64D.png
new file mode 100644
index 00000000..110e8e08
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/140x64D.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/140x64E.png b/Students/Dave Fugelso/Project/Alpine/testfiles/140x64E.png
new file mode 100644
index 00000000..1ba4e5d9
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/140x64E.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/140x64F.png b/Students/Dave Fugelso/Project/Alpine/testfiles/140x64F.png
new file mode 100644
index 00000000..1ce75f5b
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/140x64F.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/140x64G.png b/Students/Dave Fugelso/Project/Alpine/testfiles/140x64G.png
new file mode 100644
index 00000000..21dc63fd
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/140x64G.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/140x64H.png b/Students/Dave Fugelso/Project/Alpine/testfiles/140x64H.png
new file mode 100644
index 00000000..59855416
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/140x64H.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/140x64I.png b/Students/Dave Fugelso/Project/Alpine/testfiles/140x64I.png
new file mode 100644
index 00000000..c56b7381
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/140x64I.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/200x150A.png b/Students/Dave Fugelso/Project/Alpine/testfiles/200x150A.png
new file mode 100644
index 00000000..50c6aefc
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/200x150A.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/200x150B.png b/Students/Dave Fugelso/Project/Alpine/testfiles/200x150B.png
new file mode 100644
index 00000000..d7f8e79d
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/200x150B.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/200x150C.png b/Students/Dave Fugelso/Project/Alpine/testfiles/200x150C.png
new file mode 100644
index 00000000..330701bc
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/200x150C.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/250x22A.png b/Students/Dave Fugelso/Project/Alpine/testfiles/250x22A.png
new file mode 100644
index 00000000..1a92896a
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/250x22A.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/250x22B.png b/Students/Dave Fugelso/Project/Alpine/testfiles/250x22B.png
new file mode 100644
index 00000000..f1fc7357
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/250x22B.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/250x22C.png b/Students/Dave Fugelso/Project/Alpine/testfiles/250x22C.png
new file mode 100644
index 00000000..3a80802d
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/250x22C.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/250x22D.png b/Students/Dave Fugelso/Project/Alpine/testfiles/250x22D.png
new file mode 100644
index 00000000..5e2b64cc
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/250x22D.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/250x45A.png b/Students/Dave Fugelso/Project/Alpine/testfiles/250x45A.png
new file mode 100644
index 00000000..0e7be45a
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/250x45A.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/250x45B.png b/Students/Dave Fugelso/Project/Alpine/testfiles/250x45B.png
new file mode 100644
index 00000000..e2cc3ee3
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/250x45B.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/25x25A.png b/Students/Dave Fugelso/Project/Alpine/testfiles/25x25A.png
new file mode 100644
index 00000000..1f00352e
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/25x25A.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/25x25B.png b/Students/Dave Fugelso/Project/Alpine/testfiles/25x25B.png
new file mode 100644
index 00000000..04affc76
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/25x25B.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/25x25C.png b/Students/Dave Fugelso/Project/Alpine/testfiles/25x25C.png
new file mode 100644
index 00000000..48db1f63
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/25x25C.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/25x25D.png b/Students/Dave Fugelso/Project/Alpine/testfiles/25x25D.png
new file mode 100644
index 00000000..b589ede7
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/25x25D.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/25x25E.png b/Students/Dave Fugelso/Project/Alpine/testfiles/25x25E.png
new file mode 100644
index 00000000..3e58c781
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/25x25E.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/28x28A.png b/Students/Dave Fugelso/Project/Alpine/testfiles/28x28A.png
new file mode 100644
index 00000000..94366085
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/28x28A.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/28x28B.png b/Students/Dave Fugelso/Project/Alpine/testfiles/28x28B.png
new file mode 100644
index 00000000..c093ec31
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/28x28B.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/28x28C.png b/Students/Dave Fugelso/Project/Alpine/testfiles/28x28C.png
new file mode 100644
index 00000000..52395a05
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/28x28C.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/28x28D.png b/Students/Dave Fugelso/Project/Alpine/testfiles/28x28D.png
new file mode 100644
index 00000000..0d6bbbde
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/28x28D.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/28x28E.png b/Students/Dave Fugelso/Project/Alpine/testfiles/28x28E.png
new file mode 100644
index 00000000..166e2fd7
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/28x28E.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/378x22A.png b/Students/Dave Fugelso/Project/Alpine/testfiles/378x22A.png
new file mode 100644
index 00000000..b21687d9
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/378x22A.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/378x22B.png b/Students/Dave Fugelso/Project/Alpine/testfiles/378x22B.png
new file mode 100644
index 00000000..7361c11e
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/378x22B.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/378x22C.png b/Students/Dave Fugelso/Project/Alpine/testfiles/378x22C.png
new file mode 100644
index 00000000..3bdd796f
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/378x22C.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/378x22D.png b/Students/Dave Fugelso/Project/Alpine/testfiles/378x22D.png
new file mode 100644
index 00000000..1d5cdb35
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/378x22D.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/478x185A.png b/Students/Dave Fugelso/Project/Alpine/testfiles/478x185A.png
new file mode 100644
index 00000000..1c1fe22e
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/478x185A.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/478x233A.png b/Students/Dave Fugelso/Project/Alpine/testfiles/478x233A.png
new file mode 100644
index 00000000..d8267e8d
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/478x233A.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/500x8A.png b/Students/Dave Fugelso/Project/Alpine/testfiles/500x8A.png
new file mode 100644
index 00000000..989578d2
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/500x8A.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/500x8B.png b/Students/Dave Fugelso/Project/Alpine/testfiles/500x8B.png
new file mode 100644
index 00000000..d644d460
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/500x8B.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/500x8C.png b/Students/Dave Fugelso/Project/Alpine/testfiles/500x8C.png
new file mode 100644
index 00000000..7a695c7f
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/500x8C.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/56x64A.png b/Students/Dave Fugelso/Project/Alpine/testfiles/56x64A.png
new file mode 100644
index 00000000..49eeebf8
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/56x64A.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/56x64B.png b/Students/Dave Fugelso/Project/Alpine/testfiles/56x64B.png
new file mode 100644
index 00000000..1ac37a17
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/56x64B.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/76x60A.png b/Students/Dave Fugelso/Project/Alpine/testfiles/76x60A.png
new file mode 100644
index 00000000..e222126c
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/76x60A.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/76x60B.png b/Students/Dave Fugelso/Project/Alpine/testfiles/76x60B.png
new file mode 100644
index 00000000..3bb2480e
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/76x60B.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/76x60C.png b/Students/Dave Fugelso/Project/Alpine/testfiles/76x60C.png
new file mode 100644
index 00000000..74262717
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/76x60C.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/76x60D.png b/Students/Dave Fugelso/Project/Alpine/testfiles/76x60D.png
new file mode 100644
index 00000000..afa4c98c
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/76x60D.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/76x60E.png b/Students/Dave Fugelso/Project/Alpine/testfiles/76x60E.png
new file mode 100644
index 00000000..f7e03178
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/76x60E.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/76x60F.png b/Students/Dave Fugelso/Project/Alpine/testfiles/76x60F.png
new file mode 100644
index 00000000..ac3bab37
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/76x60F.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/80x64A.png b/Students/Dave Fugelso/Project/Alpine/testfiles/80x64A.png
new file mode 100644
index 00000000..34142782
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/80x64A.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/80x64B.png b/Students/Dave Fugelso/Project/Alpine/testfiles/80x64B.png
new file mode 100644
index 00000000..95d8ecee
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/80x64B.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/80x64C.png b/Students/Dave Fugelso/Project/Alpine/testfiles/80x64C.png
new file mode 100644
index 00000000..0d64c945
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/80x64C.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/80x64D.png b/Students/Dave Fugelso/Project/Alpine/testfiles/80x64D.png
new file mode 100644
index 00000000..2262164a
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/80x64D.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/80x64E.png b/Students/Dave Fugelso/Project/Alpine/testfiles/80x64E.png
new file mode 100644
index 00000000..ded2ec2a
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/80x64E.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/80x64F.png b/Students/Dave Fugelso/Project/Alpine/testfiles/80x64F.png
new file mode 100644
index 00000000..ffba52cd
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/80x64F.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/80x80A.png b/Students/Dave Fugelso/Project/Alpine/testfiles/80x80A.png
new file mode 100644
index 00000000..b5a2e7fa
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/80x80A.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/80x80B.png b/Students/Dave Fugelso/Project/Alpine/testfiles/80x80B.png
new file mode 100644
index 00000000..b5924159
Binary files /dev/null and b/Students/Dave Fugelso/Project/Alpine/testfiles/80x80B.png differ
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/HUinfo.json b/Students/Dave Fugelso/Project/Alpine/testfiles/HUinfo.json
new file mode 100644
index 00000000..2e721270
--- /dev/null
+++ b/Students/Dave Fugelso/Project/Alpine/testfiles/HUinfo.json
@@ -0,0 +1,15 @@
+{
+ "headUnitSerialNumber": "
",
+ "vehicleModel": "",
+ "distance" : <"mi" | "km">,
+ "time": <"12" | "24">,
+ "date": <"MMDDYY" | "DDMMYY">,
+ "Temperature": <"C" | "F">
+ "versioninfo": [
+ {
+ "" : ",
+ "" : <1 | 0>
+ }
+ ]
+}
\ No newline at end of file
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/HupWrapper.py b/Students/Dave Fugelso/Project/Alpine/testfiles/HupWrapper.py
new file mode 100644
index 00000000..a2d35f85
--- /dev/null
+++ b/Students/Dave Fugelso/Project/Alpine/testfiles/HupWrapper.py
@@ -0,0 +1,50 @@
+
+#////////////////////////////////////////////////////////////////////////////////////////////////////
+# Image Request
+
+# This expects the body to contain the appId and a path of a locally stored image file
+class AlpineFetchImageResponseHandler(ResponseHandler):
+ def response(self, responseCode, headers, mimeType, body):
+ print 'have image for : ' + headers
+ try:
+ d = json.loads(body)
+ if (d.has_key('path') and d.has_key('appId'):
+ #TBD: Check if appId is still current appId
+ SendImage (d['path'], d['appId'])
+ else:
+ print 'Bad format for SendImage'
+ except:
+ print 'bad json into response handler for image request'
+
+
+def imageRequest (d):
+ eb.request('GET','/RequestImage/', None, json.dumps(d),'application/json',[], AlpineFetchImageResponseHandler())
+
+
+
+# This will be replaced by Configurator!
+def RegisterHandlers (eb):
+ # Except these. These are not MIP callback handlers
+ HupInterface.requestCallback('RequestImage', imageRequest)
+ imageHandler =
+
+
+#////////////////////////////////////////////////////////////////////////////////////////////////////
+# Register callbacks for Alpine initiated request
+ def setup():
+ global srv, eb, myHandler
+
+
+ #handler1 = AlpineRequestHandler('HeadUnitID', RequestHeadUnitID)
+ #handler3 = AlpineRequestHandler('SetTemplate1', template1)
+ myHandler = MyResponseHandler()
+
+
+ # HttpGatewayRequestHandler is currently stubbed out and will be fixed by Jack Friday morning.
+ handler2 = HttpGatewayRequestHandler(btMCSSF, host=address_to_handset, port=port_of_handset_server)
+
+ # Template 1 handler
+
+ eb = EventBroker()
+
+ RegisterHandlers (eb)
\ No newline at end of file
diff --git a/Students/Dave Fugelso/Project/Alpine/testfiles/alpine.json b/Students/Dave Fugelso/Project/Alpine/testfiles/alpine.json
new file mode 100644
index 00000000..c545c1c8
--- /dev/null
+++ b/Students/Dave Fugelso/Project/Alpine/testfiles/alpine.json
@@ -0,0 +1,514 @@
+
+////////////////////////////////////////////////////////////////////////////////
+// These are responses HUP to HAP
+
+
+
+
+{
+ "path": "/hap/api/1.0/VehicleMakeAndModel",
+ "Make": "",
+ "Model": ""
+}
+
+{
+ "path": "/hap/api/1.0/MipSlipConnection",
+ "Status": "11111111",
+ "IP Address": "
+}
+
+{
+ "path": "/hap/api/1.0/DayNightMode",
+ "Mode": <"Day" | "Night">
+}
+
+{
+ "path": "/hap/api/1.0/VehicleSpeed",
+ "Speed":
+}
+
+{
+ "path": "/hap/api/1.0/VehicleLocation",
+ "Direction": <
+ "latitude": ,
+ "longitude": "
+}
+
+{
+ "path": "/hap/api/1.0/DestinationLocation",
+ "Destination": "Valid",
+ "latitude": ,
+ "longitude": "
+}
+
+{
+ "path": "/hap/api/1.0/Shutdown"
+}
+
+{
+ "path": "/hap/api/1.0/MeasurementUnitDispFormat",
+ "Distance Unit": "M",
+ "Time Display": "12",
+ "Date Format": "MMDDYY",
+ "Temperature": "C"
+}
+
+////////////////////////////////////////////////////////////////////////////////
+// These are requests Hap to HUP for the Native interface
+
+{
+ "path": "/hup/api/1.0/RequestMipSlipConnectionStatus"
+}
+
+{
+ "path": "/hup/api/1.0/RequestHeadUnitID"
+}
+
+{
+ "path": "/hup/api/1.0/RequestVehicleMakeAndModel"
+}
+
+{
+ "path": "/hup/api/1.0/RequestHeadunitLanguageSetting"
+}
+
+{
+ "path": "/hup/api/1.0/RequestMeasurementUnitsAndDisplayFormat"
+}
+
+{
+ "path": "/hup/api/1.0/RequestMeasurementUnitsAndDisplayFormat"
+}
+
+{
+ "path": "/hup/api/1.0/RequestVehicleLocation"
+}
+
+{
+ "path": "/hup/api/1.0/RequestDestinationLocation"
+}
+
+{
+ "path": "/hup/api/1.0/RequestDayNightMode"
+}
+
+{
+ "path": "/hup/api/1.0/RequestVehicleSpeed"
+}
+
+/////////////////////////////////////////////////////
+// HAP to HUP Template messages
+
+{
+ "path": "/hup/api/1.0/ApplicationList",
+ "Applications" : [
+ {
+ "Name" : "",
+ "Icon" : ,
+ "Type" : <"Audio" | "POI" | "Social" | "News" | "Sports" | "Stocks" | "Navigation" | "Traffic" | "Fuel" | "Parking" | "SpeedCameras" | "Weather" | "Flights" | "VRTTS" | "Movies">
+ "Languages" : [
+ {
+ "Language" : "",
+ "Local Name" : ""
+ }
+ ]
+ },
+ {
+
+ },
+ ...
+ {
+
+ }
+ ]
+}
+
+
+{
+ "path": "/hup/api/1.0/NowExecuting",
+ "Name" : "",
+ "Type" : <"Audio" | "POI" | "Social" | "News" | "Sports" | "Stocks" | "Navigation" | "Traffic" | "Fuel" | "Parking" | "SpeedCameras" | "Weather" | "Flights" | "VRTTS" | "Movies">
+}
+
+{
+ "path": "/hup/api/1.0/RequestAudioFocus",
+ "SourceType" : ""
+}
+
+{
+ "path": "/hup/api/1.0/ReleaseAudioFocus"
+}
+
+{
+ "path": "/hup/api/1.0/SetPhoneAvailability",
+ "Available" : "
+}
+
+{
+ "path": "/hup/api/1.0/SetLocation",
+ "Latitude" : ,
+ "Longitude" : ,
+ "Type" : <"None" | "Waypoint" | "Destination" | "POI">
+ "PointInformation" : {
+ "Address" : "",
+ "Street" : ""
+ "HouseNumber" : "",
+ "PostalCode;" : "",
+ "City" : "",
+ "State" : "",
+ "Country" : "",
+ "Phone" : "",
+ "AdditionalInfo" : ""
+ }
+}
+
+{
+ "path": "/hup/api/1.0/Image",
+ "ImageID" : ,
+ "Cache" : ,
+ "Name" : ,
+ TBD - details of transfer
+}
+
+{
+ "path": "/hup/api/1.0/Template1",
+ "partialUpdate" : <1 | 0>,
+ "appID" : "",
+ "screenID" : ,
+ "loadingType" : < 1 | 2 | 3 | 4>, // < "ShowLoadScreen" | "ShowText" | "DoNotShowLoadScreen" | "LoadKeyboard">
+ "backgroundImage" : ,
+ "systemHeader" : <1 | 0>,
+ "templateContent" : {
+ "title" : {
+ "image" : ,
+ "text" : ""
+ },
+ "img01" : ,
+ "img02" : ,
+ "buttons" : {
+ "1": {
+ "text" : "",
+ "image" : {
+ "normal" : ,
+ "pressed" :
+ },
+ "backgroundImage" : {
+ "normal" : ,
+ "pressed" :
+ },
+ "scrollUpButton" : <1 | 0>, // optional defaults 0
+ "scrollDownButton" : <1 | 0>, // optional defaults 0
+ "enabled" : <1 | 0> // optional defaults 1
+ }
+ "2" : {..},
+ ...
+ "6" : {..}
+ },
+ "text01" : ",
+ "text02" : ",
+ "text03" : ",
+ "text04" : ",
+ "progress" : {
+ "color" : ,
+ "totalSeconds" : ,
+ "current" : <0.0 to 1.0>,
+ "active" : <1 | 0>
+ }
+ }
+}
+
+{
+ "path": "/hup/api/1.0/Template2",
+ "partialUpdate" : <1 | 0>,
+ "appID" : "",
+ "screenID" : ,
+ "loadingType" : < 1 | 2 | 3 | 4>, // < "ShowLoadScreen" | "ShowText" | "DoNotShowLoadScreen" | "LoadKeyboard">
+ "backgroundImage" : ,
+ "systemHeader" : <1 | 0>,
+ "templateContent" : {
+ "title" : {
+ "image" : ,
+ "text" : ""
+ },
+ "buttons" : {
+ "1": {
+ "text" : "",
+ "line02" : "",
+ "image" : {
+ "normal" : ,
+ "pressed" :
+ },
+ "backgroundImage" : {
+ "normal" : ,
+ "pressed" :
+ },
+ "scrollUpButton" : <1 | 0>, // optional defaults 0
+ "scrollDownButton" : <1 | 0>, // optional defaults 0
+ "enabled" : <1 | 0> // optional defaults 1
+ }
+ "2" : {..},
+ ...
+ "9" : {..}
+ }
+ }
+
+}
+
+{
+ "path": "/hup/api/1.0/Template3",
+ "partialUpdate" : <1 | 0>,
+ "appID" : "",
+ "screenID" : ,
+ "loadingType" : < 1 | 2 | 3 | 4>, // < "ShowLoadScreen" | "ShowText" | "DoNotShowLoadScreen" | "LoadKeyboard">
+ "backgroundImage" : ,
+ "systemHeader" : <1 | 0>,
+ "templateContent" : {
+ "title" : {
+ "image" : ,
+ "text" : ""
+ },
+
+ "list" : [
+ {
+ "text" : "",
+ "image" : ,
+ "special" : "
+ },
+ { .. up to 5 }
+ ]
+
+ "buttons" : {
+ "1": {
+ "text" : "",
+ "image" : {
+ "normal" : ,
+ "pressed" :
+ },
+ "backgroundImage" : {
+ "normal" : ,
+ "pressed" :
+ },
+ "scrollUpButton" : <1 | 0>, // optional defaults 0
+ "scrollDownButton" : <1 | 0>, // optional defaults 0
+ "enabled" : <1 | 0> // optional defaults 1
+ }
+ "2" : {..},
+ ...
+ "6" : {..}
+ }
+ }
+
+}
+
+{
+ "path": "/hup/api/1.0/Template4",
+ "partialUpdate" : <1 | 0>,
+ "appID" : "",
+ "screenID" : ,
+ "loadingType" : < 1 | 2 | 3 | 4>, // < "ShowLoadScreen" | "ShowText" | "DoNotShowLoadScreen" | "LoadKeyboard">
+ "backgroundImage" : ,
+ "systemHeader" : <1 | 0>,
+ "templateContent" : {
+
+ "text01" : ",
+ "text02" : ",
+
+ "buttons" : {
+ "1": {
+ "text" : "",
+ "image" : {
+ "normal" : ,
+ "pressed" :
+ },
+ "backgroundImage" : {
+ "normal" : ,
+ "pressed" :
+ },
+ "scrollUpButton" : <1 | 0>, // optional defaults 0
+ "scrollDownButton" : <1 | 0>, // optional defaults 0
+ "enabled" : <1 | 0> // optional defaults 1
+ }
+ "2" : {..},
+ "3" : {..}
+ }
+ }
+}
+
+{
+ "path": "/hup/api/1.0/Template5",
+ "partialUpdate" : <1 | 0>,
+ "appID" : "",
+ "screenID" : ,
+ "loadingType" : < 1 | 2 | 3 | 4>, // < "ShowLoadScreen" | "ShowText" | "DoNotShowLoadScreen" | "LoadKeyboard">
+ "backgroundImage" : ,
+ "systemHeader" : <1 | 0>,
+ "templateContent" : {
+ "title" : {
+ "image" : ,
+ "text" : ""
+ },
+ "text01" : ",
+ "buttons" : {
+ "1": {
+ "text" : "",
+ "image" : {
+ "normal" : ,
+ "pressed" :
+ },
+ "backgroundImage" : {
+ "normal" : ,
+ "pressed" :
+ },
+ "scrollUpButton" : <1 | 0>, // optional defaults 0
+ "scrollDownButton" : <1 | 0>, // optional defaults 0
+ "enabled" : <1 | 0> // optional defaults 1
+ }
+ "2" : {..},
+ ...
+ "6" : {..}
+ }
+ }
+
+}
+
+{
+ "path": "/hup/api/1.0/Template6",
+ "partialUpdate" : <1 | 0>,
+ "appID" : "",
+ "screenID" : ,
+ "loadingType" : < 1 | 2 | 3 | 4>, // < "ShowLoadScreen" | "ShowText" | "DoNotShowLoadScreen" | "LoadKeyboard">
+ "backgroundImage" : ,
+ "systemHeader" : <1 | 0>,
+ "templateContent" : {
+ "title" : {
+ "image" : ,
+ "text" : ""
+ },
+ "line02" : {
+ "text" : "",
+ "image" :
+ }
+ "img01" : ,
+ "text01" : "",
+ "text03" : "",
+ "buttons" : {
+ "1": {
+ "text" : "",
+ "image" : {
+ "normal" : ,
+ "pressed" :
+ },
+ "backgroundImage" : {
+ "normal" : ,
+ "pressed" :
+ },
+ "scrollUpButton" : <1 | 0>, // optional defaults 0
+ "scrollDownButton" : <1 | 0>, // optional defaults 0
+ "enabled" : <1 | 0> // optional defaults 1
+ }
+ "2" : {..},
+ ...
+ "6" : {..}
+ }
+ }
+}
+
+
+{
+ "path": "/hup/api/1.0/Template7",
+ "partialUpdate" : <1 | 0>,
+ "appID" : "",
+ "screenID" : ,
+ "loadingType" : < 1 | 2 | 3 | 4>, // < "ShowLoadScreen" | "ShowText" | "DoNotShowLoadScreen" | "LoadKeyboard">
+ "backgroundImage" : ,
+ "systemHeader" : <1 | 0>,
+ "templateContent" : {
+ "title" : {
+ "image" : ,
+ "text" : ""
+ },
+ "line02" : {
+ "text" : "",
+ "image" :
+ }
+ "img01" : ,
+ "text01" : ",
+ "text03" : ",
+ "buttons" : {
+ "1": {
+ "text" : "",
+ "image" : {
+ "normal" : ,
+ "pressed" :
+ },
+ "backgroundImage" : {
+ "normal" : ,
+ "pressed" :
+ },
+ "scrollUpButton" : <1 | 0>, // optional defaults 0
+ "scrollDownButton" : <1 | 0>, // optional defaults 0
+ "enabled" : <1 | 0> // optional defaults 1
+ }
+ "2" : {..},
+ ...
+ "6" : {..}
+ }
+ }
+}
+
+{
+ "path": "/hup/api/1.0/Template8",
+ "partialUpdate" : <1 | 0>,
+ "appID" : "",
+ "screenID" : ,
+ "loadingType" : < 1 | 2 | 3 | 4>, // < "ShowLoadScreen" | "ShowText" | "DoNotShowLoadScreen" | "LoadKeyboard">
+ "backgroundImage" : ,
+ "systemHeader" : <1 | 0>,
+ "templateContent" : {
+ "title" : {
+ "image" : ,
+ "text" : ""
+ },
+ "text01" : ",
+ "img01" : ,
+ "img02" :
+ }
+}
+
+{
+ "path": "/hap/api/1.0/SetText",
+ "Text" : "",
+}
+
+
+/////////////////////////////////////////////////////// HUP to HAP Template messages
+{
+ "path": "/hap/api/1.0/NativeAppStartNotification",
+ "AudioApp" : <1 | 0>
+}
+
+{
+ "path": "/hap/api/1.0/StartApplication",
+ "Name" : ""
+}
+
+{
+ "path": "/hup/api/1.0/RequestImage",
+ "ImageID" :
+}
+
+{
+ "path": "/hap/api/1.0/HardwareButtonPress",
+ "ButtonType" : "