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