I didnt see your post, I just tried, but...
this
results in these errors:
but this conversion for pressure works
this
Code:
UpdateNlog("O112",jcData.observations(0).imperial.temp - 32)/1.8,"",0)
Sep-25 22:43:46 | Error | Compiling script C:\Program Files (x86)\HomeSeer HS3\scripts\WeatherObserved.vb: End of statement expected. |
Sep-25 22:43:46 | Error | Compiling script C:\Program Files (x86)\HomeSeer HS3\scripts\WeatherObserved.vb: Argument not specified for parameter 'Dstr' of 'Public Sub UpdateNlog(HDcode As String, Dvalue As Double, Dstr As String, Always As Integer)'. |
Sep-25 22:43:46 | Error | Compiling script C:\Program Files (x86)\HomeSeer HS3\scripts\WeatherObserved.vb: Argument not specified for parameter 'Always' of 'Public Sub UpdateNlog(HDcode As String, Dvalue As Double, Dstr As String, Always As Integer)'. |
Sep-25 22:43:46 | Error | Compiling script C:\Program Files (x86)\HomeSeer HS3\scripts\WeatherObserved.vb: Namespace or type specified in the Imports 'System.Core' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases. |
Code:
UpdateNlog("O118",jcData.observations(0).imperial.pressure*33.86,"",0)
Comment