Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
	<locationSet id="meteoalarm">
		<csvFile>
			<file>meteoalarm</file>
			<geoDatum>WGS 1984</geoDatum>
			<id>%ID%</id>
			<name>%NAME%</name>
			<x>%X%</x>
			<y>%Y%</y>
			<attribute id="Green_DES_NL">
				<text>%Green_DES_NL%</text>
			</attribute>
			<attribute id="Green_DES_EN">
				<text>%Green_DES_EN%</text>
			</attribute>
			<attribute id="Green_INS_NL">
				<text>%Green_INS_NL%</text>
			</attribute>
			<attribute id="Green_INS_EN">
				<text>%Green_INS_EN%</text>
			</attribute>
			
			<attribute id="Yellow_DES_NL">
				<text>%Yellow_DES_NL%</text>
			</attribute>
			<attribute id="Yellow_DES_EN">
				<text>%Yellow_DES_EN%</text>
			</attribute>
			<attribute id="Yellow_INS_NL">
				<text>%Yellow_INS_NL%</text>
			</attribute>
			<attribute id="Yellow_INS_EN">
				<text>%Yellow_INS_EN%</text>
			</attribute>
			
			<attribute id="Orange_DES_NL">
				<text>%Orange_DES_NL%</text>
			</attribute>
			<attribute id="Orange_DES_EN">
				<text>%Orange_DES_EN%</text>
			</attribute>
			<attribute id="Orange_INS_NL">
				<text>%Orange_INS_NL%</text>
			</attribute>
			<attribute id="Orange_INS_EN">
				<text>%Orange_INS_EN%</text>
			</attribute>
			<attribute id="Red_DES_NL">
				<text>%Red_DES_NL%</text>
			</attribute>
			<attribute id="Red_DES_EN">
				<text>%Red_DES_EN%</text>
			</attribute>
			<attribute id="Red_INS_NL">
				<text>%Red_INS_NL%</text>
			</attribute>
			<attribute id="Red_INS_EN">
				<text>%Red_INS_EN%</text>
			</attribute>

		</csvFile>
	</locationSet>

 


The csv file might look as follows:

Code Block
ID;NAME;X;Y;REL_LOBITH;REL_EIJSDEN;Green_DES_NL;Green_INS_NL;Green_DES_EN;Green_INS_EN;Yellow_DES_NL;Yellow_INS_NL;Yellow_DES_EN;Yellow_INS_EN;Orange_DES_NL;Orange_INS_NL;Orange_DES_EN;Orange_INS_EN;Red_DES_NL;Red_INS_NL;Red_DES_EN;Red_INS_EN
DR;Drenthe;6.55;52.98;FALSE;FALSE;Alles is normaal;Niets doen;Everything is normal;Do nothing;Not so fine;Check website;Not so fine;Check website;Be careful;Ready for packing;Be careful;Ready for packing;We are in danger;Run;We are in danger;Run
FL;Flevoland;5.47;52.5;FALSE;FALSE;Alles is normaal;Niets doen;Everything is normal;Do nothing;Not so fine;Check website;Not so fine;Check website;Be careful;Ready for packing;Be careful;Ready for packing;We are in danger;Run;We are in danger;Run

 

...



As MeteoAlarmCap can generate multiple CAP files per forecast, 'exportFileName' create a folder that includes all exported CAP files. 'exportFileName' should be different for each export (e.g. each RWSoS system).

...

Code Block
xml
xml
<?xml version="1.0" encoding="UTF-8"?>
<alert xmlns="urn:oasis:names:tc:emergency:cap:1.2">
    <identifier>2.49.0.0.528.0.NL.180214155054.FL_OV</identifier>
    <sender>http://www.knmi.nl/nederland-nu/weer/waarschuwingen</sender>
    <sent>2018-02-15T14:48:17+00:00</sent>
    <status>Test</status>
    <msgType>Alert</msgType>
    <source>KNMI</source>
    <scope>Public</scope>
    <info>
        <language>ne-NL</language>
        <category>Met</category>
        <event>awareness_type=12,awareness_level=1</event>
        <responseType>None</responseType>
        <urgency>Future</urgency>
        <severity>Minor</severity>
        <certainty>Likely</certainty>
        <effective>2007-12-09T00:00:00+00:00</effective>
        <onset>2007-12-09T23:00:00+00:00</onset>
        <expires>2007-12-09T23:59:59+00:00</expires>
        <senderName>KNMI Koninklijk Nederlands Meteorologisch Instituut</senderName>
        <headline>Flooding - Geen waarschuwingen voor Overijssel - Nederland</headline>
        <web>http://meteoalarm.eu/ne-NL/0/0/NL016-Overijssel.html</web>
        <contact>informatiecentrum@knmi.nl</contact>
        <parameter>
            <valueName>awareness_type</valueName>
            <value>12; flooding</value>
        </parameter>
        <parameter>
            <valueName>awareness_level</valueName>
            <value>1; green; Minor</value>
        </parameter>
        <area>
            <areaDesc>desc_NL016</areaDesc>
            <geocode>
                <valueName>EMMA_ID</valueName>
                <value>NL016</value>
            </geocode>
        </area>
    </info>
</alert>

Exporting Updates and Cancels

When it is desired to update existing alerts instead of adding new ones a "feedsUrl" property can be configured:

<string key="feedsUrl" value="https://feeds-test.meteoalarm.org/feeds/meteoalarm-legacy-atom-netherlands"/>

The export will read from this url what the existing alerts are and compare them with the data for the export.

When there is data for a non existing alert, a new alert will be exported.

When there is different data for an existing alert and update will be send.

overrulingIdentifierElement

Because during development there have been differences detected between the production and test server an overrulingIdentifierElement property has been introduced which functions as a signal that some information needs to be taken from different elements or slightly corrected. So for the export to the test server the <string key="overrulingIdentifierElement" value="id"/> needs to be configured, for the production server this property should not be present.