-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
getting data from arduino. Write to DB
- Loading branch information
Showing
6 changed files
with
92 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
venv | ||
.venv | ||
__pycache__ | ||
db.sqlite3 | ||
.idea |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# Generated by Django 2.2 on 2019-04-21 23:03 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('ts', '0002_remove_logthermostat_hum'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='logthermostat', | ||
name='on', | ||
), | ||
migrations.AddField( | ||
model_name='logthermostat', | ||
name='light', | ||
field=models.BooleanField(default=False, verbose_name='Стан освітлення'), | ||
), | ||
migrations.AddField( | ||
model_name='logthermostat', | ||
name='light_B', | ||
field=models.IntegerField(default=0, verbose_name='B'), | ||
), | ||
migrations.AddField( | ||
model_name='logthermostat', | ||
name='light_G', | ||
field=models.IntegerField(default=0, verbose_name='G'), | ||
), | ||
migrations.AddField( | ||
model_name='logthermostat', | ||
name='light_R', | ||
field=models.IntegerField(default=0, verbose_name='R'), | ||
), | ||
migrations.AddField( | ||
model_name='logthermostat', | ||
name='set_co2', | ||
field=models.FloatField(blank=True, null=True, verbose_name='Встановлений рівень CO2'), | ||
), | ||
migrations.AddField( | ||
model_name='logthermostat', | ||
name='set_temp', | ||
field=models.FloatField(default=0, verbose_name='Встановлена температура'), | ||
), | ||
migrations.AddField( | ||
model_name='logthermostat', | ||
name='thermostat_state', | ||
field=models.BooleanField(default=False, verbose_name='Стан термостату'), | ||
), | ||
migrations.AlterField( | ||
model_name='logthermostat', | ||
name='co2', | ||
field=models.FloatField(blank=True, null=True, verbose_name='Рівень CO2'), | ||
), | ||
migrations.AlterField( | ||
model_name='logthermostat', | ||
name='temp', | ||
field=models.FloatField(default=0, verbose_name='Температура'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters