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