daily pastebin goal
36%
SHARE
TWEET

Helix.ini

a guest Nov 19th, 2018 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [SETTING]
  2. DEB=6
  3.  
  4.  
  5. [FIELD]
  6. FIELD(2).NAME="Timestamp"
  7. FIELD(2).TYPE="DateTime"
  8. FIELD(2).FORMAT="dd MMM yyyy hh:mm:ss","Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec"
  9. FIELD(5).NAME="WindSpeed"
  10. FIELD(5).TYPE="Number"
  11. FIELD(11).NAME="TimeOffset"
  12. FIELD(11).TYPE="Int32"
  13. FIELD(12).NAME="plusMinushours"
  14. FIELD(12).TYPE="Int32"
  15. FIELD(13).NAME="finalDateTime"
  16. FIELD(13).TYPE="DateTime"
  17. FIELD(13).FORMAT="yyyy-MM-dd hh:mm:ss"
  18. FIELD(14).NAME="LocalTimeZoneOffset"
  19. FIELD(14).TYPE="Int32"
  20. FIELD(15).NAME="timeshift"
  21. FIELD(15).TYPE="Time"
  22. FIELD(15).FORMAT="h:mm:ss"
  23. FIELD(16).NAME="negplusminushours"
  24. FIELD(16).TYPE="Int32"
  25.  
  26. [MSG]
  27. MSG(1).NAME="WindSpeed"
  28. MSG(5).NAME="TimeStamp"
  29. MSG(6).NAME="TimeOffset"
  30.  
  31. [TimeStamp]
  32. TimeStamp.FILTER=C1=="<observation_time_rfc822>*</observation_time_rfc822>"
  33. Timestamp=["*<observation_time_rfc822>*, (*) -*</observation_time_rfc822>*"]
  34. TimeOffset=["*##:##:## (*)##</"]
  35. 'TimeOffset = 0000
  36. 'Timestamp = Timestamp - TimeOffset
  37. LocalTimeZoneOffset = -5
  38. plusminushours = LocalTimeZoneOffset - TimeOffset
  39. IF (plusminushours > 0)
  40. THEN
  41. timeshift = plusminushours & ":00:00"
  42. finalDateTime = Timestamp+timeshift
  43. ELSE
  44. negplusminushours = -1*plusminushours
  45. timeshift = negplusminushours & ":00:00"
  46. finalDateTime = Timestamp-timeshift
  47. ENDIF
  48.  
  49. [TimeOffset]
  50. TimeOffset.FILTER=C1=="*<observation_time_rfc822>*</observation_time_rfc822>"
  51. TimeOffset=["*##:##:## (*)##</"]
  52.  
  53. [WindSpeed]
  54. WindSpeed.FILTER=C1=="*<wind_mph>*</wind_mph>*"
  55. WindSpeed=["*<wind_mph>(*)</wind_mph>*"]
  56. StoreInPI("Weather","WindSpeed",finalDateTime,WindSpeed, ,)
  57. 'StoreEvent("Weather.WindSpeed", , Timestamp, WindSpeed)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top