Page 8 of 8 FirstFirst ... 678
Results 71 to 77 of 77

Thread: "Weather.com" Converted Script for G4 / LUA 5

  1. #71
    Join Date
    Nov 2003
    Location
    Hove, E Sussex, UK
    Posts
    4,005

    Default

    Right, Thanks for that. Ok based on what you have said, I can get it doing it here. Will let you know when I manage to fix it...
    Thx, Dan

    Onwards and Upwards!
    http://www.danward.co.uk

  2. #72
    Join Date
    Nov 2003
    Location
    Hove, E Sussex, UK
    Posts
    4,005

    Default

    Ok Fixed, let me know if you still have problems.

    Sorry for the delay I had to have a bath.
    Thx, Dan

    Onwards and Upwards!
    http://www.danward.co.uk

  3. #73
    Join Date
    Mar 2005
    Location
    Los Angeles, CA
    Posts
    1,003

    Default

    Fantastic; it's working perfectly!

    Two recommendations:

    1. I put a win.Sleep( 5000 ) at the beginning of the LUA script for "Collect Weather on Girder Startup" in your GML, and that cleared up the errors on starting Girder. You could probably go shorter; I didn't experiment to find the minimum.

    2. I changed the loop at the very beginning of SendWeatherForecasttoNR in Weather Parser.lua to cycle from 0 to 4 instead of 1 to 4, and voila, I have access to today's forecast data in NetRemote... handy for knowing if there's a rainstorm on the way this afternoon!

    Best Regards,
    Tim

  4. #74
    Join Date
    Nov 2003
    Location
    Hove, E Sussex, UK
    Posts
    4,005

    Default

    Oh silly me.

    Why did I not think of that! Cool. The problem with win.sleep thou is it stops any other processing, if I remember correctly
    Thx, Dan

    Onwards and Upwards!
    http://www.danward.co.uk

  5. #75
    Join Date
    Nov 2003
    Location
    Hove, E Sussex, UK
    Posts
    4,005

    Default

    Tim,

    I have just made a webserver page for the weather stuff would you be interested? If not would you be interested in testing it for me?

    Nothing special, it is just a way to view all the data. Including todays forecast!
    Thx, Dan

    Onwards and Upwards!
    http://www.danward.co.uk

  6. #76
    Join Date
    Mar 2005
    Location
    Los Angeles, CA
    Posts
    1,003

    Default

    Sure; I'd love to check it out. I'm at tmorten@savagesite.com.

    One note on the Farenheit to Celsius; I was getting one (non-fatal) LUA error... TempHeadlineFeels was nil. I added a couple of lines (around line 110 in Weather Parser.lua) to fix it:

    wcd.TempHeadline = wcd.tmpF.." F"
    wcd.TempHeadlineFeels = wcd.flikF.." F"


    Cheers,
    Tim

  7. #77
    Join Date
    Nov 2003
    Location
    Hove, E Sussex, UK
    Posts
    4,005

    Default

    Thanks for that.

    I need to do a bit more work but once it is done I will send you a copy or upload it.
    Thx, Dan

    Onwards and Upwards!
    http://www.danward.co.uk

Page 8 of 8 FirstFirst ... 678

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •