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: America/Monterrey, Pacific/Pitcairn, Atlantic/Canary, Asia/Barnaul, Australia/Victoria, Asia/Hovd, NZ-CHAT, Europe/Malta, Asia/Tomsk, Pacific/Palau, Asia/Ashgabat, Pacific/Chuuk, WET, GMT, America/Godthab, NZ, Asia/Ulaanbaatar, Asia/Taipei, Antarctica/Rothera, America/Grenada, Asia/Qatar, Brazil/DeNoronha, America/Shiprock, America/Winnipeg, Asia/Kuala_Lumpur, Europe/Simferopol, US/Mountain, America/Guayaquil, Europe/Budapest, Africa/Ouagadougou, Australia/Hobart, Pacific/Rarotonga, Africa/Accra, America/Indiana/Petersburg, America/Rankin_Inlet, America/Campo_Grande, Europe/Sofia, Europe/Ulyanovsk, Libya, America/Curacao, Africa/Nairobi, Europe/Belfast, Europe/Jersey, Africa/Bamako, Australia/North, Europe/Helsinki, Asia/Jakarta, America/Coral_Harbour, America/Argentina/Buenos_Aires, America/Jujuy, Pacific/Noumea, Australia/Yancowinna, Pacific/Ponape, Asia/Tokyo, Asia/Yangon, Africa/Kigali, Australia/Melbourne, Cuba, America/Resolute, Etc/GMT-10, Indian/Chagos, Pacific/Norfolk, US/Alaska, US/Arizona, America/North_Dakota/Center, America/Thunder_Bay, America/Cordoba, Australia/Sydney, Pacific/Marquesas, Australia/Currie, US/Samoa, America/Catamarca, Europe/Andorra, Africa/Niamey, America/Argentina/Salta, Australia/Lindeman, America/Whitehorse, Brazil/Acre, Africa/Lome, Egypt, Asia/Dushanbe, Asia/Novosibirsk, America/Bahia_Banderas, Etc/GMT-9, America/Fort_Wayne, America/Danmarkshavn, Brazil/West, America/Juneau, Australia/LHI, Indian/Cocos, Asia/Irkutsk, Navajo, America/Lower_Princes, Africa/Ndjamena, Pacific/Kanton, Europe/Amsterdam, Pacific/Wake, Etc/GMT-2, America/Argentina/San_Juan, America/Los_Angeles, Antarctica/Davis, Asia/Jayapura, Asia/Tel_Aviv, Etc/GMT-8, Etc/GMT+0, Zulu, America/Glace_Bay, America/Denver, Africa/Lusaka, Europe/Rome, Indian/Kerguelen, America/Yakutat, America/Dominica, America/North_Dakota/Beulah, Australia/Tasmania, Atlantic/Faroe, America/Swift_Current, MST7MDT, Africa/Conakry, America/Porto_Acre, Africa/Dakar, Poland, Europe/Athens, Asia/Baku, Asia/Tehran, Etc/GMT+2, Europe/Minsk, Africa/Tunis, America/Port-au-Prince, Asia/Rangoon, America/Indiana/Knox, America/Sao_Paulo, Europe/Dublin, Europe/Berlin, Asia/Aqtobe, Asia/Baghdad, America/Maceio, Etc/GMT0, Mexico/BajaNorte, America/Barbados, America/Nassau, Asia/Bangkok, Asia/Novokuznetsk, Asia/Damascus, America/Mendoza, Africa/Blantyre, Europe/Isle_of_Man, Asia/Manila, America/Manaus, America/Pangnirtung, Europe/Vaduz, Africa/Mogadishu, Asia/Hebron, Asia/Sakhalin, Canada/Central, Asia/Aqtau, Africa/Gaborone, America/Argentina/Ushuaia, Japan, Antarctica/Casey, America/Argentina/La_Rioja, Africa/Bangui, Asia/Yekaterinburg, Europe/Tallinn, US/East-Indiana, Etc/GMT+6, Pacific/Kosrae, Asia/Saigon, Europe/Monaco, America/Fort_Nelson, Pacific/Enderbury, America/Santiago, Canada/Pacific, Africa/Luanda, Canada/Yukon, Europe/Madrid, Asia/Samarkand, America/Grand_Turk, Asia/Anadyr, Jamaica, America/Indiana/Winamac, Australia/Broken_Hill, ROK, America/Guatemala, America/Anchorage, GB-Eire, Hongkong, Asia/Kashgar, Asia/Urumqi, Pacific/Funafuti, Antarctica/McMurdo, Europe/Stockholm, Europe/Kiev, Etc/GMT-13, America/Argentina/Cordoba, America/Eirunepe, Indian/Reunion, America/Argentina/ComodRivadavia, America/Argentina/Tucuman, America/Santo_Domingo, Etc/GMT-1, America/Goose_Bay, Asia/Kuwait, Europe/Prague, Africa/Porto-Novo, America/Inuvik, Pacific/Wallis, Asia/Oral, Etc/Universal, EST5EDT, Indian/Antananarivo, America/Caracas, Asia/Yakutsk, CST6CDT, Asia/Tashkent, America/Miquelon, America/Kentucky/Monticello, Atlantic/St_Helena, Etc/Zulu, America/Tortola, America/Louisville, America/Costa_Rica, Turkey, Europe/Saratov, Africa/Juba, America/St_Johns, Europe/Luxembourg, Europe/Samara, Etc/GMT-11, Europe/Vilnius, America/Mazatlan, Asia/Vladivostok, Mexico/General, Etc/GMT+5, Etc/GMT-4, Pacific/Midway, Antarctica/Syowa, America/St_Barthelemy, Asia/Srednekolymsk, Africa/Abidjan, Asia/Ulan_Bator, Canada/Eastern, Europe/Gibraltar, America/Managua, Australia/West, Europe/Vatican, Atlantic/Reykjavik, America/Buenos_Aires, America/Vancouver, Indian/Maldives, US/Indiana-Starke, Africa/Freetown, America/Nome, Canada/Saskatchewan, America/Ojinaga, Asia/Magadan, Eire, Africa/Djibouti, Africa/Maputo, America/Tegucigalpa, Europe/Ljubljana, Europe/Belgrade, Africa/Bissau, America/Santa_Isabel, UTC, Etc/UTC, America/Merida, GMT0, Europe/Sarajevo, Pacific/Majuro, America/Indiana/Vincennes, Asia/Seoul, Africa/Addis_Ababa, Europe/Lisbon, Pacific/Easter, America/Argentina/San_Luis, Atlantic/Cape_Verde, Atlantic/Bermuda, America/Kentucky/Louisville, America/Chicago, Asia/Karachi, America/Rainy_River, GB, Asia/Bahrain, America/Marigot, America/Argentina/Mendoza, America/Antigua, Asia/Macau, Etc/GMT+3, Australia/Brisbane, Australia/Perth, America/Edmonton, Pacific/Pago_Pago, Africa/Douala, Pacific/Tarawa, Asia/Beirut, Asia/Ho_Chi_Minh, Pacific/Guadalcanal, Etc/GMT-7, Australia/Adelaide, US/Aleutian, Europe/Bratislava, Antarctica/Troll, Pacific/Truk, America/North_Dakota/New_Salem, Africa/Dar_es_Salaam, Indian/Mahe, America/Jamaica, Atlantic/Azores, Pacific/Johnston, Europe/Kirov, Asia/Nicosia, HST, America/Moncton, America/Knox_IN, Asia/Famagusta, Africa/Asmera, America/Ensenada, Asia/Pontianak, Etc/GMT+4, Asia/Kolkata, Etc/GMT-0, Mexico/BajaSur, Australia/South, Europe/Istanbul, America/Adak, Europe/Oslo, Europe/Bucharest, Asia/Hong_Kong, Europe/Paris, Europe/Guernsey, US/Hawaii, Greenwich, Africa/Malabo, America/Montevideo, America/Punta_Arenas, Europe/Skopje, America/Mexico_City, Asia/Dubai, Europe/Warsaw, Africa/Monrovia, America/Araguaina, America/Virgin, America/Indiana/Indianapolis, MST, America/Bahia, Europe/Moscow, America/Blanc-Sablon, Asia/Ujung_Pandang, Pacific/Nauru, Antarctica/DumontDUrville, Africa/Harare, America/Indiana/Marengo, Pacific/Efate, Africa/Tripoli, Canada/Mountain, America/Halifax, Asia/Phnom_Penh, Asia/Qostanay, US/Central, America/Cayman, GMT-0, America/Cayenne, Chile/EasterIsland, Etc/GMT+10, Pacific/Tongatapu, Australia/Canberra, Europe/Busingen, America/Martinique, Asia/Kuching, Asia/Thimphu, America/Belize, America/Thule, Asia/Omsk, America/St_Lucia, US/Pacific, Africa/Banjul, America/Regina, Pacific/Galapagos, Indian/Mayotte, Etc/GMT+7, Indian/Christmas, CET, America/Dawson_Creek, Etc/GMT-14, Pacific/Saipan, Australia/Lord_Howe, Europe/Tirane, Iran, America/Chihuahua, Europe/Kaliningrad, Asia/Ashkhabad, Asia/Kamchatka, Australia/Eucla, Australia/Darwin, Africa/Nouakchott, America/Montreal, Africa/Brazzaville, Indian/Mauritius, US/Eastern, Europe/Chisinau, Europe/Zagreb, Universal, Europe/Volgograd, America/Detroit, America/Indianapolis, Africa/Casablanca, Pacific/Chatham, Pacific/Niue, America/La_Paz, Europe/Zaporozhye, Etc/Greenwich, Pacific/Fiji, Pacific/Samoa, Indian/Comoro, US/Michigan, Australia/Queensland, Brazil/East, America/Cancun, Pacific/Guam, Arctic/Longyearbyen, America/Belem, Africa/Algiers, Asia/Yerevan, Asia/Colombo, Asia/Riyadh, Asia/Shanghai, Asia/Dacca, Pacific/Pohnpei, W-SU, America/Santarem, America/Indiana/Tell_City, Etc/GMT-5, America/Atikokan, Portugal, America/Metlakatla, America/Toronto, Asia/Pyongyang, Africa/Timbuktu, EST, Africa/Bujumbura, Europe/Zurich, America/Argentina/Jujuy, Asia/Kabul, Antarctica/Palmer, Asia/Bishkek, Atlantic/Stanley, America/Hermosillo, America/Bogota, Asia/Thimbu, Etc/GMT+1, Europe/Mariehamn, America/Aruba, Asia/Makassar, America/Creston, Asia/Vientiane, Chile/Continental, GMT+0, Asia/Tbilisi, Pacific/Tahiti, America/Port_of_Spain, Asia/Ust-Nera, Atlantic/Jan_Mayen, Asia/Katmandu, America/Asuncion, America/Matamoros, Etc/GMT-12, America/Rosario, America/Noronha, Europe/London, America/El_Salvador, Africa/Lubumbashi, America/Scoresbysund, America/Atka, America/Indiana/Vevay, America/St_Vincent, America/Tijuana, Africa/Johannesburg, Asia/Kathmandu, America/Argentina/Rio_Gallegos, America/Argentina/Catamarca, PRC, America/Phoenix, Australia/NSW, Africa/El_Aaiun, Africa/Kampala, Pacific/Fakaofo, Antarctica/Vostok, Asia/Choibalsan, Pacific/Kiritimati, Singapore, America/Lima, Pacific/Bougainville, America/Guadeloupe, America/Paramaribo, America/Dawson, America/St_Thomas, Europe/Brussels, America/Puerto_Rico, Israel, America/Cuiaba, Antarctica/South_Pole, Europe/San_Marino, Europe/Nicosia, Asia/Dili, Asia/Brunei, Asia/Gaza, Atlantic/Madeira, Pacific/Apia, America/Boa_Vista, Africa/Maseru, America/Fortaleza, America/Guyana, Europe/Riga, Europe/Vienna, Asia/Amman, Africa/Lagos, America/Nuuk, America/Porto_Velho, America/Sitka, Africa/Kinshasa, Asia/Harbin, Africa/Khartoum, America/New_York, Etc/GMT-6, Kwajalein, UCT, Iceland, Asia/Qyzylorda, Asia/Jerusalem, America/Panama, America/Yellowknife, Antarctica/Mawson, Asia/Krasnoyarsk, Asia/Khandyga, Africa/Cairo, America/Recife, Asia/Chungking, Africa/Asmara, Asia/Almaty, Asia/Aden, PST8PDT, Etc/GMT+11, Asia/Dhaka, Atlantic/Faeroe, Europe/Astrakhan, Europe/Uzhgorod, Africa/Ceuta, Canada/Newfoundland, Pacific/Gambier, America/Rio_Branco, America/Cambridge_Bay, Africa/Windhoek, Asia/Atyrau, Pacific/Yap, Pacific/Port_Moresby, Etc/GMT+8, Canada/Atlantic, Africa/Sao_Tome, Antarctica/Macquarie, America/Boise, Pacific/Auckland, MET, Australia/ACT, Africa/Mbabane, Asia/Macao, ROC, Etc/GMT+12, Atlantic/South_Georgia, Asia/Chongqing, America/Menominee, America/Montserrat, America/Anguilla, America/Havana, Asia/Muscat, Europe/Copenhagen, Europe/Podgorica, America/Kralendijk, Asia/Singapore, Pacific/Kwajalein, Etc/GMT, Asia/Istanbul, America/Iqaluit, EET, America/Nipigon, Europe/Tiraspol, Africa/Libreville, America/St_Kitts, Pacific/Honolulu, Asia/Calcutta, Etc/GMT+9, Asia/Chita, Etc/UCT, Etc/GMT-3
- guide_line:
- One of: BS7385_250Hz, SBR_A_2017, ONORM_S_9020, SS_025211, ISEE_250Hz, SS_4604861, DIN4150_2, DIN4150_3_80Hz, Circulaire86, SBR_B_2002, SBR_A_2010, SN640312a, UNE_22_381_93, IN1226
- category (optional):
- One of: CAT2, CAT1, CAT3
- building_level:
- One of: USBM_RI8507_plaster, lowerLevel, floorSlabs, foundation, OSMRE_1983, guidelineValues, highestFloor, pipeline, dinFoundation, freshConcrete, buildingClass4, unspecified, buildingClass5, buildingClass3, selfDefined, USBM_RI8507_drywall, undergroundCavities, buildingClass2, buildingClass1, structure
- 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_We, ISO5349_Wh, ISO2631_Wc, BS6841_Wf, ISO2631_Wd, ISO2631_Wm, BS6841_Wd, ISO8041_Wh, ISO2631_Wj, BS6841_Wb, BS6841_We, BS6841_Wg, BS6841_Wc, ISO2631_Wk, ISO2631_Wf
- vdv_y:
- One of: ISO2631_We, ISO5349_Wh, ISO2631_Wc, BS6841_Wf, ISO2631_Wd, ISO2631_Wm, BS6841_Wd, ISO8041_Wh, ISO2631_Wj, BS6841_Wb, BS6841_We, BS6841_Wg, BS6841_Wc, ISO2631_Wk, ISO2631_Wf
- vdv_z:
- One of: ISO2631_We, ISO5349_Wh, ISO2631_Wc, BS6841_Wf, ISO2631_Wd, ISO2631_Wm, BS6841_Wd, ISO8041_Wh, ISO2631_Wj, BS6841_Wb, BS6841_We, BS6841_Wg, BS6841_Wc, ISO2631_Wk, ISO2631_Wf
- measuring_type:
- Needed with SBR, DIN 4150-3 and Circulaire86 measurements. One of extensive, limited, indicative
- concrete_setting_level
- Used with IN 1226. One of lessThan10MPa, lessThan2hours, rc10MPaTo15MPa, moreThan15MPa
- vibration_source
- Used with IN 1226. One of blasting, mechanicalDevices, compaction, pilingSheetingExcavation
- vibration_type:
- Needed with SBR, DIN 4150-3 and Circulaire86 measurements. One of momentarily, peak, continuous, longTerm, shortTerm, impulsive, continually, repeated
- 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_1m, H_6m, H_3m, H_8m, H_2m, H_7m, H_4m, H_5m
- lining_material:
- One of: materialClass4, materialClass2, masonry, materialClass3, materialClass1, concreteAndStone, reinforcedConcreteAndTubing
- construction_type:
- One of: designClass1, structureType2, structureType3, designClass2, resistantConstruction, structureType1, platformAndCatenaryPost, sensitiveConstruction, verySensitiveConstruction, designClass3
- 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: