Changeset adb0f52
- Timestamp:
- 11/20/2014 11:47:30 PM (10 years ago)
- Branches:
- master
- Children:
- 516b934
- Parents:
- 9125727
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
de.wigbels.ruby/hothotwrite/hhw.rb
r9125727 radb0f52 53 53 log.info("Inserted sensor: #{sensorid} with data: #{data}") 54 54 else 55 years = dbh.query( %Q"select count(distinct year(measuredat)) FROM sensor" ) 56 put years 55 years = dbh.query( %Q"select count(distinct year(measuredat)) FROM sensor" ).fetch_row[0] 57 56 # Auswertung Gesamtes Jahr, Monat, Vergleich Vorjahr 58 57 myquery = %Q{ select sum(data), 'Liter Verbrauch in #{month}-#{logyear}' \
Note:
See TracChangeset
for help on using the changeset viewer.