Announcement

Collapse
No announcement yet.

jon00 motherboard & hard drive monitor discussion

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

  • jon00
    replied
    I cannot understand where the * characters are coming from!

    This is probably a fudge but should stop the error.

    Open up Speedfan.vb and search for the following line:

    If Len(Sensordata)=0 then exit sub

    Below this line add the following:

    Sensordata=Sensordata.Replace("*","")

    See if that helps.

    Leave a comment:


  • travisdh
    replied
    Thanks for taking a look at this Jon00,
    The log file looks quite normal from what i can see.
    Attached Files

    Leave a comment:


  • jon00
    replied
    It looks like your speedfan log has lots of * where there should just be numerical data.

    Can you post your Speedfan log please.

    Leave a comment:


  • travisdh
    replied
    Hi Jon00,

    I consistently get the following error, is there a setting i should be changing to get rid of it?

    The device values and strings get updated, but this is always in the error log...

    Code:
    8/14/2012 10:13:50 AM  Jon00_Speedfan Error  at code block J System.InvalidCastException: Conversion from string  "38.0****************************" to type 'Single' is not valid. ---  System.FormatException: Input string was not in a correct format.   at  Microsoft.VisualBasic.CompilerServices.Conversions.ParseDouble(String  Value, NumberFormatInfo NumberFormat)   at  Microsoft.VisualBasic.CompilerServices.Conversions.ToSingle(String  Value, NumberFormatInfo NumberFormat)   --- End of inner exception stack  trace ---   at  Microsoft.VisualBasic.CompilerServices.Conversions.ToSingle(String  Value, NumberFormatInfo NumberFormat)   at  Microsoft.VisualBasic.CompilerServices.Conversions.ToSingle(String  Value)   at scriptcode3.scriptcode3.Main(Object parm)

    Leave a comment:


  • gjelsvik
    replied
    Sorry, thats just me being sloppy.

    Leave a comment:


  • jon00
    replied
    If you look at the ini file you posted, there is the following entry:

    [Update]
    Icon=Clock.gif
    DevCode=s1

    You need to change this to another code.

    Leave a comment:


  • gjelsvik
    replied
    Jon, I dont really know what solved this, but now after recreating the .ini from the template in your zip file everything works great. Thanks for your effort to help me!

    But unfortunaely, i have another issue as well, you see i am also using another plugin (twittseer) that sends some device strings and device values to a twitter account.
    For instance, im sending DST:s1 and DV:f5

    Sometimes instead of the device string for s1 (wich is my powerconsumption) this is posted:
    "Winserver monitoring updated: 17:18:20"

    I found this in your vbe script:

    HTMLString &= "<td align='left' class='tablecellcustom'>" & ComputerName & " monitoring updated: " & TimeofDay & "</td>"

    Somehow it seems like this get inserted into my S1 device string, even thoug all my devices in the speedfan ini is Fx (x= 1 to 9 )

    Leave a comment:


  • jon00
    replied
    That looks OK.

    Are you still getting the error as the tests I got you to do meant that the 3.1 value you saw must have come from the ini file?

    Leave a comment:


  • gjelsvik
    replied
    Here it is:

    Code:
    [Settings]
    Speechtimeon="00:01"
    Speechtimeoff="00:02"
    SpeedfanLogPath="C:\Program Files (x86)\SpeedFan\"
    IconPath="\images\speedfan\"
    Mailfrom="speedfan@gmx.no"
    Mailto="espen@gmx.no"
    ComputerName="W2K8-R2 Server"
    HiLoReset=0
    SPClient="*:*"
    LogErrors=1
    
    [Update]
    Icon=Clock.gif
    DevCode=s1
    
    *****Saved settings only*****
    CurrentValue=06:57:20
    *****************************
    
    [Sensor1]
    Title="CPU TEMP"
    Unit=C
    DevCode=f2
    Icon=Temperature.gif
    HighValueTrigger=
    HighValueReset=
    LowValueTrigger=
    LowValueReset=
    HighValueTriggerEvent=
    LowValueTriggerEvent=
    Speakhigh="Warning. CPU temperature is high"
    Speaklow=
    SpeakTimes=3
    ShowHighValueRecord=1
    ShowLowValueRecord=1
    RunScriptHigh=
    RunScriptLow=
    RunEventHigh=
    RunEventLow=
    SendEmail=0
    
    *****Saved settings only*****
    CurrentValue=53,0
    HighValue=73,0
    LowValue=51,0
    HighValueTime=21:22:59
    HighValueDate=04.04.2010
    LowValueTime=05:20:30
    LowValueDate=05.04.2010
    HighValueResetFlag=0
    LowValueResetFlag=0
    SpeakCountHigh=1
    SpeakCountLow=1
    *****************************
    
    [Sensor2]
    Title="HDD Temperature"
    Unit=C
    DevCode=f3
    Icon=Temperature.gif
    HighValueTrigger=
    HighValueReset=
    LowValueTrigger=
    LowValueReset=
    HighValueTriggerEvent=
    LowValueTriggerEvent=
    Speakhigh="Warning. CPU temperature is high"
    Speaklow=
    SpeakTimes=3
    ShowHighValueRecord=1
    ShowLowValueRecord=1
    RunScriptHigh=
    RunScriptLow=
    RunEventHigh=
    RunEventLow=
    SendEmail=0
    
    *****Saved settings only*****
    CurrentValue=33,0
    HighValue=41,0
    LowValue=31,0
    HighValueTime=00:31:31
    HighValueDate=04.04.2010
    LowValueTime=05:10:30
    LowValueDate=05.04.2010
    HighValueResetFlag=0
    LowValueResetFlag=0
    SpeakCountHigh=1
    SpeakCountLow=1
    *****************************
    
    [Sensor3]
    Title="Core0 Temperature"
    Unit=C
    DevCode=f4
    Icon=Temperature.gif
    HighValueTrigger=
    HighValueReset=
    LowValueTrigger=
    LowValueReset=
    HighValueTriggerEvent=
    LowValueTriggerEvent=
    Speakhigh="Warning. Hard drive 0 temperature is high"
    Speaklow=
    SpeakTimes=3
    ShowHighValueRecord=1
    ShowLowValueRecord=1
    RunScriptHigh=
    RunScriptLow=
    RunEventHigh=
    RunEventLow=
    SendEmail=0
    
    *****Saved settings only*****
    CurrentValue=45,0
    HighValue=61,0
    LowValue=43,0
    HighValueTime=21:22:59
    HighValueDate=04.04.2010
    LowValueTime=04:40:30
    LowValueDate=05.04.2010
    HighValueResetFlag=0
    LowValueResetFlag=0
    SpeakCountHigh=1
    SpeakCountLow=1
    *****************************
    
    [Sensor4]
    Title="Core1 Temperature"
    Unit=C
    DevCode=f5
    Icon=Temperature.gif
    HighValueTrigger=
    HighValueReset=
    LowValueTrigger=
    LowValueReset=
    Speakhigh="Warning. Hard drive 1 temperature is high"
    Speaklow=
    SpeakTimes=3
    ShowHighValueRecord=1
    ShowLowValueRecord=1
    RunScriptHigh=
    RunScriptLow=
    RunEventHigh=
    RunEventLow=
    SendEmail=0
    
    *****Saved settings only*****
    CurrentValue=45,0
    HighValue=64,0
    LowValue=43,0
    HighValueTime=21:22:59
    HighValueDate=04.04.2010
    LowValueTime=04:40:30
    LowValueDate=05.04.2010
    HighValueResetFlag=0
    LowValueResetFlag=0
    SpeakCountHigh=1
    SpeakCountLow=1
    *****************************
    
    [Sensor5]
    Title="CPU Fan"
    Unit=RPM
    DevCode=f6
    Icon=fanon.gif
    HighValueTrigger=
    HighValueReset=
    LowValueTrigger=
    LowValueReset=
    Speakhigh=
    Speaklow="Warning. CPU fan speed is low"
    SpeakTimes=3
    ShowHighValueRecord=1
    ShowLowValueRecord=1
    RunScriptHigh=
    RunScriptLow=
    RunEventHigh=
    RunEventLow=
    SendEmail=0
    
    *****Saved settings only*****
    CurrentValue=1524
    HighValue=2296
    LowValue=1400
    HighValueTime=17:11:20
    HighValueDate=05.04.2010
    LowValueTime=13:09:20
    LowValueDate=05.04.2010
    HighValueResetFlag=
    LowValueResetFlag=0
    SpeakCountHigh=
    SpeakCountLow=1
    *****************************
    
    [Sensor6]
    Title="Chassis Fan"
    Unit=RPM
    DevCode=f7
    Icon=fanon.gif
    HighValueTrigger=
    HighValueReset=
    LowValueTrigger=
    LowValueReset=
    Speakhigh=" Warning. CPU core voltage too high"
    Speaklow="Warning. CPU core voltage too low"
    SpeakTimes=3
    ShowHighValueRecord=1
    ShowLowValueRecord=1
    RunScriptHigh=
    RunScriptLow=
    RunEventHigh=
    RunEventLow=
    SendEmail=0
    
    *****Saved settings only*****
    CurrentValue=1259
    HighValue=1266
    LowValue=1241
    HighValueTime=05:41:31
    HighValueDate=04.04.2010
    LowValueTime=00:24:10
    LowValueDate=04.04.2010
    HighValueResetFlag=0
    LowValueResetFlag=0
    SpeakCountHigh=1
    SpeakCountLow=1
    *****************************
    
    [Sensor7]
    Title="+12 Volt"
    Unit=Volts
    DevCode=f8
    Icon=Meter1.gif
    HighValueTrigger=
    HighValueReset=
    LowValueTrigger=
    LowValueReset=
    Speakhigh="Warning. 12 Volt supply too high"
    Speaklow="Warning. 12 V supply too low"
    SpeakTimes=3
    ShowHighValueRecord=1
    ShowLowValueRecord=1
    RunScriptHigh=
    RunScriptLow=
    RunEventHigh=
    RunEventLow=
    SendEmail=0
    
    *****Saved settings only*****
    CurrentValue=12,1
    HighValue=12,1
    LowValue=12,1
    HighValueTime=00:24:10
    HighValueDate=04.04.2010
    LowValueTime=00:24:10
    LowValueDate=04.04.2010
    HighValueResetFlag=0
    LowValueResetFlag=0
    SpeakCountHigh=1
    SpeakCountLow=1
    *****************************
    
    [Sensor8]
    Title="+5 Volt"
    Unit=Volts
    DevCode=f9
    Icon=Meter1.gif
    HighValueTrigger=
    HighValueReset=
    LowValueTrigger=
    LowValueReset=
    Speakhigh="Warning. 3.3 Volt supply too high"
    Speaklow="Warning. 3.3 Volt supply too low"
    SpeakTimes=3
    ShowHighValueRecord=1
    ShowLowValueRecord=1
    RunScriptHigh=
    RunScriptLow=
    RunEventHigh=
    RunEventLow=
    SendEmail=0
    
    *****Saved settings only*****
    CurrentValue=5,08
    HighValue=5,08

    LowValue=5,08

    HighValueTime=00:24:10
    HighValueDate=04.04.2010
    LowValueTime=00:24:10
    LowValueDate=04.04.2010
    HighValueResetFlag=0
    LowValueResetFlag=0
    SpeakCountHigh=1
    SpeakCountLow=1
    *****************************


    [Blank]
    Title=""
    Unit=
    DevCode=
    Icon=
    HighValueTrigger=
    HighValueReset=
    LowValueTrigger=
    LowValueReset=
    Speakhigh=
    Speaklow=
    SpeakTimes=3
    ShowHighValueRecord=0
    ShowLowValueRecord=0
    RunScriptHigh=
    RunScriptLow=
    RunEventHigh=
    RunEventLow=
    SendEmail=0

    *****Saved settings only*****
    CurrentValue=
    HighValue=
    LowValue=
    HighValueTime=
    HighValueDate=
    LowValueTime=
    LowValueDate=
    HighValueResetFlag=
    LowValueResetFlag=
    SpeakCountHigh=
    SpeakCountLow=
    *****************************
    [/code]

    Leave a comment:


  • jon00
    replied
    Please copy your speedfan.ini file and post it here.

    Leave a comment:


  • gjelsvik
    replied
    The .ini doesnt contain any values behind "HighValueTrigger="

    Maybe I misunderstood you though, you meant the .ini not the .vbs?

    Leave a comment:


  • jon00
    replied
    Thanks...

    Go to your speedfan.ini file and convert all the HighvalueTrigger, HighvalueReset, LowValueTrigger & LowValueReset values to commas instead of decimal points if shown. That should cure the issue.

    Leave a comment:


  • gjelsvik
    replied
    Thanks again Jon, i have done that now.


    The test.vb returns the following in the log:

    05.04.2010 12:26:31 Info Event Trigger "UnNamed"
    05.04.2010 12:26:31 Info Running script in background: test.vb
    05.04.2010 12:26:32 Test Script failed when a . was used as a decimal separator
    05.04.2010 12:26:32 Test 3,1

    I added the other line in the speedfan script for codeblock L, the log says this:
    Code:
    05.04.2010 12:26:57  	Jon00_Speedfan 	Error at code block L System.InvalidCastException: Conversion from string "3.1" to type 'Single' is not valid. ---> System.FormatException: Input string was not in a correct format. at Microsoft.VisualBasic.CompilerServices.Conversions.ParseDouble(String Value, NumberFormatInfo NumberFormat) at Microsoft.VisualBasic.CompilerServices.Conversions.ToSingle(String Value, NumberFormatInfo NumberFormat) --- End of inner exception stack trace --- at Microsoft.VisualBasic.CompilerServices.Conversions.ToSingle(String Value, NumberFormatInfo NumberFormat) at Microsoft.VisualBasic.CompilerServices.Conversions.ToSingle(String Value) at scriptcode10.scriptcode10.Main(Object parm)
    05.04.2010 12:26:57  	Test 	Sensordata: 5,08 LowValTrigger: 3.1
    The error does also happen for codeblock M and K.

    Leave a comment:


  • jon00
    replied
    The error has nothing to do with the separator within the speedfan log...it is to do with decimals from the values it obtains IMO.

    Let's do a test on your system to see if we can pinpoint the problem. Run the attached script and let me know the result shown in the Homeseer log.

    I also need to do a check on the data within the script.

    Find the line:

    If LogErrors="1" then hs.WriteLog("Jon00_Speedfan","Error at code block L " & ex.ToString)

    Add this line beneath.

    hs.writelog("Test","Sensordata: " & Sensordata & " LowValTrigger: " & LowValTrigger)

    Please let me know the result when you run the script. You can delete this line again once the test is complete.
    Attached Files
    Last edited by jon00; April 5, 2010, 02:03 AM.

    Leave a comment:


  • gjelsvik
    replied
    Thanks for your reply, but that didnt help. Speedfans log uses a comma ',' to separate values. Should i change that to a point '.' ?

    I also changed thed regional settings for the server runing HS so that the decimal separator is no longer comma. Still no luck.

    Leave a comment:

Working...
X