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