summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2023-07-14 20:42:12 +0200
committerLoic Guegan <manzerbredes@mailbox.org>2023-07-14 20:42:12 +0200
commit31fd7f1f9b85a447bf9d446e1fc61f3179d79849 (patch)
tree6456225c1c349c30b34a4c2bacbcf8468760e33e /src
parent5f4d586aca4b5e802e2d18d527ee0b0a4e2f884c (diff)
Minor changes
Diffstat (limited to 'src')
-rw-r--r--src/logger/Makefile10
-rw-r--r--src/logger/main.c13
2 files changed, 23 insertions, 0 deletions
diff --git a/src/logger/Makefile b/src/logger/Makefile
new file mode 100644
index 0000000..ad4f0ca
--- /dev/null
+++ b/src/logger/Makefile
@@ -0,0 +1,10 @@
+include $(CONF)
+EXEC=logger
+
+all: main.c
+ $(CC) $^ -o $(OUT)/$(EXEC) $(CFLAGS)
+
+clean:
+ rm -f $(OUT)/$(EXEC)
+
+.PHONY: clean
diff --git a/src/logger/main.c b/src/logger/main.c
new file mode 100644
index 0000000..a9bbb50
--- /dev/null
+++ b/src/logger/main.c
@@ -0,0 +1,13 @@
+// Weather update client
+// Connects SUB socket to tcp://localhost:5556
+// Collects weather updates and finds avg temp in zipcode
+#include <zmq.h>
+#include <assert.h>
+#include <time.h>
+#include <string.h>
+
+int main (int argc, char *argv [])
+{
+
+ return 0;
+} \ No newline at end of file