Author Topic: Sylvester and Pressure in inHg  (Read 1446 times)

monymony

  • Strong Breeze
  • ***
  • Posts: 173
  • CoCoRaHS - MD-CC-16
    • EW3643
    • KMDELKTO10
    • Cecil County Maryland Weather
  • Station Details: Davis Vantage Pro 2
Sylvester and Pressure in inHg
« on: July 03, 2017, 02:30:24 AM »
Hello All,


Trying to use Sylvester for the first time to setup automated Tweets.  Noticing that for pressure when set to inHg the value is always rounded to one decimal place.  How to get this to show in the standard two decimal places?  Just trying to use the default code: STAT$PRESSURE:CURRENT$STAT$PRESSURE:DELTACHAR$


Thanks!


Jay



xairbusdriver

  • Storm
  • *****
  • Posts: 3127
    • EW7115 (E7115)
    • KTNGERMA20
    • Mid-South Weather
  • Station Details: Davis VP2 wireless + remote Anemometer/2014 Mac min - 10.15.7/WC 3.0.5
Re: Sylvester and Pressure in inHg
« Reply #1 on: July 03, 2017, 02:53:47 PM »
What happens if you change it to:
Code: [Select]
STAT$PRESSURE:CURRENT$STAT$PRESSUREUNITS$:DELTACHAR$Note: PRESSUREUNITS$
Perhaps including the "in/Hg" will force the display of both decimal values? :o

There is also the "CP$" tag, but I think it will also include the actual delta value " (0.02)", and shorten the Tweet quite a bit: "Pressure: CP$" vs "Pressure: STAT$PRESSURE:CURRENT$STAT$PRESSURE:DELTACHAR$"
THERE ARE TWO TYPES OF COUNTRIES
Those that use metric = #1 Measurement system
And the United States = The Banana system


elagache

  • Global Moderator
  • Storm
  • *****
  • Posts: 6494
    • DW3835
    • KCAORIND10
    • Canebas Weather
  • Station Details: Davis Vantage Pro-2, Mac mini (2018), macOS 10.14.3, WeatherCat 3
Query works okay in AppleScript (Re: Sylvester and Pressure in inHg)
« Reply #2 on: July 03, 2017, 11:50:37 PM »
Dear Jay, X-Air, and WeatherCat troubleshooters,

Trying to use Sylvester for the first time to setup automated Tweets.  Noticing that for pressure when set to inHg the value is always rounded to one decimal place.

That's odd.  If you put your identical string into AppleScript it generates output with two decimal places.  Here is the AppleScript:

Code: [Select]
-- AppleScript test routines for WeatherCat 2.1


set highTemp to ""
set highTempTime to ""


tell application "WeatherCat"
set Query to "STAT$PRESSURE:CURRENT$STAT$PRESSURE:DELTACHAR$"
set highTemp to QueryResult
end tell

"Current pressure is:  " & highTemp

I know the variable names are wrong, but that won't effect the results.  Besides . . . . . I was lazy!  ;D

The result cut and paste out of the AppleScript Script Editor is:

Code: [Select]
"Current pressure is:  29.96"
You might need to ask Stu about this one.

Cheers, Edouard  [cheers1]

Blicj11

  • Storm
  • *****
  • Posts: 3945
    • EW3808
    • KUTHEBER6
    • Timber Lakes Weather
  • Station Details: Davis Vantage Pro2 Plus | WeatherLinkIP Data Logger | iMac (2019), 3.6 GHz Intel Core i9, 40 GB RAM, macOS Ventura 13.6 | Sharx SCNC2900 Webcam | WeatherCat 3.3 | Supportive Wife
Re: Sylvester and Pressure in inHg
« Reply #3 on: July 04, 2017, 12:25:33 AM »
Jay:

I have the same tag with the same result as you. X-Air's suggestion won't make any difference to the tweet other than to add the units label. As Edouard suggests, this is how it is programmed. I suggest you either post in Feature Requests or Bugs to catch Stu's attention and get this logged. It might be a bug, since it pulls up the 2 decimal place answer in Apple Script but not in Sylvester. However, I think it could be posted in either. Thanks for bringing this to our attention.
Blick