Retrieving Weather ...
 
Notifications
Clear all

Retrieving Weather info with HTTPGET and wttr.in

3 Posts
2 Users
1 Reactions
199 Views
(@ratboyjim)
New Member Registered
Joined: 2 weeks ago
Posts: 1
Topic starter  

I am using the following statement to get weather information, but I cannot figure out how to set the text encoding to remove the extra characters. It shows fine in browsers, but not in desktopinfo.

HTTPGET=interval:600,source: http://wttr.in/chicago?u&format=Cond:+%C|Temp:+%t|Wind:+%w,display:%1,Wide:1 

   
Quote
Glenn
(@glenn)
Member Admin
Joined: 6 years ago
Posts: 1335
 

try adding a regex to filter out non ascii characters:

regex:[^\x00-\x7F]+

   
ReplyQuote
Glenn
(@glenn)
Member Admin
Joined: 6 years ago
Posts: 1335
 

btw the next release will have a little code to deal with json response in HTTPGET


   
RatboyJim reacted
ReplyQuote
Glenn's Page