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