Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Shell Script in GeekTool trouble ...
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="TattooedMac" data-source="post: 940548" data-attributes="member: 101749"><p>Hello all.</p><p></p><p>Am a noob to this writing scripts and what not. I am ATM using GeekTool to make my active desktop and am not doing to bad. </p><p>I have been finding scripts and tweaking and playing with them to suit myself and very slowly learning the code.</p><p></p><p>My problem is the script i have for my weather is from a site on other side of the world and hasnt up to date info for where i live.</p><p></p><p>I havnt found away to make it run with my weather site i use here in Australia.</p><p>The URL other[s/ or most of the scripts are for <a href="http://www.wunderground.com" target="_blank">www.wunderland.com</a> and the code is </p><p></p><p>[CODE]curl http://m.wund.com/global/stations/94975.html|sed -n '21p' | sed -e 's/<span class="nowrap"><b>//g' | sed -e 's/<\/b.*//g'[/CODE]</p><p></p><p>And no i havnt had any joy with the code for the use of <span style="font-family: 'Arial Black'">lynx</span> so have to use curl.</p><p></p><p>I am wanting a script so i can use <a href="http://www.eldersweather.com.au/tas/lower-derwent/hobart?fc=9329" target="_blank">www.eldersweather.com</a></p><p></p><p>I have played with the above mentioned and for the life of me cant do it. </p><p></p><p>When i use Elders in the script i get " <: Code used in public domain" or something to that effect.</p><p>Can anyone point me in the right direction ?? Would be greatly appreciated.</p><p></p><p>ANd i really hope this all makes sense BC as i said before im so NEW to this code thing..</p><p></p><p>Thanks in advance people <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p></blockquote><p></p>
[QUOTE="TattooedMac, post: 940548, member: 101749"] Hello all. Am a noob to this writing scripts and what not. I am ATM using GeekTool to make my active desktop and am not doing to bad. I have been finding scripts and tweaking and playing with them to suit myself and very slowly learning the code. My problem is the script i have for my weather is from a site on other side of the world and hasnt up to date info for where i live. I havnt found away to make it run with my weather site i use here in Australia. The URL other[s/ or most of the scripts are for [url=http://www.wunderground.com]www.wunderland.com[/url] and the code is [CODE]curl http://m.wund.com/global/stations/94975.html|sed -n '21p' | sed -e 's/<span class="nowrap"><b>//g' | sed -e 's/<\/b.*//g'[/CODE] And no i havnt had any joy with the code for the use of [FONT="Arial Black"]lynx[/FONT] so have to use curl. I am wanting a script so i can use [url=http://www.eldersweather.com.au/tas/lower-derwent/hobart?fc=9329]www.eldersweather.com[/url] I have played with the above mentioned and for the life of me cant do it. When i use Elders in the script i get " <: Code used in public domain" or something to that effect. Can anyone point me in the right direction ?? Would be greatly appreciated. ANd i really hope this all makes sense BC as i said before im so NEW to this code thing.. Thanks in advance people :) [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Shell Script in GeekTool trouble ...
Top