Add weather data to your import
Last updated
Was this helpful?
In our example, the webshop data feed is called "Webshop". For more info on how to add your webshop data in Channable, check out our import support article.
Here we use the Dutch Buienradar data, which you import via the following link: https://data.buienradar.nl/1.0/feed/xml. However, it is also possible to use other weather data feeds.
Do not add your weather data feed just yet! First, you will have to create a link feed and follow a specific order when combining all data files. This is explained in the following steps.
To add the weather data to your current import you will need to combine both feeds. To combine feeds there needs to be a field and a value that is the same in both feeds. The webshop data feed and weather data feed in our example do not contain such a field, which is why we are going to add a field to the webshop data feed import.
We have chosen to use the field " stationnaam " as a shared field, but you could also use another unique identifier field like " stationcode ". Add this field to your project by going to Setup > Setup project fields, scroll down, and click on "Add project field" in the left bottom corner. You will see the following screen, fill in a name, and click "Save & import".
After you have added the field to the mapping of your webshop import, we will need to create a link feed to ensure the field is filled with the correct value. You can create a new XML export feed for this.
Within this feed, you will need to set up a rule which gives the "stationnaam" field the value of the chosen weather observation station, in this case, "Meetstation De Bilt".
After creating and saving the rule, you can set up the Finalize step by including the fields "id" and "stationnaam".
Finally, in the Preview step get the feed file URL — you will need this for the next step.
You now have three feeds: your webshop datafeed, the weather datafeed, and the linkfeed. In the Setup tab, you will need to combine these three feeds.
First, combine the link feed:
Fill in the feed file URL for the link feed.
In the mapping under "More options" choose "Combine on Field" to combine the imports on the field "id".
After this you should have two imports in your Setup import overview: your webshop data feed and the linkfeed.
Next, add the weather data feed:
Add the weather data feed.
In the mapping choose to combine the feed on the field "stationnaam" so that all data of the "Meetstation De Bilt" will be added to your items.
Important: In this feed also make sure the field "id" is set to "do not import" otherwise your product ID codes will be overwritten!
Last updated
Was this helpful?
Was this helpful?