Skip to content

Commit

Permalink
Merge pull request #47 from theyosh/feature/audio_modules
Browse files Browse the repository at this point in the history
Feature/audio modules. Fix #42
  • Loading branch information
theyosh authored Nov 14, 2017
2 parents 99d0715 + 3e44b24 commit 75769a0
Show file tree
Hide file tree
Showing 48 changed files with 3,554 additions and 1,019 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ settings.cfg
history.db*
static/webcam/*.jpg
log/*.log*
audio/*
description.txt
weather.txt
107 changes: 102 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,102 @@ Changelog
=========


(unreleased)
3.1.0 (2017-11-14)
------------

**New**
- Add logfile compressio. [TheYOSH]
- Add audio preview player. [TheYOSH]
- Add audio usage page. [TheYOSH]
- Add better configuration upgrading and logging. [TheYOSH]
- Add disk usage stats and graphs. [TheYOSH]
- Add automatic database upgrades during startup. [TheYOSH]
- Add disk stats part1. [TheYOSH]
- Add soundcard selection which adds the option to use USB soundscards.
[TheYOSH]
- Added player and dimmer switch warning to power switch settings page
and playlist page. [TheYOSH]
- Add information text and changed showing help information. [TheYOSH]
- Add player disabled message. [TheYOSH]
- Add PWM Dimmer check and disable audio when a PWM dimmer is used.
[TheYOSH]
- Add web based audio player. Add playlist options repeat and shuffle.
[TheYOSH]
- Add support for repeat and shuffle playlists. [TheYOSH]
- Add extra check if switch history data is available. Fix [#41](https://github.com/theyosh/TerrariumPI/issues/41).
[TheYOSH]
- Add Leaflet.loading as submodule. [TheYOSH]
- Add Leaflet fullscreen as submodule. [TheYOSH]
- Add check for non existing sensor ids. [#38](https://github.com/theyosh/TerrariumPI/issues/38). [TheYOSH]
- Add extra information when rebooting. [TheYOSH]

**Fixes**
- Fix updating weather data when offline. [TheYOSH]
- Fix logging. [TheYOSH]
- Small fixes. [TheYOSH]
- Small fixes. [TheYOSH]
- Fix logging for saving new doors. [TheYOSH]
- Fix logging for saving new switches. [TheYOSH]
- Fix audio playlists reloading. [TheYOSH]
- Fix notification message color. [TheYOSH]
- Fix switch toggleing. [TheYOSH]
- Fix HTML in dutch translation. [TheYOSH]
- Fix dimmer detection. [TheYOSH]
- Fix repeat and shuffle switches when a new playlist is added.
[TheYOSH]
- Fix open door indicator. [TheYOSH]
- Attempt to fix issue [#44](https://github.com/theyosh/TerrariumPI/issues/44). [TheYOSH]
- Final fix German language. Thanks @vanessa2013. [TheYOSH]
- Fix German translation. [TheYOSH]
- Fix water price calculation. [TheYOSH]
- Fix [#40](https://github.com/theyosh/TerrariumPI/issues/40). Keeping your iguana nicely warm. [TheYOSH]
- Fix [#36](https://github.com/theyosh/TerrariumPI/issues/36). [TheYOSH]

**Updates**
- Update changelog. [TheYOSH]
- Update Dutch translation. [TheYOSH]
- Update logging. [TheYOSH]
- Update logging. [TheYOSH]
- Update disk and memory graphs. [TheYOSH]
- Update language configuration variable. [TheYOSH]
- Update translations. [TheYOSH]
- Update logging. [TheYOSH]
- Update changelog. [TheYOSH]
- Update module fancybox. [TheYOSH]
- Update version number. [TheYOSH]
- Update readme documentation. [TheYOSH]
- Update translations. [TheYOSH]
- Major update. Transform all BCM pin numbering to GPIO in config. Code
will transform to BCM numbering when needed. Makes it easier to add
GPIO based hardware. [TheYOSH]
- Update price formatting power and water usage on the dasboard.
[TheYOSH]
- Update German translation. [TheYOSH]
- Audio update to get Pi silent during startup :( [TheYOSH]
- Better submodules update support. [TheYOSH]
- Update with remote master. [TheYOSH]

**Other**
- Clean up weather code. [TheYOSH]
- Remove debug. [TheYOSH]
- Log volume changes. [TheYOSH]
- Better DHT sensor warnings. [TheYOSH]
- Max timeout DHT senors is 10 seconds. [TheYOSH]
- Code cleanup. [TheYOSH]
- Cleanup Audio player code. [TheYOSH]
- Remove debug. [TheYOSH]
- Merge branch 'master' into feature/audio_modules. [TheYOSH]
- Final tuning audio. [TheYOSH]
- Merge branch 'master' into feature/audio_modules. [TheYOSH]
- Remove debug. [TheYOSH]
- Temp stash. [TheYOSH]
- First attempt to add an audio system with audio files and playlists.
[#42](https://github.com/theyosh/TerrariumPI/issues/42). [TheYOSH]


3.0.0 (2017-10-29)
------------------

**New**
- Add sqlite3 dependency for manual database manupilation. [TheYOSH]
- Added webcam update timeout. Webcams are now only updated once a
Expand All @@ -18,7 +111,6 @@ Changelog

**Fixes**
- Fix empty graphs. [TheYOSH]
- Fixed missing translation in home dashboard. [#33](https://github.com/theyosh/TerrariumPI/issues/33). [TheYOSH]
- Fix timer issues [#34](https://github.com/theyosh/TerrariumPI/issues/34). [TheYOSH]
- Fix graphing empty graphs and smaller dimmer knob. [TheYOSH]
- Fixed total duration calculation in total power usage. [TheYOSH]
Expand All @@ -27,8 +119,11 @@ Changelog
- Fix switch toggle to support dimmers. [TheYOSH]
- Fix devision by zero. [TheYOSH]
- Fix SQL duplicate key error. [TheYOSH]
- Fix timer issues [#34](https://github.com/theyosh/TerrariumPI/issues/34). [TheYOSH]
- Fixed missing translation in home dashboard. [#33](https://github.com/theyosh/TerrariumPI/issues/33). [TheYOSH]

**Updates**
- Update changelog. [TheYOSH]
- Update version number. [TheYOSH]
- Update engine loop to make sure at least one run per minute is
possible. Should prevent spicky graphs. [TheYOSH]
Expand All @@ -41,11 +136,15 @@ Changelog
[TheYOSH]
- Updated data logging and graphing. Reduced load on the client side.
[TheYOSH]
- Update gentelella. [TheYOSH]
- Updated dimmer settings in switch settings page. [TheYOSH]
- Updated supported hardware page. [TheYOSH]
- Update environment dashboard modus names [#34](https://github.com/theyosh/TerrariumPI/issues/34). [TheYOSH]
- Update gentelella. [TheYOSH]

**Other**
- Merge pull request [#35](https://github.com/theyosh/TerrariumPI/issues/35) from theyosh/feature/power_dimmer. [TheYOSH]

Feature/power dimmer
- Collector code clean up and better data storage and retrieval.
[TheYOSH]
- Merge branch 'master' into feature/power_dimmer. [TheYOSH]
Expand Down Expand Up @@ -509,5 +608,3 @@ Changelog
- Typo. [TheYOSH]
- Moved door status to own page. [TheYOSH]
- Use system default pip. [TheYOSH]


7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# TerrariumPI 3.0.0
# TerrariumPI 3.1.0
Software for cheap home automation of your reptile terrarium or any other enclosed environment. With this software you are able to control for example a terrarium so that the temperature and humidity is of a constant value. Controlling the temperature can be done with heat lights, external heating or cooling system. As long as there is one temperature sensor available the software is able to keep a constant temperature.

For humidity control there is support for a spraying system. The sprayer can be configured to spray for an X amount of seconds and there is a minumal period between two spray actions. Use at least one humitidy sensors to get a constant humidity value.
Expand Down Expand Up @@ -30,6 +30,11 @@ And all this is controlled with a nice webinterface based on [Gentelella a Boots
- Weather forecast from external source for lighting schema
- Temperatures in Celsius or Fahrenheit
- Alarm detections
- Audio support through interal audio jack or USB soundcards #42
- Create playlists (loop and repeat)
- Volume controle in the webinterface
- Uploadig audio files through webinterface
- Audio meta data support

It is currently controling my reptile terrarium for more then three years! And my Madagascar Day Gecko is very happy with it!

Expand Down
Empty file added audio/.gitignore
Empty file.
5 changes: 3 additions & 2 deletions defaults.cfg
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
[terrariumpi]
host = ::
port = 8090
version = 3.0.0
version = 3.1.0
title = TerrariumPI %(version)s
power_usage = 5
owfs_port = 4304
admin = admin
password = password
active_language = en_US
language = en_US
temperature_indicator = C
power_price = 0
water_price = 0
soundcard = 0

[weather]
location = http://www.yr.no/place/Netherlands/Groningen/Groningen
Expand Down
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ apt-get -y autoremove
# Install required packages to get the terrarium software running
aptitude -y update
aptitude -y safe-upgrade
aptitude -y install libftdi1 screen python-imaging python-dateutil python-ow python-rpi.gpio python-psutil git subversion watchdog build-essential python-dev python-picamera python-opencv python-pip python-pigpio i2c-tools owfs ow-shell sqlite3
aptitude -y install libftdi1 screen python-imaging python-dateutil python-ow python-rpi.gpio python-psutil git subversion watchdog build-essential python-dev python-picamera python-opencv python-pip python-pigpio i2c-tools owfs ow-shell sqlite3 vlc-nox python-mediainfodll libasound2-dev

# Basic config:
raspi-config
Expand All @@ -29,7 +29,7 @@ git submodule update
cd "${BASEDIR}/.."

# Install multiple python modules
pip install --upgrade gevent untangle uptime bottle bottle_websocket pylibftdi
pip install --upgrade gevent untangle uptime bottle bottle_websocket pylibftdi pyalsaaudio

# Install https://pypi.python.org/pypi/pylibftdi
# Docu https://pylibftdi.readthedocs.io/
Expand Down
Binary file modified locales/en_US/LC_MESSAGES/terrariumpi.mo
Binary file not shown.
Loading

0 comments on commit 75769a0

Please sign in to comment.