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