Skip to content

Commit

Permalink
moar fields for PPD42NS firmware ...
Browse files Browse the repository at this point in the history
  • Loading branch information
mfa committed Apr 16, 2016
1 parent 3ccae4e commit 201d0c1
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
20 changes: 20 additions & 0 deletions feinstaub/sensors/migrations/0017_auto_20160416_1803.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-04-16 18:03
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('sensors', '0016_auto_20160209_2030'),
]

operations = [
migrations.AlterField(
model_name='sensordatavalue',
name='value_type',
field=models.CharField(choices=[('P1', '1µm particles'), ('P2', '2.5µm particles'), ('durP1', 'duration 1µm'), ('durP2', 'duration 2.5µm'), ('ratioP1', 'ratio 1µm in percent'), ('ratioP2', 'ratio 2.5µm in percent'), ('samples', 'samples'), ('min_micro', 'min_micro'), ('max_micro', 'max_micro'), ('temperature', 'Temperature'), ('humidity', 'Humidity'), ('pressure', 'Pa'), ('altitude', 'meter'), ('pressure_sealevel', 'Pa (sealevel)'), ('brightness', 'Brightness'), ('dust_density', 'Dust density in mg/m3'), ('vo_raw', 'Dust voltage raw'), ('voltage', 'Dust voltage calculated'), ('P10', '1µm particles'), ('P25', '2.5µm particles'), ('durP10', 'duration 1µm'), ('durP25', 'duration 2.5µm'), ('ratioP10', 'ratio 1µm in percent'), ('ratioP25', 'ratio 2.5µm in percent'), ('door_state', 'door state (open/closed)')], db_index=True, max_length=100),
),
]
3 changes: 3 additions & 0 deletions feinstaub/sensors/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ def __str__(self):
('durP2', 'duration 2.5µm'),
('ratioP1', 'ratio 1µm in percent'),
('ratioP2', 'ratio 2.5µm in percent'),
('samples', 'samples'),
('min_micro', 'min_micro'),
('max_micro', 'max_micro'),
# sht10-sht15; dht11, dht22; bmp180
('temperature', 'Temperature'),
# sht10-sht15; dht11, dht22
Expand Down

0 comments on commit 201d0c1

Please sign in to comment.