Recommended Posts

Everyone,

I've uploaded the calendar and weather scripts to deskmod with example configs.

this is straight from judge...follow the link.

well, as you know that was in january, and since then deskmod has shutdown and lost their files .. therefor it isnt there anymore ..

I got a really great cfg from a guy, but when I try to load it I get an error saying cannot access Program Files??

Any ideas, I really like the cfg :o

You need to modify the config for your system, especially if it contains any graphics or system meters. You can't just load it and expect it to work fine. If there are system meters like CPU time, network interface meters etc, the config file has to be modded to your system settings before they will work. And any graphics files have to be placed on your computer and the config has to point to the right files.

I'm using Space Guy's configuration. But the Weather Forecast and Outlooks are all returning, "Not Yet Executed." The Scripts are in the right folder (under scripts in my Samurize directory.) So I load up the Samurize editing program, I change the zip codes and do a test run from there. But I get an error "Invalid argument or call: Mid"

Does anyone know what this may be?

Picture of error.

post-45-1064598437.jpg

first samurize cfg! played with it since last night, pretty cool app. basic info using a few active scripts, no weather.. go outside. :) britney's torso added for good measure.

You'll excuse me if I didnt look at your samurize script. I was just too distracted by the presence of a curvy hip. :drool: :bounce: :omg:

I'm using Space Guy's configuration. But the Weather Forecast and Outlooks are all returning, "Not Yet Executed." The Scripts are in the right folder (under scripts in my Samurize directory.) So I load up the Samurize editing program, I change the zip codes and do a test run from there. But I get an error "Invalid argument or call: Mid"

Does anyone know what this may be?

Picture of error.

