Hi there,
just like @raye showed his results with the new API feature in this thread API Weather App Example and Suggestions , I also tried out the new API feature in 6.4b3, but with data from a regional weather provider.
I need to say, the this was my first experience with loopers, but it turned out pretty good. Before I used a JSON plugin to import all the weather data from the external source, but now I can do this in Pro, which is amazing. This saves me a lot of money and one plugin less.
What I need to know is, is there a way to replace the imageURL from the external source? I did this before with the other plugin to replace the ugly weather icons which are in .png with my own .svg icons.
This i how I previously replaced the imgeURL with TWIG:
{% set iconurl = dayForecasts.0.symbol.imageUrl | replace({'http://daten.buergernetz.bz.it/services/weather/graphics/icons/imgsource/wetter/':'/img/weather_icons/' }) %}
{% set iconurl = iconurl | replace({'.png':'.svg' }) %}
<img src="{{iconurl}}" alt="{{dayForecasts.0.symbol.description}}" title="{{dayForecasts.0.symbol.description}}" width="auto"></br></br>
now this is the looper I have in Pro:
<img src="{{dc:looper:field key="dayForecasts.0.symbol.imageUrl"}}" alt="{{dc:looper:field key="dayForecasts.0.symbol.description"}}" title="{{dc:looper:field key="dayForecasts.0.symbol.description"}}" width="auto"></br></br>
Any advice?