]> ToastFreeware Gitweb - chrisu/seepark.git/log
chrisu/seepark.git
3 weeks agoOptimize imports. master
Philipp Spitzer [Wed, 20 Aug 2025 19:56:01 +0000 (21:56 +0200)]
Optimize imports.

3 weeks agoRemove deprecated/removed json_encoder.
Philipp Spitzer [Wed, 20 Aug 2025 19:54:50 +0000 (21:54 +0200)]
Remove deprecated/removed json_encoder.

3 weeks agoFix error in PDF report generation when no water data is available.
Philipp Spitzer [Wed, 20 Aug 2025 19:49:57 +0000 (21:49 +0200)]
Fix error in PDF report generation when no water data is available.

2 years agoChanges to comply with new flask_sqlalchemy.
Philipp.Spitzer [Sat, 22 Jul 2023 23:04:48 +0000 (01:04 +0200)]
Changes to comply with new flask_sqlalchemy.

3 years agoremove all traces about swimmers from seepark_web.py
gregor herrmann [Thu, 8 Sep 2022 22:42:44 +0000 (00:42 +0200)]
remove all traces about swimmers from seepark_web.py

3 years agoAbfrage für buggy Sensor schnell gefixed.
Chrisu Jähnl [Thu, 9 Dec 2021 22:57:11 +0000 (23:57 +0100)]
Abfrage für buggy Sensor schnell gefixed.

5 years agoowm.py: check for w['rain']['3h']
gregor herrmann [Sun, 30 Aug 2020 14:54:20 +0000 (16:54 +0200)]
owm.py: check for w['rain']['3h']

The missing rain key was checked but sometimes we get the rain but only the 1h interval.

5 years agoconfigure logging module
gregor herrmann [Sun, 9 Feb 2020 00:42:14 +0000 (01:42 +0100)]
configure logging module

otherwise logging.info() doesn't print anything, as the default level is
warn.

hide the senor output behind a check for --verbose

6 years agoReplace debug swimmer count with None.
Philipp Spitzer [Tue, 23 Apr 2019 18:19:28 +0000 (20:19 +0200)]
Replace debug swimmer count with None.

6 years agoDescribe how to setup a virtualenv to generate the sphinx documentation.
Philipp Spitzer [Tue, 23 Apr 2019 18:07:18 +0000 (20:07 +0200)]
Describe how to setup a virtualenv to generate the sphinx documentation.

6 years agoseewasser.py: add a --verbose option for the impatient
gregor herrmann [Sun, 21 Apr 2019 23:08:35 +0000 (01:08 +0200)]
seewasser.py: add a --verbose option for the impatient

6 years agoUpdate autogenerated API docs.
Philipp Spitzer [Tue, 26 Feb 2019 22:27:17 +0000 (23:27 +0100)]
Update autogenerated API docs.

6 years agoAdd link to current and previous month's report.
Philipp Spitzer [Tue, 26 Feb 2019 22:26:59 +0000 (23:26 +0100)]
Add link to current and previous month's report.

6 years agoMonth has to be specified with 2 digits, year with 4 digits.
Philipp Spitzer [Tue, 26 Feb 2019 22:26:24 +0000 (23:26 +0100)]
Month has to be specified with 2 digits, year with 4 digits.

6 years agoAdd unittest for function first_of_month.
Philipp Spitzer [Tue, 26 Feb 2019 22:25:44 +0000 (23:25 +0100)]
Add unittest for function first_of_month.

6 years agoRename function add_month to first_of_month and add functionality do subtract a month.
Philipp Spitzer [Tue, 26 Feb 2019 22:24:06 +0000 (23:24 +0100)]
Rename function add_month to first_of_month and add functionality do subtract a month.

6 years agoUpdate of autogenerated documentation.
Philipp Spitzer [Tue, 26 Feb 2019 21:18:23 +0000 (22:18 +0100)]
Update of autogenerated documentation.

6 years agoreStructuredText format for docstrings of sensorid and sensortype.
Philipp Spitzer [Tue, 26 Feb 2019 21:18:04 +0000 (22:18 +0100)]
reStructuredText format for docstrings of sensorid and sensortype.

6 years agoAutogenerated API documentation.
Philipp Spitzer [Tue, 26 Feb 2019 21:09:43 +0000 (22:09 +0100)]
Autogenerated API documentation.

