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