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