URL/api/v1/configure_measuring_point
Configure a measuring point.
- Parameters:
- measuring_point_id:
- The ID of the measuring point which you'd like to configure. If omitted it will create a new measuring point.
Expects the body of the request to be a JSON dictionary.
Note that all values passed are expected to be in the user profiles unit of distance.
Also note that it will be removed from a project if coupled to one when using the API.
The following can be set using the API
- Body options:
- name:
- Name for the measuring point
- sensor_name:
- six letter name which is located on the front sticker, can be blank for no Swarm connected
- postal_code (optional):
- Postal code
- house_number (optional):
- House number
- street_name (optional):
- Street name
- city (optional):
- City
- disable_led:
- true or false, setting it to true will turn of the led on the front of the Swarm
when there is an active connection to the server.
- log_flush_interval:
- Interval in seconds, when there are measurements which didn't cause an alarm they will
be send at this interval.
- timezone:
- The timezone in which the Swarm is. One of: Pacific/Johnston, PRC, Etc/GMT+2, Etc/GMT-1, America/Grenada, Canada/Saskatchewan, Asia/Gaza, America/Martinique, Europe/Mariehamn, Asia/Thimphu, America/Toronto, Antarctica/Macquarie, Australia/Hobart, America/Indiana/Marengo, Europe/Istanbul, Europe/Astrakhan, America/Metlakatla, Australia/Currie, Africa/Abidjan, Etc/GMT-3, Europe/Simferopol, America/Rankin_Inlet, Canada/Mountain, Asia/Almaty, America/Guayaquil, Asia/Rangoon, Pacific/Rarotonga, Atlantic/Reykjavik, Asia/Oral, EST5EDT, Europe/Bucharest, America/St_Kitts, Europe/Zaporozhye, America/Denver, Asia/Singapore, Europe/Isle_of_Man, Hongkong, America/Porto_Acre, Australia/Lord_Howe, America/Puerto_Rico, America/El_Salvador, Asia/Hong_Kong, Asia/Krasnoyarsk, America/Boa_Vista, America/Montreal, Australia/Lindeman, Pacific/Kanton, Libya, Europe/Riga, America/Antigua, Africa/Lubumbashi, America/Glace_Bay, America/Montevideo, Europe/Budapest, Indian/Kerguelen, GMT0, Asia/Ashkhabad, Asia/Dacca, Australia/ACT, Etc/GMT-14, UCT, America/Asuncion, Etc/GMT+10, Africa/Nairobi, Asia/Chita, Chile/Continental, Etc/GMT, America/Resolute, Asia/Famagusta, CST6CDT, Asia/Macau, America/Ojinaga, America/Mendoza, Europe/Kiev, Chile/EasterIsland, Asia/Makassar, America/Jujuy, Europe/Stockholm, Brazil/East, America/Inuvik, America/Iqaluit, Asia/Yangon, Asia/Yekaterinburg, Asia/Vientiane, Etc/UCT, America/Catamarca, Asia/Kathmandu, Zulu, America/Argentina/Mendoza, Etc/GMT+7, America/Argentina/La_Rioja, Asia/Pontianak, Antarctica/Davis, Europe/Copenhagen, America/Cambridge_Bay, America/Noronha, Asia/Baku, Atlantic/Canary, Africa/Porto-Novo, Pacific/Yap, America/Argentina/ComodRivadavia, Iceland, Etc/GMT-11, Antarctica/Palmer, America/Cordoba, America/Matamoros, Antarctica/McMurdo, Asia/Tel_Aviv, Pacific/Enderbury, America/Indiana/Vevay, Africa/Bissau, Europe/Tallinn, America/Port-au-Prince, Africa/Freetown, Indian/Antananarivo, America/Regina, Australia/North, Asia/Ho_Chi_Minh, America/Guyana, America/Yakutat, Asia/Choibalsan, Singapore, Etc/GMT-10, America/Merida, Indian/Maldives, America/Juneau, Africa/Algiers, America/Rio_Branco, Africa/Tripoli, Africa/Kampala, Europe/Saratov, America/Argentina/Cordoba, America/Goose_Bay, Africa/Luanda, America/Grand_Turk, Portugal, America/Dawson, Pacific/Fakaofo, Africa/Dakar, Jamaica, Pacific/Bougainville, Asia/Qostanay, America/Nassau, Europe/Kirov, Africa/Banjul, America/Fort_Wayne, MST7MDT, Australia/South, Asia/Istanbul, America/Buenos_Aires, Africa/Lome, America/Blanc-Sablon, Asia/Brunei, Europe/Jersey, Etc/GMT-0, Africa/Malabo, America/Virgin, America/Paramaribo, Universal, Africa/Monrovia, America/Indiana/Indianapolis, America/Porto_Velho, Australia/Perth, Europe/Paris, NZ, Africa/Ceuta, Pacific/Kiritimati, America/Scoresbysund, Atlantic/Stanley, Mexico/BajaSur, Asia/Dushanbe, W-SU, America/Nipigon, Asia/Kuala_Lumpur, Etc/GMT+3, Navajo, Asia/Muscat, GMT-0, America/Campo_Grande, America/Argentina/Buenos_Aires, America/Belem, Asia/Khandyga, Australia/Eucla, Asia/Urumqi, America/Chihuahua, Europe/Luxembourg, Asia/Barnaul, America/Los_Angeles, Europe/Warsaw, America/Aruba, Asia/Aqtobe, Etc/GMT+4, Asia/Seoul, Israel, Africa/Maseru, Europe/Belfast, Europe/Zagreb, Antarctica/Rothera, Europe/Monaco, America/Detroit, Asia/Nicosia, America/Indiana/Petersburg, America/St_Johns, Asia/Anadyr, Asia/Phnom_Penh, Canada/Atlantic, America/Tijuana, Pacific/Port_Moresby, Europe/Vatican, Asia/Katmandu, America/Costa_Rica, Asia/Macao, Asia/Hovd, Asia/Tashkent, America/Montserrat, Pacific/Pohnpei, US/Aleutian, Africa/Nouakchott, Europe/Berlin, Africa/Windhoek, Asia/Dhaka, America/Santiago, Australia/NSW, America/Danmarkshavn, Pacific/Samoa, US/Alaska, Europe/Oslo, Australia/West, Asia/Harbin, America/Sitka, US/Samoa, Africa/Gaborone, Pacific/Palau, Etc/GMT+11, Europe/Chisinau, Pacific/Pago_Pago, Asia/Dubai, America/Belize, Europe/Minsk, GB-Eire, Europe/Sarajevo, Europe/Podgorica, Japan, Asia/Ulaanbaatar, Pacific/Gambier, Indian/Comoro, America/Havana, Antarctica/Casey, WET, America/Pangnirtung, Etc/UTC, America/Eirunepe, Africa/Dar_es_Salaam, Greenwich, Europe/Lisbon, America/Shiprock, Africa/Blantyre, Asia/Kashgar, America/Jamaica, Canada/Eastern, US/Eastern, Africa/Bamako, Europe/Andorra, Asia/Chongqing, Australia/Darwin, Antarctica/Vostok, Etc/GMT0, America/Monterrey, America/Knox_IN, Atlantic/South_Georgia, Etc/GMT+0, America/Tortola, Atlantic/Faroe, America/Dominica, Etc/Universal, Eire, America/Kentucky/Monticello, America/Hermosillo, Egypt, America/Swift_Current, Africa/Mogadishu, Africa/Bujumbura, Australia/Sydney, Asia/Kamchatka, Etc/GMT-8, America/Manaus, Asia/Jakarta, Africa/Johannesburg, America/Indiana/Winamac, Australia/Queensland, Pacific/Truk, Pacific/Chuuk, America/Marigot, Asia/Sakhalin, America/Argentina/San_Luis, Europe/Prague, EST, America/Argentina/Tucuman, Atlantic/Jan_Mayen, Australia/Brisbane, Brazil/Acre, Asia/Tokyo, Europe/Busingen, America/La_Paz, Europe/Madrid, America/Indiana/Vincennes, Asia/Dili, Europe/Tirane, America/Argentina/Catamarca, MET, US/Arizona, America/Cayenne, Pacific/Apia, Africa/Casablanca, Etc/GMT-12, Africa/Khartoum, Asia/Bahrain, Asia/Amman, America/Vancouver, Europe/Vilnius, Pacific/Easter, Indian/Chagos, Pacific/Nauru, Etc/GMT+8, Europe/Samara, Pacific/Pitcairn, America/St_Thomas, Africa/Kinshasa, Antarctica/Mawson, EET, America/Barbados, Europe/Zurich, Asia/Bishkek, America/Santa_Isabel, US/East-Indiana, Europe/Helsinki, America/Rosario, America/Port_of_Spain, Asia/Aqtau, America/Ensenada, Europe/Athens, Africa/Timbuktu, Mexico/BajaNorte, PST8PDT, US/Indiana-Starke, Etc/GMT+6, Australia/Victoria, Australia/LHI, America/Boise, Pacific/Ponape, GMT, America/Anguilla, Europe/San_Marino, America/Lima, Europe/Bratislava, Etc/GMT-4, Etc/GMT-9, Africa/Mbabane, Asia/Novosibirsk, Asia/Srednekolymsk, Pacific/Guam, Europe/Gibraltar, Pacific/Norfolk, America/Santarem, Asia/Jayapura, Asia/Atyrau, Etc/GMT-2, US/Central, US/Mountain, Africa/Ndjamena, America/Atka, America/Godthab, Africa/Niamey, America/Araguaina, Europe/London, CET, ROK, Europe/Vienna, GMT+0, Etc/Zulu, Europe/Ljubljana, Asia/Ujung_Pandang, America/North_Dakota/Center, Etc/GMT-5, Asia/Novokuznetsk, America/Caracas, Europe/Ulyanovsk, America/Winnipeg, America/Whitehorse, America/Indianapolis, America/Mazatlan, Africa/Djibouti, Asia/Riyadh, Europe/Nicosia, Etc/GMT-13, Canada/Pacific, Pacific/Wake, America/Coral_Harbour, Asia/Tehran, Asia/Jerusalem, Canada/Central, Canada/Yukon, America/Yellowknife, Asia/Irkutsk, Europe/Dublin, Etc/GMT+1, Asia/Ulan_Bator, Australia/Adelaide, Pacific/Marquesas, Asia/Saigon, America/Argentina/Ushuaia, America/Argentina/Salta, America/Bahia_Banderas, Indian/Mayotte, Pacific/Efate, Atlantic/Azores, Atlantic/Faeroe, Europe/Vaduz, Europe/Belgrade, America/Chicago, Asia/Taipei, America/Menominee, America/St_Lucia, Australia/Tasmania, America/Moncton, Etc/GMT+5, Indian/Mahe, America/Kralendijk, Asia/Omsk, Canada/Newfoundland, Etc/GMT-6, Europe/Tiraspol, Africa/Maputo, Indian/Mauritius, US/Pacific, Etc/GMT+9, America/Creston, Africa/Libreville, America/Fort_Nelson, Pacific/Saipan, Asia/Shanghai, Europe/Kaliningrad, Europe/Brussels, America/Argentina/Rio_Gallegos, Asia/Hebron, Asia/Bangkok, Indian/Reunion, Asia/Manila, America/Atikokan, America/Guadeloupe, Asia/Qatar, Pacific/Auckland, Kwajalein, Africa/Brazzaville, Africa/Juba, Asia/Chungking, US/Hawaii, America/Nuuk, Asia/Yerevan, Pacific/Galapagos, Africa/Douala, America/Nome, UTC, Asia/Damascus, Africa/Asmara, America/Louisville, Indian/Cocos, America/Adak, Asia/Ashgabat, Pacific/Funafuti, Asia/Kuching, ROC, Europe/Skopje, Africa/Addis_Ababa, America/Guatemala, Asia/Aden, Antarctica/Syowa, Brazil/West, Africa/Asmera, Europe/Uzhgorod, America/Tegucigalpa, HST, America/St_Vincent, America/Curacao, Africa/Lusaka, Pacific/Midway, Pacific/Tongatapu, America/Punta_Arenas, Africa/Conakry, America/Panama, Asia/Vladivostok, NZ-CHAT, Asia/Beirut, Atlantic/Bermuda, Pacific/Guadalcanal, Arctic/Longyearbyen, Antarctica/DumontDUrville, America/Dawson_Creek, America/Cayman, America/Cuiaba, America/Anchorage, Brazil/DeNoronha, Atlantic/St_Helena, Pacific/Kwajalein, America/Bahia, America/Phoenix, Antarctica/South_Pole, America/Sao_Paulo, America/North_Dakota/New_Salem, Atlantic/Madeira, US/Michigan, Africa/Sao_Tome, America/Fortaleza, Asia/Ust-Nera, Asia/Samarkand, Asia/Karachi, Africa/Accra, Australia/Melbourne, Australia/Yancowinna, Asia/Magadan, Europe/Rome, America/Managua, Asia/Kabul, America/Lower_Princes, Africa/Ouagadougou, Etc/Greenwich, America/St_Barthelemy, Asia/Tbilisi, America/Edmonton, Africa/Kigali, America/Rainy_River, GB, Europe/Sofia, America/Bogota, Pacific/Majuro, Africa/Cairo, Asia/Tomsk, Africa/Tunis, America/Thule, America/Indiana/Tell_City, America/Argentina/Jujuy, America/Santo_Domingo, Atlantic/Cape_Verde, America/Cancun, Pacific/Honolulu, Asia/Kolkata, Iran, Asia/Kuwait, America/New_York, Europe/Malta, Asia/Yakutsk, America/Maceio, America/Kentucky/Louisville, Mexico/General, Australia/Broken_Hill, Pacific/Fiji, Asia/Colombo, Etc/GMT-7, America/Halifax, America/Argentina/San_Juan, Asia/Qyzylorda, Europe/Amsterdam, Indian/Christmas, MST, Asia/Calcutta, Pacific/Tarawa, Turkey, Cuba, Europe/Volgograd, America/Miquelon, Europe/Guernsey, Europe/Moscow, Pacific/Noumea, Pacific/Kosrae, Africa/Harare, America/Recife, Etc/GMT+12, America/Indiana/Knox, Asia/Baghdad, Pacific/Chatham, America/North_Dakota/Beulah, Africa/Lagos, Africa/Bangui, Asia/Pyongyang, America/Mexico_City, Poland, Pacific/Wallis, Australia/Canberra, Pacific/Tahiti, Pacific/Niue, Asia/Thimbu, America/Thunder_Bay, Antarctica/Troll, Africa/El_Aaiun
- guide_line:
- One of: DIN4150_2, ISEE_250Hz, SS_4604861, IN1226, SBR_A_2017, SN640312a, SS_025211, DIN4150_3_80Hz, UNE_22_381_93, Circulaire86, SBR_A_2010, SBR_B_2002, BS7385_250Hz, ONORM_S_9020
- category (optional):
- One of: CAT2, CAT3, CAT1
- building_level:
- One of: floorSlabs, unspecified, buildingClass5, dinFoundation, USBM_RI8507_drywall, foundation, buildingClass3, buildingClass1, buildingClass4, buildingClass2, lowerLevel, highestFloor, selfDefined, structure, guidelineValues, pipeline, USBM_RI8507_plaster, OSMRE_1983, freshConcrete, undergroundCavities
- flat_level:
- Only available when the building_level is set to unspecified.
This will be an absolute value as alarm level.
- vector_enabled:
- Off, On, setting it to On will store the PVS (peak vector sum)
and also trigger (non frequency dependend) alarms based on PVS.
- vdv_enabled:
- Off, On, setting it to On will calculate and store VDV (vibration dose value)
- atop_enabled:
- Off, On, setting it to On will calculate and store PPA (peak particle acceleration)
- vtop_enabled:
- Off, On, setting it to Off will prevent calculating and storing PPV (peak particle acceleration)
- vdv_period:
- Will be used as the measurement duration for calculating VDV
- vdv_x:
- One of: ISO2631_Wk, BS6841_Wc, ISO8041_Wh, ISO2631_Wc, ISO2631_Wm, ISO5349_Wh, BS6841_Wb, BS6841_We, ISO2631_We, BS6841_Wd, BS6841_Wg, BS6841_Wf, ISO2631_Wj, ISO2631_Wd, ISO2631_Wf
- vdv_y:
- One of: ISO2631_Wk, BS6841_Wc, ISO8041_Wh, ISO2631_Wc, ISO2631_Wm, ISO5349_Wh, BS6841_Wb, BS6841_We, ISO2631_We, BS6841_Wd, BS6841_Wg, BS6841_Wf, ISO2631_Wj, ISO2631_Wd, ISO2631_Wf
- vdv_z:
- One of: ISO2631_Wk, BS6841_Wc, ISO8041_Wh, ISO2631_Wc, ISO2631_Wm, ISO5349_Wh, BS6841_Wb, BS6841_We, ISO2631_We, BS6841_Wd, BS6841_Wg, BS6841_Wf, ISO2631_Wj, ISO2631_Wd, ISO2631_Wf
- measuring_type:
- Needed with SBR, DIN 4150-3 and Circulaire86 measurements. One of limited, indicative, extensive
- concrete_setting_level
- Used with IN 1226. One of rc10MPaTo15MPa, lessThan2hours, moreThan15MPa, lessThan10MPa
- vibration_source
- Used with IN 1226. One of blasting, compaction, mechanicalDevices, pilingSheetingExcavation
- vibration_type:
- Needed with SBR, DIN 4150-3 and Circulaire86 measurements. One of continuous, repeated, shortTerm, continually, momentarily, peak, longTerm, impulsive
- building_state:
- Needed with SBR 2017. One of sensitive, normal
- zet_gev_laagdikte:
- Needed with SBR 2017 when the category is foundation. One of H_3m, H_5m, H_2m, H_1m, H_7m, H_6m, H_8m, H_4m
- lining_material:
- One of: materialClass2, materialClass4, reinforcedConcreteAndTubing, masonry, concreteAndStone, materialClass3, materialClass1
- construction_type:
- One of: structureType3, designClass3, verySensitiveConstruction, structureType2, platformAndCatenaryPost, structureType1, resistantConstruction, designClass2, designClass1, sensitiveConstruction
- pipeline_type:
- One of: weldedSteel, concreteAndSteel, brickworkAndPlastic
- data_save_level:
- float number in mm/s, threshold for storing measurement samples
- measurement_duration:
- Interval in seconds, at this interval samples will be taken
- trace_save_level:
- float number in mm/s, threshold for storing traces
- trace_pre_trigger:
- float number in seconds: when trace_save_level was passed how many seconds before are
included in the trace
- trace_post_trigger:
- float number in seconds: when trace_save_level was passed how many seconds after are
included in the trace
- alarm_level_1:
- int number in percentage: percentage of the guideline which will cause an alarm for group 1
- alarm_level_2:
- int number in percentage: percentage of the guideline which will cause an alarm for group 2
- alarm_level_3:
- int number in percentage: percentage of the guideline which will cause an alarm for group 3
- email_delay:
- int number in seconds: how much time will there be between two e-mails
- alarm_recipients:
- a list of lists containing 3 strings: where the first element is the type,
the second element the value for the type and the last element which alarm level
should trigger sending the notification.
- webhook_recipient (optional):
- an extra recipient that sends alarm notifications to a webhook.
The webhook will send POST requests with a UTF-8-encoded JSON body containing
the notification info. The secret provided combined with the request body will be hashed using
HMAC sha-256. The hash will be placed inside of the http-header: X-Omnidots-Notifier-Signature.
Make sure to calculate the hash on the receiving end as well and to compare these hashes.
- There will be some variation between the different types and categories of notifications but
all of them will atleast contain the following information:
{
"measuring_point_id": 1337,
"category": "sensor_went_online",
"level": "success",
"created_at": 1618488056.925577,
"data": { "sensor": "HOSEVE", "datetime": 1618488056.922907 },
"text": "Your Swarm HOSEVE went online on April 15, 2021, 2:00:56 p.m. CEST."
}
- enable_time_[0-6]:
- Scheduled start time of the Swarm, note that 0 is Sunday
- disable_time_[0-6]:
- Scheduled end time of the Swarm, note that 0 is Sunday
Example body:
{
"name": "Test 123",
"sensor_name": "BANANA"
"postal_code": "1234 AB",
"house_number": 56,
"street_name": "Test road",
"city": "Awesome town",
"disable_led": true,
"log_flush_interval": 60,
"timezone": "Europe/Amsterdam",
"guide_line": "SBR_A",
"category": "CAT1",
"measuring_type": "Extensive",
"vibration_type": "Repeated",
"data_save_level": 0.2,
"measurement_duration": 2.0,
"trace_save_level": 10.0,
"trace_pre_trigger": 3.0,
"trace_post_trigger": 3.0,
"alarm_level_1": 90,
"alarm_level_2": 100,
"alarm_level_3": 100,
"email_delay": 120,
"alarm_recipients": [
["phone_number", "+31850070336", "alarm_level_3"],
["phone_number", "+31850070336", "measuring_point_administrator"],
["email", "info@omnidots.com", "alarm_level_1"]
],
"webhook_recipient": {
"url": "https://your-web-address.domain/webhook",
"secret": "high-entropy-secret-0l25a9df7d8afd5ec",
"alarm_level_1": false,
"alarm_level_2": false,
"alarm_level_3": false,
"measuring_point_administrator": true
},
"enable_time_0": "00:00:00",
"disable_time_0": "23:59:59",
"enable_time_1": "00:08:00",
"disable_time_1": "18:00:00",
"enable_time_2": "00:00:00",
"disable_time_2": "23:59:59",
"enable_time_3": "00:00:00",
"disable_time_3": "23:59:59",
"enable_time_4": "00:00:00",
"disable_time_4": "23:59:59",
"enable_time_5": "00:00:00",
"disable_time_5": "23:59:59",
"enable_time_6": "00:00:00",
"disable_time_6": "23:59:59",
}
Available API endpoints: