Log file system implemented

This commit is contained in:
2023-08-25 17:41:42 +02:00
parent 0d8fa6449c
commit 5ca5b76d7c
5 changed files with 260 additions and 117 deletions

View File

@@ -1,6 +1,23 @@
/**
* @name Cinnamon-Dynamic-Wallpaper
* @alias TobiZog
* @since 2023
*
* @description Functions to estimate the user location
*/
/******************** Imports ********************/
const Soup = imports.gi.Soup;
/******************** Functions ********************/
/**
* Estimate the location of the user
*
* @returns Location data if succeded or -1 if failed
*/
function estimateLocation() {
let sessionSync = new Soup.SessionSync();
let msg = Soup.Message.new('GET', "https://get.geojs.io/v1/ip/geo.json");