6 years agoChange report API: Use year/month instead of year-month.
Philipp Spitzer [Tue, 26 Feb 2019 21:09:23 +0000 (22:09 +0100)]
Change report API: Use year/month instead of year-month.

6 years agoAdd link to API documentation to main page.
Philipp Spitzer [Tue, 26 Feb 2019 21:04:41 +0000 (22:04 +0100)]
Add link to API documentation to main page.

6 years agoAdd autogenerated API documentation.
Philipp Spitzer [Tue, 26 Feb 2019 21:04:27 +0000 (22:04 +0100)]
Add autogenerated API documentation.

6 years agoAdd how to create Sphinx documentation to README.
Philipp Spitzer [Tue, 26 Feb 2019 21:02:34 +0000 (22:02 +0100)]
Add how to create Sphinx documentation to README.

6 years agoAdd web target to Sphinx makefile.
Philipp Spitzer [Tue, 26 Feb 2019 20:59:52 +0000 (21:59 +0100)]
Add web target to Sphinx makefile.

6 years agoUpdate Sphinx configuration to reflect new location.
Philipp Spitzer [Tue, 26 Feb 2019 20:14:57 +0000 (21:14 +0100)]
Update Sphinx configuration to reflect new location.

6 years agoMove all sphinx related files to doc.
Philipp Spitzer [Tue, 26 Feb 2019 20:13:14 +0000 (21:13 +0100)]
Move all sphinx related files to doc.

6 years agoIgnore _build directory.
Philipp Spitzer [Tue, 26 Feb 2019 19:45:40 +0000 (20:45 +0100)]
Ignore _build directory.

6 years agoChange configuration so that API doc is generated now by e.g. "SEEPARKINI=seewasser...
Philipp Spitzer [Tue, 26 Feb 2019 19:43:06 +0000 (20:43 +0100)]
Change configuration so that API doc is generated now by e.g. "SEEPARKINI=seewasser.ini make html"

6 years agoAutogenerated sphinx files (by sphinx-quickstart).
Philipp Spitzer [Tue, 26 Feb 2019 19:26:42 +0000 (20:26 +0100)]
Autogenerated sphinx files (by sphinx-quickstart).

6 years agoColorize row labels.
Philipp Spitzer [Tue, 5 Feb 2019 21:38:19 +0000 (22:38 +0100)]
Colorize row labels.

6 years agoAdd swimmer row with dummy data.
Philipp Spitzer [Tue, 5 Feb 2019 21:16:23 +0000 (22:16 +0100)]
Add swimmer row with dummy data.

6 years agoAdd air temperature.
Philipp Spitzer [Tue, 5 Feb 2019 20:09:10 +0000 (21:09 +0100)]
Add air temperature.

6 years agoNow the generated PDF contains only 1 page and in A4 landscape mode.
Philipp Spitzer [Tue, 5 Feb 2019 19:30:32 +0000 (20:30 +0100)]
Now the generated PDF contains only 1 page and in A4 landscape mode.

6 years agoFix typo.
Philipp Spitzer [Tue, 5 Feb 2019 19:07:33 +0000 (20:07 +0100)]
Fix typo.

6 years agoFix typo.
Philipp Spitzer [Mon, 28 Jan 2019 22:39:00 +0000 (23:39 +0100)]
Fix typo.

6 years agoAdd table to report.
Philipp Spitzer [Mon, 28 Jan 2019 22:32:04 +0000 (23:32 +0100)]
Add table to report.

6 years agoProduce PDF with real data.
Philipp Spitzer [Mon, 28 Jan 2019 21:41:54 +0000 (22:41 +0100)]
Produce PDF with real data.

6 years ago"Hello world" PDF report.
Philipp Spitzer [Mon, 28 Jan 2019 20:56:38 +0000 (21:56 +0100)]
"Hello world" PDF report.

6 years agoswitch from 5 minutes to 10 minutes
gregor herrmann [Mon, 28 Jan 2019 19:27:58 +0000 (20:27 +0100)]
switch from 5 minutes to 10 minutes

- refresh interval
- resolution for day average

6 years agoupdate c3 to 0.6.11
gregor herrmann [Tue, 18 Dec 2018 18:00:30 +0000 (19:00 +0100)]
update c3 to 0.6.11

