Documentation ¶
Index ¶
- Constants
- func CloudsAllToEmoji(cloudsAll int) string
- func CurrentByName(update *tgbotapi.Update, bot **tgbotapi.BotAPI, userStates *map[int]user.State)
- func CurrentSendLocation(update *tgbotapi.Update, bot **tgbotapi.BotAPI, userStates *map[int]user.State)
- func DegToDirection(deg float64) string
- func FillWeatherFuncs(stateFuncDict *map[int]user.StateFunc)
- func ForecastByLocation(update *tgbotapi.Update, bot **tgbotapi.BotAPI, userStates *map[int]user.State)
- func ForecastByName(update *tgbotapi.Update, bot **tgbotapi.BotAPI, userStates *map[int]user.State)
- func ForecastOutput(w *owm.Forecast5WeatherList) string
- func SendForecast(w *owm.ForecastWeatherData, update *tgbotapi.Update, bot **tgbotapi.BotAPI)
- func SendInternalWeatherAPIError(update *tgbotapi.Update, bot **tgbotapi.BotAPI)
- func SendWrongLocation(update *tgbotapi.Update, bot **tgbotapi.BotAPI)
- func SendWrongPlaceName(update *tgbotapi.Update, bot **tgbotapi.BotAPI)
- func TransferToMmHg(pressure float64) float64
- func WeatherIdToEmoji(weatherID int) string
- func WeatherOutput(w *owm.CurrentWeatherData) string
Constants ¶
View Source
const ( PressureTransferConst = 0.7500637554192 MinWindDeg = 0 EastDeg = 90 SouthDeg = 180 WestDeg = 270 MaxWindDeg = 360 LayoutTime = "15:40" )
Variables ¶
This section is empty.
Functions ¶
func CloudsAllToEmoji ¶
func CurrentByName ¶
func CurrentSendLocation ¶
func DegToDirection ¶
func FillWeatherFuncs ¶
func ForecastByLocation ¶
func ForecastByName ¶
func ForecastOutput ¶
func ForecastOutput(w *owm.Forecast5WeatherList) string
func SendForecast ¶
func TransferToMmHg ¶
func WeatherIdToEmoji ¶
func WeatherOutput ¶
func WeatherOutput(w *owm.CurrentWeatherData) string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.