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