Loading ...
Sorry, an error occurred while loading the content.

Re: HTML Output

Expand Messages
  • wuhu_software
    Don, Actually, there was a bit of a performance hit outputting that file due to the API I was using. I have updated the code so that it is more efficient. Try
    Message 1 of 36 , Aug 1, 2007
    • 0 Attachment
      Don,

      Actually, there was a bit of a performance hit outputting that file
      due to the API I was using.

      I have updated the code so that it is more efficient.

      Try the latest refresh and let me know if you still see a CPU hit.


      --- In wuhu_software_group@yahoogroups.com, "Don" <kansasphotos@...>
      wrote:
      >
      > The one minute limitation is in that separate FTP program. I guess
      > what gets me confused is that using my own server is just a matter
      of
      > moving files from one directory to the other, even though I can go
      > through the FTP process. The template: etc process has worked well
      > for me, but I noticed when you're using some of the extended tags it
      > begins to slow down (maybe its' my imagination).
      >
      >
      >
      > --- In wuhu_software_group@yahoogroups.com, "wuhu_software"
      > <wuhu_software@> wrote:
      > >
      > > Don,
      > >
      > > If you do not use the templates within the on weather updates,
      the
      > > template will not be processed.
      > >
      > > Maybe I am missing the question?
      > >
      > > Where is the one minute limitation?
      > >
      > > Thanks.
      > >
      > >
      > > --- In wuhu_software_group@yahoogroups.com, "Don" <kansasphotos@>
      > > wrote:
      > > >
      > > > Heath - I didn't realize the full advantage of using that
      Save2FTP
      > > > until I tried it this evening. My question is, since I've been
      > > using
      > > > the "Action/Alert" on updates with the template:
      D:/HeavyWeather
      > > etc.,
      > > > even though your limited to a minimum of 1 minutes updates, I
      assume
      > > > that I can discontinue using and unclick that box "On Weather
      > > Update"
      > > > as my template and data are being uploaded to the web site with
      the
      > > > Save2FTP.
      > > > don
      > > >
      > > >
      > > >
      > > >
      > > >
      > > >
      > > > --- In wuhu_software_group@yahoogroups.com, "utahweatherbear"
      > > > <utahweatherbear@> wrote:
      > > > >
      > > > > Thanx Don. Not as snazzy as yours, but it's a nice addition
      to my
      > > > > overall site.
      > > > >
      > > > > db
      > > > >
      > > > >
      > > > >
      > > > > --- In wuhu_software_group@yahoogroups.com, "Don"
      <kansasphotos@>
      > > > > wrote:
      > > > > >
      > > > > > Thanks Dan, I was missing the brackets. Nice page you have
      > > > > created.
      > > > > > I like the way WUHU responds - it's fast and smooth.
      > > > > > don
      > > > > >
      > > > > > --- In
      wuhu_software_group@yahoogroups.com, "utahweatherbear"
      > > > > > <utahweatherbear@> wrote:
      > > > > > >
      > > > > > > Thanx. Yeah, probably should. Was gonna just add it to my
      > > main
      > > > > page
      > > > > > > menu eventually. Got so much stuff there already. :-)
      > > > > > >
      > > > > > > http://weatherbear.com/
      > > > > > >
      > > > > > > db
      > > > > > >
      > > > > > >
      > > > > > >
      > > > > > > --- In wuhu_software_group@yahoogroups.com, George Gunn
      > > > > > > <professorgunn@> wrote:
      > > > > > > >
      > > > > > > > Nice web page Dan. Maybe you could add your location?
      > > > > > > >
      > > > > > > > George
      > > > > > > >
      > > > > > > > utahweatherbear <utahweatherbear@>
      > > > > > > wrote: Heath,
      > > > > > > >
      > > > > > > > Think I have most of the stuff figured out. Your
      template
      > > idea
      > > > > is
      > > > > > > > really cool, and the ftp seems to be working. I have
      set
      > > up a
      > > > > > > small
      > > > > > > > page here:
      > > > > > > >
      > > > > > > > http://weatherbear.com/weather/wxstation.htm
      > > > > > > >
      > > > > > > > I set it up to auto-refresh every 10 seconds for now.
      Just
      > > a
      > > > > > > couple
      > > > > > > > questions. Is there a way to just have the time for
      the
      > > > > max/min
      > > > > > > stuff
      > > > > > > > instead of the whole date, and possibly a "letters"
      option
      > > for
      > > > > the
      > > > > > > > peak wind gust? I couldn't find the options in the
      > > extended
      > > > > > > currdat
      > > > > > > > data, but thought that would be a nice feature to
      shorten
      > > > > things
      > > > > > > up
      > > > > > > > if we wanted to.
      > > > > > > >
      > > > > > > > You totally rock!
      > > > > > > >
      > > > > > > > Dan
      > > > > > > >
      > > > > > > > --- In
      > > wuhu_software_group@yahoogroups.com, "wuhu_software"
      > > > > > > > <wuhu_software@> wrote:
      > > > > > > > >
      > > > > > > > > Dan,
      > > > > > > > >
      > > > > > > > > You have to shut down WUHU, add the key to the .ini,
      > > then
      > > > > start
      > > > > > > > WUHU.
      > > > > > > > >
      > > > > > > > > 20) A new .INI key was added to enable the writing
      of
      > > > > extended
      > > > > > > > > information in the currdat.lst (daily lows and
      highs).
      > > This
      > > > > > > > > modification will have no effect if you are not
      writing
      > > the
      > > > > > > > > currdat.lst file or if the below key is not found in
      the
      > > > > WUHU
      > > > > > > > > configuration INI file.
      > > > > > > > >
      > > > > > > > > To enable this feature, exit WUHU and edit the WUHU
      > > > > > > Configuration
      > > > > > > > > Data.ini file that is located in the WUHU program
      file
      > > > > folder.
      > > > > > > > > Notepad is recommended when editing this file. Add
      the
      > > > > following
      > > > > > > > key
      > > > > > > > > to the general section of WUHU Configuration.INI in
      the
      > > > > [General
      > > > > > > > > Settings] section.
      > > > > > > > >
      > > > > > > > > Write Extended Currentdat=1
      > > > > > > > >
      > > > > > > > >
      > > > > > > > > --- In
      > > > > wuhu_software_group@yahoogroups.com, "utahweatherbear"
      > > > > > > > > <utahweatherbear@> wrote:
      > > > > > > > > >
      > > > > > > > > > Hmmm...not sure about the "extended", but I do
      > > generate a
      > > > > > > > > currdat.lst
      > > > > > > > > > that looks like this:
      > > > > > > > > >
      > > > > > > > > > [header]
      > > > > > > > > > programm_name="heavy weather"
      > > > > > > > > > programm_version="Ver. 2.0 beta release"
      > > > > > > > > > file_name="currdat.lst"
      > > > > > > > > > file_format_version="ver. 1.0"
      > > > > > > > > > [time]
      > > > > > > > > > start=3394888486
      > > > > > > > > > start_date_string="Tue Jul 31 10:34:46 2007"
      > > > > > > > > > last_actualisation=3394901758
      > > > > > > > > > last_actualisation_date_string="Tue Jul 31
      14:15:58
      > > 2007"
      > > > > > > > > > next_actualisation=3394901768
      > > > > > > > > > next_actualisation_date_string="Tue Jul 31
      14:16:08
      > > 2007"
      > > > > > > > > > [weather_picture]
      > > > > > > > > > comment_2="-1=not valid, 0=rain, 1=cloud, 2=sun"
      > > > > > > > > > number=1
      > > > > > > > > > [weather_tendency]
      > > > > > > > > > comment_1="-1=not valid, 0=no change of
      air
      > > > > > > pressure"
      > > > > > > > > > comment_2=" 1=air pressure rising, 2=air pressure
      > > falling"
      > > > > > > > > > number=1
      > > > > > > > > > [indoor_temperature]
      > > > > > > > > > deg_C="30.0"
      > > > > > > > > > deg_F="86.0"
      > > > > > > > > > [outdoor_temperature]
      > > > > > > > > > deg_C="31.8"
      > > > > > > > > > deg_F="89.3"
      > > > > > > > > > [indoor_humidity]
      > > > > > > > > > percent="49.0"
      > > > > > > > > > [outdoor_humidity]
      > > > > > > > > > percent="28.0"
      > > > > > > > > > [dewpoint]
      > > > > > > > > > deg_C="11.0"
      > > > > > > > > > deg_F="51.8"
      > > > > > > > > > [windchill]
      > > > > > > > > > deg_C="30.7"
      > > > > > > > > > deg_F="87.3"
      > > > > > > > > > [wind_speed]
      > > > > > > > > > mps="1.5"
      > > > > > > > > > kmh="5.5"
      > > > > > > > > > mph="3.4"
      > > > > > > > > > knt="3.0"
      > > > > > > > > > bft=" 1"
      > > > > > > > > > [wind_direction]
      > > > > > > > > > deg="337"
      > > > > > > > > > name="NNW"
      > > > > > > > > > [rain_total]
      > > > > > > > > > mm="0.00"
      > > > > > > > > > inch="0.000"
      > > > > > > > > > [rain_24h]
      > > > > > > > > > mm="0.00"
      > > > > > > > > > inch="0.000"
      > > > > > > > > > [rain_1h]
      > > > > > > > > > mm="0.00"
      > > > > > > > > > inch="0.000"
      > > > > > > > > > [pressure_absolute]
      > > > > > > > > > hpa="851.34"
      > > > > > > > > > inHg="25.14"
      > > > > > > > > > [pressure_relative]
      > > > > > > > > > hpa="1015.92"
      > > > > > > > > > inHg="30.00"
      > > > > > > > > > [storm_alarm]
      > > > > > > > > > comment="-1=not valid, 0=storm alarm not activ,
      > > 1=storm
      > > > > alarm
      > > > > > > > activ"
      > > > > > > > > > number=0
      > > > > > > > > > [wind_gust]
      > > > > > > > > > mps="2.4"
      > > > > > > > > > kmh="8.7"
      > > > > > > > > > mph="5.4"
      > > > > > > > > > knt="4.7"
      > > > > > > > > > bft=" 2"
      > > > > > > > > > [rain_total_tweaked]
      > > > > > > > > > mm="0.00"
      > > > > > > > > > inch="0.000"
      > > > > > > > > >
      > > > > > > > > > Don't see any max/min temps or max wind. What am I
      > > doing
      > > > > wrong?
      > > > > > > > > >
      > > > > > > > > > Thanx, dan
      > > > > > > > > >
      > > > > > > > > >
      > > > > > > > > >
      > > > > > > > > > --- In
      > > > > wuhu_software_group@yahoogroups.com, "wuhu_software"
      > > > > > > > > > <wuhu_software@> wrote:
      > > > > > > > > > >
      > > > > > > > > > >
      > > > > > > > > > > Dan,
      > > > > > > > > > >
      > > > > > > > > > > If you are configured for extended currdat.lst
      > > output,
      > > > > the
      > > > > > > > highs
      > > > > > > > > > and
      > > > > > > > > > > lows are available by using %[section]var% and
      can
      > > be
      > > > > used
      > > > > > > in
      > > > > > > > > > > templates.
      > > > > > > > > > >
      > > > > > > > > > > My recommendation is the save2ftp freeware. You
      can
      > > send
      > > > > > > > multiple
      > > > > > > > > > > files to servers with different conditions. It
      seems
      > > to
      > > > > work
      > > > > > > > very
      > > > > > > > > > > well.
      > > > > > > > > > >
      > > > > > > > > > >
      > > > > > > > > > > --- In
      > > > > > > wuhu_software_group@yahoogroups.com, "utahweatherbear"
      > > > > > > > > > > <utahweatherbear@> wrote:
      > > > > > > > > > > >
      > > > > > > > > > > > Heath, is there a a variable in there for a
      peak
      > > wind
      > > > > gust
      > > > > > > > for
      > > > > > > > > > the
      > > > > > > > > > > > day? Also, what would you suggest is the best
      way
      > > to
      > > > > > > > > > automatically
      > > > > > > > > > > > upload the ouput file to a website on a
      realtime
      > > > > basis? Is
      > > > > > > > that
      > > > > > > > > > > > possible with WUHU?
      > > > > > > > > > > >
      > > > > > > > > > > > Thanx, Dan
      > > > > > > > > > > >
      > > > > > > > > > > >
      > > > > > > > > > > >
      > > > > > > > > > > >
      > > > > > > > > > > >
      > > > > > > > > > > > --- In
      > > > > > > wuhu_software_group@yahoogroups.com, "wuhu_software"
      > > > > > > > > > > > <wuhu_software@> wrote:
      > > > > > > > > > > > >
      > > > > > > > > > > > > Tony,
      > > > > > > > > > > > >
      > > > > > > > > > > > > Assuming you are running the latest version
      that
      > > > > > > supports
      > > > > > > > > > > > templates...
      > > > > > > > > > > > >
      > > > > > > > > > > > > First you need to set up an action for
      the "On
      > > > > weather
      > > > > > > > > update".
      > > > > > > > > > > Go
      > > > > > > > > > > > to
      > > > > > > > > > > > > where you enter the actions and see the
      examples
      > > at
      > > > > the
      > > > > > > > > bottom.
      > > > > > > > > > > > >
      > > > > > > > > > > > > As an example, if you enter the following
      action
      > > > > (enter
      > > > > > > > > > exactly):
      > > > > > > > > > > > >
      > > > > > > > > > > > >
      > > > > > > > > > > >
      > > > > > > > > > >
      > > > > > > > > >
      > > > > > > > >
      > > > > > > >
      > > > > > >
      > > > >
      > >
      template:"C:\HeavyWeather\InputTest.htm" "C:\HeavyWeather\OutputTest.h
      > > > > > > > > > > > > tm"
      > > > > > > > > > > > >
      > > > > > > > > > > > > That will use the inputtest.htm as the input
      > > file,
      > > > > > > > > > outputtest.htm
      > > > > > > > > > > > as
      > > > > > > > > > > > > the output file. You can change the file
      names
      > > and
      > > > > paths
      > > > > > > to
      > > > > > > > > > > > whatever
      > > > > > > > > > > > > you want.
      > > > > > > > > > > > >
      > > > > > > > > > > > > Within the inputtest.htm file, you can enter
      > > these
      > > > > > > strings,
      > > > > > > > > > they
      > > > > > > > > > > > will
      > > > > > > > > > > > > be replaced with the real weather data:
      > > > > > > > > > > > >
      > > > > > > > > > > > > %StormAlertActive%
      > > > > > > > > > > > > %LastActualizationTime%
      > > > > > > > > > > > > %PressureFallingAlertActive%
      > > > > > > > > > > > > %PressureRisingAlertActive%
      > > > > > > > > > > > > %IndoorHumidity%
      > > > > > > > > > > > > %IndoorTempDegC%
      > > > > > > > > > > > > %IndoorTempDegF%
      > > > > > > > > > > > > %MetarSkyConditions%
      > > > > > > > > > > > > %MetarWeatherConditions%
      > > > > > > > > > > > > %OutdoorDewpointC%
      > > > > > > > > > > > > %OutdoorDewpointF%
      > > > > > > > > > > > > %OutdoorSnowDepth%
      > > > > > > > > > > > > %OutdoorHumidity%
      > > > > > > > > > > > > %OutdoorPressureAbsoluteHPA%
      > > > > > > > > > > > > %OutdoorPressureAbsoluteINHG%
      > > > > > > > > > > > > %OutdoorPressureRelativeHPA%
      > > > > > > > > > > > > %OutdoorPressureRelativeINHG%
      > > > > > > > > > > > > %OutdoorRain1HrIN%
      > > > > > > > > > > > > %OutdoorRain1HrMM%
      > > > > > > > > > > > > %OutdoorRain24HrIN%
      > > > > > > > > > > > > %OutdoorRain24HrMM%
      > > > > > > > > > > > > %OutdoorDailyRainfallIN%
      > > > > > > > > > > > > %OutdoorDailyRainfallMM%
      > > > > > > > > > > > > %OutdoorRainTotalIN%
      > > > > > > > > > > > > %OutdoorRainTotalMM%
      > > > > > > > > > > > > %OutdoorRainTotalTweakedIN%
      > > > > > > > > > > > > %OutdoorRainTotalTweakedMM%
      > > > > > > > > > > > > %OutdoorRainTotalMonthlyIN%
      > > > > > > > > > > > > %OutdoorRainTotalMonthlyMM%
      > > > > > > > > > > > > %OutdoorRainTotalMonthlyTweakedMM%
      > > > > > > > > > > > > %OutdoorRainTotalMonthlyTweakedIN%
      > > > > > > > > > > > > %OutdoorTempDegC%
      > > > > > > > > > > > > %OutdoorTempDegF%
      > > > > > > > > > > > > %OutdoorWindAverageDirection%
      > > > > > > > > > > > > %OutdoorWindDirectionLetters%
      > > > > > > > > > > > > %OutdoorWindAverageSpeedKMH%
      > > > > > > > > > > > > %OutdoorWindAverageSpeedMPH%
      > > > > > > > > > > > > %OutdoorWindchillC%
      > > > > > > > > > > > > %OutdoorWindchillF%
      > > > > > > > > > > > > %OutdoorWindDirection%
      > > > > > > > > > > > > %OutdoorWindGustSpeedKMH%
      > > > > > > > > > > > > %OutdoorWindGustSpeedMPH%
      > > > > > > > > > > > > %OutdoorWindSpeedKMH%
      > > > > > > > > > > > > %OutdoorWindSpeedMPH%
      > > > > > > > > > > > > %Time%
      > > > > > > > > > > > > %TimeHHMM%
      > > > > > > > > > > > > %EuroDate%
      > > > > > > > > > > > >
      > > > > > > > > > > > >
      > > > > > > > > > > > > --- In
      > > wuhu_software_group@yahoogroups.com, "Tony"
      > > > > > > > <is0hha@>
      > > > > > > > > > > wrote:
      > > > > > > > > > > > > >
      > > > > > > > > > > > > > Hello all,
      > > > > > > > > > > > > > i want to create locally an HTML File with
      all
      > > > > data
      > > > > > > from
      > > > > > > > > WUHU
      > > > > > > > > > > > (Wind,
      > > > > > > > > > > > > > Temp, etc.) and then update it on my
      website
      > > with
      > > > > the
      > > > > > > > > > save2ftp.
      > > > > > > > > > > > > > This html file must be updated every
      minute or
      > > > > every 5
      > > > > > > > > > minutes.
      > > > > > > > > > > > > > Can you help me ?
      > > > > > > > > > > > > > Thanks.
      > > > > > > > > > > > > >
      > > > > > > > > > > > >
      > > > > > > > > > > >
      > > > > > > > > > >
      > > > > > > > > >
      > > > > > > > >
      > > > > > > >
      > > > > > > >
      > > > > > > >
      > > > > > > >
      > > > > > > >
      > > > > > > >
      > > > > > > > ---------------------------------
      > > > > > > > Ready for the edge of your seat? Check out tonight's
      top
      > > picks
      > > > > on
      > > > > > > Yahoo! TV.
      > > > > > > >
      > > > > > >
      > > > > >
      > > > >
      > > >
      > >
      >
    • wuhu_software
      John, Sorry, you cannot combine the templates with the web service right now on a single action... I did realize it would be nice to do a mix of actions, web
      Message 36 of 36 , Aug 1, 2007
      • 0 Attachment
        John,

        Sorry, you cannot combine the templates with the web service right
        now on a single action... I did realize it would be nice to do a mix
        of actions, web service, and templates all on a single line. Will
        have to give that some thought. I was thinking maybe prefixing
        actions with action: and webservice with webservice: so that the line
        can be parsed.

        Maybe just specifying a file that contains a list of actions,
        templates, etc might be easier. Something like
        actionlist:c:\actionlist.txt, where each action is on a seperate line
        within the file. In that way, you could mix and match. Hm...

        For now you could play a trick, use the web service on the
        activation, use templates on the deactivation for the update (or vice
        versa). The deactivation action will always happen after the
        activation action.

        As far as the length goes, it should be able to handle at least 1024
        bytes or so. I am not sure if there is a limitation on an edit box or
        not. I would suspect there is but it is hard to say.


        --- In wuhu_software_group@yahoogroups.com, John Liss <john@...>
        wrote:
        >
        > I'm sorry if this has been asked before..
        >
        > Damn WUHU.. you have done it again. TEMPLATES! rock on.
        >
        > Q?
        >
        > In the readme it says:
        >
        > *44) Added templates. Templates will allow you to specify an input
        text
        > file and output text file. When the input file is copied to the
        output
        > file, weather data can be injected in to the output file by using
        the
        > replacement strings (%OutdoorTempDegF% for example). This would
        allow to
        > create .htm files that contain the weather data. You can specify
        > multiple templates per action.*
        >
        > *As an example, say that you specified the following as an Update
        action:*
        >
        >
        *template: "C:\HeavyWeather\InputTest.htm" "C:\HeavyWeather\OutputTest
        .htm"*
        >
        > *You can specify multiple templates like this:*
        >
        > *template:"C:\HeavyWeather\InputTest.htm"
        > "C:\HeavyWeather\OutputTest.htm"
        >
        template:"C:\HeavyWeather\InputTest2.htm" "C:\HeavyWeather\OutputTest2
        .htm"
        > *
        >
        > Question: Can you do
        >
        > http://localhost/collector.aspx?t=%OutdoorTempDegF%&h=%
        IndoorHumidity%
        > template:"C:\HeavyWeather\InputTest.htm"
        > "C:\HeavyWeather\OutputTest.htm"
        >
        template:"C:\HeavyWeather\InputTest2.htm" "C:\HeavyWeather\OutputTest2
        .htm"
        >
        > What is the max length of a line action? My collector.aspx string
        > length alone is pretty long (I'd have to count but I'd guess at
        least
        > 100 chars...)
        >
        >
        > <http://localhost/webservice/collector.aspx?t=31&h=54.2&r=0.00>*
        > * <http://localhost/webservice/collector.aspx?t=31&h=54.2&r=0.00>
        >
      Your message has been successfully submitted and would be delivered to recipients shortly.