Skip to content

ArnieTW/Streamer.bot-Weather-Command

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Streamer.bot Weather Command

This project provides a C# script for integrating weather information into Streamer.bot commands. It allows streamers to fetch and display current weather data during their streams using custom commands.

No subscription required! This script only uses free public services:

Global Values Logic

Set the following Global Variables in Streamer.bot to control the default weather location:

  • weather_default_city: The default city name (e.g., "London")
  • weather_default_lat: The latitude for the default city (e.g., "51.5074")
  • weather_default_lon: The longitude for the default city (e.g., "-0.1278")

How the script behaves:

  • No Global Values & No City Provided: Nothing will be shown; the command is ignored.
  • Only weather_default_city Set & No City Provided: The script will attempt to search for latitude and longitude for the default city using OpenStreetMap.
  • All Global Values Set & No City Provided: The weather for the specified latitude/longitude is returned immediately.
  • City Provided: The script will search for the coordinates of the provided city and return its weather.

If none of the global values are set and no city is provided, the command will not return any weather information and will be ignored.

Usage

  • Use <command> (e.g., !weather) to get the weather for your default location (as set in Global Variables).
  • Use <command> <city> (e.g., !weather Paris) to get the weather for a specific city (overrides the default).
  • The script works with Twitch, YouTube, and Kick, depending on your trigger setup in Streamer.bot.

Integration Steps

  1. Setup the trigger command (e.g., !weather).
  2. Setup the global variables as described above.
  3. Copy the contents of Execute C# code.cs into a C# code action in Streamer.bot.

Example commands:

  • !weather (shows weather for default location)
  • !weather Paris (shows weather for Paris)

Supported Platforms

  • Twitch
  • YouTube
  • Kick

Example

// ...existing code...
// Example usage in Streamer.bot:
// !weather London

License

This project is provided as-is for personal use. Please check the terms of your chosen weather API for usage restrictions.


Shoutout

I am a small streamer, please support me at twitch.tv/arnietw!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages