| Line 1: |
Line 1: |
| − | ==Disk usage error==
| |
| − | Check what folder is full:
| |
| − | <syntaxhighlight lang="c">
| |
| − | cd /storage
| |
| − | du -h -d 1
| |
| − | </syntaxhighlight>
| |
| − | If folder is <code>/storage/history</code>, then write in screen:
| |
| − | <syntaxhighlight lang="c">
| |
| − | history delete old
| |
| − | </syntaxhighlight>
| |
| − | This will delete the devices' history.
| |
| − |
| |
| | ==Registering email with no verification== | | ==Registering email with no verification== |
| | testemail@gmail.com.no-check | | testemail@gmail.com.no-check |
| − | if there is ".no-check" in the email address it will not send email for vefirication | + | if there is ".no-check" in the email address it will not send email for vefirication |
| | | | |
| − | ==Alice== <!--T:3--> | + | ==Alice== |
| | https://dialogs.yandex.ru/store/skills/f636b340-larnitech | | https://dialogs.yandex.ru/store/skills/f636b340-larnitech |
| | | | |
| | ==Upload backup from server A to server B== | | ==Upload backup from server A to server B== |
| − | # Save backup on A; | + | # Save backup on server A; |
| | # Download it; | | # Download it; |
| | # Switch module ID on server B to A's ID; | | # Switch module ID on server B to A's ID; |
| Line 26: |
Line 14: |
| | # Switch server mode to 'Gateway'; | | # Switch server mode to 'Gateway'; |
| | # Upload backup to B and restore it; | | # Upload backup to B and restore it; |
| − | # Switch sn="xxxxxxxx" on B in logic.xml to the sn from p.4 | + | # Switch sn="xxxxxxxx" on B in logic.xml to the sn from p.4; |
| | + | # Switch back server mode to 'Default' |
| | + | |
| | + | ==Control valve-heating from script== |
| | + | <syntaxhighlight lang="C"> |
| | + | sprintf(strCommand, "%03d:%03d0ts:%d",ID, SID, setpoint); |
| | + | strCommand[7]=0; |
| | + | setStatus(1000:102, &strCommand); |
| | + | </syntaxhighlight> |
| | | | |
| − | ==Узнать пароль от LT_Setup== | + | ==Bluetooth== |
| − | # sqlite3 /home/settings/db/larnitech.db | + | # Connect the module. |
| − | # select * from accounts; | + | # Find item in logic with type="json". |
| | + | # Add sub-type="btunreg" json item. |
| | + | # Turn on "Edit mode" in the app. |
| | + | # Connect BT device from menu-> setup-> Bluetooth. |