me too :(

does this script aslo works with countries outside the us?

dim RefreshTime

'enter number of minutes you want to wait between refreshes from weather.com
RefreshTime = 40

Function CityName(ZipCode)
 CityName = GetText("Local Forecast for ", " (", 0, ZipCode)
End Function

Function Temp(ZipCode)
 Temp = GetText ("http://image.weather.com/web/common/wxicons/52/", "°F", 124,ZipCode)& "?"
end function

Function TempFeelsLike(ZipCode)
 feel = GetText ("Feels Like", "°F", 4, ZipCode)
 If feel = "N/A" then
  TempFeelsLike = Temp(ZipCode)
 else
  TempFeelsLike = feel & "?"
 end if
end function

Function TempAndTempFeel(ZipCode)
 If TempFeelsLike(ZipCode) = "" OR TempFeelsLik(ZipCode) = Temp(ZipCode) then
  TempAndTempFeel = Temp(ZipCode)
 else
  TempAndTempFeel = Temp(ZipCode) & " (" & TempFeelsLike(ZipCode) & ")"
 end if
end function

Function Symbol(ZipCode)
 dim icons
 icons = array("","B","B","D","D","A","B","A","B","B","B","B","B","A","A","A","A","D","B","","","","","","","","S","","R","","R","","Q","M","R","D","I","E","E","","A","A","A","R")
 icon = GetText ("SRC=http://image.weather.com/web/common/wxicons/52/", ".gif", 0, ZipCode)
 if icon > 43 then
  Symbol = ""
 else
  Symbol = icons(icon)
 end if
end function

Function Condition(ZipCode)
 Condition = GetText ("°F", "</B></TD>", 82,ZipCode)
end function

Function Humidity(ZipCode)
 Humidity = GetText ("Humidity:", "%", 47,ZipCode) & "%"
end function

Function Wind(ZipCode)
 Wind = GetText ("Wind:", "</TD>", 48,ZipCode)
 Wind = Replace (Wind, " ", " ")
end function

Function UVIndex(ZipCode)
 UVIndex = GetText ("UV Index:", "</TD>", 47,ZipCode)
 UVIndex = Replace (UVIndex, " ", " ")
end function

Function DewPoint(ZipCode)
 DewPoint = GetText ("Dew Point:", "°", 47,ZipCode) & "?"
end function

Function Visibility(ZipCode)
 Visibility = GetText ("Visibility:", "</TD>", 47,ZipCode)
end function

Function Pressure(ZipCode)
 Pressure = GetText ("Pressure:", "</TD>", 48,ZipCode)
end function

Function UpdateTime(ZipCode)
 UpdateTime = GetText (", at", " Time", 1,ZipCode)
 UpdateTime = Replace (UpdateTime, "Eastern ", "")
 UpdateTime = Replace (UpdateTime, "Mountain ", "")
 UpdateTime = Replace (UpdateTime, "Pacific ", "")
 UpdateTime = Replace (UpdateTime, "Central ", "")
 UpdateTime = Replace (UpdateTime, "Standard", "")
 UpdateTime = Replace (UpdateTime, "Daylight", "")
 If TimeDiff(ZipCode) > RefreshTime Then
  UpdateTime = UpdateTime & "(" & TimeDiff(ZipCode) & " mins)"
 End If

end function

Private Function path(ZipCode)
 path = GetTempPath & ZipCode & ".tmp"
End Function

Private Function GetTempPath
 set fso=CreateObject("Scripting.FileSystemObject")
 GetTempPath = fso.GetSpecialFolder(2) & "\weather.com.forecast\" 
 if not fso.FolderExists(GetTempPath) then 
  fso.CreateFolder(GetTempPath)
 End if
End Function

Private Function TimeDiff(ZipCode)
 dim fs,f,diff
 file = path(ZipCode)
 set fs=CreateObject("Scripting.FileSystemObject")
 if fs.fileexists(file) then
  set f=fs.GetFile(file)
  diff = datediff( "n", f.DateLastModified, now())
 else
  diff = -1
 end if
 set f=nothing
 set fs=nothing
 TimeDiff = diff
End Function

Private Function RandomNum
 Randomize Timer
 RandomNum = Int(Rnd * 1000)
end function

Private Function start(source, pos, offset)
 source = Mid(source, instr(source, pos)+len(pos)+offset)
 Start = Source
End Function

Private Function endd(source, pos, offset)
 source = Mid(source, 1, instr(source, pos)-1-offset)
 endd = Source
End Function

Private Function GetText(ini,Fin,offset,ZipCode)
 If TimeDiff(ZipCode) < 0 Then
  GetText = Writefile(ZipCode)       'file doesn't exist so fetch it
 Else
  If TimeDiff(ZipCode) > RefreshTime Then        'see if it needs refreshing
   GetText = Writefile(ZipCode) 'refresh it
  End If
 End If
 GetText = GetFileContents(ini,Fin,offset,ZipCode)           'read it's contents

End Function

Private Function GetFileContents(ini,Fin,offset,ZipCode)
 Set file_obj = CreateObject ("Scripting.FileSystemObject")
 Set file_path = file_obj.GetFile(path(ZipCode)) ' Creates the connection to the file
 set file = file_path.OpenAsTextStream (1, -2) ' Opens the file for reading
 html = file.readall
 File.Close ' Closes the file
 Set file_path = nothing ' Resets variable
 Set file_obj = nothing ' Resets variable
 html = start(html, ini, offset)
 html = endd(html, Fin, 0)
 GetFileContents = html
End Function

Private Function Writefile(ZipCode)
 GetURL = "http://beta.weather.com/weather/local/" & ZipCode & "?" & RandomNum

 Dim Http
 Set Http = CreateObject("Microsoft.XMLhttp")
 Http.Open "GET",GetURL,False
 Http.Send
 HtmlResult = Http.ResponseText
 Set Http = Nothing
 Set fs=CreateObject("Scripting.FileSystemObject")
 If (fs.FileExists(path(ZipCode))) Then
  Set aFile = fs.GetFile(path(ZipCode))
  aFile.Delete
  set aFile = nothing
 End If
 Set f=fs.CreateTextFile(path(ZipCode), true, true)
 f.Write HtmlResult
 f.Close
 Set f=Nothing
 Set fs=Nothing
End Function

what do i need to change in this config to make the temp in C instead of F?

can someone post me the calendar pic that is found in one of the posts in this super long thread?

it has a red top part

i tried to find it a while ago but its lost due to neowin's lost of data some time ago...

i also tried to pm the guy who posted the pic (i don't remember who)..no response..

Edited by hermit

sorry I know this has been requested before but I am looking for the script from judge like the one that is here

http://www.deviantart.com/view/1165070/

deskmod is down, samurize dosent have it, deviant dosent have it, the links at the first of the thread are dead also

if anyone has it or know if anywhere that does it would be appreciated

thanks

I don't think anyone has a copy of that script anymore, there must have been many html changes on weather.com from when judge originally made that to now, which means that the script would most likely no longer work. Just use his desktopweather script (v0.41 available at www.samurize.com and mod that yourself. You can get a similar effect quite easily.

Btw, here's something I came up with, after a hour or so tinkering.

My latest samurized desktop

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Formatting would be awesome if fully customised and then roll out the settings as a company wide standard.
    • I just want to know why the volume control feature in the browser version keeps appearing then disappearing, here today - gone tomorrow. Now it's gone again. Annoying as hell.
    • When you have only lies and blood libels to present, you've lost. And how hard is it for you to look up BBC and AP? You hate Jews, just admit it.
    • This article does not make sense and it’s very evident, the bug wasn’t confirmed to exist, because the application itself runs on editions of Windows which make it impossible to run Hyper-V VMs on, “Basically, Claude Desktop on Windows spins up a 1.8GB Hyper-V virtual machine if you use Claude Cowork or agent mode even once.”, suggests the bug is caused by something else otherwise it would only happen to users with the capability of running Hyper-V VMs and that’s only if Hyper-V was enabled which is by default not enabled. The true issue is that the author who reported the bug used the incorrect terminology, it’s actually a container, not a VM that is being started by the way. There were users on macOS reporting the same issue, Hyper-V, doesn’t exist on that platform obviously. Every single user who confirmed the problem in the last week was either using macOS making this issue impossible to be relevant to them, or was a comment talking about WSL, which the author indicated 3 months ago was disabled.
    • “To prevent hallucination issues and keep the database clean, the platform uses a multi-agent verification loop to check code quality.” - This absolutely isn’t happening. ”Before the massive rise of LLMs, which tanked its traffic by about 50% over the last couple of years, Stack Overflow was the go-to website for millions of programmers seeking coding solutions.” - It still is trusted, because the community of users, blocked other users from submitting false and misleading answers generated by AI agents that can be convinced something it generated is actually incorrect even if it’s actually correct. The company itself doesn’t know what it wants to be so it keeps trying and failing to introduce AI features to the platform. This effort will also fail, already submitted one successful poison pill, look forward to generating more.
  • Recent Achievements

    • One Month Later
      Sopa flores earned a badge
      One Month Later
    • First Post
      StaticMatrix earned a badge
      First Post
    • Week One Done
      StaticMatrix earned a badge
      Week One Done
    • Rookie
      lamborghiniv10 went up a rank
      Rookie
    • One Month Later
      pinnclepd earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      524
    2. 2
      PsYcHoKiLLa
      211
    3. 3
      +Edouard
      160
    4. 4
      Steven P.
      98
    5. 5
      ATLien_0
      83
  • Tell a friend

    Love Neowin? Tell a friend!