Announcement

Collapse
No announcement yet.

UK Threat level

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

  • Gogs
    replied
    Originally posted by sjcato
    Gogs,


    I just checked and I too have had that error intermittently. It is a run rime error. I think the web page retrieve is failing to complete - possibly the page is overloaded.
    This would cause the variable b1 to become 0. I have added a check so the rest of the script is skipped if b1 is zero. This wont reset the status but won't give you the error message.

    Steve
    Thanks Steve,

    Downloaded the revised script, altered to reflect the changes to the Home Office web page, and it works great.

    Thanks for a good job.

    Leave a comment:


  • TrOjAn
    replied
    Originally posted by mdeakin
    Hi, I thought I might grab the bull by the horns and sent an email to the owners of the Home Office site. Not sure if I will ever get a response but I can but try :-)

    Will let you all know how I do :-)

    Look out the window if theres a knock at the door

    TrOjAn

    Leave a comment:


  • Guest's Avatar
    Guest replied
    Hi, I thought I might grab the bull by the horns and sent an email to the owners of the Home Office site. Not sure if I will ever get a response but I can but try :-)

    Will let you all know how I do :-)

    Leave a comment:


  • Guest's Avatar
    Guest replied
    Actually, just seen what the real problem is. They changed the site already - it went from "The current threat level is " to "The current terrorism threat level is "

    Just add the word "terrorism" to fix it in the script.

    When are government entities going to catch on that RSS is needed.

    Leave a comment:


  • Guest's Avatar
    Guest replied
    Gogs,


    I just checked and I too have had that error intermittently. It is a run rime error. I think the web page retrieve is failing to complete - possibly the page is overloaded.
    This would cause the variable b1 to become 0. I have added a check so the rest of the script is skipped if b1 is zero. This wont reset the status but won't give you the error message.

    Steve
    Attached Files

    Leave a comment:


  • Gogs
    replied
    Removed the txt bit, and now what an error
    Scripting runtime error: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: Argument 'Start' must be greater than zero. at Microsoft.VisualBasic.Strings.Mid(String str, Int32 Start, Int32 Length) at scriptcode5.scriptcode5.Main(Object param) --- End of inner exception stack trace --- at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) at Scheduler.VsaScriptHost.Invoke(String ModuleName, String MethodName, Object[] Arguments)
    Any sugestion, Jon?

    Leave a comment:


  • Gogs
    replied
    Originally posted by jon00
    Gogs,

    Its a VB.NET script. Steve added the .txt at the end to post it on the board. Just rename it as UKThreat.vb
    Ahh, that simple, OK.

    Thanks Jon.

    Leave a comment:


  • jon00
    replied
    Gogs,

    Its a VB.NET script. Steve added the .txt at the end to post it on the board. Just rename it as UKThreat.vb

    Leave a comment:


  • Gogs
    replied
    Originally posted by sjcato
    Dang it. I spent at least 10 minutes yesterday writing my own.
    I am trying your script too. Unfortunately I am getting the following error when I run it
    Running script, script run or compile error in file: UKThreat[1].vb.txt1006:Expected ')' in line 1 More info: Expected ')'


    I have had a look at the script and can find nothing wrong.

    Any Ideas?

    Leave a comment:


  • Gogs
    replied
    Originally posted by mdeakin
    Excellent stuff. I went for sjcato's in the end as I was after a simply 'critical', 'severe' etc so that I could then perform other actions when it changed.

    Thanks for ALL your efforts .. sterling work !
    I do not normally comment after I have altered another persons script.

    I went for Rupp's, it was the first published, and adapted it as all I wished was Critical etc.

    Like you I wished to "modify" the output. I have not tried sjcato's script; yet.

    The modifications I made to Rupp's script worked fine until they changed the alert status, I had not allowed for the complete string being changed, thought they would only change to actual status.

    So back to the drawing board so to speak.
    Last edited by Gogs; August 14th, 2006, 04:49 AM. Reason: Modifications failed when status changed.

    Leave a comment:


  • Guest's Avatar
    Guest replied
    Excellent stuff. I went for sjcato's in the end as I was after a simply 'critical', 'severe' etc so that I could then perform other actions when it changed.

    Thanks for ALL your efforts .. sterling work !

    Leave a comment:


  • Guest's Avatar
    Guest replied
    Dang it. I spent at least 10 minutes yesterday writing my own.
    Attached Files

    Leave a comment:


  • Rupp
    replied
    Ok,
    I wrote a quicky script and posted it here:

    http://board.homeseer.com/showthread...510#post726510

    Leave a comment:


  • TrOjAn
    replied
    mdeakin,

    I would suggest dropping our UK script genius Jon00 a line... he writes lots of useful stuff for us UK based people.. if its a site that can be scraped he will be able to do it if he isnt too busy.

    Normally I would ask but my donations only cover so much most of my HS has been Jon00`fied

    TrOjAn

    Leave a comment:


  • Rupp
    replied
    Here's the Homeland security script. It shouldn't be too hard to convert over.

    http://board.homeseer.com/showthread...light=homeland

    Leave a comment:

Working...
X