Weather API In Desk...
 
Notifications
Clear all

We had a major storm through here recently and we suffered damage to the house roof and ceilings. I just received the quote to repair. I’m hoping that a small fraction of the 80,000 odd people that download SDIO and/or Desktop Info every month won’t mind chipping in a few dollars to help out. Click on the big blue button at the bottom of the page to help us keep a roof over our heads, literally!

Guests have read-only access to our forums. If you wish to participate you will need to register. Be sure to activate your account from the email sent to you when you register.

Weather API In Desktop Info

5 Posts
2 Users
1 Reactions
135 Views
maricopajoe
(@maricopajoe)
Eminent Member Registered
Joined: 4 years ago
Posts: 15
Topic starter  

how can we add desktop info to have weather?  Alternatively we can use this:

curl "http://wttr.in/Cave_Creek?1AFnq"

 

 


   
Quote
Glenn
(@glenn)
Member Admin
Joined: 7 years ago
Posts: 1778
 

I use this one:

HTTPGET=interval:600, source: https://api.openweathermap.org/data/2.5/weather?q=Melbourne\,au&units=metric&APPID=4b2466af349e8ee536e44a976ba9c46c,  timeout:6000, set:weather2=%2 weather3=%3 weather4=%4 wicon=%1@2x.png,\
  json-keys:weather[0].icon weather[0].description clouds.all main.temp,\
  text:Weather, display:%2 Cloud:%3% Temp:%4[2.1f]°C

   
ReplyQuote
maricopajoe
(@maricopajoe)
Eminent Member Registered
Joined: 4 years ago
Posts: 15
Topic starter  

where would we add this?  just text=?  I'm also having trouble with the shift key moving the location of the app on screen.  Do we use this

MONITOR=set:sx=%4 sy=%5


   
ReplyQuote
Glenn
(@glenn)
Member Admin
Joined: 7 years ago
Posts: 1778
 

Posted by: @maricopajoe

where would we add this?

just copy and paste that anywhere in your [items] section

Posted by: @maricopajoe

I'm also having trouble with the shift key moving the location of the app on screen

You can add allowdrag=0 to the [options] section to prevent shift dragging. page 19.
Posted by: @maricopajoe

MONITOR=set:sx=%4 sy=%5

what are you trying to do?


   
ReplyQuote
maricopajoe
(@maricopajoe)
Eminent Member Registered
Joined: 4 years ago
Posts: 15
Topic starter  

@glenn Thank you Glenn.  I had an RTFM moment and it was found on page 19.

Excuse the oversight...

With DTI set to monitor-mode=1

top=0 right=0, it positions itself at the top right of the laptop display when it is out of the dock and the top

right of the secondary monitor when it is in the dock.


   
Glenn reacted
ReplyQuote
Glenn's Page