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