Share public information
Application June 14, 2022
Do you know that 2 Avior parameters are accessible without a password?
These are the Welcome and Farewell texts that are usually used for sending SMS messages to users upon enabling and disabling.
They can be requested from a browser using the API call described here:
For example at the request http://www.mobikey.eu/display/gxl0 (as you can see, only the identification of the device is specified and the password is not required) you will get this type of response:
"welcome":"Welcome dear customer, call +33665588 to access the parking.",
"farewell":"Goodbye. Thank you for using this service."
The maximum length of these two texts is 160 characters and they can contain tags, that is to say they contain the value of any device parameter.
You can use these texts to make information that should be accessible to everyone without the need to share the device password. A practical example is the announcer visible in the image which is obtained by setting the Farewell message (N28):
$OA1:$OA2\nPotenza:$OA6 W\nConsumo:$OA7 kWh\nTemp:$OA5°C\n-\n$D14 $D15
You can insert as many spaces as you like to align the texts and with \n you switch to a new line, Avior will publish a text similar to this:
heater : 1
Power : 11.41 W
Energy : 0.002 kWh
Temp : 31.62 °C
The value of the parameters contained in the text is that of the moment in which it is composed, you can therefore set rules that update the content periodically (timed) or upon the occurrence of an event (change of status of inputs or outputs, exceeding of thresholds ... .).
To view this ticker display on any device that has internet access (PC, smartphone, tablet, TV...): https://webadmin.mobi/ticker/index.php?webid=2xf31a&page=1