# Weather (wttr.in)

**URL:** <https://dietpi.com/forum/t/weather-wttr-in/5544>\
**Category:** Requests\
**Created:** [27 July 2021 12:21 UTC](https://dietpi.com/forum/t/weather-wttr-in/5544 "2021-07-27T12:21:16Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Symorian](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/s/9de0a6/32.png) [@Symorian](https://dietpi.com/forum/u/Symorian)\
**Post date:** [27 July 2021 12:21 UTC](https://dietpi.com/forum/t/weather-wttr-in/5544/1 "2021-07-27T12:21:16Z")

</div>

Hello,

Weather (wttr.in) are very cool…but… my home use EBOX internet provider and my ip address are in montreal, but i live in portneuf-sur-mer QC and when i connect into SSH i see weather of montreal… not portneuf-sur-mer…

Can you make change for we can change manualy weather to good weater ?

Sorry for my english, i speak french.

Best Regards  
Ismael Cormier

---

<div class="post-metadata">

**Author:** ![Phillski](https://dietpi.com/forum/user_avatar/dietpi.com/phillski/32/29_2.png) [@Phillski](https://dietpi.com/forum/u/Phillski)\
**Post date:** [27 July 2021 13:24 UTC](https://dietpi.com/forum/t/weather-wttr-in/5544/2 "2021-07-27T13:24:28Z")

</div>

Hello Symorian  
you can use the code from this post [https://dietpi.com/forum/t/tutorial-ascii-weather/1909/1](https://dietpi.com/forum/t/tutorial-ascii-weather/1909/1) to add a weather shortcut to your bash.  
Then you can just type

```nohighlight
weather portneuf-sur-mer

```

to get the correct weather report.

To hardcode it to just that location then you can use the following code instead

```nohighlight
echo -e "\nfunction weather()\n{\nif [\$COLUMNS -lt 125]\nthen\n curl wttr.in/\portneuf-sur-mer?2n\nelse\n curl wttr.in/\portneuf-sur-mer\nfi\n}" >> ~/.bashrc && source ~/.bashrc

```

---

<div class="post-metadata">

**Author:** ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)\
**Post date:** [28 July 2021 11:52 UTC](https://dietpi.com/forum/t/weather-wttr-in/5544/3 "2021-07-28T11:52:19Z")

</div>

As a direct replacement, you could use a custom banner entry via dietpi-banner, using

```nohighlight
curl -sSfLm 3 https://wttr.in/portneuf-sur-mer?format=4

```

as command in the input box.

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [28 July 2021 11:57 UTC](https://dietpi.com/forum/t/weather-wttr-in/5544/4 "2021-07-28T11:57:09Z")

</div>

at least if customer entry is not already used for other purposes 😉

---

<div class="post-metadata">

**Author:** ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)\
**Post date:** [28 July 2021 16:53 UTC](https://dietpi.com/forum/t/weather-wttr-in/5544/5 "2021-07-28T16:53:37Z")

</div>

True. Multiple custom entries would be nice 🙄.

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [28 July 2021 17:19 UTC](https://dietpi.com/forum/t/weather-wttr-in/5544/6 "2021-07-28T17:19:14Z")

</div>

At least I use it to classify my system as Prod or Dev system as well as OS type 😉

---

<div class="post-metadata">

**Author:** ![trendy](https://dietpi.com/forum/user_avatar/dietpi.com/trendy/32/61_2.png) [@trendy](https://dietpi.com/forum/u/trendy)\
**Post date:** [29 July 2021 08:15 UTC](https://dietpi.com/forum/t/weather-wttr-in/5544/7 "2021-07-29T08:15:54Z")

</div>

You can have multiple custom entries:

```nohighlight
echo && echo "$(top -b -n 1 | head -n 3)" && free -h && echo && curl https://corona-stats.online/CZ && echo

```

---

<div class="post-metadata">

**Author:** ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)\
**Post date:** [31 July 2021 14:08 UTC](https://dietpi.com/forum/t/weather-wttr-in/5544/8 "2021-07-31T14:08:54Z")

</div>

True, but it doesn’t look as expected when not having the green dash in the front etc 🕶. But usable workaround until we have native multiple custom entries 🙂.

---

<div class="post-metadata">

**Author:** ![Symorian](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/s/9de0a6/32.png) [@Symorian](https://dietpi.com/forum/u/Symorian)\
**Post date:** [8 August 2021 20:41 UTC](https://dietpi.com/forum/t/weather-wttr-in/5544/9 "2021-08-08T20:41:53Z")

</div>

Thank you very much my friend !!! 🙂

> [@](#):
>
> Hello Symorian  
> you can use the code from this post [[Tutorial] ASCII Weather](https://dietpi.com/forum/t/tutorial-ascii-weather/1909/1) to add a weather shortcut to your bash.  
> Then you can just type
> 
> ```plaintext
> weather portneuf-sur-mer
> 
> ```
> 
> to get the correct weather report.
> 
> To hardcode it to just that location then you can use the following code instead
> 
> ```plaintext
> echo -e "\nfunction weather()\n{\nif [\$COLUMNS -lt 125]\nthen\n curl wttr.in/\portneuf-sur-mer?2n\nelse\n curl wttr.in/\portneuf-sur-mer\nfi\n}" >> ~/.bashrc && source ~/.bashrc
> 
> ```

---

<div class="post-metadata">

**Author:** ![Symorian](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/s/9de0a6/32.png) [@Symorian](https://dietpi.com/forum/u/Symorian)\
**Post date:** [8 August 2021 20:45 UTC](https://dietpi.com/forum/t/weather-wttr-in/5544/10 "2021-08-08T20:45:20Z")

</div>

Wow thank you my friend. 🙂

> [@](#):
>
> As a direct replacement, you could use a custom banner entry via dietpi-banner, using
> 
> ```plaintext
> curl -sSfLm 3 https://wttr.in/portneuf-sur-mer?format=4
> 
> ```
> 
> as command in the input box.
