Documentation

Weather Channel

Script responsável por exibir conteúdos p/ previsão de tempo.

Obs.: esse script tem cache de 1 hora, existem alguns atributos:

  • LOCALE, exemplo:
    • pt-BR
    • en-US
  • CITY_ID, exemplo:
    • BRXX0050 (Campinas)

https://content.scripts.farolsign.com.br/dynamic/feed/weather-channel/<LOCALE>/<CITY_ID>


Exemplo:

<?xml version="1.0"?>
<root>
    <info>
        <date>
            <created>2021-01-18 19:15:27</created>
            <published>2021-01-18 19:14:35</published>
        </date>
        <location>
            <city>Campinas</city>
        </location>
    </info>
    <now>
        <temp>27</temp>
        <prospect>
            <temp>
                <max>31</max>
                <min>22</min>
            </temp>
        </prospect>
        <midia>
            <icon>http://localhost/images/weather-channel/30_icon.png</icon>
            <background>http://localhost/images/weather-channel/30_bg.jpg</background>
        </midia>
    </now>
    <forecasts>
        <item>
            <weekday>Segunda</weekday>
            <phrases>
                <pop>Tempestades. M&#xED;nima de 20&#xB0;C.</pop>
                <narrative>Tempestades. M&#xED;nima de 20&#xB0;C.</narrative>
            </phrases>
            <temp>
                <max>31</max>
                <min>22</min>
            </temp>
            <midia>
                <icon>http://localhost/images/weather-channel/30_icon.png</icon>
            </midia>
        </item>
        <item>
            <weekday>Ter&#xE7;a</weekday>
            <phrases>
                <pop>Tempestades</pop>
                <narrative>Tempestades. M&#xE1;ximas de 28 a 30&#xB0;C e m&#xED;nimas de 20 a 22&#xB0;C.</narrative>
            </phrases>
            <temp>
                <max>29</max>
                <min>21</min>
            </temp>
            <midia>
                <icon>http://localhost/images/weather-channel/4_icon.png</icon>
            </midia>
        </item>
        <item>
            <weekday>Quarta</weekday>
            <phrases>
                <pop>Tempestades</pop>
                <narrative>Muito nublado. M&#xE1;ximas de 31 a 33&#xB0;C e m&#xED;nimas de 20 a 22&#xB0;C.</narrative>
            </phrases>
            <temp>
                <max>32</max>
                <min>21</min>
            </temp>
            <midia>
                <icon>http://localhost/images/weather-channel/4_icon.png</icon>
            </midia>
        </item>
        <item>
            <weekday>Quinta</weekday>
            <phrases>
                <pop>Tempestades cedo</pop>
                <narrative>Parcialmente nublado. M&#xE1;ximas de 30 a 32&#xB0;C e m&#xED;nimas de 19 a 21&#xB0;C.</narrative>
            </phrases>
            <temp>
                <max>31</max>
                <min>20</min>
            </temp>
            <midia>
                <icon>http://localhost/images/weather-channel/47_icon.png</icon>
            </midia>
        </item>
        <item>
            <weekday>Sexta</weekday>
            <phrases>
                <pop>Encoberto</pop>
                <narrative>Tempestades se formando &#xE0; tarde. M&#xE1;ximas de 31 a 33&#xB0;C e m&#xED;nimas de 19 a 21&#xB0;C.</narrative>
            </phrases>
            <temp>
                <max>32</max>
                <min>20</min>
            </temp>
            <midia>
                <icon>http://localhost/images/weather-channel/28_icon.png</icon>
            </midia>
        </item>
    </forecasts>
</root>