• If you need help or want to discuss things, you now can also join us on our Discord Server!
  • A first preview of the unlimited version of SinusBot can be found in the Upcoming Changes thread. A version for Windows will follow, but we don't have a release date, yet.
Weather Information

Weather Information 1.3

No permission to download
Weather information

This script gives information about the weather forecast of a list of chosen cities as a channels description or name. You can define multiple channels and for each channel a list of cities. The script will cycle through these list on every update.

Installation
  • Move the script file to the script folder
  • Create an account on https://openweathermap.org to get your own API key
    • It can take up to 10 minutes to activate your new account
  • Save your API key in the script settings and set up your preferences
  • This is an english API so please dont use special characters, else you can get unaccurate information

Supported Placeholders for channel name and description

  • %city - City Name
  • %lat - City Latitude
  • %lon - City Longitude
  • %weather - Weather State
  • %wDesc - Short Description of the Weather
  • %t - Current Temperature in °C
  • %tmax - Max Temperature in °C
  • %tmin - Min Temperature in °C
  • %p - Pressure in hPa
  • %h - Humidity in %
  • %wSpeed - Windspeed in m/s

Also make sure the bot has sufficient permissions to edit the channels.



Feedback or suggestions are welcome.

==This Script was requested by Survivor1508==

Author
Tuetchen
Downloads
496
Views
7,375
First release
Last update
Rating
4.75 star(s) 12 ratings

More resources from Tuetchen

Latest updates

  1. Weather Information 1.3

    Compatibility to current Scripting Engine
  2. Weather Information 1.2

    Added Language Support for Weather Description (Weather State is unfortunatley not translateble...
  3. Weather Information 1.1

    I was stupid and uploaded a picture.

Latest reviews

scripts is good but the api is not free anymore
For those of you where the channel name does not update, check if the channel name will be generated to long. I had that issuse today.

Also if you want to have the feels like temperatur go to
/scripts/Weather_Information.js
and insert this somewhere between line 363 and 372:

str = str.replace(/%feel/g, convertTemperature(info.main.feels_like, shorten));

Now you can use %feel as placeholder to geht the feels like temperatur.
Thanks for publishing this fantastic script I like it very much.
Works beautifully!
Works fine!
works excellent!
I don't unserstand that with teh API
Very good but i don't understan the Placeholders, Can i get a Example please ?
Tuetchen
Tuetchen
What placeholder is not understandable?
You set a location in the config and with the placeholders you get the specific values for the configurated location
Very good :D
Gotta give it another 5 stars. AWESOME work man. Love it. Keep up the great work. Thanks.
Why am I trying to download this only shows me a picture?
Tuetchen
Tuetchen
Now it should work
Top