From 486628f42e5f9b4ab75f35995bce7b46e49995de Mon Sep 17 00:00:00 2001 From: Ekaitz Zarraga Date: Fri, 1 Dec 2023 20:31:30 +0100 Subject: parameterize location --- src/main.zig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/main.zig') diff --git a/src/main.zig b/src/main.zig index ba479e9..81317f1 100644 --- a/src/main.zig +++ b/src/main.zig @@ -9,7 +9,9 @@ pub fn main() !void{ const args = try std.process.argsAlloc(allocator); defer std.process.argsFree(allocator, args); - var daily = try weatherFetcher.getDailyData(allocator); + var daily = try weatherFetcher.getDailyData(allocator, weatherFetcher.Location{ + .lat=52.52, .lon=13.41, + }); defer daily.deinit(); const stdout = std.io.getStdOut().writer(); -- cgit v1.2.3