Skip to content

Commit

Permalink
Merge pull request #53 from acuparse/dev
Browse files Browse the repository at this point in the history
Version to 2.7.1
  • Loading branch information
maxwellpower committed Jan 3, 2019
2 parents 78cd9de + 931dae6 commit ab96178
Show file tree
Hide file tree
Showing 60 changed files with 14,266 additions and 106 deletions.
2 changes: 1 addition & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"name":"acuparse","version":"2.7.0-release","schema":"2.5","repo":"https://raw.githubusercontent.com/acuparse/acuparse/master/.version","homepage":"https://www.acuparse.com"}
{"name":"acuparse","version":"2.7.1-release","schema":"2.5","repo":"https://raw.githubusercontent.com/acuparse/acuparse/master/.version","homepage":"https://www.acuparse.com"}
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

## [[2.7.1]](https://www.acuparse.com/releases/v2-7-1/) - 2019-01-02
### Changed
- Bootstrap to V4.2.1.
- Font Awesome to V5.6.3.
- Cleanup variables in camera upload scripts.
- Update Copyright.

### Fixed
- Header display on tiny screens.

## [[2.7.0]](https://www.acuparse.com/releases/v2-7-0/) - 2018-12-01
### Added
- Display Mode.
Expand Down
36 changes: 18 additions & 18 deletions cam/templates/combined.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh
##
# Acuparse - AcuRite®‎ Access/smartHUB and IP Camera Data Processing, Display, and Upload.
# @copyright Copyright (C) 2015-2018 Maxwell Power
# @copyright Copyright (C) 2015-2019 Maxwell Power
# @author Maxwell Power <max@acuparse.com>
# @link http://www.acuparse.com
# @license AGPL-3.0+
Expand Down Expand Up @@ -42,44 +42,44 @@ STATION_INFO=$(wget 'http://127.0.0.1/?cam' -q -O -)
TIMESTAMP=$(date +"%A, %d %B %Y %H:%M %Z")

echo "Getting camera image"
wget $CAMERA_HOST/$CAMERA_FILENAME
wget ${CAMERA_HOST}/${CAMERA_FILENAME}

echo "Applying Timestamp and Copyright"
convert $CAMERA_FILENAME \
-resize $RESIZE \
convert ${CAMERA_FILENAME} \
-resize ${RESIZE} \
-font DejaVu-Sans-Bold -pointsize 20 \
-draw "gravity south \
fill black text 0,36 '$TIMESTAMP' \
fill OrangeRed2 text 1,37 '$TIMESTAMP' " \
fill black text 0,36 '${TIMESTAMP}' \
fill OrangeRed2 text 1,37 '${TIMESTAMP}' " \
-font DejaVu-Sans-Bold -pointsize 12 \
-draw "gravity south \
fill black text 0,18 '$STATION_INFO' \
fill OrangeRed2 text 1,19 '$STATION_INFO' " \
fill black text 0,18 '${STATION_INFO}' \
fill OrangeRed2 text 1,19 '${STATION_INFO}' " \
-draw "gravity south \
fill black text 0,0 '$WATERMARK' \
fill OrangeRed2 text 1,1 '$WATERMARK' " \
fill black text 0,0 '${WATERMARK}' \
fill OrangeRed2 text 1,1 '${WATERMARK}' " \
image.jpg

echo "Sending image to Weather Underground"
ftp -n webcam.wunderground.com <<END_SCRIPT > /opt/acuparse/logs/wu_upload.log 2>&1
quote USER $WU_CAM_USER
quote PASS $WU_CAM_PASS
quote USER ${WU_CAM_USER}
quote PASS ${WU_CAM_PASS}
binary
put image.jpg
quit
END_SCRIPT

