Notifications
Clear all

We appreciate the contributions many of you have been able to make towards repairing the storm damage and keeping a roof over our heads. With your help we’ve been able to complete much of the critical work. There is still work to be done to secure the house and your continued support will be a huge help.

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.

Httpget

7 Posts
2 Users
2 Reactions
189 Views
maricopajoe
(@maricopajoe)
Eminent Member Registered
Joined: 5 years ago
Posts: 24
Topic starter  

Seems like its not working either from the app or wttr.in. I'm getting doctype and html info that at one time, was working fine.


   
Quote
Topic Tags
Glenn
(@glenn)
Member Admin
Joined: 8 years ago
Posts: 1903
 

broken for me too.  i think something's changed.   I can't find the page that shows all the options.


   
ReplyQuote
maricopajoe
(@maricopajoe)
Eminent Member Registered
Joined: 5 years ago
Posts: 24
Topic starter  

@glenn It's likely not your app and something in wttr then  Things where working wonderfully after you helped me on this on my last request.


   
Glenn reacted
ReplyQuote
maricopajoe
(@maricopajoe)
Eminent Member Registered
Joined: 5 years ago
Posts: 24
Topic starter  

@glenn

curl is working fine on my linux vms btw

Here are the options from https://github.com/chubin/wttr.in

To specify your own custom output format, use the special %-notation:

    c    Weather condition,
    C    Weather condition textual name,
    x    Weather condition, plain-text symbol,
    h    Humidity,
    t    Temperature (Actual),
    f    Temperature (Feels Like),
    w    Wind,
    l    Location,
    m    Moon phase 🌑🌒🌓🌔🌕🌖🌗🌘,
    M    Moon day,
    p    Precipitation (mm/3 hours),
    P    Pressure (hPa),
    e    Dew point,
    u    UV index (1-12),

    D    Dawn*,
    S    Sunrise*,
    z    Zenith*,
    s    Sunset*,
    d    Dusk*,
    T    Current time*,
    Z    Local timezone.

   
ReplyQuote
Glenn
(@glenn)
Member Admin
Joined: 8 years ago
Posts: 1903
 

@maricopajoe I've tried everything mentioned there and there is no option that returns plain text.  I'm not sure if the option has changed, been removed or is broken..


   
ReplyQuote
maricopajoe
(@maricopajoe)
Eminent Member Registered
Joined: 5 years ago
Posts: 24
Topic starter  

@glenn Great minds think alike.  The google found https://github.com/chubin/wttr.in/issues/197?issue=chubin%7Cwttr.in%7C563

Using AT (ascii text) works fine.

Before:  HTTPGET=text:Current Weather,hide-no-result:1,font-size:8.75,style:lb,interval:1200,regex:null|[^\x00-\x7F]+,source: https://wttr.in/Cave_Creek?u&format=%25C+/+%25t+/+Feel:+%25f+/+%25w+/+%25p,display:%1,Wide:%1

After:

HTTPGET=text:Current Weather,hide-no-result:1,font-size:8.75,style:lb,interval:1200,regex:null|[^\x00-\x7F]+,source: https://wttr.in/Cave_Creek? ATu&format=%25C+/+%25t+/+Feel:+%25f+/+%25w+/+%25p,display:%1,Wide:%1

Returns ascii text...back in business

 


   
Glenn reacted
ReplyQuote
Glenn
(@glenn)
Member Admin
Joined: 8 years ago
Posts: 1903
 

@maricopajoe nice detective work.  I see in the docs about ansi and text but it doesn't actually say how to achieve that 😐


   
ReplyQuote
Glenn's Page