Difference between revisions of "Troubleshooting unsorted"

From Larnitech wiki page
Jump to navigation Jump to search
m
 
(30 intermediate revisions by the same user not shown)
Line 1: Line 1:
==Disk usage error==
 
Check what folder is full:
 
<syntaxhighlight lang="bash">
 
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==
 
==Alice==
Line 19: Line 7:
  
 
==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'
  
==Find out password from LT_Setup==
+
==Control valve-heating from script==
<syntaxhighlight lang="bash">
+
<syntaxhighlight lang="C">
sqlite3 /home/settings/db/larnitech.db
+
sprintf(strCommand, "%03d:%03d0ts:%d",ID, SID, setpoint);
select * from accounts;
+
strCommand[7]=0;
 +
setStatus(1000:102, &strCommand);
 
</syntaxhighlight>
 
</syntaxhighlight>
  
==Console doesn't work (or even server doesn't work, for example, with errors "onThreadCrash 6", "unknown: Treads")==
+
==Bluetooth==
#End screen session: <code>crtl+c</code> in the screen.
+
# Connect the module.
#Run new session: <code>screen -c /home/sh2/screen.run</code>
+
# Find item in logic with type="json".
#Connect screen with console: <code>screen -r ID</code>, where ID - session ID (screen -ls)
+
# Add sub-type="btunreg" json item.
#Do "Full restart"
+
# Turn on "Edit mode" in the app.
 +
# Connect BT device from menu-> setup-> Bluetooth.

Latest revision as of 15:20, 27 February 2024

Registering email with no verification

testemail@gmail.com.no-check if there is ".no-check" in the email address it will not send email for vefirication

Alice

https://dialogs.yandex.ru/store/skills/f636b340-larnitech

Upload backup from server A to server B

  1. Save backup on server A;
  2. Download it;
  3. Switch module ID on server B to A's ID;
  4. Copy and save somewhere B server's sn from logic->hw;
  5. Install needed plugins;
  6. Switch server mode to 'Gateway';
  7. Upload backup to B and restore it;
  8. Switch sn="xxxxxxxx" on B in logic.xml to the sn from p.4;
  9. Switch back server mode to 'Default'

Control valve-heating from script

sprintf(strCommand, "%03d:%03d0ts:%d",ID, SID, setpoint);
strCommand[7]=0;
setStatus(1000:102, &strCommand);

Bluetooth

  1. Connect the module.
  2. Find item in logic with type="json".
  3. Add sub-type="btunreg" json item.
  4. Turn on "Edit mode" in the app.
  5. Connect BT device from menu-> setup-> Bluetooth.