echo "Moving image to webserver"
cp image.jpg $WEBDIR/latest.jpg
mkdir -p $WEBDIR/$ARCHIVE_DATE
cp image.jpg $WEBDIR/$ARCHIVE_DATE/$ARCHIVE_TIME.jpg
chown -R www-data:www-data $WEBDIR
cp image.jpg ${WEBDIR}/latest.jpg
mkdir -p ${WEBDIR}/${ARCHIVE_DATE}
cp image.jpg ${WEBDIR}/${ARCHIVE_DATE}/${ARCHIVE_TIME}.jpg
chown -R www-data:www-data ${WEBDIR}
echo "Updating Animation"
convert -delay 25 -loop 0 $WEBDIR/$ARCHIVE_DATE/*.jpg $WEBDIR/$ARCHIVE_DATE/daily.gif
convert -delay 25 -loop 0 ${WEBDIR}/${ARCHIVE_DATE}/*.jpg ${WEBDIR}/${ARCHIVE_DATE}/daily.gif

echo "Cleaning up files"

rm image.jpg*
rm $CAMERA_FILENAME*
rm ${CAMERA_FILENAME}*

echo "Done Processing"
18 changes: 9 additions & 9 deletions cam/templates/local.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh
##
# Acuparse - AcuRite®‎ Access/smartHUB and IP Camera Data Processing, Display, and Upload.
# @copyright Copyright (C) 2015-2018 Maxwell Power
# @copyright Copyright (C) 2015-2019 Maxwell Power
# @author Maxwell Power <max@acuparse.com>
# @link http://www.acuparse.com
# @license AGPL-3.0+
Expand Down Expand Up @@ -40,11 +40,11 @@ REMOTE_SCRIPT='/opt/acuparse/cam/remote.sh'
TIMESTAMP=$(date +"%A, %d %B %Y %H:%M %Z")

echo "Getting camera image"
wget $CAMERA_HOST/$CAMERA_FILENAME
wget ${CAMERA_HOST}/${CAMERA_FILENAME}

echo "Applying Timestamp and Copyright"
convert $CAMERA_FILENAME \
-resize $RESIZE \
convert ${CAMERA_FILENAME} \
-resize ${RESIZE} \
-font DejaVu-Sans-Bold -pointsize 20 \
-draw "gravity south \
fill black text 0,36 '$TIMESTAMP' \
Expand All @@ -56,24 +56,24 @@ convert $CAMERA_FILENAME \
image.jpg

echo "Sending image to remote server for processing"
scp image.jpg $REMOTE_USER@$REMOTE_HOST:$REMOTE_TMP
scp image.jpg ${REMOTE_USER}@${REMOTE_HOST}:${REMOTE_TMP}

echo "Running remote commands"
ssh $REMOTE_USER@$REMOTE_HOST 'sh ' $REMOTE_SCRIPT
ssh ${REMOTE_USER}@${REMOTE_HOST} 'sh ' ${REMOTE_SCRIPT}

# Local Archiving
# ARCHIVE=$(date +"%F_%H%M")
# echo "Archiving"
# convert $CAMERA_FILENAME \
# convert ${CAMERA_FILENAME} \
# -font DejaVu-Sans-Bold -pointsize 16 \
# -draw "gravity south \
# fill black text 0,0 '$TIMESTAMP' \
# fill OrangeRed2 text 1,1 '$TIMESTAMP' " \
# archive.jpg
# mv archive.jpg archive/$ARCHIVE.jpg
# mv archive.jpg archive/${ARCHIVE}.jpg

echo "Cleaning up files"
rm image.jpg*
rm $CAMERA_FILENAME*
rm ${CAMERA_FILENAME}*

echo "Done Processing"
18 changes: 9 additions & 9 deletions cam/templates/remote.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh
##
# Acuparse - AcuRite®‎ Access/smartHUB and IP Camera Data Processing, Display, and Upload.
# @copyright Copyright (C) 2015-2018 Maxwell Power
# @copyright Copyright (C) 2015-2019 Maxwell Power
# @author Maxwell Power <max@acuparse.com>
# @link http://www.acuparse.com
# @license AGPL-3.0+
Expand Down Expand Up @@ -40,7 +40,7 @@ APACHE_GROUP='www-data'

echo "Starting remote processing"

cd $BASEDIR
cd ${BASEDIR}

echo "Applying Weather Info Watermark"
convert image.jpg \
Expand All @@ -52,21 +52,21 @@ convert image.jpg \

echo "Sending image to Weather Underground"
ftp -n webcam.wunderground.com <<EOF > /opt/acuparse/logs/wu_upload.log 2>&1
quote USER $WU_CAM_USER
quote PASS $WU_CAM_PASS
quote USER ${WU_CAM_USER}
quote PASS ${WU_CAM_PASS}
binary
put image.jpg
quit
EOF

echo "Moving image to webserver"
cp image.jpg $WEBDIR/latest.jpg
mkdir -p $WEBDIR/$ARCHIVE_DATE
cp image.jpg $WEBDIR/$ARCHIVE_DATE/$ARCHIVE_TIME.jpg
chown -R $APACHE_USER:$APACHE_GROUP $WEBDIR
cp image.jpg ${WEBDIR}/latest.jpg
mkdir -p ${WEBDIR}/${ARCHIVE_DATE}
cp image.jpg ${WEBDIR}/${ARCHIVE_DATE}/${ARCHIVE_TIME}.jpg
chown -R ${APACHE_USER}:${APACHE_GROUP} ${WEBDIR}

echo "Updating Animation"
convert -delay 25 -loop 0 $WEBDIR/$ARCHIVE_DATE/*.jpg $WEBDIR/$ARCHIVE_DATE/daily.gif
convert -delay 25 -loop 0 ${WEBDIR}/${ARCHIVE_DATE}/*.jpg ${WEBDIR}/${ARCHIVE_DATE}/daily.gif

echo "Removing processed image"
rm image.jpg*
Expand Down
2 changes: 1 addition & 1 deletion config/acuparse-ssl.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
##
# Acuparse - AcuRite®‎ Access/smartHUB and IP Camera Data Processing, Display, and Upload.
# @copyright Copyright (C) 2015-2018 Maxwell Power
# @copyright Copyright (C) 2015-2019 Maxwell Power
# @author Maxwell Power <max@acuparse.com>
# @link http://www.acuparse.com
# @license AGPL-3.0+
Expand Down
2 changes: 1 addition & 1 deletion config/acuparse.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
##
# Acuparse - AcuRite®‎ Access/smartHUB and IP Camera Data Processing, Display, and Upload.
# @copyright Copyright (C) 2015-2018 Maxwell Power
# @copyright Copyright (C) 2015-2019 Maxwell Power
# @author Maxwell Power <max@acuparse.com>
# @link http://www.acuparse.com
# @license AGPL-3.0+
Expand Down
2 changes: 1 addition & 1 deletion cron/cron.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Acuparse - AcuRite®‎ Access/smartHUB and IP Camera Data Processing, Display, and Upload.
* @copyright Copyright (C) 2015-2018 Maxwell Power
* @copyright Copyright (C) 2015-2019 Maxwell Power
* @author Maxwell Power <max@acuparse.com>
* @link http://www.acuparse.com
* @license AGPL-3.0+
Expand Down
11 changes: 7 additions & 4 deletions sql/master.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Acuparse - AcuRite®‎ Access/smartHUB and IP Camera Data Processing, Display, and Upload.
* @copyright Copyright (C) 2015-2018 Maxwell Power
* @copyright Copyright (C) 2015-2019 Maxwell Power
* @author Maxwell Power <max@acuparse.com>
* @link http://www.acuparse.com
* @license AGPL-3.0+
Expand Down Expand Up @@ -294,10 +294,13 @@ ALTER TABLE `password_recover`
ON DELETE CASCADE
ON UPDATE CASCADE;

INSERT INTO `rainfall` (`rainin`, `last_update`) VALUES ('0.00', '2018-01-01 00:00:00');
INSERT INTO `rainfall` (`rainin`, `last_update`)
VALUES ('0.00', '2019-01-01 00:00:00');

INSERT INTO `outage_alert` (`last_sent`, `status`) VALUES ('2018-01-01 00:00:00', '0');
INSERT INTO `outage_alert` (`last_sent`, `status`)
VALUES ('2019-01-01 00:00:00', '0');

INSERT INTO `last_update` (`timestamp`) VALUES ('2018-01-01 00:00:00');
INSERT INTO `last_update` (`timestamp`)
VALUES ('2019-01-01 00:00:00');

INSERT INTO `system` (`name`, `value`) VALUES ('schema', '2.5');
2 changes: 1 addition & 1 deletion sql/trim/disable.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Acuparse - AcuRite®‎ Access/smartHUB and IP Camera Data Processing, Display, and Upload.
* @copyright Copyright (C) 2015-2018 Maxwell Power
* @copyright Copyright (C) 2015-2019 Maxwell Power
* @author Maxwell Power <max@acuparse.com>
* @link http://www.acuparse.com
* @license AGPL-3.0+
Expand Down
2 changes: 1 addition & 1 deletion sql/trim/enable.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Acuparse - AcuRite®‎ Access/smartHUB and IP Camera Data Processing, Display, and Upload.
* @copyright Copyright (C) 2015-2018 Maxwell Power
* @copyright Copyright (C) 2015-2019 Maxwell Power
* @author Maxwell Power <max@acuparse.com>
* @link http://www.acuparse.com
* @license AGPL-3.0+
Expand Down
2 changes: 1 addition & 1 deletion sql/trim/enable_xtower.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Acuparse - AcuRite®‎ Access/smartHUB and IP Camera Data Processing, Display, and Upload.
* @copyright Copyright (C) 2015-2018 Maxwell Power
* @copyright Copyright (C) 2015-2019 Maxwell Power
* @author Maxwell Power <max@acuparse.com>
* @link http://www.acuparse.com
* @license AGPL-3.0+
Expand Down
2 changes: 1 addition & 1 deletion src/fcn/mailer.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Acuparse - AcuRite®‎ Access/smartHUB and IP Camera Data Processing, Display, and Upload.
* @copyright Copyright (C) 2015-2018 Maxwell Power
* @copyright Copyright (C) 2015-2019 Maxwell Power
* @author Maxwell Power <max@acuparse.com>
* @link http://www.acuparse.com
* @license AGPL-3.0+
Expand Down
2 changes: 1 addition & 1 deletion src/fcn/updater/2_x/2_1.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Acuparse - AcuRite®‎ Access/smartHUB and IP Camera Data Processing, Display, and Upload.
* @copyright Copyright (C) 2015-2018 Maxwell Power
* @copyright Copyright (C) 2015-2019 Maxwell Power
* @author Maxwell Power <max@acuparse.com>
* @link http://www.acuparse.com
* @license AGPL-3.0+
Expand Down
2 changes: 1 addition & 1 deletion src/fcn/updater/2_x/2_2.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Acuparse - AcuRite®‎ Access/smartHUB and IP Camera Data Processing, Display, and Upload.
* @copyright Copyright (C) 2015-2018 Maxwell Power
* @copyright Copyright (C) 2015-2019 Maxwell Power
* @author Maxwell Power <max@acuparse.com>
* @link http://www.acuparse.com
* @license AGPL-3.0+
Expand Down
2 changes: 1 addition & 1 deletion src/fcn/updater/2_x/2_3.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Acuparse - AcuRite®‎ Access/smartHUB and IP Camera Data Processing, Display, and Upload.
* @copyright Copyright (C) 2015-2018 Maxwell Power
* @copyright Copyright (C) 2015-2019 Maxwell Power
* @author Maxwell Power <max@acuparse.com>
* @link http://www.acuparse.com
* @license AGPL-3.0+
Expand Down
2 changes: 1 addition & 1 deletion src/fcn/updater/2_x/2_4.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Acuparse - AcuRite®‎ Access/smartHUB and IP Camera Data Processing, Display, and Upload.
* @copyright Copyright (C) 2015-2018 Maxwell Power
* @copyright Copyright (C) 2015-2019 Maxwell Power
* @author Maxwell Power <max@acuparse.com>
* @link http://www.acuparse.com
* @license AGPL-3.0+
Expand Down
2 changes: 1 addition & 1 deletion src/fcn/updater/2_x/2_5.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Acuparse - AcuRite®‎ Access/smartHUB and IP Camera Data Processing, Display, and Upload.
* @copyright Copyright (C) 2015-2018 Maxwell Power
* @copyright Copyright (C) 2015-2019 Maxwell Power
* @author Maxwell Power <max@acuparse.com>
* @link http://www.acuparse.com
* @license AGPL-3.0+
Expand Down
2 changes: 1 addition & 1 deletion src/fcn/updater/2_x/2_6.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Acuparse - AcuRite®‎ Access/smartHUB and IP Camera Data Processing, Display, and Upload.
* @copyright Copyright (C) 2015-2018 Maxwell Power
* @copyright Copyright (C) 2015-2019 Maxwell Power
* @author Maxwell Power <max@acuparse.com>
* @link http://www.acuparse.com
* @license AGPL-3.0+
Expand Down
7 changes: 6 additions & 1 deletion src/fcn/updater/2_x/2_7.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Acuparse - AcuRite®‎ Access/smartHUB and IP Camera Data Processing, Display, and Upload.
* @copyright Copyright (C) 2015-2018 Maxwell Power
* @copyright Copyright (C) 2015-2019 Maxwell Power
* @author Maxwell Power <max@acuparse.com>
* @link http://www.acuparse.com
* @license AGPL-3.0+
Expand Down Expand Up @@ -35,4 +35,9 @@
$config->upload->generic->url = '';
$config->version->app = '2.7.0-release';
$notes .= '<li><strong>' . $config->version->app . '</strong> - ' . 'Numerous changes, see CHANGELOG.md for details.</li>';

// Update from 2.7.0-release
case '2.7.0-release':
$config->version->app = '2.7.1-release';
$notes .= '<li><strong>' . $config->version->app . '</strong> - ' . 'Script Updates and Bug Fixes.</li>';
}
2 changes: 1 addition & 1 deletion src/fcn/weather/getArchiveHTML.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Acuparse - AcuRite®‎ Access/smartHUB and IP Camera Data Processing, Display, and Upload.
* @copyright Copyright (C) 2015-2018 Maxwell Power
* @copyright Copyright (C) 2015-2019 Maxwell Power
* @author Maxwell Power <max@acuparse.com>
* @link http://www.acuparse.com
* @license AGPL-3.0+
Expand Down
2 changes: 1 addition & 1 deletion src/fcn/weather/getArchiveWeatherData.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Acuparse - AcuRite®‎ Access/smartHUB and IP Camera Data Processing, Display, and Upload.
* @copyright Copyright (C) 2015-2018 Maxwell Power
* @copyright Copyright (C) 2015-2019 Maxwell Power
* @author Maxwell Power <max@acuparse.com>
* @link http://www.acuparse.com
* @license AGPL-3.0+
Expand Down
2 changes: 1 addition & 1 deletion src/fcn/weather/getCurrentHTML.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Acuparse - AcuRite®‎ Access/smartHUB and IP Camera Data Processing, Display, and Upload.
* @copyright Copyright (C) 2015-2018 Maxwell Power
* @copyright Copyright (C) 2015-2019 Maxwell Power
* @author Maxwell Power <max@acuparse.com>
* @link http://www.acuparse.com
* @license AGPL-3.0+
Expand Down
2 changes: 1 addition & 1 deletion src/fcn/weather/getCurrentWeatherData.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Acuparse - AcuRite®‎ Access/smartHUB and IP Camera Data Processing, Display, and Upload.
* @copyright Copyright (C) 2015-2018 Maxwell Power
* @copyright Copyright (C) 2015-2019 Maxwell Power
* @author Maxwell Power <max@acuparse.com>
* @link http://www.acuparse.com
* @license AGPL-3.0+
Expand Down
2 changes: 1 addition & 1 deletion src/fcn/weather/weatherIcons.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Acuparse - AcuRite®‎ Access/smartHUB and IP Camera Data Processing, Display, and Upload.
* @copyright Copyright (C) 2015-2018 Maxwell Power
* @copyright Copyright (C) 2015-2019 Maxwell Power
* @author Maxwell Power <max@acuparse.com>
* @link http://www.acuparse.com
* @license AGPL-3.0+
Expand Down
Loading

0 comments on commit ab96178

Please sign in to comment.