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

    • AB Download Manager 1.9.0 by Razvan Serea AB Download Manager is an open-source, feature-rich download manager designed to accelerate downloads, organize files efficiently, and provide seamless control over downloads. With support for multiple connections, resume capability, and an intuitive interface, it enhances the downloading experience for users seeking speed and reliability. The software integrates with various browsers, enabling quick link grabbing and batch downloading. It supports HTTP, HTTPS, and FTP protocols, ensuring broad compatibility with different file sources. Users can schedule downloads, set speed limits, and categorize files automatically for better organization. AB Download Manager is lightweight yet powerful, making it a great alternative to proprietary download managers. Its open-source nature allows developers to contribute, customize, and improve the software as needed. Whether you're downloading large files, managing multiple downloads at once, or seeking an ad-free experience, this tool offers a practical and efficient solution. Key features of AB Download Manager: Multi-Connection Support – Accelerates downloads by splitting files into multiple segments. Resume Capability – Allows paused or interrupted downloads to be resumed without starting over. Batch Downloading – Supports downloading multiple files at once for improved efficiency. Browser Integration – Captures download links directly from browsers for seamless operation. HTTP, HTTPS, and FTP Support – Ensures compatibility with a wide range of file sources. Download Scheduling – Enables users to automate downloads at specific times. Speed Limiting – Lets users control bandwidth usage for optimized performance. File Categorization – Automatically organizes downloaded files into designated folders. User-Friendly Interface – Simple and intuitive design for easy navigation. Cross-Platform Compatibility – Works on multiple operating systems. Ad-Free Experience – No intrusive ads or tracking for a clean user experience. AB Download Manager 1.9.0 changelog: Added Czech language support User-friendly error messages for download errors (#1252) An option to remember the last selected queue and quickly add downloads to it by long-clicking the Add button ( #1246) An option to export/import downloads using JSON format A Download button on the multi-download page for cases where users do not want to start downloads without queue processing (#1247) The app now includes a logger that can be enabled using a command-line flag (#1226) Startup errors are now logged automatically to help diagnose initialization issues Changed The default unqueued "Max Concurrent Downloads" value has been changed from "Unlimited" to 3 (This can be customized in the app settings) Improved Updated translations Added an indicator on the Android main page when resume is not supported (#1248) Extract the file name from the download link as a fallback when no response information is available (#1209) Minor UI/UX improvements Download: AB Download Manager 1.9.0 | Portable | ~80.0 MB (Open Source) Download: ARM64 | Portable ARM64 | Android Links: AB Download Manager Website | Github Page | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • I just started using Teams (and “New” Oiutlook) at work (instead of Slack) and both are truly abysmal pieces of software.
  • Recent Achievements

    • First Post
      DragonOfMercy earned a badge
      First Post
    • First Post
      bella52 earned a badge
      First Post
    • Reacting Well
      Techinmay earned a badge
      Reacting Well
    • Collaborator
      WndSks went up a rank
      Collaborator
    • One Month Later
      Sopa flores earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      491
    2. 2
      PsYcHoKiLLa
      205
    3. 3
      +Edouard
      153
    4. 4
      Steven P.
      84
    5. 5
      ATLien_0
      74
  • Tell a friend

    Love Neowin? Tell a friend!