Changeset 100 for openweather/openweather.module
- Timestamp:
- 21/01/07 06:35:36 (5 years ago)
- File:
-
- 1 edited
-
openweather/openweather.module (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
openweather/openweather.module
r99 r100 341 341 // Check person owns or can write to entry 342 342 343 return db_query("INSERT INTO {openweather_readings} (nid, `timestamp`, temp_out, rel_hum_out, windspeed, wind_angle, wind_chill, rain_1h, rel_pressure, dewpoint ) VALUES (%d, '%s', %s, %s, %s, %s, %s, %s, %s, %s)", $nid, $data['timestamp'], $data['temp'], $data['rel_hum'], $data['windspeed'], $data['wind_angle'], $data['wind_chill'], $data['rain_1h'], $data['rel_pressure'], $data['dewpoint']);343 return db_query("INSERT INTO {openweather_readings} (nid, `timestamp`, temp_out, rel_hum_out, windspeed, wind_angle, wind_chill, rain_1h, rel_pressure, dewpoint, rain_total) VALUES (%d, '%s', %s, %s, %s, %s, %s, %s, %s, %s, %s)", $nid, $data['timestamp'], $data['temp'], $data['rel_hum'], $data['windspeed'], $data['wind_angle'], $data['wind_chill'], $data['rain_1h'], $data['rel_pressure'], $data['dewpoint'], $data['rain_total']); 344 344 } else { 345 345 return false; … … 395 395 break; 396 396 397 case 'rain_total': 398 $title = t("Rainfall total"); 399 $autoScale = false; 400 $units = 'mm'; 401 $decimals = 1; 402 break; 403 397 404 default: 398 405 return;
Note: See TracChangeset
for help on using the changeset viewer.
