Skip to content

yss site example

Bartlomiej Ceglik edited this page Feb 19, 2023 · 1 revision

example ( Make your site ) - yss site .svg base data from mqtt

yssPageExample

To index

s_basicSailPage

It is init on start by pager. Example yss site with description how to do it your self. This class need to be in directory of your project.

This is minimum of overwriting to set up your page. or grab blank :)

Kind: global class
See: this code on - GitHub

new s_basicSailPage()

overtire with your constructions...

s_basicSailPage.getName ⇒

Kind: instance property of s_basicSailPage
Returns: [string] - name of your site

overtire function and set your site title

s_basicSailPage.getDefaultBackgroundColor ⇒

Kind: instance property of s_basicSailPage
Returns: [string] - html hex color definition of your background

overtire function and set default background color of your site

s_basicSailPage.getHtml ⇒

Kind: instance property of s_basicSailPage
Returns: [string] - to put in htmlDyno

overtire function need to return html of your site

s_basicSailPage.svgDyno ⇒

Kind: instance property of s_basicSailPage
Returns: [xmlObject] - xml object

overtire functon and set need to return xml object of .svg or nothing

s_basicSailPage.looperIter()

overtire methode and set looper if you need one

Kind: instance method of s_basicSailPage

s_basicSailPage.getHtmlAfterLoad()

overtire methode and set will be called after .getHtml

Kind: instance method of s_basicSailPage

s_basicSailPage.svgDynoAfterLoad()

overtire methode and set invoke after .svgDyno()

Kind: instance method of s_basicSailPage

s_basicSailPage.onMessageCallBack(r)

overtire function / methode call on every msg comming from webSocket /ws/yss it's a place to put your callbacks

Kind: instance method of s_basicSailPage

Param Type Description
r json incomming msg to process. this is a place to put your callbacks. expocting incomming message to be r = { "topic": "abc/cd", "payload": "11.3" }
Clone this wiki locally