forecastr v0.1.11 Forecastr.Renderer.PNG

PNG renderer Render from a list of text to PNG

Currently the PNG is generated only from the current weather forecast coming from the Forecastr.OWM module

The PNG will be written returned as binary buffer.

Link to this section Summary

Functions

Render a map coming from the backend (OWM API currently)

Render a map with the binary of the PNG and the name of the city from an ascii and a city name

Link to this section Functions

Link to this function render(map)
render(map()) :: {:ok, map()}

Render a map coming from the backend (OWM API currently)

Link to this function render_png(ascii, city_name)
render_png(list(), String.t()) :: {:ok, map()}

Render a map with the binary of the PNG and the name of the city from an ascii and a city name