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