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