When adding a location to a device via the API I would like to add a line break between the first and second line of the address.

For example how do I get this
123 Smith St.
New York, NY 10000

Out of this /api/setobjectproperty.htm?id=10000&name=location&value=123 Smith St. New York, NY 10000&username=user&password=PW


Article Comments

Attention: This article is a record of a conversation with the Paessler support team. The information in this conversation is not updated to preserve the historical record. As a result, some of the information or recommendations in this conversation might be out of date.

Sorry, this is not possible.


Jul, 2012 - Permalink

This is possible by putting "%od" between the 2 lines of location so your example would read: /api/setobjectproperty.htm?id=10000&name=location&value=123 Smith St.%0dNew York, NY 10000&username=user&password=PW

The location field will contain the correct data but the map may not display correctly until you manually go to the location box and press enter after the txt.


Jan, 2013 - Permalink

Sorry, the code in the first line should read "%0d" i.e. a zero not an "o".


Jan, 2013 - Permalink