screencast
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
screencast [2020/09/08 14:05] – citoterm gama om-310 atolstov | screencast [2022/01/14 13:41] (current) – ↷ Links adapted because of a move operation emozolyak | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | <WRAP center round box 60%> | ||
{{: | {{: | ||
{{ : | {{ : | ||
+ | Thanks to our partners for the visual materials provided. | ||
+ | </ | ||
+ | |||
+ | {{ network: | ||
====== Screencast ====== | ====== Screencast ====== | ||
+ | ===== Introduction ===== | ||
In WebHMI, [[screens|Screens]] or [[dashboards|Dashboards]] are analogous to screens for HMI operator panels or graphic screens in SCADA systems. | In WebHMI, [[screens|Screens]] or [[dashboards|Dashboards]] are analogous to screens for HMI operator panels or graphic screens in SCADA systems. | ||
Line 16: | Line 22: | ||
* Promptly make decisions in emergency, emergencies (fire, flooding, water, gas leaks); | * Promptly make decisions in emergency, emergencies (fire, flooding, water, gas leaks); | ||
- | The screencast serves to fulfil these requirements. It will provide the dispatcher with only the information it needs without having to manually switch the dispatcher part. You can create a context-sensitive | + | The screencast serves to fulfil these requirements. You can create a context-sensitive environment to keep the operator focused. It will provide the dispatcher with only the information it needs without having to manually switch the dispatcher part. |
+ | |||
+ | {{ network: | ||
+ | |||
+ | ==== Best practises ==== | ||
+ | There are several typical solutions, where screencast is essential and which fully unlocks the potential of the screencast. Here it is: | ||
+ | * TV sets to display information, | ||
+ | * Protect device' | ||
===== Creating and managing screencast ===== | ===== Creating and managing screencast ===== | ||
==== Introduction ==== | ==== Introduction ==== | ||
There a several steps to start using screencast. | There a several steps to start using screencast. | ||
- | - Create | + | - Choose existing role (e.g., Read-Only user) or create |
- | - Check both dashboard' | + | - Make sure that in the role settings proper access checked, such as " |
+ | - On a " | ||
- Create a screencast' | - Create a screencast' | ||
- | - Find a special register with screencast page pointer. This is the only registry for each user who has enabled screencast mode. | + | - Find a special register |
- | - Put some page-link e.g., "/ | + | - Put some page-link e.g., "/ |
- | - Login with the new user credentials. | + | - Login with the screencast |
==== Role ==== | ==== Role ==== | ||
+ | In this example, it will be a new role creation considered. | ||
+ | On the menu " | ||
{{ : | {{ : | ||
+ | Let's edit roles permissions to be able to have access to the pages that we intended to. | ||
{{ : | {{ : | ||
+ | Those permissions are access to dashboards and screens in the example case. | ||
{{ : | {{ : | ||
- | ==== Screencast user ==== | ||
+ | ==== Screencast user ==== | ||
You need to create a new user with " | You need to create a new user with " | ||
{{ : | {{ : | ||
- | ==== Permissions | + | |
+ | ==== Dashboard' | ||
+ | |||
+ | Note that, there is also availability checkboxes for the roles in the everyone dashboard settings. | ||
{{ : | {{ : | ||
- | Make sure that e.g., dashboard or screen | + | \\ |
+ | Make sure that dashboards | ||
{{ : | {{ : | ||
Line 47: | Line 70: | ||
The screencast link for user " | The screencast link for user " | ||
\\ | \\ | ||
- | Its address will be displayed as '' | + | Its address will be displayed as '' |
\\ | \\ | ||
- | In the Lua editor, you can link that register with GUI. If there are multiple screencast-mode users, make sure to select the corresponding link when editing. | + | \\ |
+ | The Lua script will be considered below. | ||
+ | In the Lua editor, you can link that register with GUI. If there are multiple screencast-mode users, make sure to select the corresponding link when editing. In the given example there are no any other registers. | ||
{{ : | {{ : | ||
- | While creating Lua script it would look like this: | + | When creating |
{{ : | {{ : | ||
- | This script will be considered further in the text. | ||
- | ==== Lua script ==== | ||
- | Lua script is a handler for screencast page, which will be cast to the user. | ||
- | If you will do some research about how your system works, you will be able to create e.g., a context-sensitive system or time-based rules and so on. | + | ==== Lua script ==== |
- | + | The Lua script is the handler for the screencast page that will be cast to the user. | |
- | As the simplest example, | + | If you will do some research about how your system works, you will be able to create e.g., a context-sensitive system or work out the time-based rules and so on. |
+ | As the simplest example, | ||
<code lua> | <code lua> | ||
- | timestamp | ||
array = {"/ | array = {"/ | ||
- | delay = 15 --seconds | ||
- | function main (userId) | + | timestamp |
+ | DELAY = 15; change_time = timestamp + DELAY | ||
- | change_time = timestamp + delay | ||
- | if os.time() >= change_time then | + | function main (userId) |
+ | |||
+ | if timestamp | ||
| | ||
- | index = index+1 ; if index > #array then index = 1 end | + | index = index+1 ; if index > #array then index = 1 end -- make a loop from index values |
+ | -- Put the link to register | ||
+ | WriteReg(" | ||
| | ||
- | WriteReg(" | + | |
- | + | | |
- | timestamp = os.time() | + | end |
- | change_time = timestamp | + | |
- | end | + | timestamp = os.time() |
- | DEBUG(" | + | DEBUG(" |
DEBUG(" | DEBUG(" | ||
- | tonumber(change_time-os.time())) | + | |
end | end | ||
- | |||
</ | </ | ||
Line 92: | Line 116: | ||
It is the screencast user just after signing in. A " | It is the screencast user just after signing in. A " | ||
\\ | \\ | ||
- | Screencast mode is enabled, hence homepage for the user is '' | + | Screencast mode is enabled, hence homepage for the user is '' |
- | + | ||
- | This page always redirects to the page, which set in the screencast register. As a Lua script changes it, reload will be initiated. As you can see there is the 15 seconds delay between the automatical switching. | + | |
+ | This page always redirects to the page, which set in the screencast register. As a Lua script changes it, reload will be initiated. | ||
{{ : | {{ : | ||
+ | As you can see there is the 15 seconds delay between the automatical switching. | ||
+ | ===== User cases ===== | ||
==== Power Supply parameters monitoring ==== | ==== Power Supply parameters monitoring ==== | ||
- | {{ : | + | {{ : |
- | For example, you can show input power energy parameters. | + | You can show input power energy parameters |
+ | In addition, it will make it much more visible, rather than distracting images. | ||
+ | For example, you can show both digital and analogous representation to show the details and full picture. | ||
screencast.txt · Last modified: 2022/01/14 13:41 by emozolyak