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