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