5.9.2.1 api display image examples

The below-mentioned examples help sending data from the control application to the 2N® IP Verso and 2N® IP Vario displays.

An image can be displayed either as a notification or overlay. 2N® IP Verso can display images in either way, 2N® IP Vario can only display notifications. Notifications are displayed for a pre-defined time and disappear automatically after this timeout. Overlays keep displayed until replaced with another image or removed by the user.

 

The *duration* parameter gives the image/video display time in ms.
The *repeat* parameter specifies the count of video repetitions and is ignored for images.

 

If the HTTP request does not include any of the above-mentioned parameters, the overlay mode is used, i.e. the image is displayed for an indefinite period of time. If both the parameters are included, the display is terminated by the event that happens first. 


Image Loading to 2N® IP Verso/2N® IP Vario Display

Note

Each model supports a different image resolution.

ModelImage sizeSupported formats
 2N® IP Verso214 x 240 pixelsJPEG (recommended), BMP, PNG
 2N® IP Vario320 x 240 pixelsJPEG (recommended), GIF, BMP

Request URL: https://10.27.24.15/api/display/image?display=ext1

  • Request method: PUT
  • Remote address: 10.27.24.15:443
  • Status code: 200 OK
  • Version: HTTP/1.1

               

Response headers (95 B)            

  • Server: HIP2.22.0.31.1  
  • Content-Type: application/json
  • Content-Length: 24


Request headers (494 B)       

  • Host: 10.27.24.15
  • User-Agent: Mozilla/5.0 (Windows NT 6.1; W…) Gecko/20100101 Firefox/56.0
  • Accept: */*
  • Accept-Language: cs,en-US;q=0.7,en;q=0.3
  • Accept-Encoding: gzip, deflate, br
  • Referer: https://10.27.24.15/apitest.html
  • Content-Length: 1325
  • Content-Type: multipart/form-data; boundary=…--------------258852674219952
  • Cookie: _ga=GA1.1.375392382.1496656977…id=GA1.1.638680516.1507547865
  • Connection: keep-alive

Query string

  • display: ext1


Request payload

-----------------------------258852674219952

Content-Disposition: form-data; name="blob-image"; filename="picture.png"

Content-Type: image/png

‰PNG
IHDR   Ö   đ   ót
R   sRGB ®Îé   gAMA  ±Źüa       pHYs  Ă  ĂÇo¨d  üIDATx^íŘŃqŰ8@ŃÔ•‚\OŞq3)Ć»Ž4Y‚$Ť'Ôĺ¬ÎůÔČ\ƒ˘ż}@J‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$Hě:    ľż}űííýţáIžy/ţ@‚ŚIP‚±×L‘ ±Ó\–őŰ^b;    Žkż˙řůëÓ©í­f)ËýBÎLđçŹď÷mŢł.jĚb¶v?˜m|;éJđBÎKđ0‹›a÷řţ/›dY¸Z$Á9+Áá[śCC/Ăů´)éż6ĆŃŘĚ8[\quŽNď%ÁŘ©żoŚÂˇŚĺöu6—×mcšŤ%x!§żŽl̶˙°¦I¸Ë5céw¬“`ě©    •}š%¸Íi7še`»Îľ"Á9;Ááژ%¸ÍbwúHI_^Č“ś—ŕq|7Ëí—ŕ‹:+Áť ďĎÁŮög±;ő ţ?8)ÁĺŻâř‹    ÝćfřKŘ_'ÁŘ÷x9FÇYL¦Ó«ÝĚĆÇ÷â©žŕâ|Z?ž—ŰśĹlşşââ(\M†KJđBÎú-848µ|x~-Á=r«ƒ%Śť•ŕĽŚ·÷Ĺd±˙ÇY<>ÝŘů‘x|5žęĽ?­Ň¸ďöWŢR‰fâ#ß”`ěÜŻJ‚ň’    îĂ4^1Áá]Y‚µ—JpőšO
Ě˝R‚;ú!Ř{ĄWoĚŔkxÉ×®D‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚Ä$HL‚¤>>ţ+uKéż<:–    IEND®B`‚
-----------------------------258852674219952--

Video Loading to 2N® IP Verso Display

Info

ModelVideo sizeSupported formats
2N® IP Verso214 x 240 pixelsMPEG4 / H264: Baseline profile, level up to 5.2
  • Request method: PUT
  • Remote address: 10.27.24.15:443
  • Status code: 200 OK
  • Version: HTTP/1.1


Response headers (95 B)            

  • Server: HIP2.22.0.31.1  
  • Content-Type: application/json
  • Content-Length: 24


Request headers (516 B) 

  • Host: 10.27.24.15
  • User-Agent: Mozilla/5.0 (Windows NT 6.1; W…) Gecko/20100101 Firefox/56.0
  • Accept: */*
  • Accept-Language: cs,en-US;q=0.7,en;q=0.3
  • Accept-Encoding: gzip, deflate, br
  • Referer: https://10.27.24.15/apitest.html
  • Content-Length: 943815
  • Content-Type: multipart/form-data; boundary=---------------------------14948718218673   
  • Cookie: _ga=GA1.1.375392382.1496656977…id=GA1.1.638680516.1507547865
  • Connection: keep-alive

Query string

  • display – ext1
  • duration – 20
  • repeat – 3


Request payload

-----------------------------14948718218673 

Content-Disposition: form-data; name="blob-video"; filename="2N_intro.mp4"

Content-Type: video/mp4

ftypmp42  isomiso2avc1mp41   free O!mdat  ·˙˙łÜEé˝ćŮH·–,Ř Ů#îďx264 - core 148 r2708 86b7198 - H.264/MPEG-4 AVC codec - Copyleft 2003-2016 - http://www.videolan.org/x264.html - options: cabac=0 ref=2 deblock=0:0:0 analyse=0x1:0x111 me=hex subme=6 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=150 keyint_min=15 scenecut=40 intra_refresh=0 rc_lookahead=30 rc=crf mbtree=1 crf=22.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=20000 vbv_bufsize=25000 crf_max=0.0 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00 €  őeˆ„    ®C‡Ü!q@ Cz˘NbyRćŞŇÔ~ˆ$]´í·ŢFb0~ůh˙M=>?„´mĺߏ˙âµWjŻ«¸ĄzŹ”Ä˙OŹ”#ŚĎţŢÜ~éÂ6ŰË­ÓăďŞ üP•?˙n?馞š{–ü7ŢĘ­«“b»ž¶Ť˜G
LZ˙˙.˜üß˙ÓřŹđý×\Ů’žjo¸…z˝x˙Ők&+ý˙ťřG˙kü¸3 ˆŔ|p«^ů˙¸˝UzÖż˙˙XąłÉž¤ŔłŞ˙€pŔ!>l͐ŹůMfÓoďľ_„0„)ćÎlŕő‚ňË˙ţź?_?Ăţ|Ź˙ř{>˙řÎl&/Íźţ÷đť~»ŔżT<vW
ĺź/}ţ Ď    e‡ŕ•ť¶ß˙˙Őy9čšziý-$‰˙ů_Áż+˙ř{]Ď]u×]wÜŔ"ýż9˙Ďȧű˙ü$lŮ7ęz뮺뮺ë®ú뮺뮺뮺뮺뮺뮺뮿˙ŐxxC®şë®şë®:O˙äőy˙ŻŽŠů{Osóţ«ă‘u]u×S·,\7ťĽ·p°Ó–X    ]`ű§Äń꼃đÜřţš§/Źó˙ Giż...

-----------------------------14948718218673--