www/Makefile

Thu, 10 Jan 2019 20:22:06 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Thu, 10 Jan 2019 20:22:06 +0100
changeset 185
4c25db9e8102
parent 183
a810539dc218
child 186
a7c2c61a01ad
permissions
-rw-r--r--

Added configuration settings for MQTT in config.php. Finished screen box sizes for the fermenters monitor. Select beername and code from the current brew products and send it to the fermenter. Added switch commands to the fermenter. Delay data get from the fermenter after sending any command so there is time to process the commands. Turn switches off when the mode changes. Removed 0.2 degrees setpoint diffs for low and high, the fermenter must deal with it. Prevent turning the heater and cooler together on.

2
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
1 # Makefile for the bms webserver
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
2 # Copyright (c) 2018 by M. Broek.
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
3
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
4 include ../Makefile.global
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
5
183
a810539dc218 Added cmd_fermenter.php which interfaces http POST commands to MQTT using mosquitto_pub in a shell. Several chnges to the monitor fermenter screen.
Michiel Broek <mbroek@mbse.eu>
parents: 178
diff changeset
6 SRC = cmd_fermenter.php config.php.dist favicon.ico gen_about.php getfermentablesources.php \
173
4cda47269c02 Updated Makefile
Michiel Broek <mbroek@mbse.eu>
parents: 111
diff changeset
7 getfermenter.php getfermentlog.php gethopsources.php getmiscsources.php \
4cda47269c02 Updated Makefile
Michiel Broek <mbroek@mbse.eu>
parents: 111
diff changeset
8 getnode.php getwatersources.php getyeastsources.php index.php \
4cda47269c02 Updated Makefile
Michiel Broek <mbroek@mbse.eu>
parents: 111
diff changeset
9 inv_equipments.php inv_fermentables.php inv_hops.php inv_instock.php \
4cda47269c02 Updated Makefile
Michiel Broek <mbroek@mbse.eu>
parents: 111
diff changeset
10 inv_miscs.php inv_suppliers.php inv_waters.php inv_yeasts.php \
4cda47269c02 Updated Makefile
Michiel Broek <mbroek@mbse.eu>
parents: 111
diff changeset
11 log_fermentation.php mon_brewer.php mon_fermenter.php mon_node.php \
178
dbb74e0b8067 Updated Makefile
Michiel Broek <mbroek@mbse.eu>
parents: 176
diff changeset
12 prod_edit.php prod_export.php prod_inprod.php prod_new.php prod_print.php \
173
4cda47269c02 Updated Makefile
Michiel Broek <mbroek@mbse.eu>
parents: 111
diff changeset
13 profile_mash.php profile_setup.php profile_styles.php profile_water.php \
176
316f86778b6d Updated the Makefile
Michiel Broek <mbroek@mbse.eu>
parents: 173
diff changeset
14 rec_edit.php rec_export.php rec_main.php rec_new.php rec_print.php \
316f86778b6d Updated the Makefile
Michiel Broek <mbroek@mbse.eu>
parents: 173
diff changeset
15 version.php
5
36387e45a194 Added Makefile install commands
Michiel Broek <mbroek@mbse.eu>
parents: 4
diff changeset
16 SUB = version.php.in images/* css/* jqwidgets/* jqwidgets/styles/* \
10
606b4af8f918 Start of the merge with another unfinished project
Michiel Broek <mbroek@mbse.eu>
parents: 5
diff changeset
17 jqwidgets/styles/images/* jqwidgets/globalization/* js/* \
81
aad866b2bcea Fixed extra include file
Michiel Broek <mbroek@mbse.eu>
parents: 36
diff changeset
18 includes/* fpdf/* import/*
2
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
19 OTHER = Makefile
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
20
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
21 #############################################################################
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
22
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
23 .c.o:
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
24 ${CC} ${CFLAGS} ${INCLUDES} ${DEFINES} -c $<
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
25
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
26 all:
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
27
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
28 clean:
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
29 rm -f version.php
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
30
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
31 install:
5
36387e45a194 Added Makefile install commands
Michiel Broek <mbroek@mbse.eu>
parents: 4
diff changeset
32 ${INSTALL} -d -g 314 -o 314 ${PREFIX} ${WWWDIR} ${WWWDIR}/css \
24
754c56e785c6 Fixed web installation
Michiel Broek <mbroek@mbse.eu>
parents: 23
diff changeset
33 ${WWWDIR}/jqwidgets ${WWWDIR}/js ${WWWDIR}/images/ ${WWWDIR}/includes/
183
a810539dc218 Added cmd_fermenter.php which interfaces http POST commands to MQTT using mosquitto_pub in a shell. Several chnges to the monitor fermenter screen.
Michiel Broek <mbroek@mbse.eu>
parents: 178
diff changeset
34 ${INSTALL} -d -g 314 -o 314 -m 0777 ${WWWDIR}/run
5
36387e45a194 Added Makefile install commands
Michiel Broek <mbroek@mbse.eu>
parents: 4
diff changeset
35 ${INSTALL} -g 314 -o 314 ${SRC} ${WWWDIR}/
36387e45a194 Added Makefile install commands
Michiel Broek <mbroek@mbse.eu>
parents: 4
diff changeset
36 ${INSTALL} -g 314 -o 314 version.php ${WWWDIR}/
36387e45a194 Added Makefile install commands
Michiel Broek <mbroek@mbse.eu>
parents: 4
diff changeset
37 ${INSTALL} -g 314 -o 314 css/* ${WWWDIR}/css/
36387e45a194 Added Makefile install commands
Michiel Broek <mbroek@mbse.eu>
parents: 4
diff changeset
38 ${INSTALL} -g 314 -o 314 images/* ${WWWDIR}/images/
24
754c56e785c6 Fixed web installation
Michiel Broek <mbroek@mbse.eu>
parents: 23
diff changeset
39 ${INSTALL} -g 314 -o 314 includes/* ${WWWDIR}/includes/
5
36387e45a194 Added Makefile install commands
Michiel Broek <mbroek@mbse.eu>
parents: 4
diff changeset
40 cp -r jqwidgets/* ${WWWDIR}/jqwidgets/
36387e45a194 Added Makefile install commands
Michiel Broek <mbroek@mbse.eu>
parents: 4
diff changeset
41 chown -R 314:314 ${WWWDIR}/jqwidgets
36387e45a194 Added Makefile install commands
Michiel Broek <mbroek@mbse.eu>
parents: 4
diff changeset
42 ${INSTALL} -g 314 -o 314 js/* ${WWWDIR}/js/
2
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
43
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
44 filelist: Makefile
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
45 BASE=`pwd`; \
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
46 BASE=`basename $${BASE}`; \
5
36387e45a194 Added Makefile install commands
Michiel Broek <mbroek@mbse.eu>
parents: 4
diff changeset
47 (for f in ${SRC} ${SUB} ${OTHER} ;do echo ${PACKAGE}-${VERSION}/$${BASE}/$$f; done) >filelist
2
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
48
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
49 depend:
282e7d2bb28a Initial web server
Michiel Broek <mbroek@mbse.eu>
parents:
diff changeset
50

mercurial