-
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.
Signed-off-by: Matheus Fernandes <matheus.souza.fernandes@gmail.com> Signed-off-by: Macario Soares <macario.junior@gmail.com>
- Loading branch information
1 parent
365af10
commit c328209
Showing
12 changed files
with
217 additions
and
116 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{% extends "base.html" %} | ||
{% load i18n %} | ||
|
||
{% block title %}Home{% endblock title %} | ||
|
||
{% block main_content %} | ||
<div id="real-time" class="container"> | ||
<div class="row"> | ||
<div class="s12 m9 col"> | ||
<div class="home-card"> | ||
<div class="card-content"> | ||
<span class="card-title brown-text">{% trans "Brewery" %}.</span> | ||
<span>Actual state</span> | ||
<div id="realtime-chart" class="graph"></div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="s12 m3 col"> | ||
<div class="process-info"> | ||
<h5>Process Info</h5> | ||
<div class="row"> | ||
<div class="s2 col"><i class="material-icons">today</i></div> | ||
<div class="s10 col">10 de dezembro de 2015</div> | ||
</div> | ||
|
||
<div class="row"> | ||
<div class="s2 col"><i class="material-icons">check_box_outline</i></div> | ||
<div class="s10 col">Malt</div> | ||
</div> | ||
|
||
<div class="row"> | ||
<div class="s2 col"><i class="material-icons">check_box_outline_blank</i></div> | ||
<div class="s10 col">Iodine test</div> | ||
</div> | ||
|
||
<div class="row"> | ||
<div class="s2 col"><i class="material-icons">timer</i></div> | ||
<div class="s10 col">01:23:40:40</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
{% endblock main_content %} | ||
|
||
{% block footer_scripts %} | ||
{% load staticfiles %} | ||
<script src="{% static 'js//highcharts.js' %}"></script> | ||
{% include "realtime_chart_js" %} | ||
{% endblock footer_scripts %} |
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,49 @@ | ||
{% extends "base.html" %} | ||
{% load i18n %} | ||
|
||
{% block title %}{% trans "New Process" %}{% endblock title %} | ||
|
||
{% block main_content %} | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="s12 m12 col"> | ||
<h3 class="center-align">{% trans "New Process" %}</h3> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="container"> | ||
<div class="row"> | ||
<div class="s12 m6 col"> | ||
<div class="card"> | ||
<div class="card-content"> | ||
<span class="card-title brown-text">Red Ale</span> | ||
|
||
<p class="recipe-item"><span class="bold">{% trans "Recipe description:" %}</span><br> 5.84% teor de álcool</p> | ||
|
||
<p class="recipe-item"><span class="bold">{% trans "Malt:" %}</span> 5kg <br> 75% Pilsen, 10% Malte de trigo, 10% CaraAmber, 5% CaraAroma</p> | ||
|
||
<p class="recipe-item"><span class="bold">{% trans "Yeast:" %}</span><br> BRY-97</p> | ||
|
||
<p class="recipe-item"><span class="bold">{% trans "Hops:" %}</span><br> | ||
<ul> | ||
<li>Hop1</li> | ||
<li>Hop2</li> | ||
</ul></p> | ||
|
||
<div class="center"> | ||
<a href="" class="btn">Start Process</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="s12 m6 col"> | ||
<div class="card"> | ||
<div class="card-content"> | ||
|
||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{% endblock main_content %} |
This file was deleted.
Oops, something went wrong.
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,9 +1,12 @@ | ||
from django.conf.urls import url | ||
from monitoring.views import get_temperature_average, HomeView | ||
from monitoring.views import (get_temperature_average, HomeView, | ||
NewProcessView, MonitoringView) | ||
|
||
|
||
urlpatterns = [ | ||
url(r'^temperature/average/$', get_temperature_average, | ||
name='temperature_average'), | ||
url(r'^$', HomeView.as_view(), name='home'), | ||
url(r'^monitoring/$', MonitoringView.as_view(), name='monitoring'), | ||
url(r'^process/new$', NewProcessView.as_view(), name='new_process'), | ||
] |
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 |
---|---|---|
@@ -1 +1 @@ | ||
API_URL = 'http://localhost:5000' | ||
API_URL = 'http://localhost:5000/api/' |
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
Oops, something went wrong.