-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #423 from thorrak/dev
Update to latest dev
- Loading branch information
Showing
24 changed files
with
1,017 additions
and
32 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
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
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,34 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11.11 on 2019-11-29 21:31 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('gravity', '0004_BrewersFriend_Support'), | ||
('external_push', '0004_Brewfather_Support'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='ThingSpeakPushTarget', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('name', models.CharField(help_text='Unique name for this push target', max_length=48, unique=True)), | ||
('status', models.CharField(choices=[('active', 'Active'), ('disabled', 'Disabled'), ('error', 'Error')], default='active', help_text='Status of this push target', max_length=24)), | ||
('push_frequency', models.IntegerField(choices=[(901, '15 minutes'), (1801, '30 minutes'), (3601, '1 hour')], default=900, help_text='How often to push data to the target')), | ||
('api_key', models.CharField(default='', help_text='Brewers Friend API Key', max_length=256)), | ||
('brewpi_to_push_id', models.ForeignKey(blank=True, default=None, help_text="BrewPi Devices to push (ignored if 'all' devices selected)", related_name='push_targets', to='app.BrewPiDevice')), | ||
('error_text', models.TextField(blank=True, default='', help_text='The error (if any) encountered on the last push attempt', null=True)), | ||
('last_triggered', models.DateTimeField(auto_now_add=True, help_text='The last time we pushed data to this target')), | ||
], | ||
options={ | ||
'verbose_name': 'ThingSpeak Push Target', | ||
'verbose_name_plural': 'ThingSpeak Push Targets', | ||
}, | ||
) | ||
] |
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,34 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11.27 on 2019-12-23 13:58 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('gravity', '0004_BrewersFriend_Support'), | ||
('external_push', '0005_ThingSpeak_Support'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='GrainfatherPushTarget', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('status', models.CharField(choices=[('active', 'Active'), ('disabled', 'Disabled'), ('error', 'Error')], default='active', help_text='Status of this push target', max_length=24)), | ||
('push_frequency', models.IntegerField(choices=[(901, '15 minutes'), (1801, '30 minutes'), (3601, '1 hour')], default=900, help_text='How often to push data to the target')), | ||
('logging_url', models.CharField(default='', help_text='Grainfather Logging URL', max_length=256)), | ||
('gf_name', models.CharField(default='', help_text='Grainfather brew id (number)', max_length=256)), | ||
('error_text', models.TextField(blank=True, default='', help_text='The error (if any) encountered on the last push attempt', null=True)), | ||
('last_triggered', models.DateTimeField(auto_now_add=True, help_text='The last time we pushed data to this target')), | ||
('gravity_sensor_to_push', models.ForeignKey(help_text='Gravity Sensor to push (create one push target per sensor to push)', on_delete=django.db.models.deletion.CASCADE, related_name='grainfather_push_target', to='gravity.GravitySensor')), | ||
], | ||
options={ | ||
'verbose_name': 'Grainfather Push Target', | ||
'verbose_name_plural': 'Grainfather Push Targets', | ||
}, | ||
), | ||
] |
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,36 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11.27 on 2020-02-03 04:28 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('app', '0009_auto_20180709_0256'), | ||
('external_push', '0006_Grainfather_Support'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='thingspeakpushtarget', | ||
name='brewpi_to_push_id', | ||
), | ||
migrations.AddField( | ||
model_name='thingspeakpushtarget', | ||
name='brewpi_to_push', | ||
field=models.ForeignKey(blank=True, default=None, help_text="BrewPi Devices to push (ignored if 'all' devices selected)", on_delete=django.db.models.deletion.CASCADE, related_name='thingspeak_push_targets', to='app.BrewPiDevice'), | ||
), | ||
migrations.AlterField( | ||
model_name='thingspeakpushtarget', | ||
name='api_key', | ||
field=models.CharField(default='', help_text='ThingSpeak Channel API Key', max_length=256), | ||
), | ||
migrations.AlterField( | ||
model_name='thingspeakpushtarget', | ||
name='push_frequency', | ||
field=models.IntegerField(choices=[(59, '1 minute'), (119, '2 minutes'), (299, '5 minutes'), (599, '10 minutes'), (899, '15 minutes'), (1799, '30 minutes'), (3599, '1 hour')], default=900, help_text='How often to push data to the target'), | ||
), | ||
] |
Oops, something went wrong.