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