question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Changing the source of information (backend)?

See original GitHub issue

I’m trying to get minimal, maximal and current temperature for Zagreb. But no matter which way I try to get it, it simply doesn’t make sense. In #491 you say β€˜Use v2.wttr.in for more accuracy.’ Currently it is +3C according to the site, but the minimal and maximal temperatures for today are +5C to +15C. The real low for today was +2C. I’m not sure which api you’re using but I checked with wego and here is what those sources state:

backend min current max
worldweatheronline.com 7 3 15
darksky.net 2 8 11
openweathermap.com 4 4 10

Am I better off just scrapping a local news weather report?

curl 'wttr.in/Zagreb?format=v2'
β”Œβ”€  Weather report for: Zagreb  β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                                                                        β”‚
β”‚                                                                        β”‚
β”‚       Sun 08 Nov              Mon 09 Nov              Tue 10 Nov       β”‚
β”‚                       β•·                       β•·                        β”‚
β”‚                                                                        β”‚
β”‚                                                                        β”‚
β”‚+15         β’€β ”β ‰β ‰β ’β‘€                                                      β”‚
β”‚           β’ β ƒ    β ‘β‘„                  β’€β €β’„                                β”‚
β”‚          β’€β ‡      ⠈⠒                ⑔⠁  β ‘β’„                    β£€β’„β£€       β”‚
β”‚          ⑜         β ‘β‘„             ⑜      β £β‘€                β’€β Ž   β ‘β‘„     β”‚
β”‚         ⑰⠁          β ˆβ’†           ⠜        β ‘β‘„              β’€β Ž     ⠈⒣    β”‚
│⑏⠑⠀⑀    β’ β ƒ             β £β£€  β‘€     ⑜⠁         β ˆβ ’β‘€           β’€β Ž        β’‡   β”‚
│⑇  β ˆβ ’β£€β’€β‘ β ƒ                β ‰β ‰β ˆβ ‘β ’β£€β’€β Ž             β ˆβ ’β’„β‘€       β’€β Ž         β ˆβ‘†  β”‚
│⑇     ⠁                        ⠁                 β ˆβ ‘β €β‘€   β‘ β ƒ           β Έβ‘€ β”‚
│⑇                                                   β ˆβ ‰β ‰β ‰              β’‡ β”‚
β”‚+5                                                                    ⠸⠁│
β”‚                                                                        β”‚
│─────┴─────┼─────┴─────╂─────┴─────┼─────┴─────╂─────┴─────┼─────┴─────╂│
β”‚     6    12    18           6    12    18           6    12    18      β”‚
β”‚                                                                        β”‚
β”‚                                                                        β”‚
β”‚                                                                        β”‚
β”‚                                                                        β”‚
β”‚                                                                        β”‚
β”‚                                                                        β”‚
β”‚                                                                        β”‚
β”‚                                                                        β”‚
β”‚                                                                        β”‚
β”‚ β˜€  β˜€  β˜€  β˜€  β˜€  β˜€  β˜€  β˜€  β˜€  β›… β˜€  β›… β›… β›… β›… β›… β›… β›… β›… β›… β›… β›… β›… β›…β”‚
β”‚ β†—  β†—  β†—  β†—  ↑  β†–  ←  ↙  ↓  ↙  ↓  ↓  ↙  ←  ↙  ↓  β†—  ↓  β†–  ↙  ↙  ←  ↙  β†— β”‚
β”‚ 3  3  3  2  2  2  2  3  3  2  2  2  2  3  3  3  2  1  1  2  3  4  3  3 β”‚
β”‚                                                                        β”‚
β”‚πŸŒ—                     πŸŒ—                      πŸŒ—                     πŸŒ˜β”‚
β”‚       ─━━━━━━━━━─             ─━━━━━━━━━─             ─━━━━━━━━━─      β”‚
β”‚                                                                        β”‚
β”‚                                                                        β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
Weather: 🌫  Fog, +3°C, 93%, 0km/h, 1028hPa
Timezone: Europe/Zagreb
  Now:    11:09:27+0100 | Dawn:    06:14:27  | Sunrise: 06:46:48
  Zenith: 11:39:47      | Sunset:  16:32:18  | Dusk:    17:04:37
Location: Zagreb, Grad Zagreb, Hrvatska

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
chubincommented, Nov 9, 2020

@MasterMedo I agree with you that the backend wttr.in is currently using is pretty inaccurate, and we consider making it configurable (see #523, #526). We already started using OWM in some views (it is used in the v3 view, for example), but the plan is to make the backend configurable. Can you please take a look, does v3.wttr.in seem to be more accurate?

@rawho Rahul, this issue is pretty hard to start from; I suggest you considering one of these ones:

https://github.com/chubin/wttr.in/issues?q=is%3Aissue+is%3Aopen+label%3Aone-line

It is the one-line mode, and it is probably the easiest to start from. Could you please take a look at https://github.com/chubin/wttr.in/blob/master/lib/view/line.py and try to understand the code?

0reactions
chubincommented, Feb 28, 2021

I close this as a duplicate of #523 and #526

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to: Change the Backend - Telerik
The first step is to modify your FluentMetadataSource class, so that it uses the Backend Independent Mapping API for all string, char, decimal...
Read more >
Replacing Backend Data Sources at Congressional Quarterly
Replacing a backend data vendor can be one of the most intimidating projects for an established product. On the Congressional Quarterly (CQ)Β ...
Read more >
3 Ways You Can Build and Update Websites Using Data Pushes
Instant websites. From a UI/UX design perspective, you're able to build entire websites instantly, simply by replacing the back-end data source.
Read more >
Do I need to change source code of my website every time I ...
I have made a blog post website using html, css and JavaScript. But, every time I want to update or post a new...
Read more >
How should I inform my client that backend changes after a ...
Just tell them the facts. Hi. Unfortunately, using Firebase isn't a simple change to the project and would involve a significant amount ofΒ ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found