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