which changes the height calculation (calculated dynamically from the
parent's height). hardcode height to former 320 for now.

6 years agochange chart type for air temperature to 'spline'
gregor herrmann [Tue, 18 Dec 2018 17:23:47 +0000 (18:23 +0100)]
change chart type for air temperature to 'spline'

this smoothes out the sometimes rather erratic values.

for water temperature, keep the default 'line', here 'spline' doesn't give
any benefits.

6 years agoupdate c3 and d3
gregor herrmann [Fri, 23 Nov 2018 00:05:57 +0000 (01:05 +0100)]
update c3 and d3

c3: 0.6.9
d3: 5.7.0

6 years agoMerge branch 'web'
gregor herrmann [Thu, 22 Nov 2018 23:34:23 +0000 (00:34 +0100)]
Merge branch 'web'

6 years agomerge seewasser.py from master into web
gregor herrmann [Thu, 22 Nov 2018 23:32:16 +0000 (00:32 +0100)]
merge seewasser.py from master into web

6 years agoremove ugly whitespace
gregor herrmann [Thu, 22 Nov 2018 23:30:51 +0000 (00:30 +0100)]
remove ugly whitespace

6 years agoreload openweathermap widget by removing and re-adding script and widget
gregor herrmann [Tue, 20 Nov 2018 21:20:12 +0000 (22:20 +0100)]
reload openweathermap widget by removing and re-adding script and widget

not very elegant. but finally it at least works.

6 years agostatically add owm script
gregor herrmann [Thu, 4 Oct 2018 17:30:51 +0000 (19:30 +0200)]
statically add owm script

instead of letting a function insert it dynamically into the DOM

6 years agosource code beautification
gregor herrmann [Wed, 3 Oct 2018 17:23:58 +0000 (19:23 +0200)]
source code beautification

change embedded owm script to insert the <script> at a different place.
makes viewing the source nicer.

6 years agoloaddays: wrap .flush in a setTimeout
gregor herrmann [Wed, 3 Oct 2018 16:46:04 +0000 (18:46 +0200)]
loaddays: wrap .flush in a setTimeout

depending on location and browser, I still see empty charts.

6 years agodrop a commented out .flush
gregor herrmann [Wed, 3 Oct 2018 16:45:51 +0000 (18:45 +0200)]
drop a commented out .flush

7 years agoadd seepark_webapp
gregor herrmann [Wed, 12 Sep 2018 21:47:44 +0000 (23:47 +0200)]
add seepark_webapp

script to start/stop seepark webapp (i.e. waitress)

7 years agopartially revert previous commit re windy widget size
gregor herrmann [Mon, 10 Sep 2018 14:23:37 +0000 (16:23 +0200)]
partially revert previous commit re windy widget size

don't hardcode small width/height but set max-width for dynamic size

7 years agoresize windy iframe
gregor herrmann [Sun, 9 Sep 2018 14:19:19 +0000 (16:19 +0200)]
resize windy iframe

(and update lat/long + zoom)

7 years agoexperiment again with re-loading chart data
gregor herrmann [Fri, 7 Sep 2018 22:20:52 +0000 (00:20 +0200)]
experiment again with re-loading chart data

add unload:true, and add back .flush() which got lost in the refactoring

7 years agoadd back .flush after chart creation.
gregor herrmann [Thu, 6 Sep 2018 21:44:14 +0000 (23:44 +0200)]
add back .flush after chart creation.

another incidence of empty charts (timing issues?) after a manual reload of
the page ...

7 years agoturn on x grid lines on chrisu's request
gregor herrmann [Thu, 6 Sep 2018 19:47:33 +0000 (21:47 +0200)]
turn on x grid lines on chrisu's request

7 years agofix strftime format in current air/water updates
gregor herrmann [Thu, 6 Sep 2018 16:19:19 +0000 (18:19 +0200)]
fix strftime format in current air/water updates

7 years agofix updating current air/water: strftime expects a "new Date"
gregor herrmann [Thu, 6 Sep 2018 15:58:39 +0000 (17:58 +0200)]
fix updating current air/water: strftime expects a "new Date"

7 years agodon't ignore errors from fetch().then()
gregor herrmann [Thu, 6 Sep 2018 15:58:06 +0000 (17:58 +0200)]
don't ignore errors from fetch().then()

7 years agodeduplicate reloading; we already had an unused function for that
gregor herrmann [Thu, 6 Sep 2018 15:39:33 +0000 (17:39 +0200)]
deduplicate reloading; we already had an unused function for that

7 years agoreload from the correct different API endpoints for air and water
gregor herrmann [Thu, 6 Sep 2018 15:35:24 +0000 (17:35 +0200)]
reload from the correct different API endpoints for air and water

7 years agoreload and replace current air/water temperatures at top from js
gregor herrmann [Wed, 5 Sep 2018 21:34:58 +0000 (23:34 +0200)]
reload and replace current air/water temperatures at top from js

7 years agoadd 2 new routes /api/<version>/current{air,water}temperature
gregor herrmann [Wed, 5 Sep 2018 21:33:52 +0000 (23:33 +0200)]
add 2 new routes /api/<version>/current{air,water}temperature

to get timestamp and value of current temperatures

7 years agotemplate: add spans with IDs fur current values
gregor herrmann [Wed, 5 Sep 2018 21:33:09 +0000 (23:33 +0200)]
template: add spans with IDs fur current values

as a preparation for replacing them

7 years agoremove flush after creation, add flush after reload
gregor herrmann [Wed, 5 Sep 2018 21:24:42 +0000 (23:24 +0200)]
remove flush after creation, add flush after reload

7 years agoadd windy widget in page template and minimal css
gregor herrmann [Tue, 4 Sep 2018 20:56:50 +0000 (22:56 +0200)]
add windy widget in page template and minimal css

7 years agotypo in comment
gregor herrmann [Tue, 4 Sep 2018 20:10:40 +0000 (22:10 +0200)]
typo in comment

7 years agoreload chart data in javascript instead of rereshing the whole page
gregor herrmann [Tue, 4 Sep 2018 20:09:49 +0000 (22:09 +0200)]
reload chart data in javascript instead of rereshing the whole page

7 years agoInsert "ignore" to SQL statement.
Philipp Spitzer [Tue, 4 Sep 2018 18:38:37 +0000 (20:38 +0200)]
Insert "ignore" to SQL statement.

7 years agoSeparate function process_csv_file.
Philipp Spitzer [Tue, 4 Sep 2018 18:14:51 +0000 (20:14 +0200)]
Separate function process_csv_file.

7 years agoShortened readcsvfile.
Philipp Spitzer [Tue, 4 Sep 2018 17:53:49 +0000 (19:53 +0200)]
Shortened readcsvfile.

7 years agoConvert readcsvfile to generator.
Philipp Spitzer [Tue, 4 Sep 2018 17:48:37 +0000 (19:48 +0200)]
Convert readcsvfile to generator.

7 years agoUsing context managers to open files.
Philipp Spitzer [Tue, 4 Sep 2018 17:45:37 +0000 (19:45 +0200)]
Using context managers to open files.

7 years agoadd workaround for not rendered points after reload
gregor herrmann [Mon, 3 Sep 2018 16:38:16 +0000 (18:38 +0200)]
add workaround for not rendered points after reload

cf. e.g. https://github.com/c3js/c3/issues/975

7 years agosimplify onzoomend function
gregor herrmann [Mon, 3 Sep 2018 16:37:36 +0000 (18:37 +0200)]
simplify onzoomend function

but leave it commented out because we never get fully back

7 years agouse strftime js library
gregor herrmann [Mon, 3 Sep 2018 16:02:08 +0000 (18:02 +0200)]
use strftime js library

that way we get german day/month names, and with a well-known formatting

7 years agoadd strftime library
gregor herrmann [Mon, 3 Sep 2018 15:53:02 +0000 (17:53 +0200)]
add strftime library

version v0.10.0
from https://github.com/samsonjs/strftime

7 years agohtml template: use minified js/css for c3 and d3
gregor herrmann [Mon, 3 Sep 2018 15:48:22 +0000 (17:48 +0200)]
html template: use minified js/css for c3 and d3

7 years agojs: factor out width calculation into a function
gregor herrmann [Mon, 3 Sep 2018 15:36:08 +0000 (17:36 +0200)]
js: factor out width calculation into a function

7 years agojs: resize charts on window resize
gregor herrmann [Mon, 3 Sep 2018 15:03:51 +0000 (17:03 +0200)]
js: resize charts on window resize

7 years agocss: add some margin to the body
gregor herrmann [Mon, 3 Sep 2018 14:30:33 +0000 (16:30 +0200)]
css: add some margin to the body

!important because otherwise the owm-css overrides it

7 years agoeditorial change: move a def() around
gregor herrmann [Thu, 30 Aug 2018 16:49:44 +0000 (18:49 +0200)]
editorial change: move a def() around

7 years agofor datetime intervals, don't return lowest value (min()) but avg()
gregor herrmann [Thu, 30 Aug 2018 16:45:39 +0000 (18:45 +0200)]
for datetime intervals, don't return lowest value (min()) but avg()

needs a conversion to/from unix timestamp

cf. https://dev.mysql.com/doc/refman/5.7/en/group-by-functions.html
and https://dev.mysql.com/doc/refman/5.7/en/date-and-time-functions.html

7 years agoadd link to source code in html template
gregor herrmann [Thu, 30 Aug 2018 16:06:45 +0000 (18:06 +0200)]
add link to source code in html template

7 years agoseewasser.py: add --fromcsvfile option
gregor herrmann [Wed, 29 Aug 2018 12:51:07 +0000 (14:51 +0200)]
seewasser.py: add --fromcsvfile option

Reads (preivously written) values from csv file instead from the sensors and
writes them into the database.

7 years agomerge web/owm.py into master
gregor herrmann [Wed, 29 Aug 2018 12:44:42 +0000 (14:44 +0200)]
merge web/owm.py into master

7 years agomerge master/owm.py into web
gregor herrmann [Wed, 29 Aug 2018 12:43:37 +0000 (14:43 +0200)]
merge master/owm.py into web

7 years agojs: comment out onzoomed
gregor herrmann [Sun, 26 Aug 2018 19:45:08 +0000 (21:45 +0200)]
js: comment out onzoomed

never really worked, and now is confusing with consolidated data

7 years agoREADME: remove obsolete waitress exploration results
gregor herrmann [Sun, 26 Aug 2018 18:06:01 +0000 (20:06 +0200)]
README: remove obsolete waitress exploration results

7 years agoAdd waitress configuration to README.
Philipp Spitzer [Sun, 26 Aug 2018 18:01:09 +0000 (20:01 +0200)]
Add waitress configuration to README.

7 years agochange x tick labels for month charts, as requested by chrisu
gregor herrmann [Fri, 24 Aug 2018 22:49:17 +0000 (00:49 +0200)]
change x tick labels for month charts, as requested by chrisu

7 years agoadd notes about waitress to README
gregor herrmann [Thu, 23 Aug 2018 14:32:41 +0000 (16:32 +0200)]
add notes about waitress to README

7 years agoFix begin and end in select_openweatherdata_grouped.
Philipp Spitzer [Wed, 22 Aug 2018 21:29:59 +0000 (23:29 +0200)]
Fix begin and end in select_openweatherdata_grouped.

7 years agoImplement grouping of openweathermapdata.
Philipp Spitzer [Wed, 22 Aug 2018 21:10:58 +0000 (23:10 +0200)]
Implement grouping of openweathermapdata.

7 years agoInclude timestamp and value label so that those columns appear in the output.
Philipp Spitzer [Wed, 22 Aug 2018 20:47:44 +0000 (22:47 +0200)]
Include timestamp and value label so that those columns appear in the output.

7 years agoConvert dict key to string to prevent an error (on rigel).
Philipp Spitzer [Wed, 22 Aug 2018 20:32:23 +0000 (22:32 +0200)]
Convert dict key to string to prevent an error (on rigel).

7 years agoSplit select_sensordata and implement grouping.
Philipp Spitzer [Wed, 22 Aug 2018 20:17:17 +0000 (22:17 +0200)]
Split select_sensordata and implement grouping.

7 years agoAdd a sqlalchemy group by/having example
Philipp Spitzer [Wed, 22 Aug 2018 19:33:41 +0000 (21:33 +0200)]
Add a sqlalchemy group by/having example

7 years agoupdate caption of new sensor
gregor herrmann [Tue, 21 Aug 2018 17:11:13 +0000 (19:11 +0200)]
update caption of new sensor

7 years agoadd comment with URL of web colors
gregor herrmann [Tue, 21 Aug 2018 14:36:33 +0000 (16:36 +0200)]
add comment with URL of web colors