User Tools

Site Tools


faq

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
faq [2021/12/14 14:02] – [Responsive design with screens] emozolyakfaq [2024/01/23 09:48] (current) – [Wifi] emozolyak
Line 1: Line 1:
-====== Frequently Asked Questions (FAQ) ====== 
  
 ===== Screens, Dashboard visualization ===== ===== Screens, Dashboard visualization =====
Line 12: Line 11:
  
 E.g. if your screen looks like this one on the desktop large monitor: E.g. if your screen looks like this one on the desktop large monitor:
-{{ ::hvac_full_screen.png?direct&800 |}}+{{ network:hvac_full_screen.png?direct&800 |}}
  
 then on the mobile device it will fold in into these: then on the mobile device it will fold in into these:
  
-{{ ::widget_swipe_hvac.gif }}+{{ network:widget_swipe_hvac.gif }} 
 + 
 +If you want your widgets with dashboard to take all available space of the widget, set his option:  
 + 
 +{{ network:panel_contained_option_red_box.png?direct&600 |}} 
 + 
 +Other project parts like graphs etc. will also adjust their size: 
 + 
 +{{ network:graph_mobile_view.png?direct&400 |}} 
 + 
 +==== Image animation  ====  
 + 
 +There are 3 ways how to animate your images:  
 + 
 +=== Sprite animation === 
 + 
 +With this tool you have to prepare all frames for animation as one image, aligned horizontally or vertically. When importing this image to image library, you just set the number of frames and aligment.  
 + 
 +In the [[image_library|image library]], click the image file name to edit its properties:  
 + 
 +{{ :dashboards:image-library:image-lib-adding-sprite.png?direct&800 |}} 
 + 
 +After you specify number of sprites and other settings, you will see how it would look like..  
 + 
 +{{ :dashboards:image-lib:sprite-image-setup.png?direct&800 |}} 
 + 
 + 
 +=== Dynamic properties usage === 
 + 
 +You can map several images to the register's states or values or bits. Then images will changes accordgingly.  
 +Please refer to the [[dashboards#dynamic_properties|dashboard dynamic properties article]]. 
 + 
 +=== Changing element properites with JS === 
 + 
 +Another possibility is using JS to control dashboards elements properties. This method is available on a project basis. 
 + 
 + 
 + 
  
 ==== Screen text widget ==== ==== Screen text widget ====
Line 29: Line 66:
  
 </WRAP> </WRAP>
-{{ ::text_widget_reg_value_colors.png?direct&600 |}}+{{ network:text_widget_reg_value_colors.png?direct&600 |}}
  
 ===== Performance issues ===== ===== Performance issues =====
Line 65: Line 102:
   *Avoid making simultaneous changes at once, like turning OFF-ON many regs, connection, scripts etc. Use save & apply feature of the latest fw. (apply all changes at once, instead of creating a queue for changes..)   *Avoid making simultaneous changes at once, like turning OFF-ON many regs, connection, scripts etc. Use save & apply feature of the latest fw. (apply all changes at once, instead of creating a queue for changes..)
   *In the comm. log, you can set TRACE level and see what times each operation takes (each connection, script, communication with device etc.), checking timestamps   *In the comm. log, you can set TRACE level and see what times each operation takes (each connection, script, communication with device etc.), checking timestamps
 +
 +===== Hiding project parts from end user =====
 +
 +Usually, after completion of your project, you give restricted access to the project parts using roles & users mechanism. Please read more in this [[ managing_users | article]].
 +
 +==== Hiding project setup menu ====
 +
 +There is a special setting in the user properties you can use for hiding setup menu.
 +
 +{{ ::users:users-list-faq.png?direct&800 |}}
 +
 +{{ :users:users-with-restricted-access-to-setup-menu.png?direct&800 |}}
 +
 +===== Data export =====
 +
 +===== Using ready tools for data export =====
 +
 +==== Can not export data to Excel ====
 +
 +
 +  Question: In my WebHMI there is no option to export data to Excel, though it has been earlier on other devices.  
 +
 +For the sake of storage savings, some functions of the WebHMI are implemented as external modules (so called Downloadable Content, or DLC), i.e. there are absent in the software until they will be downloaded to the device. This happens on the fresh device or after fw upgrade, when you visit //About// page. 
 +<WRAP center round info 80%>
 +The WebHMI must be connected to the internet for that. 
 +</WRAP>
 +
 +
 +====== MQTT issues ======
 +===== Values type conversion =====
 +==== Can not get required precision on internal register when copying data from MQTT ====
 +
 +
 +<code>
 +I have a MQTT string value, coming from a MQTT connection. When I copy this register to internal WebHMI register,
 + the fraction part is lost, e.g. "36.6" becomes 36 or 36.0 if I try to set the precision.
 +</code>
 +
 +**Answer:** 
 +You have to set Double Word, float IEEE754 type for the register. Use this script to copy the MQTT value to internal memory register. 
 +
 +<code lua>
 +function main (userId)
 +  local mqttValue = R(1)                   ; INFO(mqttValue) ; INFO(type(mqttValue))
 +  local floatValue = tonumber(mqttValue)   ; INFO("floatValue = " .. floatValue)
 +  W(2, floatValue)
 +end
 +</code>
 +
 +Register setup example: 
 +{{:iot:mqtt:type-conversion:mqtt-to-float-converstion-demo1.png?direct&800|}} 
 +
 +Use debug console to test your scripts: 
 +{{:iot:mqtt:type-conversion:mqtt-to-float-converstion-console-output.png?direct&800 |}}
 +
 +====== Level2 ======
 +
 +
 +===== How to connect my device to the Level2's IoT core? =====
 +
 +Please refer to this [[connect_iot_device_to_l2|article]].
 +
 +====== Networking ======
 +===== Wifi =====
 +
 +<code>
 +Question: Can I add more than one WiFi client connection? 
 +</code>
 +Yes, you can. But only one of them can be active at the moment. 
 +
 +===== Access over HTTPS =====
 +
 +<code>
 +Question: Can I access WebHMI via HTTP protocol? 
 +</code>
 +When you access it via Level2 http proxy service, https is provided by the Level2. 
 +However if you do need https directly, this can be done individually. Please provide access to the device for our service. 
 +
 +
  
faq.1639490563.txt.gz · Last modified: 2021/12/14 14:02 by emozolyak

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki