Announcement

Collapse
No announcement yet.

Help with custom header.asp

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Help with custom header.asp

    I need help with the custom header.asp when I use it the weather information from weatherman should scroll under the banner if I read the description correctly. But in my case all I get is the scrolling text with no data but the current temp, all the rest is blank. Where dose it get the information from? I assume it comes from weatherdata.ini. the ini files is located in the config directory the header.asp is located in the includes directory. Attached is the asp file and the ini file any help would be appreciated

    Thanks
    Jim
    Attached Files

    #2
    I'm not sure if this is what is messing it up but you don't need this:

    <html>

    <head>
    <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>Homeseer Test Page</title>

    or <body>. The CustomHeader function creates all that. You also don't need </html>. CustomFooter adds that.

    See if eliminating that code helps.


    Paul

    Comment


      #3
      The scroll comes from weatherdata.ini.

      From the WeatherCom_CurrentData section it uses:
      Temp
      Report_City
      Condition
      Wind
      AlertIDs

      From the AccuWeather_HighLowData section it uses:
      High_Temp
      Low_Temp

      From the WeatherCom_ExtForecast section it uses:
      ExtForecast0
      ExtForecast1

      Also make sure in the includes.ini you have
      usePageScroll=1

      Jeff Farmer
      HomeSeer user since March, 2000

      --
      Jeff Farmer
      HS 3, HSPhone
      My HS3 Plugins: CFHSExtras, Random, Restart, Tracker, WeatherXML, PanaBluRay
      Other Plugins In Use: APCUPSD, BLOnkyo, Device History, EasyTrigger, HSTouch Server, PHLocation2, Pushover, RFXCom, UltraGCIR3, UltraMon3, UltraPioneerAVR3, X10, Z-Wave

      Hardware: GoControl Irrigation Controler, Schlage Lever Lock, Schlage Deadbolt, Way2Call Hi-Phone, RFXCom RFXrec433 Receiver, WGL 800, TI-103, Z-Net, Pioneer 1120, Pioneer 1021, Pioneer LX302, Panasonic BDT-110, Panasonic BDT-210 x2

      Comment


        #4
        Thanks for the fast reply removed all the lines you suggested but did not change anything what I don’t understand is it gets the current temp and nothing else.

        Thanks
        Jim
        Attached Files

        Comment


          #5
          Look in the weatherman.ini and make sure you have values for the ones I posted above.
          What exactly do you see in the scroll?
          Do you see the words Todays High, Todays Low

          Jeff Farmer
          HomeSeer user since March, 2000

          --
          Jeff Farmer
          HS 3, HSPhone
          My HS3 Plugins: CFHSExtras, Random, Restart, Tracker, WeatherXML, PanaBluRay
          Other Plugins In Use: APCUPSD, BLOnkyo, Device History, EasyTrigger, HSTouch Server, PHLocation2, Pushover, RFXCom, UltraGCIR3, UltraMon3, UltraPioneerAVR3, X10, Z-Wave

          Hardware: GoControl Irrigation Controler, Schlage Lever Lock, Schlage Deadbolt, Way2Call Hi-Phone, RFXCom RFXrec433 Receiver, WGL 800, TI-103, Z-Net, Pioneer 1120, Pioneer 1021, Pioneer LX302, Panasonic BDT-110, Panasonic BDT-210 x2

          Comment


            #6
            Jeff,
            Jim put a copy of his WeatherMan.ini in the zip in his first post. It's missing the AccuWeather_HighLowData section, the WeatherCom_ExtForecast section, Report_City, and AlertIDs.

            Jim,
            I think you need to check your WeatherMan script setup.


            Paul

            Comment


              #7
              This is a screen capture of the page :

              This is the contents of the weatherdata.ini:
              [WeatherCom_CurrentData]
              Condition=Fair
              Condition_Icon_URL=
              Temp=74
              Today_Avg_High=82
              Today_Avg_Low=62
              Est_Avg_at_this_Hr=71
              Feels_Like=
              UV_Index=0
              UV_Index_Text=Minimal
              Dew_Point=73
              Humidity=97
              Barometric_Pressure=30.07
              Visibility=4 Miles
              Wind=Calm
              Run_Time=8/20/2003 10:49:05 PM
              Report_Time= 9:53 PM
              Water_Need= Latonia
              This is the contents of the weatherman.ini:
              ;*********************************************************** ***************************************
              ; WeatherMan.INI
              ; This ini file is required to use the WeatherMan script. The script file is located in the
              ; scripts dir. This file should be located in the Config directory which is directly under the
              ; Homeseer dir.
              ;*********************************************************** ***************************************
              [Weather Report]
              ; Enter the number of zip codes to check, there must be exactly the number of items in myzip & mytown
              ; This feature was added to allow for a zip codes conditions to be off-line. the script will check the next zip.
              ; Default value is 3, so there needs to be 3 zip codes and 3 towns listed.
              MaxLoc=3
              ; Enter Zipcodes for locations and towns
              Myzip=41015,41042,41051
              Mytown=Taylor Mill,Florence,Independence
              ; Myzip=54016,85001,45459
              ; Mytown=Hudson,Phoenix,Centerville


              ' Can be set to 1 for script Debug info to be written to the HS log
              WxDebug=0


              ;***** Audio Player Config *****
              ; Choices for audio are: northeast, midatlantic, southeast, plains,
              ; midwest, southcentral, pacific, mountain, southwest
              Region=midwest
              ; To use the Audio Player set UseAudio to True or False.
              UseAudio=false

              ; Use "Yes" for Metric Only, "No" for Non-Metric or "Both" for both
              UseMetric=No
              ; Set to True if you want to have the CNN Breaking News added to the Update time
              UseCNN=True

              ;****** Define maps which will be used To Find Maps for your Region, Go To:http://www.weather.com/maps/geography.html
              localmaps=http://image.weather.com/web/radar/us_ind_closeradar_large_usen.jpg
              ; Define URL for Radar PopUp Image
              LocalMapL=http://image.weather.com/web/radar/us_ind_closeradar_large_usen.jpg
              DewMap=http://image.weather.com/images/maps/special/severe_ec_720x486.jpg

              ; Defines the Weather Alert Map
              pagealert=http://image.weather.com/images/maps/special/severe_ec_720x486.jpg

              ; Use to set the size of "click on" window (ie. dewpoint)
              PopUpWin=width=720,height=486
              ; Set to size of "Map" window
              MapWin=width='294' height='201'

              ; Set value to 1 to use Marquee or 0 to use fixed cell for Ext Forecast
              iUseMarquee=1
              ; Set to 0 for no Icons listed on web device status page, use 1 to add icons
              iUseIcons=1

              ; Set to 0 for NO writing of Data to INI file or 1 to write Current Data to INI file
              iWriteINIData=1

              ; Set to the number of attempts to get web page from weather.com, before script aborts
              iMaxWebPageTries=3


              ;* Specify virtual device CODE and UNIT numbers:
              ;* Set up 10 virtual devices - w1 through w10- on your system. w1 is current
              ;* conditions, w2 is current temperature, w3 is wind, w4 is dewpoint, w5 is
              ;* humidity, w6 is visibility, w7 is barometric pressure, w8 is the 36 hour
              ;* forecast, w9 is the update date and time, w10 is alerts, w22 is the radar map.
              ;* w20 will contain all Wx data without html and is comma delimited
              ;
              strHCode=w
              strUnitCond=1
              strUnitTemp=2
              strUnitWind=3
              strUnitDew=4
              strUnitHumi=5
              strUnitVis=6
              strUnitBaro=7
              strUnit36hr=8
              strUnitTUPD=9
              strUnitAler=10
              strUnitRada=22
              ; If You don't want the data only to be stored in a Vdev, just set strUnitWxData to nothing or comment out
              strUnitWxData=20


              ; The following devices are commented out by default, as they can be used to store only the
              ; actual data without any html, ie TempOnly might contain "73", for 73 degrees F. This device string
              ; could then be used in a compare for turning on an attic fan. If these devices are uncommented
              ; the WeatherMan_Create_Vdevs.txt will then create the Vdevs. After this is done See the Discussion
              ; forum for an example script for populating data into these devices. WeatherMan does not insert data in these devices.
              strUnitDateOnly=23
              strUnitTimeOnly=24
              strUnitTempOnly=25
              strUnitDifNormOnly=26
              strUnitHumiOnly=27
              ;strUnitDewPtOnly=28
              strUnitBaroOnly=29


              ;****** Configure Speaking of Weather Forecast ******
              ; iSpeakType should be defined as follows:
              ; 0 = Never any speech
              ; 1 = Speak always
              ; 2 = Speak based on the values in strStartTalking and strStopTalking
              iSpeakType=2

              ; The following is used when iSpeakType = 2
              ; The times should be configured to determine when the agent should start and stop
              ; speaking. Times can be entered in 12(must use AM or PM) or 24 hour.
              strSpeakStartTime=07:00
              strSpeakStopTime=21:30

              ; In addition to the choice of speech for iSpeakType = 1 or 2 the following can be configured
              ; Do you want the following items spoken? Each is defined as follows: 1=yes or 0=no
              ; Speak Current Conditions?
              iSpeakCondition=1

              ; Speak Average Compare?
              iSpeakAvg=0

              ; Speak Current Temperature?
              iSpeakTemp=1

              ; Speak Wind, Humidity and Visibility?
              iSpeakWindHumVis=1

              ; Speak Dew Point and Barometric Pressure?
              iSpeakDewBaro=0

              ; Speak the Fog Alert message if Temp and dew point are + or - 2 deg.
              iSpeakFogAlert=0

              ; Speak UV info, this is also dependent on UV info not having a current value of 0
              iSpeakUV=0

              ; Speak the 36 hour forecast?
              iSpeak36hr=1



              [ClimateData]
              ; The ClimateDataValues should be 'Monthly' OR
              'Daily', if Monthly is use then values AvgLowTempList and AvgHiTempList will be used
              ; if Daily is used then there must be 12 months of data vars with hi and low values ie JanMin, JanMax, FebMin, FebMax ...
              ; ClimateDataValues=Monthly
              ClimateDataValues=Daily

              ; NOTE: The following MUST be in Fahrenheit, even if Celsius Only will be used in the script
              ; Info can be found at http://www.weather.com/weather/climatology/{your zip code}
              ; or http://www.wrh.noaa.gov/wrhq/nwspage.html, Select NWS office from Map (near you)

              ; FOR ClimateDataValues=MONTHLY
              ; Following list should be the Avg LOW temp for your area for each month, ie Jan,Feb,Mar,Apr,... 12 entries sep by a space
              AvgLowTempList=17 19 30 40 49 58 63 60 52 40 33 23
              ; Following list should be the Avg HIGH temp for your area for each month,ie Jan,Feb,Mar,Apr,... 12 entries sep by a space
              AvgHiTempList=35 39 51 62 73 81 85 84 77 66 53 40

              ; FOR ClimateDataValues=DAILY
              ; DAYS OF THE MONTH
              ; 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
              ; --------------------------------------------------------------------------------------------
              JanMin=20 20 20 20 20 19 19 19 19 19 19 19 19 19 19 19 18 18 18 18 18 18 19 19 19 19 19 19 19 19 19
              JanMax=34 34 34 34 34 34 34 34 34 33 33 33 33 33 33 33 33 33 33 33 33 34 34 34 34 34 34 34 34 34 35
              FebMin=20 20 20 20 20 20 20 21 21 21 21 21 22 22 22 23 23 23 23 24 24 24 24 25 25 25 26 26 25
              FebMax=35 35 35 36 36 36 36 36 36 37 37 37 37 38 38 38 39 39 39 40 40 40 41 41 41 42 42 42 43
              MarMin=26 27 27 27 28 28 28 28 29 29 30 30 30 31 31 31 32 32 32 33 33 33 33 34 34 34 34 35 35 36 36
              MarMax=43 44 44 44 45 45 46 46 47 47 47 48 48 49 49 49 50 50 50 51 51 52 52 52 53 53 54 54 54 55 55
              AprMin=36 36 36 37 37 37 38 38 38 39 39 39 39 40 40 40 41 41 41 42 42 42 43 43 44 44 44 45 45 45
              AprMax=56 56 56 57 57 57 58 58 58 59 59 59 60 60 60 61 61 61 62 62 62 63 64 64 65 65 65 65 66 66
              MayMin=45 45 45 46 46 47 48 49 49 49 49 50 50 50 51 52 52 52 52 53 53 54 54 54 55 55 55 55 56 56 56
              MayMax=66 67 67 67 67 68 68 68 69 69 70 70 70 71 71 71 72 72 72 73 73 73 73 74 74 74 75 75 75 76 76
              JunMin=56 56 56 56 56 56 57 58 59 60 60 60 60 60 60 61 61 61 61 62 62 63 63 63 63 63 63 63 63 63
              JunMax=76 77 77 77 78 78 78 78 79 79 79 79 80 80 80 80 81 81 81 81 82 82 82 82 82 82 83 83 83 83
              JulMin=63 63 63 63 63 63 63 63 63 64 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65
              JulMax=83 83 83 84 84 84 84 84 84 84 84 84 84 84 84 84 85 85 85 85 85 85 85 85 85 84 84 84 84 84 84
              AugMin=64 64 64 64 64 63 63 63 63 63 63 63 63 63 63 63 63 63 63 62 62 61 61 61 61 60 60 60 60 60 59
              AugMax=84 84 84 84 84 84 84 84 84 84 83 83 83 83 83 82 82 82 82 82 82 81 81 81 81 81 80 80 80 80 80
              SepMin=59 59 59 58 58 58 57 57 57 57 56 56 56 55 55 55 54 54 54 53 53 53 52 52 51 51 50 50 49 49
              SepMax=80 79 79 79 79 79 78 78 78 78 77 77 77 76 76 76 75 75 75 74 74 74 73 73 73 72 72 71 71 70
              OctMin=49 49 49 48 47 47 47 46 45 45 45 45 44 44 44 43 43 43 42 42 41 41 41 40 40 40 40 40 39 39 39
              OctMax=70 70 70 69 68 67 67 67 67 66 66 65 65 64 64 63 63 63 62 62 61 61 60 60 60 59 58 58 58 57 57
              NovMin=39 38 38 37 37 37 37 37 36 36 36 35 35 35 35 35 34 34 34 33 32 32 32 32 31 31 31 30 30 29
              NovMax=57 57 57 56 55 54 53 53 53 52 52 52 51 51 50 50 49 49 49 48 48 47 46 46 46 45 45 44 44 44
              DecMin=29 29 28 28 28 27 27 27 26 26 26 25 25 25 24 24 24 24 23 23 23 22 22 22 22 22 21 21 21 21 20
              DecMax=44 44 43 42 42 41 41 41 40 40 40 39 39 39 38 38 38 38 37 37 37 36 36 36 36 36 35 35 35 35 34

              sorry for the long post but i am in over my head on this one thanks for all the help

              Thanks
              jim

              Comment


                #8
                For some reason it doesn't appear that weatherman is running the accuweather part of the script.

                Heres what you can do.

                In the includes dir find header.asp.

                Find
                PSHighTemp = hs.GetINISetting ("AccuWeather_HighLowData","High_Temp","",PSstrINIFileNam e)
                and change it to:

                PSHighTemp = hs.GetINISetting ("WeatherCom_CurrentData","Today_Avg_High","",PSstrINIFileNa me)

                And change

                PSLowTemp = hs.GetINISetting ("AccuWeather_HighLowData","Low_Temp","",PSstrINIFileName )

                to

                PSLowTemp = hs.GetINISetting ("WeatherCom_CurrentData","Today_Avg_Low
                ","",PSstrINIFileName)


                You will still be missing the forecast though. It should be writing to weatherdata.ini in the WeatherCom_ExtForecast section.

                Jeff Farmer
                HomeSeer user since March, 2000
                --
                Jeff Farmer
                HS 3, HSPhone
                My HS3 Plugins: CFHSExtras, Random, Restart, Tracker, WeatherXML, PanaBluRay
                Other Plugins In Use: APCUPSD, BLOnkyo, Device History, EasyTrigger, HSTouch Server, PHLocation2, Pushover, RFXCom, UltraGCIR3, UltraMon3, UltraPioneerAVR3, X10, Z-Wave

                Hardware: GoControl Irrigation Controler, Schlage Lever Lock, Schlage Deadbolt, Way2Call Hi-Phone, RFXCom RFXrec433 Receiver, WGL 800, TI-103, Z-Net, Pioneer 1120, Pioneer 1021, Pioneer LX302, Panasonic BDT-110, Panasonic BDT-210 x2

                Comment


                  #9
                  I must be missing something I have looked at both weatherman scripts and find no reference to AccuWeather_Parse or WeatherCom_ExtForecast. I can see the section where it writes the information to the WeatherCom_CurrentData section of the weatherdata ini is there a part of the program I dont have? is it another program? I downloaded Weatherman scripts and reinstalled to see if that helped it didnt any suggestions?

                  Thanks
                  Jim

                  Comment

                  Working...
                  X