summaryrefslogtreecommitdiff
path: root/anzeige.c
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-09-23 21:48:29 +0200
committerErich Eckner <git@eckner.net>2019-09-23 21:48:29 +0200
commit973ea982a7c50a53b6437c54505164f73ccfcc96 (patch)
tree438246b7f1cc05b401e1961f49d1dd66b8e4b2cd /anzeige.c
parenta5a593c1b5cd60119f9b21c65640fffc0a765a0b (diff)
downloadanzeige-973ea982a7c50a53b6437c54505164f73ccfcc96.tar.xz
extract temperature and humidity binarily
Diffstat (limited to 'anzeige.c')
-rw-r--r--anzeige.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/anzeige.c b/anzeige.c
index 2a28867..67a2046 100644
--- a/anzeige.c
+++ b/anzeige.c
@@ -85,6 +85,8 @@ int main(int argc, char **argv)
text_buffer_end = text_buffer;
+ double temperature, humidity;
+
text_buffer_end = gadgets_retrieve_weather_warnings(text_buffer_end,text_buffer + TEXT_BUFFER_LENGTH - text_buffer_end);
if (text_buffer_end == NULL) {
fprintf(stderr, "gadgets_retrieve_weather_warnings failed\n");
@@ -94,7 +96,7 @@ int main(int argc, char **argv)
}
if (text_buffer + TEXT_BUFFER_LENGTH - text_buffer_end > 0)
text_buffer_end += snprintf(text_buffer_end, text_buffer + TEXT_BUFFER_LENGTH - text_buffer_end, "; ");
- text_buffer_end = gadgets_retrieve_current_temperature(text_buffer_end,text_buffer + TEXT_BUFFER_LENGTH - text_buffer_end);
+ text_buffer_end = gadgets_retrieve_current_temperature(text_buffer_end, text_buffer + TEXT_BUFFER_LENGTH - text_buffer_end, &temperature, &humidity);
if (text_buffer_end == NULL) {
fprintf(stderr, "gadgets_retrieve_current_temperature failed\n");
free(text_buffer);