An open API service indexing awesome lists of open source software.

https://github.com/alexrogalskiy/weather-time

🌡️ Styled Weather Time API
https://github.com/alexrogalskiy/weather-time

typescript vercel-serverless-functions weather weather-api

Last synced: 4 months ago
JSON representation

🌡️ Styled Weather Time API

Awesome Lists containing this project

README

        

# *Weather Time*

> Generate SVG [weather-time](https://en.wikipedia.org/wiki/Weather)

![GitHub tag (latest by date)](https://img.shields.io/github/v/tag/AlexRogalskiy/weather-time)
![GitHub Release Date](https://img.shields.io/github/release-date/AlexRogalskiy/weather-time)
![Lines of code](https://tokei.rs/b1/github/AlexRogalskiy/weather-time?category=lines)
![GitHub closed issues](https://img.shields.io/github/issues-closed/AlexRogalskiy/weather-time)
![GitHub closed pull requests](https://img.shields.io/github/issues-pr-closed/AlexRogalskiy/weather-time)
![GitHub repo size](https://img.shields.io/github/repo-size/AlexRogalskiy/weather-time)
![GitHub last commit](https://img.shields.io/github/last-commit/AlexRogalskiy/weather-time)
![GitHub](https://img.shields.io/github/license/AlexRogalskiy/weather-time)
![GitHub language count](https://img.shields.io/github/languages/count/AlexRogalskiy/weather-time)
![GitHub search hit counter](https://img.shields.io/github/search/AlexRogalskiy/weather-time/goto)
![GitHub Repository branches](https://badgen.net/github/branches/AlexRogalskiy/weather-time)
![GitHub Repository dependents](https://badgen.net/github/dependents-repo/AlexRogalskiy/weather-time)

[![DeepSource](https://deepsource.io/gh/AlexRogalskiy/weather-time.svg/?label=active+issues\&show_trend=true)](https://deepsource.io/gh/AlexRogalskiy/weather-time/?ref=repository-badge)
[![DeepScan grade](https://deepscan.io/api/teams/11946/projects/16471/branches/354704/badge/grade.svg)](https://deepscan.io/dashboard#view=project\&tid=11946\&pid=16471\&bid=354704)
[![Codeac.io](https://static.codeac.io/badges/2-344897154.svg "Codeac.io")](https://app.codeac.io/github/AlexRogalskiy/weather-time)
[![Tokei](https://tokei.rs/b1/github/AlexRogalskiy/weather-time?category=lines)](https://github.com/XAMPPRocky/tokei)
![Mergify Status](https://img.shields.io/endpoint.svg?url=https://gh.mergify.io/badges/AlexRogalskiy/weather-time)
[![Reviewed by Hound](https://img.shields.io/badge/Reviewed_by-Hound-8E64B0.svg)](https://houndci.com)
[![DOI](https://zenodo.org/badge/344897154.svg)](https://zenodo.org/badge/latestdoi/344897154)
[![dependencies Status](https://status.david-dm.org/gh/AlexRogalskiy/weather-time.svg)](https://david-dm.org/AlexRogalskiy/weather-time)
[![devDependencies Status](https://status.david-dm.org/gh/AlexRogalskiy/weather-time.svg)](https://david-dm.org/AlexRogalskiy/weather-time?type=dev)

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://raw.githubusercontent.com/alexrogalskiy/weather-time/master/LICENSE?token=AH44ZFH7IF2KSEDK7LSIW3C7YOFYC)
[![Issue](https://img.shields.io/github/issues/alexrogalskiy/weather-time)](https://img.shields.io/github/issues/alexrogalskiy/weather-time)
[![Forks](https://img.shields.io/github/forks/alexrogalskiy/weather-time)](https://img.shields.io/github/forks/alexrogalskiy/weather-time)
[![Stars](https://img.shields.io/github/stars/alexrogalskiy/weather-time)](https://img.shields.io/github/stars/alexrogalskiy/weather-time)
![code style](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)
[![Maintainability](https://api.codeclimate.com/v1/badges/ed7702f8cf28917829fa/maintainability)](https://codeclimate.com/github/AlexRogalskiy/weather-time/maintainability)
[![Total alerts](https://img.shields.io/lgtm/alerts/g/AlexRogalskiy/weather-time.svg?logo=lgtm\&logoWidth=18)](https://lgtm.com/projects/g/AlexRogalskiy/weather-time/alerts/)
[![Language grade: JavaScript](https://img.shields.io/lgtm/grade/javascript/g/AlexRogalskiy/weather-time.svg?logo=lgtm\&logoWidth=18)](https://lgtm.com/projects/g/AlexRogalskiy/weather-time/context:javascript)

[![codebeat badge](https://codebeat.co/badges/54449d4d-e28c-45ed-9813-c62c36069ccb)](https://codebeat.co/projects/github-com-alexrogalskiy-weather-time-master)
[![Renovatebot](https://badgen.net/badge/renovate/enabled/green?cache=300)](https://renovatebot.com/)
[![Dependabot](https://img.shields.io/badge/dependabot-enabled-1f8ceb.svg?style=flat-square)](https://dependabot.com/)
[![NewReleases](https://newreleases.io/badge.svg)](https://newreleases.io/github/AlexRogalskiy/weather-time)
[![Hits-of-Code](https://hitsofcode.com/github/AlexRogalskiy/weather-time)](https://hitsofcode.com/github/AlexRogalskiy/weather-time/view)
[![ComVer](https://img.shields.io/badge/ComVer-compliant-brightgreen.svg)][tags]
![Website](https://img.shields.io/website?url=https://weather-time.vercel.app/api?layout=churchill)

[![codecov](https://codecov.io/gh/AlexRogalskiy/weather-time/branch/master/graph/badge.svg?token=QnpdaQgaoW)](https://codecov.io/gh/AlexRogalskiy/weather-time)
[![CI](https://github.com/AlexRogalskiy/weather-time/workflows/CI/badge.svg)](https://github.com/AlexRogalskiy/weather-time/actions/workflows/build.yml)
[![GitHub Super-Linter](https://github.com/AlexRogalskiy/weather-time/workflows/Lint%20Code%20Base/badge.svg)](https://github.com/marketplace/actions/super-linter)
[![GitHub JSON-Validator](https://github.com/AlexRogalskiy/weather-time/workflows/Validate%20JSONs/badge.svg)](https://github.com/OrRosenblatt/validate-json-action)
[![BCH compliance](https://bettercodehub.com/edge/badge/AlexRogalskiy/weather-time?branch=master)](https://bettercodehub.com/)

[![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/AlexRogalskiy/weather-time)
[![Chat](https://img.shields.io/badge/chat-discussions-success.svg)](https://github.com/AlexRogalskiy/weather-time/discussions)
[![Open questions](https://img.shields.io/badge/Open-questions-blue.svg?style=flat-curved)](https://github.com/AlexRogalskiy/weather-time/labels/question)
[![Open bugs](https://img.shields.io/badge/Open-bugs-red.svg?style=flat-curved)](https://github.com/AlexRogalskiy/weather-time/labels/bug)

## *Table of contents*

- [*Description*](#description)
- [*How to use*](#how-to-use)
- [*Example*](#example)
- [*Visitor stats*](#visitor-stats)
- [*Licensing*](#licensing)
- [*Authors*](#authors)
- [*Versioning*](#versioning)
- [*Contribution*](#contribution)
- [*Acknowledgement*](#acknowledgement)
- [*Forks*](#forks)
- [*Issues*](#issues)
- [*Team Tools*](#team-tools)
- [*OpenGraph Card*](#opengraph-card)
- [*Development Support*](#development-support)

## *Description*



TypeScript


Project Status: Active – The project has reached a stable, usable state and is being actively developed.


Project created status


Project updated status

***Weather Time*** is a serverless function that generates dynamically styled weather images based on SVG (Scalable Vector Graphics).
For the tech stack, ***Weather Time*** using Typescript and serverless function from Vercel stack.

## *How to use*

It's simple, you can copy paste this markdown content, like this one:

```
![Weather Time](https://weather-time.vercel.app/api?theme=[value]&layout=[value]&animation=[value]&bgColor=[value]&opacity=[value]&colorPattern=[value]&primaryColor=[value]&secondaryColor=[value]&width=[width]&height=[height])
```

There are several options you can use from the list:

| **Options** | **Description** | **Type** | **Example** | **Query Params** |
| ----------------------------- | ---------------------------------- | --------------------------------- | ------------------ | -------------------------- |
| **\[Theme]** | Theme of the image | String | default_repocard | `?theme=[value]` |
| **\[Layout]** | Layout of the image | String | churchill | `&layout=[value]` |
| **\[Animation]** | Animation of the image | String | grow_out_in | `&animation=[value]` |
| **\[Background Color]** | Background color of the image | Hex color code | ffffff | `&bgColor=[value]` |
| **\[Opacity Pattern]** | Opacity of the background pattern | Float number | 0 - 1 | `&opacity=[value]` |
| **\[Color Pattern]** | Color of the background pattern | Hex color code | 1abc9c | `&colorPattern=[value]` |
| **\[Primary Font Color]** | Primary font color of the text | Hex color code | 000000 | `&primaryColor=[value]` |
| **\[Secondary Font Color]** | Secondary font color of the text | Hex color code | 000000 | `&secondaryColor=[value]` |
| **\[Width]** | Image width | String | 100% | `&width=[value]` |
| **\[Height]** | Image height | String | 100% | `&height=[value]` |

Here is a list of supported image themes:

| **Name** | **Value** |
| --------------------------------- | ----------------------------- |
| **Default** | default |
| **Default repocard** | default_repocard |
| **Dark** | dark |
| **Radical** | radical |
| **Merko** | merko |
| **Gruvbox** | gruvbox |
| **Tokyo night** | tokyonight |
| **One dark** | onedark |
| **Cobalt** | cobalt |
| **Synth wave** | synthwave |
| **High contrast** | highcontrast |
| **Dracula** | dracula |
| **Prussian** | prussian |
| **Monokai** | monokai |
| **Vue** | vue |
| **Vue dark** | vue_dark |
| **Shades of purple** | shades_of_purple |
| **Night owl** | nightowl |
| **Buefy** | buefy |
| **Blue green** | blue_green |
| **Algolia** | algolia |
| **Great Gatsby** | great_gatsby |
| **Darcula** | darcula |
| **Bear** | bear |
| **Solarized dark** | solarized_dark |
| **Solarized light** | solarized_light |
| **Chartreuse dark** | chartreuse_dark |
| **Nord** | nord |
| **Gotham** | gotham |
| **Material pale night** | material_palenight |
| **Gray white** | graywhite |
| **Vision friendly dark** | vision_friendly_dark |
| **Ayu mirage** | ayu_mirage |
| **Midnight purple** | midnight_purple |
| **Calm** | calm |
| **Flag India** | flag_india |
| **Omni** | omni |
| **React** | react |
| **Jolly** | jolly |
| **Maroongold** | maroongold |
| **Yeblu** | yeblu |
| **Blueberry** | blueberry |
| **State orange** | slateorange |
| **Kacho ga** | kacho_ga |
| **Arabesque** | arabesque |

List of supported image layouts:

| **Name** | **Value** |
| --------------------------------- | ----------------------------- |
| **Default** | default |
| **Churchill** | churchill |
| **Pluto** | pluto |
| **Samuel** | samuel |
| **Socrates** | socrates |
| **Zues** | zues |

List of supported image animations:

| **Name** | **Value** |
| --------------------------------- | ----------------------------- |
| **Default** | default |
| **Grow-out-in** | grow_out_in |

## *Example*

This is example of using ***Weather Time***:

```
![Weather Time](https://weather-time.vercel.app/api?backgroundColor=%23FFFFFF&opacity=0.3&colorPattern=%23FFE0E9&fontColor=%230A83DC)
```

Result:


Weather Time

## *Visitor stats*

[![GitHub page hits](https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2FAlexRogalskiy%2Fweather-time\&count_bg=%2379C83D\&title_bg=%23555555\&icon=\&icon_color=%23E7E7E7\&title=hits\&edge_flat=true)](https://hits.seeyoufarm.com)

![GitHub stars](https://img.shields.io/github/stars/AlexRogalskiy/weather-time?style=social)
![GitHub forks](https://img.shields.io/github/forks/AlexRogalskiy/weather-time?style=social)
![GitHub watchers](https://img.shields.io/github/watchers/AlexRogalskiy/weather-time?style=social)

## *Licensing*

***Weather Time*** is distributed under LGPL version 3 or later, \[[License](https://github.com/AlexRogalskiy/weather-time/blob/master/LICENSE)].
LGPLv3 is additional permissions on top of GPLv3.

![license](https://user-images.githubusercontent.com/19885116/48661948-6cf97e80-ea7a-11e8-97e7-b45332a13e49.png)

## *Authors*

***Weather Time*** is maintained by the following GitHub team-members:

- [![Author](https://img.shields.io/badge/author-AlexRogalskiy-FB8F0A)](https://github.com/AlexRogalskiy)

with community support please contact with us if you have some question or proposition.

## *Versioning*

The project uses [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository][tags].

## *Contribution*

[![Contributors Display](https://badges.pufler.dev/contributors/AlexRogalskiy/weather-time?size=50\&padding=5\&bots=true)](https://badges.pufler.dev)

Please read
[CONTRIBUTING.md](https://github.com/AlexRogalskiy/weather-time/blob/master/.github/CONTRIBUTING.md)
for details on our code of conduct, and the process for submitting pull requests to us ([emoji key](https://allcontributors.org/docs/en/emoji-key)).

This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind are welcome!

[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)
![Github contributors](https://img.shields.io/github/all-contributors/AlexRogalskiy/weather-time)

See also the list of [contributors][contributors] who participated in this project.

## *Acknowledgement*

[![Stargazers repo roster for @AlexRogalskiy/weather-time](https://reporoster.com/stars/AlexRogalskiy/weather-time)][stars]

## *Forks*

[![Forkers repo roster for @AlexRogalskiy/weather-time](https://reporoster.com/forks/AlexRogalskiy/weather-time)][forkers]

## *Issues*

[![issuehunt-to-marktext](https://issuehunt.io/static/embed/issuehunt-button-v1.svg)](https://issuehunt.io/r/AlexRogalskiy/weather-time)

## *Team Tools*

[![alt tag](http://pylonsproject.org/img/logo-jetbrains.png)](https://www.jetbrains.com/)

***Weather Time*** Team would like inform that JetBrains is helping by provided IDE to develop the application. Thanks to its support program for an Open Source projects!

[![Edit with Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/AlexRogalskiy/weather-time)

***Weather Time*** has experimental support for Gitpod, a pre-configured development environment that runs in your browser. To use Gitpod, click the button below and sign in with GitHub. Gitpod also offers a browser add-on, though it is not required.

## *OpenGraph Card*


OpenGraph card

## *Development Support*

Like ***Weather Time*** ? Consider buying me a coffee :)

[![Become a Patron](https://img.shields.io/badge/Become_Patron-Support_me_on_Patreon-blue.svg?style=flat-square\&logo=patreon\&color=e64413)](https://www.patreon.com/alexrogalskiy)
[![Buy Me A Coffee](https://img.shields.io/badge/Donate-Buy%20me%20a%20coffee-yellow.svg?logo=buy%20me%20a%20coffee)](https://www.buymeacoffee.com/AlexRogalskiy)
[![KoFi](https://img.shields.io/badge/Donate-Buy%20me%20a%20coffee-yellow.svg?logo=ko-fi)](https://ko-fi.com/alexrogalskiy)

***

[![forthebadge](https://img.shields.io/badge/made%20with-%20typescript-C1282D.svg?logo=typescript\&style=for-the-badge)](https://www.typescriptlang.org/)
[![forthebadge](https://img.shields.io/badge/powered%20by-%20vercel-7116FB.svg?logo=vercel\&style=for-the-badge)](https://vercel.com/)
[![forthebadge](https://img.shields.io/badge/build%20with-%20%E2%9D%A4-B6FF9B.svg?logo=heart\&style=for-the-badge)](https://forthebadge.com/)

[repo]: https://github.com/AlexRogalskiy/weather-time

[tags]: https://github.com/AlexRogalskiy/weather-time/tags

[issues]: https://github.com/AlexRogalskiy/weather-time/issues

[pulls]: https://github.com/AlexRogalskiy/weather-time/pulls

[wiki]: https://github.com/AlexRogalskiy/weather-time/wiki

[stars]: https://github.com/AlexRogalskiy/weather-time/stargazers

[forkers]: https://github.com/AlexRogalskiy/weather-time/network/members

[contributors]: https://github.com/AlexRogalskiy/weather-time/graphs/contributors