1 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
2 |
DENIED
|
moderate
|
App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "Add-YOUR-city-to-the-Gnome-weather-app-Solved"
+title: "Add YOUR city to the Gnome weather app [Solved]"
+url: null
+body: """
cross-posted from: [!linux@lemmy.eco.br](/c/linux@lemmy.eco.br) | [lemmy.eco.br/post/1969330](https://lemmy.eco.br/post/1969330)\n
\n
I’ve been using Gnome for about 10 months and it always bothered me that my city (with more than a million inhabitants) was not found in the [Weather](https://apps.gnome.org/Weather/) program.\n
\n
I looked for solutions several times and never found them, until I found [this thread](https://gitlab.gnome.org/GNOME/gnome-weather/-/issues/247#note_1819885) yesterday. That the user [Julian](https://gitlab.gnome.org/julianfairfax) made a [script that solves this problem](https://gitlab.com/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads). you just have to run and enter the name of your city and then confirm.\n
\n
script`bash #!/bin/bash if [[ ! -z “$(which gnome-weather)” ]]; then \tsystem=1 fi if [[ ! -z “$(flatpak list | grep org.gnome.Weather)” ]]; then \tflatpak=1 fi if [[ ! $system == 1 && ! $flatpak == 1 ]]; then \techo “GNOME Weather isn’t installed” \texit fi if [[ ! -z “$*” ]]; then \tquery=“$*” else \tread -p “Type the name of the location you want to add to GNOME Weather: " query fi query=”$(echo $query | sed ‘s/ /+/g’)" request=$(curl “https://nominatim.openstreetmap.org/search?q=$query&format=json&limit=1” -s) if [[ $request == “[]” ]]; then \techo “No locations found, consider removing some search terms” \texit fi read -p “If this is not the location you wanted, consider adding search terms Are you sure you want to add $(echo $request | sed 's/.*“display_name”:”//’ | sed ‘s/".*//’)? [y/n] : " answer if [[ ! $answer == “y” ]]; then \techo “Not adding location” \texit else \techo “Adding location” fi id=$(echo $request | sed ‘s/.*“place_id”://’ | sed ‘s/,.*//’) name=$(curl “https://nominatim.openstreetmap.org/details.php?place_id=$id&format=json” -s | sed ‘s/.*“name”: "//’ | sed ‘s/".*//’) lat=$(echo $request | sed ‘s/.*“lat”:"//’ | sed ‘s/".*//’) lat=$(echo “$lat / (180 / 3.141592654)” | bc -l) lon=$(echo $request | sed ‘s/.*“lon”:"//’ | sed ‘s/".*//’) lon=$(echo “$lon / (180 / 3.141592654)” | bc -l) if [[ $system == 1 ]]; then \tlocations=$(gsettings get org.gnome.Weather locations) fi if [[ $flatpak == 1 ]]; then \tlocations=$(flatpak run --command=gsettings org.gnome.Weather get org.gnome.Weather locations) fi location=“<(uint32 2, <(‘$name’, ‘’, false, [($lat, $lon)], @a(dd) [])>)>” if [[ $system == 1 ]]; then \tif [[ ! $(gsettings get org.gnome.Weather locations) == “@av []” ]]; then \t\tgsettings set org.gnome.Weather locations “$(echo $locations | sed “s|>]|>, $location]|”)” \telse \t\tgsettings set org.gnome.Weather locations “[$location]” \tfi fi if [[ $flatpak == 1 ]]; then \tif [[ ! $(flatpak run --command=gsettings org.gnome.Weather get org.gnome.Weather locations) == “@av []” ]]; then \t\tflatpak run --command=gsettings org.gnome.Weather set org.gnome.Weather locations “$(echo $locations | sed “s|>]|>, $location]|”)” \telse \t\tflatpak run --command=gsettings org.gnome.Weather set org.gnome.Weather locations “[$location]” \tfi fi `\n
\n
---\n
\n
It occurred to me that some people might not know how to run scripts, so here’s a brief tutorial:\n
\n
How to run scripts in Linux1. Save the script to a text file and save with the `.sh` extension 2. Provide execute permission: `chmod u+x script.sh`3. run the script by double clicking or `./script.sh`
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 8
+favouriteCount: 52
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1701364533 {#2418
date: 2023-11-30 18:15:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: [
"@a"
"@av"
]
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 18263
-titleTs: "'add':1 'app':8 'citi':3 'gnome':6 'solv':9 'weather':7"
-bodyTs: "'/bin/bash':97 '/c/linux':6 '/details.php?place_id=$id&format=json':238 '/g':159 '/gnome/gnome-weather/-/issues/247#note_1819885)':61 '/julianfairfax)':69 '/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads).':79 '/post/1969330](https://lemmy.eco.br/post/1969330)':10 '/script.sh':431 '/search?q=$query&format=json&limit=1':164 '/weather/)':42 '1':106,116,120,122,277,287,310,338 '10':18 '180':256,271 '2':301,415 '3':423 '3.141592654':257,272 'ad':191,217,222 'add':148,200 'alway':22 'answer':210,212 'apps.gnome.org':41 'apps.gnome.org/weather/)':40 'av':317,349 'bash':96 'bc':258,273 'bother':23 'brief':394 'chmod':419 'citi':27,91 'click':429 'command':292,343,353,367 'confirm':94 'consid':173,190 'cross':2 'cross-post':1 'curl':161,235 'dd':307 'display':205 'doubl':428 'echo':124,155,169,201,215,221,226,246,254,261,269,323,359 'els':136,220,328,364 'enter':86 'execut':417 'exit':130,178,219 'extens':414 'fals':303 'fi':107,117,131,153,179,224,284,298,334,335,374,375 'file':408 'flatpak':110,115,121,286,290,337,341,351,365 'found':36,52,56,172 'get':281,295,314,346 'gitlab.com':78 'gitlab.com/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads).':77 'gitlab.gnome.org':60,68 'gitlab.gnome.org/gnome/gnome-weather/-/issues/247#note_1819885)':59 'gitlab.gnome.org/julianfairfax)':67 'gnome':15,102,125,150 'gnome-weath':101 'grep':112 'gset':280,293,313,319,329,344,354,368 'id':225,231 'inhabit':33 'instal':129 'isn':127 'julian':66 'know':385 'l':259,274 'lat':245,250,253,255,304 'lemmy.eco.br':7,9 'lemmy.eco.br/post/1969330](https://lemmy.eco.br/post/1969330)':8 'linux1':401 'linux@lemmy.eco.br':5 'list':111 'locat':144,171,187,218,223,279,283,289,297,299,316,322,324,327,332,333,348,358,360,363,372,373 'lon':260,265,268,270,305 'look':45 'made':70 'might':383 'million':32 'month':19 'name':88,141,206,234,242,302 'never':51 'nominatim.openstreetmap.org':163,237 'nominatim.openstreetmap.org/details.php?place_id=$id&format=json':236 'nominatim.openstreetmap.org/search?q=$query&format=json&limit=1':162 'occur':377 'org.gnome.weather':113,282,294,296,315,321,331,345,347,355,357,369,371 'p':138,181 'peopl':382 'permiss':418 'place':230 'post':3 'problem':76 'program':43 'provid':416 'queri':135,152,154,156 'read':137,180 'remov':174 'request':160,167,202,227,247,262 'run':84,291,342,352,366,388,398,424 'save':402,410 'script':72,95,389,399,404,426 'script.sh':422 'search':176,192 'sed':157,203,207,228,232,240,243,248,251,263,266,325,361 'set':320,330,356,370 'sever':48 'sh':413 'solut':47 'solv':74 'sure':196 'system':105,119,276,309 'term':177,193 'text':407 'thread':58 'time':49 'tutori':395 'type':139 'u':420 'uint32':300 'use':14 'user':65 've':12 'want':146,189,198 'weather':39,103,126,151 'x':421 'y':213 'y/n':209 'yesterday':62 'z':99,109,133"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1701367347
+visibility: "visible "
+apId: "https://lemmy.eco.br/post/1973179"
+editedAt: DateTimeImmutable @1702191218 {#1858
date: 2023-12-10 07:53:38.0 +01:00
}
+createdAt: DateTimeImmutable @1701280947 {#2388
date: 2023-11-29 19:02:27.0 +01:00
}
} |
|
Show voter details
|
3 |
DENIED
|
edit
|
App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "Add-YOUR-city-to-the-Gnome-weather-app-Solved"
+title: "Add YOUR city to the Gnome weather app [Solved]"
+url: null
+body: """
cross-posted from: [!linux@lemmy.eco.br](/c/linux@lemmy.eco.br) | [lemmy.eco.br/post/1969330](https://lemmy.eco.br/post/1969330)\n
\n
I’ve been using Gnome for about 10 months and it always bothered me that my city (with more than a million inhabitants) was not found in the [Weather](https://apps.gnome.org/Weather/) program.\n
\n
I looked for solutions several times and never found them, until I found [this thread](https://gitlab.gnome.org/GNOME/gnome-weather/-/issues/247#note_1819885) yesterday. That the user [Julian](https://gitlab.gnome.org/julianfairfax) made a [script that solves this problem](https://gitlab.com/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads). you just have to run and enter the name of your city and then confirm.\n
\n
script`bash #!/bin/bash if [[ ! -z “$(which gnome-weather)” ]]; then \tsystem=1 fi if [[ ! -z “$(flatpak list | grep org.gnome.Weather)” ]]; then \tflatpak=1 fi if [[ ! $system == 1 && ! $flatpak == 1 ]]; then \techo “GNOME Weather isn’t installed” \texit fi if [[ ! -z “$*” ]]; then \tquery=“$*” else \tread -p “Type the name of the location you want to add to GNOME Weather: " query fi query=”$(echo $query | sed ‘s/ /+/g’)" request=$(curl “https://nominatim.openstreetmap.org/search?q=$query&format=json&limit=1” -s) if [[ $request == “[]” ]]; then \techo “No locations found, consider removing some search terms” \texit fi read -p “If this is not the location you wanted, consider adding search terms Are you sure you want to add $(echo $request | sed 's/.*“display_name”:”//’ | sed ‘s/".*//’)? [y/n] : " answer if [[ ! $answer == “y” ]]; then \techo “Not adding location” \texit else \techo “Adding location” fi id=$(echo $request | sed ‘s/.*“place_id”://’ | sed ‘s/,.*//’) name=$(curl “https://nominatim.openstreetmap.org/details.php?place_id=$id&format=json” -s | sed ‘s/.*“name”: "//’ | sed ‘s/".*//’) lat=$(echo $request | sed ‘s/.*“lat”:"//’ | sed ‘s/".*//’) lat=$(echo “$lat / (180 / 3.141592654)” | bc -l) lon=$(echo $request | sed ‘s/.*“lon”:"//’ | sed ‘s/".*//’) lon=$(echo “$lon / (180 / 3.141592654)” | bc -l) if [[ $system == 1 ]]; then \tlocations=$(gsettings get org.gnome.Weather locations) fi if [[ $flatpak == 1 ]]; then \tlocations=$(flatpak run --command=gsettings org.gnome.Weather get org.gnome.Weather locations) fi location=“<(uint32 2, <(‘$name’, ‘’, false, [($lat, $lon)], @a(dd) [])>)>” if [[ $system == 1 ]]; then \tif [[ ! $(gsettings get org.gnome.Weather locations) == “@av []” ]]; then \t\tgsettings set org.gnome.Weather locations “$(echo $locations | sed “s|>]|>, $location]|”)” \telse \t\tgsettings set org.gnome.Weather locations “[$location]” \tfi fi if [[ $flatpak == 1 ]]; then \tif [[ ! $(flatpak run --command=gsettings org.gnome.Weather get org.gnome.Weather locations) == “@av []” ]]; then \t\tflatpak run --command=gsettings org.gnome.Weather set org.gnome.Weather locations “$(echo $locations | sed “s|>]|>, $location]|”)” \telse \t\tflatpak run --command=gsettings org.gnome.Weather set org.gnome.Weather locations “[$location]” \tfi fi `\n
\n
---\n
\n
It occurred to me that some people might not know how to run scripts, so here’s a brief tutorial:\n
\n
How to run scripts in Linux1. Save the script to a text file and save with the `.sh` extension 2. Provide execute permission: `chmod u+x script.sh`3. run the script by double clicking or `./script.sh`
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 8
+favouriteCount: 52
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1701364533 {#2418
date: 2023-11-30 18:15:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: [
"@a"
"@av"
]
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 18263
-titleTs: "'add':1 'app':8 'citi':3 'gnome':6 'solv':9 'weather':7"
-bodyTs: "'/bin/bash':97 '/c/linux':6 '/details.php?place_id=$id&format=json':238 '/g':159 '/gnome/gnome-weather/-/issues/247#note_1819885)':61 '/julianfairfax)':69 '/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads).':79 '/post/1969330](https://lemmy.eco.br/post/1969330)':10 '/script.sh':431 '/search?q=$query&format=json&limit=1':164 '/weather/)':42 '1':106,116,120,122,277,287,310,338 '10':18 '180':256,271 '2':301,415 '3':423 '3.141592654':257,272 'ad':191,217,222 'add':148,200 'alway':22 'answer':210,212 'apps.gnome.org':41 'apps.gnome.org/weather/)':40 'av':317,349 'bash':96 'bc':258,273 'bother':23 'brief':394 'chmod':419 'citi':27,91 'click':429 'command':292,343,353,367 'confirm':94 'consid':173,190 'cross':2 'cross-post':1 'curl':161,235 'dd':307 'display':205 'doubl':428 'echo':124,155,169,201,215,221,226,246,254,261,269,323,359 'els':136,220,328,364 'enter':86 'execut':417 'exit':130,178,219 'extens':414 'fals':303 'fi':107,117,131,153,179,224,284,298,334,335,374,375 'file':408 'flatpak':110,115,121,286,290,337,341,351,365 'found':36,52,56,172 'get':281,295,314,346 'gitlab.com':78 'gitlab.com/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads).':77 'gitlab.gnome.org':60,68 'gitlab.gnome.org/gnome/gnome-weather/-/issues/247#note_1819885)':59 'gitlab.gnome.org/julianfairfax)':67 'gnome':15,102,125,150 'gnome-weath':101 'grep':112 'gset':280,293,313,319,329,344,354,368 'id':225,231 'inhabit':33 'instal':129 'isn':127 'julian':66 'know':385 'l':259,274 'lat':245,250,253,255,304 'lemmy.eco.br':7,9 'lemmy.eco.br/post/1969330](https://lemmy.eco.br/post/1969330)':8 'linux1':401 'linux@lemmy.eco.br':5 'list':111 'locat':144,171,187,218,223,279,283,289,297,299,316,322,324,327,332,333,348,358,360,363,372,373 'lon':260,265,268,270,305 'look':45 'made':70 'might':383 'million':32 'month':19 'name':88,141,206,234,242,302 'never':51 'nominatim.openstreetmap.org':163,237 'nominatim.openstreetmap.org/details.php?place_id=$id&format=json':236 'nominatim.openstreetmap.org/search?q=$query&format=json&limit=1':162 'occur':377 'org.gnome.weather':113,282,294,296,315,321,331,345,347,355,357,369,371 'p':138,181 'peopl':382 'permiss':418 'place':230 'post':3 'problem':76 'program':43 'provid':416 'queri':135,152,154,156 'read':137,180 'remov':174 'request':160,167,202,227,247,262 'run':84,291,342,352,366,388,398,424 'save':402,410 'script':72,95,389,399,404,426 'script.sh':422 'search':176,192 'sed':157,203,207,228,232,240,243,248,251,263,266,325,361 'set':320,330,356,370 'sever':48 'sh':413 'solut':47 'solv':74 'sure':196 'system':105,119,276,309 'term':177,193 'text':407 'thread':58 'time':49 'tutori':395 'type':139 'u':420 'uint32':300 'use':14 'user':65 've':12 'want':146,189,198 'weather':39,103,126,151 'x':421 'y':213 'y/n':209 'yesterday':62 'z':99,109,133"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1701367347
+visibility: "visible "
+apId: "https://lemmy.eco.br/post/1973179"
+editedAt: DateTimeImmutable @1702191218 {#1858
date: 2023-12-10 07:53:38.0 +01:00
}
+createdAt: DateTimeImmutable @1701280947 {#2388
date: 2023-11-29 19:02:27.0 +01:00
}
} |
|
Show voter details
|
4 |
DENIED
|
moderate
|
App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "Add-YOUR-city-to-the-Gnome-weather-app-Solved"
+title: "Add YOUR city to the Gnome weather app [Solved]"
+url: null
+body: """
cross-posted from: [!linux@lemmy.eco.br](/c/linux@lemmy.eco.br) | [lemmy.eco.br/post/1969330](https://lemmy.eco.br/post/1969330)\n
\n
I’ve been using Gnome for about 10 months and it always bothered me that my city (with more than a million inhabitants) was not found in the [Weather](https://apps.gnome.org/Weather/) program.\n
\n
I looked for solutions several times and never found them, until I found [this thread](https://gitlab.gnome.org/GNOME/gnome-weather/-/issues/247#note_1819885) yesterday. That the user [Julian](https://gitlab.gnome.org/julianfairfax) made a [script that solves this problem](https://gitlab.com/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads). you just have to run and enter the name of your city and then confirm.\n
\n
script`bash #!/bin/bash if [[ ! -z “$(which gnome-weather)” ]]; then \tsystem=1 fi if [[ ! -z “$(flatpak list | grep org.gnome.Weather)” ]]; then \tflatpak=1 fi if [[ ! $system == 1 && ! $flatpak == 1 ]]; then \techo “GNOME Weather isn’t installed” \texit fi if [[ ! -z “$*” ]]; then \tquery=“$*” else \tread -p “Type the name of the location you want to add to GNOME Weather: " query fi query=”$(echo $query | sed ‘s/ /+/g’)" request=$(curl “https://nominatim.openstreetmap.org/search?q=$query&format=json&limit=1” -s) if [[ $request == “[]” ]]; then \techo “No locations found, consider removing some search terms” \texit fi read -p “If this is not the location you wanted, consider adding search terms Are you sure you want to add $(echo $request | sed 's/.*“display_name”:”//’ | sed ‘s/".*//’)? [y/n] : " answer if [[ ! $answer == “y” ]]; then \techo “Not adding location” \texit else \techo “Adding location” fi id=$(echo $request | sed ‘s/.*“place_id”://’ | sed ‘s/,.*//’) name=$(curl “https://nominatim.openstreetmap.org/details.php?place_id=$id&format=json” -s | sed ‘s/.*“name”: "//’ | sed ‘s/".*//’) lat=$(echo $request | sed ‘s/.*“lat”:"//’ | sed ‘s/".*//’) lat=$(echo “$lat / (180 / 3.141592654)” | bc -l) lon=$(echo $request | sed ‘s/.*“lon”:"//’ | sed ‘s/".*//’) lon=$(echo “$lon / (180 / 3.141592654)” | bc -l) if [[ $system == 1 ]]; then \tlocations=$(gsettings get org.gnome.Weather locations) fi if [[ $flatpak == 1 ]]; then \tlocations=$(flatpak run --command=gsettings org.gnome.Weather get org.gnome.Weather locations) fi location=“<(uint32 2, <(‘$name’, ‘’, false, [($lat, $lon)], @a(dd) [])>)>” if [[ $system == 1 ]]; then \tif [[ ! $(gsettings get org.gnome.Weather locations) == “@av []” ]]; then \t\tgsettings set org.gnome.Weather locations “$(echo $locations | sed “s|>]|>, $location]|”)” \telse \t\tgsettings set org.gnome.Weather locations “[$location]” \tfi fi if [[ $flatpak == 1 ]]; then \tif [[ ! $(flatpak run --command=gsettings org.gnome.Weather get org.gnome.Weather locations) == “@av []” ]]; then \t\tflatpak run --command=gsettings org.gnome.Weather set org.gnome.Weather locations “$(echo $locations | sed “s|>]|>, $location]|”)” \telse \t\tflatpak run --command=gsettings org.gnome.Weather set org.gnome.Weather locations “[$location]” \tfi fi `\n
\n
---\n
\n
It occurred to me that some people might not know how to run scripts, so here’s a brief tutorial:\n
\n
How to run scripts in Linux1. Save the script to a text file and save with the `.sh` extension 2. Provide execute permission: `chmod u+x script.sh`3. run the script by double clicking or `./script.sh`
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 8
+favouriteCount: 52
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1701364533 {#2418
date: 2023-11-30 18:15:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: [
"@a"
"@av"
]
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 18263
-titleTs: "'add':1 'app':8 'citi':3 'gnome':6 'solv':9 'weather':7"
-bodyTs: "'/bin/bash':97 '/c/linux':6 '/details.php?place_id=$id&format=json':238 '/g':159 '/gnome/gnome-weather/-/issues/247#note_1819885)':61 '/julianfairfax)':69 '/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads).':79 '/post/1969330](https://lemmy.eco.br/post/1969330)':10 '/script.sh':431 '/search?q=$query&format=json&limit=1':164 '/weather/)':42 '1':106,116,120,122,277,287,310,338 '10':18 '180':256,271 '2':301,415 '3':423 '3.141592654':257,272 'ad':191,217,222 'add':148,200 'alway':22 'answer':210,212 'apps.gnome.org':41 'apps.gnome.org/weather/)':40 'av':317,349 'bash':96 'bc':258,273 'bother':23 'brief':394 'chmod':419 'citi':27,91 'click':429 'command':292,343,353,367 'confirm':94 'consid':173,190 'cross':2 'cross-post':1 'curl':161,235 'dd':307 'display':205 'doubl':428 'echo':124,155,169,201,215,221,226,246,254,261,269,323,359 'els':136,220,328,364 'enter':86 'execut':417 'exit':130,178,219 'extens':414 'fals':303 'fi':107,117,131,153,179,224,284,298,334,335,374,375 'file':408 'flatpak':110,115,121,286,290,337,341,351,365 'found':36,52,56,172 'get':281,295,314,346 'gitlab.com':78 'gitlab.com/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads).':77 'gitlab.gnome.org':60,68 'gitlab.gnome.org/gnome/gnome-weather/-/issues/247#note_1819885)':59 'gitlab.gnome.org/julianfairfax)':67 'gnome':15,102,125,150 'gnome-weath':101 'grep':112 'gset':280,293,313,319,329,344,354,368 'id':225,231 'inhabit':33 'instal':129 'isn':127 'julian':66 'know':385 'l':259,274 'lat':245,250,253,255,304 'lemmy.eco.br':7,9 'lemmy.eco.br/post/1969330](https://lemmy.eco.br/post/1969330)':8 'linux1':401 'linux@lemmy.eco.br':5 'list':111 'locat':144,171,187,218,223,279,283,289,297,299,316,322,324,327,332,333,348,358,360,363,372,373 'lon':260,265,268,270,305 'look':45 'made':70 'might':383 'million':32 'month':19 'name':88,141,206,234,242,302 'never':51 'nominatim.openstreetmap.org':163,237 'nominatim.openstreetmap.org/details.php?place_id=$id&format=json':236 'nominatim.openstreetmap.org/search?q=$query&format=json&limit=1':162 'occur':377 'org.gnome.weather':113,282,294,296,315,321,331,345,347,355,357,369,371 'p':138,181 'peopl':382 'permiss':418 'place':230 'post':3 'problem':76 'program':43 'provid':416 'queri':135,152,154,156 'read':137,180 'remov':174 'request':160,167,202,227,247,262 'run':84,291,342,352,366,388,398,424 'save':402,410 'script':72,95,389,399,404,426 'script.sh':422 'search':176,192 'sed':157,203,207,228,232,240,243,248,251,263,266,325,361 'set':320,330,356,370 'sever':48 'sh':413 'solut':47 'solv':74 'sure':196 'system':105,119,276,309 'term':177,193 'text':407 'thread':58 'time':49 'tutori':395 'type':139 'u':420 'uint32':300 'use':14 'user':65 've':12 'want':146,189,198 'weather':39,103,126,151 'x':421 'y':213 'y/n':209 'yesterday':62 'z':99,109,133"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1701367347
+visibility: "visible "
+apId: "https://lemmy.eco.br/post/1973179"
+editedAt: DateTimeImmutable @1702191218 {#1858
date: 2023-12-10 07:53:38.0 +01:00
}
+createdAt: DateTimeImmutable @1701280947 {#2388
date: 2023-11-29 19:02:27.0 +01:00
}
} |
|
Show voter details
|
5 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
6 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4082
+user: App\Entity\User {#4030 …}
+entry: App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "Add-YOUR-city-to-the-Gnome-weather-app-Solved"
+title: "Add YOUR city to the Gnome weather app [Solved]"
+url: null
+body: """
cross-posted from: [!linux@lemmy.eco.br](/c/linux@lemmy.eco.br) | [lemmy.eco.br/post/1969330](https://lemmy.eco.br/post/1969330)\n
\n
I’ve been using Gnome for about 10 months and it always bothered me that my city (with more than a million inhabitants) was not found in the [Weather](https://apps.gnome.org/Weather/) program.\n
\n
I looked for solutions several times and never found them, until I found [this thread](https://gitlab.gnome.org/GNOME/gnome-weather/-/issues/247#note_1819885) yesterday. That the user [Julian](https://gitlab.gnome.org/julianfairfax) made a [script that solves this problem](https://gitlab.com/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads). you just have to run and enter the name of your city and then confirm.\n
\n
script`bash #!/bin/bash if [[ ! -z “$(which gnome-weather)” ]]; then \tsystem=1 fi if [[ ! -z “$(flatpak list | grep org.gnome.Weather)” ]]; then \tflatpak=1 fi if [[ ! $system == 1 && ! $flatpak == 1 ]]; then \techo “GNOME Weather isn’t installed” \texit fi if [[ ! -z “$*” ]]; then \tquery=“$*” else \tread -p “Type the name of the location you want to add to GNOME Weather: " query fi query=”$(echo $query | sed ‘s/ /+/g’)" request=$(curl “https://nominatim.openstreetmap.org/search?q=$query&format=json&limit=1” -s) if [[ $request == “[]” ]]; then \techo “No locations found, consider removing some search terms” \texit fi read -p “If this is not the location you wanted, consider adding search terms Are you sure you want to add $(echo $request | sed 's/.*“display_name”:”//’ | sed ‘s/".*//’)? [y/n] : " answer if [[ ! $answer == “y” ]]; then \techo “Not adding location” \texit else \techo “Adding location” fi id=$(echo $request | sed ‘s/.*“place_id”://’ | sed ‘s/,.*//’) name=$(curl “https://nominatim.openstreetmap.org/details.php?place_id=$id&format=json” -s | sed ‘s/.*“name”: "//’ | sed ‘s/".*//’) lat=$(echo $request | sed ‘s/.*“lat”:"//’ | sed ‘s/".*//’) lat=$(echo “$lat / (180 / 3.141592654)” | bc -l) lon=$(echo $request | sed ‘s/.*“lon”:"//’ | sed ‘s/".*//’) lon=$(echo “$lon / (180 / 3.141592654)” | bc -l) if [[ $system == 1 ]]; then \tlocations=$(gsettings get org.gnome.Weather locations) fi if [[ $flatpak == 1 ]]; then \tlocations=$(flatpak run --command=gsettings org.gnome.Weather get org.gnome.Weather locations) fi location=“<(uint32 2, <(‘$name’, ‘’, false, [($lat, $lon)], @a(dd) [])>)>” if [[ $system == 1 ]]; then \tif [[ ! $(gsettings get org.gnome.Weather locations) == “@av []” ]]; then \t\tgsettings set org.gnome.Weather locations “$(echo $locations | sed “s|>]|>, $location]|”)” \telse \t\tgsettings set org.gnome.Weather locations “[$location]” \tfi fi if [[ $flatpak == 1 ]]; then \tif [[ ! $(flatpak run --command=gsettings org.gnome.Weather get org.gnome.Weather locations) == “@av []” ]]; then \t\tflatpak run --command=gsettings org.gnome.Weather set org.gnome.Weather locations “$(echo $locations | sed “s|>]|>, $location]|”)” \telse \t\tflatpak run --command=gsettings org.gnome.Weather set org.gnome.Weather locations “[$location]” \tfi fi `\n
\n
---\n
\n
It occurred to me that some people might not know how to run scripts, so here’s a brief tutorial:\n
\n
How to run scripts in Linux1. Save the script to a text file and save with the `.sh` extension 2. Provide execute permission: `chmod u+x script.sh`3. run the script by double clicking or `./script.sh`
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 8
+favouriteCount: 52
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1701364533 {#2418
date: 2023-11-30 18:15:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: [
"@a"
"@av"
]
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 18263
-titleTs: "'add':1 'app':8 'citi':3 'gnome':6 'solv':9 'weather':7"
-bodyTs: "'/bin/bash':97 '/c/linux':6 '/details.php?place_id=$id&format=json':238 '/g':159 '/gnome/gnome-weather/-/issues/247#note_1819885)':61 '/julianfairfax)':69 '/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads).':79 '/post/1969330](https://lemmy.eco.br/post/1969330)':10 '/script.sh':431 '/search?q=$query&format=json&limit=1':164 '/weather/)':42 '1':106,116,120,122,277,287,310,338 '10':18 '180':256,271 '2':301,415 '3':423 '3.141592654':257,272 'ad':191,217,222 'add':148,200 'alway':22 'answer':210,212 'apps.gnome.org':41 'apps.gnome.org/weather/)':40 'av':317,349 'bash':96 'bc':258,273 'bother':23 'brief':394 'chmod':419 'citi':27,91 'click':429 'command':292,343,353,367 'confirm':94 'consid':173,190 'cross':2 'cross-post':1 'curl':161,235 'dd':307 'display':205 'doubl':428 'echo':124,155,169,201,215,221,226,246,254,261,269,323,359 'els':136,220,328,364 'enter':86 'execut':417 'exit':130,178,219 'extens':414 'fals':303 'fi':107,117,131,153,179,224,284,298,334,335,374,375 'file':408 'flatpak':110,115,121,286,290,337,341,351,365 'found':36,52,56,172 'get':281,295,314,346 'gitlab.com':78 'gitlab.com/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads).':77 'gitlab.gnome.org':60,68 'gitlab.gnome.org/gnome/gnome-weather/-/issues/247#note_1819885)':59 'gitlab.gnome.org/julianfairfax)':67 'gnome':15,102,125,150 'gnome-weath':101 'grep':112 'gset':280,293,313,319,329,344,354,368 'id':225,231 'inhabit':33 'instal':129 'isn':127 'julian':66 'know':385 'l':259,274 'lat':245,250,253,255,304 'lemmy.eco.br':7,9 'lemmy.eco.br/post/1969330](https://lemmy.eco.br/post/1969330)':8 'linux1':401 'linux@lemmy.eco.br':5 'list':111 'locat':144,171,187,218,223,279,283,289,297,299,316,322,324,327,332,333,348,358,360,363,372,373 'lon':260,265,268,270,305 'look':45 'made':70 'might':383 'million':32 'month':19 'name':88,141,206,234,242,302 'never':51 'nominatim.openstreetmap.org':163,237 'nominatim.openstreetmap.org/details.php?place_id=$id&format=json':236 'nominatim.openstreetmap.org/search?q=$query&format=json&limit=1':162 'occur':377 'org.gnome.weather':113,282,294,296,315,321,331,345,347,355,357,369,371 'p':138,181 'peopl':382 'permiss':418 'place':230 'post':3 'problem':76 'program':43 'provid':416 'queri':135,152,154,156 'read':137,180 'remov':174 'request':160,167,202,227,247,262 'run':84,291,342,352,366,388,398,424 'save':402,410 'script':72,95,389,399,404,426 'script.sh':422 'search':176,192 'sed':157,203,207,228,232,240,243,248,251,263,266,325,361 'set':320,330,356,370 'sever':48 'sh':413 'solut':47 'solv':74 'sure':196 'system':105,119,276,309 'term':177,193 'text':407 'thread':58 'time':49 'tutori':395 'type':139 'u':420 'uint32':300 'use':14 'user':65 've':12 'want':146,189,198 'weather':39,103,126,151 'x':421 'y':213 'y/n':209 'yesterday':62 'z':99,109,133"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1701367347
+visibility: "visible "
+apId: "https://lemmy.eco.br/post/1973179"
+editedAt: DateTimeImmutable @1702191218 {#1858
date: 2023-12-10 07:53:38.0 +01:00
}
+createdAt: DateTimeImmutable @1701280947 {#2388
date: 2023-11-29 19:02:27.0 +01:00
}
}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: null
+root: null
+body: """
Afaik the problem is solved within the code. I remember having compiled the app myself. It’s just a matter of time that it’s solved.\n
\n
BUT it’s weird that this is so low priority to all gnome devs. It seems like noone cares about the correct weather. The source of weather is also not really perfect.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1702780126 {#4091
date: 2023-12-17 03:28:46.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@a"
"@av"
"@ademir@lemmy.eco.br"
]
+children: Doctrine\ORM\PersistentCollection {#4080 …}
+nested: Doctrine\ORM\PersistentCollection {#4078 …}
+votes: Doctrine\ORM\PersistentCollection {#4076 …}
+reports: Doctrine\ORM\PersistentCollection {#4074 …}
+favourites: Doctrine\ORM\PersistentCollection {#4042 …}
+notifications: Doctrine\ORM\PersistentCollection {#4046 …}
-id: 183695
-bodyTs: "'afaik':1 'also':55 'app':14 'care':45 'code':8 'compil':12 'correct':48 'dev':40 'gnome':39 'like':43 'low':35 'matter':20 'noon':44 'perfect':58 'prioriti':36 'problem':3 'realli':57 'rememb':10 'seem':42 'solv':5,26 'sourc':51 'time':22 'weather':49,53 'weird':30 'within':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ml/comment/6253837"
+editedAt: null
+createdAt: DateTimeImmutable @1701351933 {#4027
date: 2023-11-30 14:45:33.0 +01:00
}
} |
|
Show voter details
|
7 |
DENIED
|
edit
|
App\Entity\EntryComment {#4082
+user: App\Entity\User {#4030 …}
+entry: App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "Add-YOUR-city-to-the-Gnome-weather-app-Solved"
+title: "Add YOUR city to the Gnome weather app [Solved]"
+url: null
+body: """
cross-posted from: [!linux@lemmy.eco.br](/c/linux@lemmy.eco.br) | [lemmy.eco.br/post/1969330](https://lemmy.eco.br/post/1969330)\n
\n
I’ve been using Gnome for about 10 months and it always bothered me that my city (with more than a million inhabitants) was not found in the [Weather](https://apps.gnome.org/Weather/) program.\n
\n
I looked for solutions several times and never found them, until I found [this thread](https://gitlab.gnome.org/GNOME/gnome-weather/-/issues/247#note_1819885) yesterday. That the user [Julian](https://gitlab.gnome.org/julianfairfax) made a [script that solves this problem](https://gitlab.com/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads). you just have to run and enter the name of your city and then confirm.\n
\n
script`bash #!/bin/bash if [[ ! -z “$(which gnome-weather)” ]]; then \tsystem=1 fi if [[ ! -z “$(flatpak list | grep org.gnome.Weather)” ]]; then \tflatpak=1 fi if [[ ! $system == 1 && ! $flatpak == 1 ]]; then \techo “GNOME Weather isn’t installed” \texit fi if [[ ! -z “$*” ]]; then \tquery=“$*” else \tread -p “Type the name of the location you want to add to GNOME Weather: " query fi query=”$(echo $query | sed ‘s/ /+/g’)" request=$(curl “https://nominatim.openstreetmap.org/search?q=$query&format=json&limit=1” -s) if [[ $request == “[]” ]]; then \techo “No locations found, consider removing some search terms” \texit fi read -p “If this is not the location you wanted, consider adding search terms Are you sure you want to add $(echo $request | sed 's/.*“display_name”:”//’ | sed ‘s/".*//’)? [y/n] : " answer if [[ ! $answer == “y” ]]; then \techo “Not adding location” \texit else \techo “Adding location” fi id=$(echo $request | sed ‘s/.*“place_id”://’ | sed ‘s/,.*//’) name=$(curl “https://nominatim.openstreetmap.org/details.php?place_id=$id&format=json” -s | sed ‘s/.*“name”: "//’ | sed ‘s/".*//’) lat=$(echo $request | sed ‘s/.*“lat”:"//’ | sed ‘s/".*//’) lat=$(echo “$lat / (180 / 3.141592654)” | bc -l) lon=$(echo $request | sed ‘s/.*“lon”:"//’ | sed ‘s/".*//’) lon=$(echo “$lon / (180 / 3.141592654)” | bc -l) if [[ $system == 1 ]]; then \tlocations=$(gsettings get org.gnome.Weather locations) fi if [[ $flatpak == 1 ]]; then \tlocations=$(flatpak run --command=gsettings org.gnome.Weather get org.gnome.Weather locations) fi location=“<(uint32 2, <(‘$name’, ‘’, false, [($lat, $lon)], @a(dd) [])>)>” if [[ $system == 1 ]]; then \tif [[ ! $(gsettings get org.gnome.Weather locations) == “@av []” ]]; then \t\tgsettings set org.gnome.Weather locations “$(echo $locations | sed “s|>]|>, $location]|”)” \telse \t\tgsettings set org.gnome.Weather locations “[$location]” \tfi fi if [[ $flatpak == 1 ]]; then \tif [[ ! $(flatpak run --command=gsettings org.gnome.Weather get org.gnome.Weather locations) == “@av []” ]]; then \t\tflatpak run --command=gsettings org.gnome.Weather set org.gnome.Weather locations “$(echo $locations | sed “s|>]|>, $location]|”)” \telse \t\tflatpak run --command=gsettings org.gnome.Weather set org.gnome.Weather locations “[$location]” \tfi fi `\n
\n
---\n
\n
It occurred to me that some people might not know how to run scripts, so here’s a brief tutorial:\n
\n
How to run scripts in Linux1. Save the script to a text file and save with the `.sh` extension 2. Provide execute permission: `chmod u+x script.sh`3. run the script by double clicking or `./script.sh`
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 8
+favouriteCount: 52
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1701364533 {#2418
date: 2023-11-30 18:15:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: [
"@a"
"@av"
]
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 18263
-titleTs: "'add':1 'app':8 'citi':3 'gnome':6 'solv':9 'weather':7"
-bodyTs: "'/bin/bash':97 '/c/linux':6 '/details.php?place_id=$id&format=json':238 '/g':159 '/gnome/gnome-weather/-/issues/247#note_1819885)':61 '/julianfairfax)':69 '/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads).':79 '/post/1969330](https://lemmy.eco.br/post/1969330)':10 '/script.sh':431 '/search?q=$query&format=json&limit=1':164 '/weather/)':42 '1':106,116,120,122,277,287,310,338 '10':18 '180':256,271 '2':301,415 '3':423 '3.141592654':257,272 'ad':191,217,222 'add':148,200 'alway':22 'answer':210,212 'apps.gnome.org':41 'apps.gnome.org/weather/)':40 'av':317,349 'bash':96 'bc':258,273 'bother':23 'brief':394 'chmod':419 'citi':27,91 'click':429 'command':292,343,353,367 'confirm':94 'consid':173,190 'cross':2 'cross-post':1 'curl':161,235 'dd':307 'display':205 'doubl':428 'echo':124,155,169,201,215,221,226,246,254,261,269,323,359 'els':136,220,328,364 'enter':86 'execut':417 'exit':130,178,219 'extens':414 'fals':303 'fi':107,117,131,153,179,224,284,298,334,335,374,375 'file':408 'flatpak':110,115,121,286,290,337,341,351,365 'found':36,52,56,172 'get':281,295,314,346 'gitlab.com':78 'gitlab.com/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads).':77 'gitlab.gnome.org':60,68 'gitlab.gnome.org/gnome/gnome-weather/-/issues/247#note_1819885)':59 'gitlab.gnome.org/julianfairfax)':67 'gnome':15,102,125,150 'gnome-weath':101 'grep':112 'gset':280,293,313,319,329,344,354,368 'id':225,231 'inhabit':33 'instal':129 'isn':127 'julian':66 'know':385 'l':259,274 'lat':245,250,253,255,304 'lemmy.eco.br':7,9 'lemmy.eco.br/post/1969330](https://lemmy.eco.br/post/1969330)':8 'linux1':401 'linux@lemmy.eco.br':5 'list':111 'locat':144,171,187,218,223,279,283,289,297,299,316,322,324,327,332,333,348,358,360,363,372,373 'lon':260,265,268,270,305 'look':45 'made':70 'might':383 'million':32 'month':19 'name':88,141,206,234,242,302 'never':51 'nominatim.openstreetmap.org':163,237 'nominatim.openstreetmap.org/details.php?place_id=$id&format=json':236 'nominatim.openstreetmap.org/search?q=$query&format=json&limit=1':162 'occur':377 'org.gnome.weather':113,282,294,296,315,321,331,345,347,355,357,369,371 'p':138,181 'peopl':382 'permiss':418 'place':230 'post':3 'problem':76 'program':43 'provid':416 'queri':135,152,154,156 'read':137,180 'remov':174 'request':160,167,202,227,247,262 'run':84,291,342,352,366,388,398,424 'save':402,410 'script':72,95,389,399,404,426 'script.sh':422 'search':176,192 'sed':157,203,207,228,232,240,243,248,251,263,266,325,361 'set':320,330,356,370 'sever':48 'sh':413 'solut':47 'solv':74 'sure':196 'system':105,119,276,309 'term':177,193 'text':407 'thread':58 'time':49 'tutori':395 'type':139 'u':420 'uint32':300 'use':14 'user':65 've':12 'want':146,189,198 'weather':39,103,126,151 'x':421 'y':213 'y/n':209 'yesterday':62 'z':99,109,133"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1701367347
+visibility: "visible "
+apId: "https://lemmy.eco.br/post/1973179"
+editedAt: DateTimeImmutable @1702191218 {#1858
date: 2023-12-10 07:53:38.0 +01:00
}
+createdAt: DateTimeImmutable @1701280947 {#2388
date: 2023-11-29 19:02:27.0 +01:00
}
}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: null
+root: null
+body: """
Afaik the problem is solved within the code. I remember having compiled the app myself. It’s just a matter of time that it’s solved.\n
\n
BUT it’s weird that this is so low priority to all gnome devs. It seems like noone cares about the correct weather. The source of weather is also not really perfect.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1702780126 {#4091
date: 2023-12-17 03:28:46.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@a"
"@av"
"@ademir@lemmy.eco.br"
]
+children: Doctrine\ORM\PersistentCollection {#4080 …}
+nested: Doctrine\ORM\PersistentCollection {#4078 …}
+votes: Doctrine\ORM\PersistentCollection {#4076 …}
+reports: Doctrine\ORM\PersistentCollection {#4074 …}
+favourites: Doctrine\ORM\PersistentCollection {#4042 …}
+notifications: Doctrine\ORM\PersistentCollection {#4046 …}
-id: 183695
-bodyTs: "'afaik':1 'also':55 'app':14 'care':45 'code':8 'compil':12 'correct':48 'dev':40 'gnome':39 'like':43 'low':35 'matter':20 'noon':44 'perfect':58 'prioriti':36 'problem':3 'realli':57 'rememb':10 'seem':42 'solv':5,26 'sourc':51 'time':22 'weather':49,53 'weird':30 'within':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ml/comment/6253837"
+editedAt: null
+createdAt: DateTimeImmutable @1701351933 {#4027
date: 2023-11-30 14:45:33.0 +01:00
}
} |
|
Show voter details
|
8 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4082
+user: App\Entity\User {#4030 …}
+entry: App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "Add-YOUR-city-to-the-Gnome-weather-app-Solved"
+title: "Add YOUR city to the Gnome weather app [Solved]"
+url: null
+body: """
cross-posted from: [!linux@lemmy.eco.br](/c/linux@lemmy.eco.br) | [lemmy.eco.br/post/1969330](https://lemmy.eco.br/post/1969330)\n
\n
I’ve been using Gnome for about 10 months and it always bothered me that my city (with more than a million inhabitants) was not found in the [Weather](https://apps.gnome.org/Weather/) program.\n
\n
I looked for solutions several times and never found them, until I found [this thread](https://gitlab.gnome.org/GNOME/gnome-weather/-/issues/247#note_1819885) yesterday. That the user [Julian](https://gitlab.gnome.org/julianfairfax) made a [script that solves this problem](https://gitlab.com/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads). you just have to run and enter the name of your city and then confirm.\n
\n
script`bash #!/bin/bash if [[ ! -z “$(which gnome-weather)” ]]; then \tsystem=1 fi if [[ ! -z “$(flatpak list | grep org.gnome.Weather)” ]]; then \tflatpak=1 fi if [[ ! $system == 1 && ! $flatpak == 1 ]]; then \techo “GNOME Weather isn’t installed” \texit fi if [[ ! -z “$*” ]]; then \tquery=“$*” else \tread -p “Type the name of the location you want to add to GNOME Weather: " query fi query=”$(echo $query | sed ‘s/ /+/g’)" request=$(curl “https://nominatim.openstreetmap.org/search?q=$query&format=json&limit=1” -s) if [[ $request == “[]” ]]; then \techo “No locations found, consider removing some search terms” \texit fi read -p “If this is not the location you wanted, consider adding search terms Are you sure you want to add $(echo $request | sed 's/.*“display_name”:”//’ | sed ‘s/".*//’)? [y/n] : " answer if [[ ! $answer == “y” ]]; then \techo “Not adding location” \texit else \techo “Adding location” fi id=$(echo $request | sed ‘s/.*“place_id”://’ | sed ‘s/,.*//’) name=$(curl “https://nominatim.openstreetmap.org/details.php?place_id=$id&format=json” -s | sed ‘s/.*“name”: "//’ | sed ‘s/".*//’) lat=$(echo $request | sed ‘s/.*“lat”:"//’ | sed ‘s/".*//’) lat=$(echo “$lat / (180 / 3.141592654)” | bc -l) lon=$(echo $request | sed ‘s/.*“lon”:"//’ | sed ‘s/".*//’) lon=$(echo “$lon / (180 / 3.141592654)” | bc -l) if [[ $system == 1 ]]; then \tlocations=$(gsettings get org.gnome.Weather locations) fi if [[ $flatpak == 1 ]]; then \tlocations=$(flatpak run --command=gsettings org.gnome.Weather get org.gnome.Weather locations) fi location=“<(uint32 2, <(‘$name’, ‘’, false, [($lat, $lon)], @a(dd) [])>)>” if [[ $system == 1 ]]; then \tif [[ ! $(gsettings get org.gnome.Weather locations) == “@av []” ]]; then \t\tgsettings set org.gnome.Weather locations “$(echo $locations | sed “s|>]|>, $location]|”)” \telse \t\tgsettings set org.gnome.Weather locations “[$location]” \tfi fi if [[ $flatpak == 1 ]]; then \tif [[ ! $(flatpak run --command=gsettings org.gnome.Weather get org.gnome.Weather locations) == “@av []” ]]; then \t\tflatpak run --command=gsettings org.gnome.Weather set org.gnome.Weather locations “$(echo $locations | sed “s|>]|>, $location]|”)” \telse \t\tflatpak run --command=gsettings org.gnome.Weather set org.gnome.Weather locations “[$location]” \tfi fi `\n
\n
---\n
\n
It occurred to me that some people might not know how to run scripts, so here’s a brief tutorial:\n
\n
How to run scripts in Linux1. Save the script to a text file and save with the `.sh` extension 2. Provide execute permission: `chmod u+x script.sh`3. run the script by double clicking or `./script.sh`
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 8
+favouriteCount: 52
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1701364533 {#2418
date: 2023-11-30 18:15:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: [
"@a"
"@av"
]
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 18263
-titleTs: "'add':1 'app':8 'citi':3 'gnome':6 'solv':9 'weather':7"
-bodyTs: "'/bin/bash':97 '/c/linux':6 '/details.php?place_id=$id&format=json':238 '/g':159 '/gnome/gnome-weather/-/issues/247#note_1819885)':61 '/julianfairfax)':69 '/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads).':79 '/post/1969330](https://lemmy.eco.br/post/1969330)':10 '/script.sh':431 '/search?q=$query&format=json&limit=1':164 '/weather/)':42 '1':106,116,120,122,277,287,310,338 '10':18 '180':256,271 '2':301,415 '3':423 '3.141592654':257,272 'ad':191,217,222 'add':148,200 'alway':22 'answer':210,212 'apps.gnome.org':41 'apps.gnome.org/weather/)':40 'av':317,349 'bash':96 'bc':258,273 'bother':23 'brief':394 'chmod':419 'citi':27,91 'click':429 'command':292,343,353,367 'confirm':94 'consid':173,190 'cross':2 'cross-post':1 'curl':161,235 'dd':307 'display':205 'doubl':428 'echo':124,155,169,201,215,221,226,246,254,261,269,323,359 'els':136,220,328,364 'enter':86 'execut':417 'exit':130,178,219 'extens':414 'fals':303 'fi':107,117,131,153,179,224,284,298,334,335,374,375 'file':408 'flatpak':110,115,121,286,290,337,341,351,365 'found':36,52,56,172 'get':281,295,314,346 'gitlab.com':78 'gitlab.com/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads).':77 'gitlab.gnome.org':60,68 'gitlab.gnome.org/gnome/gnome-weather/-/issues/247#note_1819885)':59 'gitlab.gnome.org/julianfairfax)':67 'gnome':15,102,125,150 'gnome-weath':101 'grep':112 'gset':280,293,313,319,329,344,354,368 'id':225,231 'inhabit':33 'instal':129 'isn':127 'julian':66 'know':385 'l':259,274 'lat':245,250,253,255,304 'lemmy.eco.br':7,9 'lemmy.eco.br/post/1969330](https://lemmy.eco.br/post/1969330)':8 'linux1':401 'linux@lemmy.eco.br':5 'list':111 'locat':144,171,187,218,223,279,283,289,297,299,316,322,324,327,332,333,348,358,360,363,372,373 'lon':260,265,268,270,305 'look':45 'made':70 'might':383 'million':32 'month':19 'name':88,141,206,234,242,302 'never':51 'nominatim.openstreetmap.org':163,237 'nominatim.openstreetmap.org/details.php?place_id=$id&format=json':236 'nominatim.openstreetmap.org/search?q=$query&format=json&limit=1':162 'occur':377 'org.gnome.weather':113,282,294,296,315,321,331,345,347,355,357,369,371 'p':138,181 'peopl':382 'permiss':418 'place':230 'post':3 'problem':76 'program':43 'provid':416 'queri':135,152,154,156 'read':137,180 'remov':174 'request':160,167,202,227,247,262 'run':84,291,342,352,366,388,398,424 'save':402,410 'script':72,95,389,399,404,426 'script.sh':422 'search':176,192 'sed':157,203,207,228,232,240,243,248,251,263,266,325,361 'set':320,330,356,370 'sever':48 'sh':413 'solut':47 'solv':74 'sure':196 'system':105,119,276,309 'term':177,193 'text':407 'thread':58 'time':49 'tutori':395 'type':139 'u':420 'uint32':300 'use':14 'user':65 've':12 'want':146,189,198 'weather':39,103,126,151 'x':421 'y':213 'y/n':209 'yesterday':62 'z':99,109,133"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1701367347
+visibility: "visible "
+apId: "https://lemmy.eco.br/post/1973179"
+editedAt: DateTimeImmutable @1702191218 {#1858
date: 2023-12-10 07:53:38.0 +01:00
}
+createdAt: DateTimeImmutable @1701280947 {#2388
date: 2023-11-29 19:02:27.0 +01:00
}
}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: null
+root: null
+body: """
Afaik the problem is solved within the code. I remember having compiled the app myself. It’s just a matter of time that it’s solved.\n
\n
BUT it’s weird that this is so low priority to all gnome devs. It seems like noone cares about the correct weather. The source of weather is also not really perfect.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 1
+score: 0
+lastActive: DateTime @1702780126 {#4091
date: 2023-12-17 03:28:46.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@a"
"@av"
"@ademir@lemmy.eco.br"
]
+children: Doctrine\ORM\PersistentCollection {#4080 …}
+nested: Doctrine\ORM\PersistentCollection {#4078 …}
+votes: Doctrine\ORM\PersistentCollection {#4076 …}
+reports: Doctrine\ORM\PersistentCollection {#4074 …}
+favourites: Doctrine\ORM\PersistentCollection {#4042 …}
+notifications: Doctrine\ORM\PersistentCollection {#4046 …}
-id: 183695
-bodyTs: "'afaik':1 'also':55 'app':14 'care':45 'code':8 'compil':12 'correct':48 'dev':40 'gnome':39 'like':43 'low':35 'matter':20 'noon':44 'perfect':58 'prioriti':36 'problem':3 'realli':57 'rememb':10 'seem':42 'solv':5,26 'sourc':51 'time':22 'weather':49,53 'weird':30 'within':6"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.ml/comment/6253837"
+editedAt: null
+createdAt: DateTimeImmutable @1701351933 {#4027
date: 2023-11-30 14:45:33.0 +01:00
}
} |
|
Show voter details
|
9 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
10 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4119
+user: App\Entity\User {#4102 …}
+entry: App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "Add-YOUR-city-to-the-Gnome-weather-app-Solved"
+title: "Add YOUR city to the Gnome weather app [Solved]"
+url: null
+body: """
cross-posted from: [!linux@lemmy.eco.br](/c/linux@lemmy.eco.br) | [lemmy.eco.br/post/1969330](https://lemmy.eco.br/post/1969330)\n
\n
I’ve been using Gnome for about 10 months and it always bothered me that my city (with more than a million inhabitants) was not found in the [Weather](https://apps.gnome.org/Weather/) program.\n
\n
I looked for solutions several times and never found them, until I found [this thread](https://gitlab.gnome.org/GNOME/gnome-weather/-/issues/247#note_1819885) yesterday. That the user [Julian](https://gitlab.gnome.org/julianfairfax) made a [script that solves this problem](https://gitlab.com/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads). you just have to run and enter the name of your city and then confirm.\n
\n
script`bash #!/bin/bash if [[ ! -z “$(which gnome-weather)” ]]; then \tsystem=1 fi if [[ ! -z “$(flatpak list | grep org.gnome.Weather)” ]]; then \tflatpak=1 fi if [[ ! $system == 1 && ! $flatpak == 1 ]]; then \techo “GNOME Weather isn’t installed” \texit fi if [[ ! -z “$*” ]]; then \tquery=“$*” else \tread -p “Type the name of the location you want to add to GNOME Weather: " query fi query=”$(echo $query | sed ‘s/ /+/g’)" request=$(curl “https://nominatim.openstreetmap.org/search?q=$query&format=json&limit=1” -s) if [[ $request == “[]” ]]; then \techo “No locations found, consider removing some search terms” \texit fi read -p “If this is not the location you wanted, consider adding search terms Are you sure you want to add $(echo $request | sed 's/.*“display_name”:”//’ | sed ‘s/".*//’)? [y/n] : " answer if [[ ! $answer == “y” ]]; then \techo “Not adding location” \texit else \techo “Adding location” fi id=$(echo $request | sed ‘s/.*“place_id”://’ | sed ‘s/,.*//’) name=$(curl “https://nominatim.openstreetmap.org/details.php?place_id=$id&format=json” -s | sed ‘s/.*“name”: "//’ | sed ‘s/".*//’) lat=$(echo $request | sed ‘s/.*“lat”:"//’ | sed ‘s/".*//’) lat=$(echo “$lat / (180 / 3.141592654)” | bc -l) lon=$(echo $request | sed ‘s/.*“lon”:"//’ | sed ‘s/".*//’) lon=$(echo “$lon / (180 / 3.141592654)” | bc -l) if [[ $system == 1 ]]; then \tlocations=$(gsettings get org.gnome.Weather locations) fi if [[ $flatpak == 1 ]]; then \tlocations=$(flatpak run --command=gsettings org.gnome.Weather get org.gnome.Weather locations) fi location=“<(uint32 2, <(‘$name’, ‘’, false, [($lat, $lon)], @a(dd) [])>)>” if [[ $system == 1 ]]; then \tif [[ ! $(gsettings get org.gnome.Weather locations) == “@av []” ]]; then \t\tgsettings set org.gnome.Weather locations “$(echo $locations | sed “s|>]|>, $location]|”)” \telse \t\tgsettings set org.gnome.Weather locations “[$location]” \tfi fi if [[ $flatpak == 1 ]]; then \tif [[ ! $(flatpak run --command=gsettings org.gnome.Weather get org.gnome.Weather locations) == “@av []” ]]; then \t\tflatpak run --command=gsettings org.gnome.Weather set org.gnome.Weather locations “$(echo $locations | sed “s|>]|>, $location]|”)” \telse \t\tflatpak run --command=gsettings org.gnome.Weather set org.gnome.Weather locations “[$location]” \tfi fi `\n
\n
---\n
\n
It occurred to me that some people might not know how to run scripts, so here’s a brief tutorial:\n
\n
How to run scripts in Linux1. Save the script to a text file and save with the `.sh` extension 2. Provide execute permission: `chmod u+x script.sh`3. run the script by double clicking or `./script.sh`
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 8
+favouriteCount: 52
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1701364533 {#2418
date: 2023-11-30 18:15:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: [
"@a"
"@av"
]
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 18263
-titleTs: "'add':1 'app':8 'citi':3 'gnome':6 'solv':9 'weather':7"
-bodyTs: "'/bin/bash':97 '/c/linux':6 '/details.php?place_id=$id&format=json':238 '/g':159 '/gnome/gnome-weather/-/issues/247#note_1819885)':61 '/julianfairfax)':69 '/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads).':79 '/post/1969330](https://lemmy.eco.br/post/1969330)':10 '/script.sh':431 '/search?q=$query&format=json&limit=1':164 '/weather/)':42 '1':106,116,120,122,277,287,310,338 '10':18 '180':256,271 '2':301,415 '3':423 '3.141592654':257,272 'ad':191,217,222 'add':148,200 'alway':22 'answer':210,212 'apps.gnome.org':41 'apps.gnome.org/weather/)':40 'av':317,349 'bash':96 'bc':258,273 'bother':23 'brief':394 'chmod':419 'citi':27,91 'click':429 'command':292,343,353,367 'confirm':94 'consid':173,190 'cross':2 'cross-post':1 'curl':161,235 'dd':307 'display':205 'doubl':428 'echo':124,155,169,201,215,221,226,246,254,261,269,323,359 'els':136,220,328,364 'enter':86 'execut':417 'exit':130,178,219 'extens':414 'fals':303 'fi':107,117,131,153,179,224,284,298,334,335,374,375 'file':408 'flatpak':110,115,121,286,290,337,341,351,365 'found':36,52,56,172 'get':281,295,314,346 'gitlab.com':78 'gitlab.com/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads).':77 'gitlab.gnome.org':60,68 'gitlab.gnome.org/gnome/gnome-weather/-/issues/247#note_1819885)':59 'gitlab.gnome.org/julianfairfax)':67 'gnome':15,102,125,150 'gnome-weath':101 'grep':112 'gset':280,293,313,319,329,344,354,368 'id':225,231 'inhabit':33 'instal':129 'isn':127 'julian':66 'know':385 'l':259,274 'lat':245,250,253,255,304 'lemmy.eco.br':7,9 'lemmy.eco.br/post/1969330](https://lemmy.eco.br/post/1969330)':8 'linux1':401 'linux@lemmy.eco.br':5 'list':111 'locat':144,171,187,218,223,279,283,289,297,299,316,322,324,327,332,333,348,358,360,363,372,373 'lon':260,265,268,270,305 'look':45 'made':70 'might':383 'million':32 'month':19 'name':88,141,206,234,242,302 'never':51 'nominatim.openstreetmap.org':163,237 'nominatim.openstreetmap.org/details.php?place_id=$id&format=json':236 'nominatim.openstreetmap.org/search?q=$query&format=json&limit=1':162 'occur':377 'org.gnome.weather':113,282,294,296,315,321,331,345,347,355,357,369,371 'p':138,181 'peopl':382 'permiss':418 'place':230 'post':3 'problem':76 'program':43 'provid':416 'queri':135,152,154,156 'read':137,180 'remov':174 'request':160,167,202,227,247,262 'run':84,291,342,352,366,388,398,424 'save':402,410 'script':72,95,389,399,404,426 'script.sh':422 'search':176,192 'sed':157,203,207,228,232,240,243,248,251,263,266,325,361 'set':320,330,356,370 'sever':48 'sh':413 'solut':47 'solv':74 'sure':196 'system':105,119,276,309 'term':177,193 'text':407 'thread':58 'time':49 'tutori':395 'type':139 'u':420 'uint32':300 'use':14 'user':65 've':12 'want':146,189,198 'weather':39,103,126,151 'x':421 'y':213 'y/n':209 'yesterday':62 'z':99,109,133"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1701367347
+visibility: "visible "
+apId: "https://lemmy.eco.br/post/1973179"
+editedAt: DateTimeImmutable @1702191218 {#1858
date: 2023-12-10 07:53:38.0 +01:00
}
+createdAt: DateTimeImmutable @1701280947 {#2388
date: 2023-11-29 19:02:27.0 +01:00
}
}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: null
+root: null
+body: "This is amazing! I’m not using Gnome, but moments like this are the reason why I love Linux so much."
+lang: "en"
+isAdult: false
+favouriteCount: 11
+score: 0
+lastActive: DateTime @1702481761 {#4120
date: 2023-12-13 16:36:01.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@a"
"@av"
"@ademir@lemmy.eco.br"
]
+children: Doctrine\ORM\PersistentCollection {#4117 …}
+nested: Doctrine\ORM\PersistentCollection {#4115 …}
+votes: Doctrine\ORM\PersistentCollection {#4113 …}
+reports: Doctrine\ORM\PersistentCollection {#4110 …}
+favourites: Doctrine\ORM\PersistentCollection {#4106 …}
+notifications: Doctrine\ORM\PersistentCollection {#4104 …}
-id: 178454
-bodyTs: "'amaz':3 'gnome':8 'like':11 'linux':19 'love':18 'm':5 'moment':10 'much':21 'reason':15 'use':7"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://iusearchlinux.fyi/comment/3833698"
+editedAt: DateTimeImmutable @1702222871 {#4125
date: 2023-12-10 16:41:11.0 +01:00
}
+createdAt: DateTimeImmutable @1701294191 {#4123
date: 2023-11-29 22:43:11.0 +01:00
}
} |
|
Show voter details
|
11 |
DENIED
|
edit
|
App\Entity\EntryComment {#4119
+user: App\Entity\User {#4102 …}
+entry: App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "Add-YOUR-city-to-the-Gnome-weather-app-Solved"
+title: "Add YOUR city to the Gnome weather app [Solved]"
+url: null
+body: """
cross-posted from: [!linux@lemmy.eco.br](/c/linux@lemmy.eco.br) | [lemmy.eco.br/post/1969330](https://lemmy.eco.br/post/1969330)\n
\n
I’ve been using Gnome for about 10 months and it always bothered me that my city (with more than a million inhabitants) was not found in the [Weather](https://apps.gnome.org/Weather/) program.\n
\n
I looked for solutions several times and never found them, until I found [this thread](https://gitlab.gnome.org/GNOME/gnome-weather/-/issues/247#note_1819885) yesterday. That the user [Julian](https://gitlab.gnome.org/julianfairfax) made a [script that solves this problem](https://gitlab.com/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads). you just have to run and enter the name of your city and then confirm.\n
\n
script`bash #!/bin/bash if [[ ! -z “$(which gnome-weather)” ]]; then \tsystem=1 fi if [[ ! -z “$(flatpak list | grep org.gnome.Weather)” ]]; then \tflatpak=1 fi if [[ ! $system == 1 && ! $flatpak == 1 ]]; then \techo “GNOME Weather isn’t installed” \texit fi if [[ ! -z “$*” ]]; then \tquery=“$*” else \tread -p “Type the name of the location you want to add to GNOME Weather: " query fi query=”$(echo $query | sed ‘s/ /+/g’)" request=$(curl “https://nominatim.openstreetmap.org/search?q=$query&format=json&limit=1” -s) if [[ $request == “[]” ]]; then \techo “No locations found, consider removing some search terms” \texit fi read -p “If this is not the location you wanted, consider adding search terms Are you sure you want to add $(echo $request | sed 's/.*“display_name”:”//’ | sed ‘s/".*//’)? [y/n] : " answer if [[ ! $answer == “y” ]]; then \techo “Not adding location” \texit else \techo “Adding location” fi id=$(echo $request | sed ‘s/.*“place_id”://’ | sed ‘s/,.*//’) name=$(curl “https://nominatim.openstreetmap.org/details.php?place_id=$id&format=json” -s | sed ‘s/.*“name”: "//’ | sed ‘s/".*//’) lat=$(echo $request | sed ‘s/.*“lat”:"//’ | sed ‘s/".*//’) lat=$(echo “$lat / (180 / 3.141592654)” | bc -l) lon=$(echo $request | sed ‘s/.*“lon”:"//’ | sed ‘s/".*//’) lon=$(echo “$lon / (180 / 3.141592654)” | bc -l) if [[ $system == 1 ]]; then \tlocations=$(gsettings get org.gnome.Weather locations) fi if [[ $flatpak == 1 ]]; then \tlocations=$(flatpak run --command=gsettings org.gnome.Weather get org.gnome.Weather locations) fi location=“<(uint32 2, <(‘$name’, ‘’, false, [($lat, $lon)], @a(dd) [])>)>” if [[ $system == 1 ]]; then \tif [[ ! $(gsettings get org.gnome.Weather locations) == “@av []” ]]; then \t\tgsettings set org.gnome.Weather locations “$(echo $locations | sed “s|>]|>, $location]|”)” \telse \t\tgsettings set org.gnome.Weather locations “[$location]” \tfi fi if [[ $flatpak == 1 ]]; then \tif [[ ! $(flatpak run --command=gsettings org.gnome.Weather get org.gnome.Weather locations) == “@av []” ]]; then \t\tflatpak run --command=gsettings org.gnome.Weather set org.gnome.Weather locations “$(echo $locations | sed “s|>]|>, $location]|”)” \telse \t\tflatpak run --command=gsettings org.gnome.Weather set org.gnome.Weather locations “[$location]” \tfi fi `\n
\n
---\n
\n
It occurred to me that some people might not know how to run scripts, so here’s a brief tutorial:\n
\n
How to run scripts in Linux1. Save the script to a text file and save with the `.sh` extension 2. Provide execute permission: `chmod u+x script.sh`3. run the script by double clicking or `./script.sh`
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 8
+favouriteCount: 52
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1701364533 {#2418
date: 2023-11-30 18:15:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: [
"@a"
"@av"
]
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 18263
-titleTs: "'add':1 'app':8 'citi':3 'gnome':6 'solv':9 'weather':7"
-bodyTs: "'/bin/bash':97 '/c/linux':6 '/details.php?place_id=$id&format=json':238 '/g':159 '/gnome/gnome-weather/-/issues/247#note_1819885)':61 '/julianfairfax)':69 '/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads).':79 '/post/1969330](https://lemmy.eco.br/post/1969330)':10 '/script.sh':431 '/search?q=$query&format=json&limit=1':164 '/weather/)':42 '1':106,116,120,122,277,287,310,338 '10':18 '180':256,271 '2':301,415 '3':423 '3.141592654':257,272 'ad':191,217,222 'add':148,200 'alway':22 'answer':210,212 'apps.gnome.org':41 'apps.gnome.org/weather/)':40 'av':317,349 'bash':96 'bc':258,273 'bother':23 'brief':394 'chmod':419 'citi':27,91 'click':429 'command':292,343,353,367 'confirm':94 'consid':173,190 'cross':2 'cross-post':1 'curl':161,235 'dd':307 'display':205 'doubl':428 'echo':124,155,169,201,215,221,226,246,254,261,269,323,359 'els':136,220,328,364 'enter':86 'execut':417 'exit':130,178,219 'extens':414 'fals':303 'fi':107,117,131,153,179,224,284,298,334,335,374,375 'file':408 'flatpak':110,115,121,286,290,337,341,351,365 'found':36,52,56,172 'get':281,295,314,346 'gitlab.com':78 'gitlab.com/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads).':77 'gitlab.gnome.org':60,68 'gitlab.gnome.org/gnome/gnome-weather/-/issues/247#note_1819885)':59 'gitlab.gnome.org/julianfairfax)':67 'gnome':15,102,125,150 'gnome-weath':101 'grep':112 'gset':280,293,313,319,329,344,354,368 'id':225,231 'inhabit':33 'instal':129 'isn':127 'julian':66 'know':385 'l':259,274 'lat':245,250,253,255,304 'lemmy.eco.br':7,9 'lemmy.eco.br/post/1969330](https://lemmy.eco.br/post/1969330)':8 'linux1':401 'linux@lemmy.eco.br':5 'list':111 'locat':144,171,187,218,223,279,283,289,297,299,316,322,324,327,332,333,348,358,360,363,372,373 'lon':260,265,268,270,305 'look':45 'made':70 'might':383 'million':32 'month':19 'name':88,141,206,234,242,302 'never':51 'nominatim.openstreetmap.org':163,237 'nominatim.openstreetmap.org/details.php?place_id=$id&format=json':236 'nominatim.openstreetmap.org/search?q=$query&format=json&limit=1':162 'occur':377 'org.gnome.weather':113,282,294,296,315,321,331,345,347,355,357,369,371 'p':138,181 'peopl':382 'permiss':418 'place':230 'post':3 'problem':76 'program':43 'provid':416 'queri':135,152,154,156 'read':137,180 'remov':174 'request':160,167,202,227,247,262 'run':84,291,342,352,366,388,398,424 'save':402,410 'script':72,95,389,399,404,426 'script.sh':422 'search':176,192 'sed':157,203,207,228,232,240,243,248,251,263,266,325,361 'set':320,330,356,370 'sever':48 'sh':413 'solut':47 'solv':74 'sure':196 'system':105,119,276,309 'term':177,193 'text':407 'thread':58 'time':49 'tutori':395 'type':139 'u':420 'uint32':300 'use':14 'user':65 've':12 'want':146,189,198 'weather':39,103,126,151 'x':421 'y':213 'y/n':209 'yesterday':62 'z':99,109,133"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1701367347
+visibility: "visible "
+apId: "https://lemmy.eco.br/post/1973179"
+editedAt: DateTimeImmutable @1702191218 {#1858
date: 2023-12-10 07:53:38.0 +01:00
}
+createdAt: DateTimeImmutable @1701280947 {#2388
date: 2023-11-29 19:02:27.0 +01:00
}
}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: null
+root: null
+body: "This is amazing! I’m not using Gnome, but moments like this are the reason why I love Linux so much."
+lang: "en"
+isAdult: false
+favouriteCount: 11
+score: 0
+lastActive: DateTime @1702481761 {#4120
date: 2023-12-13 16:36:01.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@a"
"@av"
"@ademir@lemmy.eco.br"
]
+children: Doctrine\ORM\PersistentCollection {#4117 …}
+nested: Doctrine\ORM\PersistentCollection {#4115 …}
+votes: Doctrine\ORM\PersistentCollection {#4113 …}
+reports: Doctrine\ORM\PersistentCollection {#4110 …}
+favourites: Doctrine\ORM\PersistentCollection {#4106 …}
+notifications: Doctrine\ORM\PersistentCollection {#4104 …}
-id: 178454
-bodyTs: "'amaz':3 'gnome':8 'like':11 'linux':19 'love':18 'm':5 'moment':10 'much':21 'reason':15 'use':7"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://iusearchlinux.fyi/comment/3833698"
+editedAt: DateTimeImmutable @1702222871 {#4125
date: 2023-12-10 16:41:11.0 +01:00
}
+createdAt: DateTimeImmutable @1701294191 {#4123
date: 2023-11-29 22:43:11.0 +01:00
}
} |
|
Show voter details
|
12 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4119
+user: App\Entity\User {#4102 …}
+entry: App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "Add-YOUR-city-to-the-Gnome-weather-app-Solved"
+title: "Add YOUR city to the Gnome weather app [Solved]"
+url: null
+body: """
cross-posted from: [!linux@lemmy.eco.br](/c/linux@lemmy.eco.br) | [lemmy.eco.br/post/1969330](https://lemmy.eco.br/post/1969330)\n
\n
I’ve been using Gnome for about 10 months and it always bothered me that my city (with more than a million inhabitants) was not found in the [Weather](https://apps.gnome.org/Weather/) program.\n
\n
I looked for solutions several times and never found them, until I found [this thread](https://gitlab.gnome.org/GNOME/gnome-weather/-/issues/247#note_1819885) yesterday. That the user [Julian](https://gitlab.gnome.org/julianfairfax) made a [script that solves this problem](https://gitlab.com/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads). you just have to run and enter the name of your city and then confirm.\n
\n
script`bash #!/bin/bash if [[ ! -z “$(which gnome-weather)” ]]; then \tsystem=1 fi if [[ ! -z “$(flatpak list | grep org.gnome.Weather)” ]]; then \tflatpak=1 fi if [[ ! $system == 1 && ! $flatpak == 1 ]]; then \techo “GNOME Weather isn’t installed” \texit fi if [[ ! -z “$*” ]]; then \tquery=“$*” else \tread -p “Type the name of the location you want to add to GNOME Weather: " query fi query=”$(echo $query | sed ‘s/ /+/g’)" request=$(curl “https://nominatim.openstreetmap.org/search?q=$query&format=json&limit=1” -s) if [[ $request == “[]” ]]; then \techo “No locations found, consider removing some search terms” \texit fi read -p “If this is not the location you wanted, consider adding search terms Are you sure you want to add $(echo $request | sed 's/.*“display_name”:”//’ | sed ‘s/".*//’)? [y/n] : " answer if [[ ! $answer == “y” ]]; then \techo “Not adding location” \texit else \techo “Adding location” fi id=$(echo $request | sed ‘s/.*“place_id”://’ | sed ‘s/,.*//’) name=$(curl “https://nominatim.openstreetmap.org/details.php?place_id=$id&format=json” -s | sed ‘s/.*“name”: "//’ | sed ‘s/".*//’) lat=$(echo $request | sed ‘s/.*“lat”:"//’ | sed ‘s/".*//’) lat=$(echo “$lat / (180 / 3.141592654)” | bc -l) lon=$(echo $request | sed ‘s/.*“lon”:"//’ | sed ‘s/".*//’) lon=$(echo “$lon / (180 / 3.141592654)” | bc -l) if [[ $system == 1 ]]; then \tlocations=$(gsettings get org.gnome.Weather locations) fi if [[ $flatpak == 1 ]]; then \tlocations=$(flatpak run --command=gsettings org.gnome.Weather get org.gnome.Weather locations) fi location=“<(uint32 2, <(‘$name’, ‘’, false, [($lat, $lon)], @a(dd) [])>)>” if [[ $system == 1 ]]; then \tif [[ ! $(gsettings get org.gnome.Weather locations) == “@av []” ]]; then \t\tgsettings set org.gnome.Weather locations “$(echo $locations | sed “s|>]|>, $location]|”)” \telse \t\tgsettings set org.gnome.Weather locations “[$location]” \tfi fi if [[ $flatpak == 1 ]]; then \tif [[ ! $(flatpak run --command=gsettings org.gnome.Weather get org.gnome.Weather locations) == “@av []” ]]; then \t\tflatpak run --command=gsettings org.gnome.Weather set org.gnome.Weather locations “$(echo $locations | sed “s|>]|>, $location]|”)” \telse \t\tflatpak run --command=gsettings org.gnome.Weather set org.gnome.Weather locations “[$location]” \tfi fi `\n
\n
---\n
\n
It occurred to me that some people might not know how to run scripts, so here’s a brief tutorial:\n
\n
How to run scripts in Linux1. Save the script to a text file and save with the `.sh` extension 2. Provide execute permission: `chmod u+x script.sh`3. run the script by double clicking or `./script.sh`
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 8
+favouriteCount: 52
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1701364533 {#2418
date: 2023-11-30 18:15:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: [
"@a"
"@av"
]
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 18263
-titleTs: "'add':1 'app':8 'citi':3 'gnome':6 'solv':9 'weather':7"
-bodyTs: "'/bin/bash':97 '/c/linux':6 '/details.php?place_id=$id&format=json':238 '/g':159 '/gnome/gnome-weather/-/issues/247#note_1819885)':61 '/julianfairfax)':69 '/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads).':79 '/post/1969330](https://lemmy.eco.br/post/1969330)':10 '/script.sh':431 '/search?q=$query&format=json&limit=1':164 '/weather/)':42 '1':106,116,120,122,277,287,310,338 '10':18 '180':256,271 '2':301,415 '3':423 '3.141592654':257,272 'ad':191,217,222 'add':148,200 'alway':22 'answer':210,212 'apps.gnome.org':41 'apps.gnome.org/weather/)':40 'av':317,349 'bash':96 'bc':258,273 'bother':23 'brief':394 'chmod':419 'citi':27,91 'click':429 'command':292,343,353,367 'confirm':94 'consid':173,190 'cross':2 'cross-post':1 'curl':161,235 'dd':307 'display':205 'doubl':428 'echo':124,155,169,201,215,221,226,246,254,261,269,323,359 'els':136,220,328,364 'enter':86 'execut':417 'exit':130,178,219 'extens':414 'fals':303 'fi':107,117,131,153,179,224,284,298,334,335,374,375 'file':408 'flatpak':110,115,121,286,290,337,341,351,365 'found':36,52,56,172 'get':281,295,314,346 'gitlab.com':78 'gitlab.com/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads).':77 'gitlab.gnome.org':60,68 'gitlab.gnome.org/gnome/gnome-weather/-/issues/247#note_1819885)':59 'gitlab.gnome.org/julianfairfax)':67 'gnome':15,102,125,150 'gnome-weath':101 'grep':112 'gset':280,293,313,319,329,344,354,368 'id':225,231 'inhabit':33 'instal':129 'isn':127 'julian':66 'know':385 'l':259,274 'lat':245,250,253,255,304 'lemmy.eco.br':7,9 'lemmy.eco.br/post/1969330](https://lemmy.eco.br/post/1969330)':8 'linux1':401 'linux@lemmy.eco.br':5 'list':111 'locat':144,171,187,218,223,279,283,289,297,299,316,322,324,327,332,333,348,358,360,363,372,373 'lon':260,265,268,270,305 'look':45 'made':70 'might':383 'million':32 'month':19 'name':88,141,206,234,242,302 'never':51 'nominatim.openstreetmap.org':163,237 'nominatim.openstreetmap.org/details.php?place_id=$id&format=json':236 'nominatim.openstreetmap.org/search?q=$query&format=json&limit=1':162 'occur':377 'org.gnome.weather':113,282,294,296,315,321,331,345,347,355,357,369,371 'p':138,181 'peopl':382 'permiss':418 'place':230 'post':3 'problem':76 'program':43 'provid':416 'queri':135,152,154,156 'read':137,180 'remov':174 'request':160,167,202,227,247,262 'run':84,291,342,352,366,388,398,424 'save':402,410 'script':72,95,389,399,404,426 'script.sh':422 'search':176,192 'sed':157,203,207,228,232,240,243,248,251,263,266,325,361 'set':320,330,356,370 'sever':48 'sh':413 'solut':47 'solv':74 'sure':196 'system':105,119,276,309 'term':177,193 'text':407 'thread':58 'time':49 'tutori':395 'type':139 'u':420 'uint32':300 'use':14 'user':65 've':12 'want':146,189,198 'weather':39,103,126,151 'x':421 'y':213 'y/n':209 'yesterday':62 'z':99,109,133"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1701367347
+visibility: "visible "
+apId: "https://lemmy.eco.br/post/1973179"
+editedAt: DateTimeImmutable @1702191218 {#1858
date: 2023-12-10 07:53:38.0 +01:00
}
+createdAt: DateTimeImmutable @1701280947 {#2388
date: 2023-11-29 19:02:27.0 +01:00
}
}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: null
+root: null
+body: "This is amazing! I’m not using Gnome, but moments like this are the reason why I love Linux so much."
+lang: "en"
+isAdult: false
+favouriteCount: 11
+score: 0
+lastActive: DateTime @1702481761 {#4120
date: 2023-12-13 16:36:01.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@a"
"@av"
"@ademir@lemmy.eco.br"
]
+children: Doctrine\ORM\PersistentCollection {#4117 …}
+nested: Doctrine\ORM\PersistentCollection {#4115 …}
+votes: Doctrine\ORM\PersistentCollection {#4113 …}
+reports: Doctrine\ORM\PersistentCollection {#4110 …}
+favourites: Doctrine\ORM\PersistentCollection {#4106 …}
+notifications: Doctrine\ORM\PersistentCollection {#4104 …}
-id: 178454
-bodyTs: "'amaz':3 'gnome':8 'like':11 'linux':19 'love':18 'm':5 'moment':10 'much':21 'reason':15 'use':7"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://iusearchlinux.fyi/comment/3833698"
+editedAt: DateTimeImmutable @1702222871 {#4125
date: 2023-12-10 16:41:11.0 +01:00
}
+createdAt: DateTimeImmutable @1701294191 {#4123
date: 2023-11-29 22:43:11.0 +01:00
}
} |
|
Show voter details
|
13 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
14 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4354
+user: Proxies\__CG__\App\Entity\User {#4357 …}
+entry: App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "Add-YOUR-city-to-the-Gnome-weather-app-Solved"
+title: "Add YOUR city to the Gnome weather app [Solved]"
+url: null
+body: """
cross-posted from: [!linux@lemmy.eco.br](/c/linux@lemmy.eco.br) | [lemmy.eco.br/post/1969330](https://lemmy.eco.br/post/1969330)\n
\n
I’ve been using Gnome for about 10 months and it always bothered me that my city (with more than a million inhabitants) was not found in the [Weather](https://apps.gnome.org/Weather/) program.\n
\n
I looked for solutions several times and never found them, until I found [this thread](https://gitlab.gnome.org/GNOME/gnome-weather/-/issues/247#note_1819885) yesterday. That the user [Julian](https://gitlab.gnome.org/julianfairfax) made a [script that solves this problem](https://gitlab.com/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads). you just have to run and enter the name of your city and then confirm.\n
\n
script`bash #!/bin/bash if [[ ! -z “$(which gnome-weather)” ]]; then \tsystem=1 fi if [[ ! -z “$(flatpak list | grep org.gnome.Weather)” ]]; then \tflatpak=1 fi if [[ ! $system == 1 && ! $flatpak == 1 ]]; then \techo “GNOME Weather isn’t installed” \texit fi if [[ ! -z “$*” ]]; then \tquery=“$*” else \tread -p “Type the name of the location you want to add to GNOME Weather: " query fi query=”$(echo $query | sed ‘s/ /+/g’)" request=$(curl “https://nominatim.openstreetmap.org/search?q=$query&format=json&limit=1” -s) if [[ $request == “[]” ]]; then \techo “No locations found, consider removing some search terms” \texit fi read -p “If this is not the location you wanted, consider adding search terms Are you sure you want to add $(echo $request | sed 's/.*“display_name”:”//’ | sed ‘s/".*//’)? [y/n] : " answer if [[ ! $answer == “y” ]]; then \techo “Not adding location” \texit else \techo “Adding location” fi id=$(echo $request | sed ‘s/.*“place_id”://’ | sed ‘s/,.*//’) name=$(curl “https://nominatim.openstreetmap.org/details.php?place_id=$id&format=json” -s | sed ‘s/.*“name”: "//’ | sed ‘s/".*//’) lat=$(echo $request | sed ‘s/.*“lat”:"//’ | sed ‘s/".*//’) lat=$(echo “$lat / (180 / 3.141592654)” | bc -l) lon=$(echo $request | sed ‘s/.*“lon”:"//’ | sed ‘s/".*//’) lon=$(echo “$lon / (180 / 3.141592654)” | bc -l) if [[ $system == 1 ]]; then \tlocations=$(gsettings get org.gnome.Weather locations) fi if [[ $flatpak == 1 ]]; then \tlocations=$(flatpak run --command=gsettings org.gnome.Weather get org.gnome.Weather locations) fi location=“<(uint32 2, <(‘$name’, ‘’, false, [($lat, $lon)], @a(dd) [])>)>” if [[ $system == 1 ]]; then \tif [[ ! $(gsettings get org.gnome.Weather locations) == “@av []” ]]; then \t\tgsettings set org.gnome.Weather locations “$(echo $locations | sed “s|>]|>, $location]|”)” \telse \t\tgsettings set org.gnome.Weather locations “[$location]” \tfi fi if [[ $flatpak == 1 ]]; then \tif [[ ! $(flatpak run --command=gsettings org.gnome.Weather get org.gnome.Weather locations) == “@av []” ]]; then \t\tflatpak run --command=gsettings org.gnome.Weather set org.gnome.Weather locations “$(echo $locations | sed “s|>]|>, $location]|”)” \telse \t\tflatpak run --command=gsettings org.gnome.Weather set org.gnome.Weather locations “[$location]” \tfi fi `\n
\n
---\n
\n
It occurred to me that some people might not know how to run scripts, so here’s a brief tutorial:\n
\n
How to run scripts in Linux1. Save the script to a text file and save with the `.sh` extension 2. Provide execute permission: `chmod u+x script.sh`3. run the script by double clicking or `./script.sh`
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 8
+favouriteCount: 52
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1701364533 {#2418
date: 2023-11-30 18:15:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: [
"@a"
"@av"
]
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 18263
-titleTs: "'add':1 'app':8 'citi':3 'gnome':6 'solv':9 'weather':7"
-bodyTs: "'/bin/bash':97 '/c/linux':6 '/details.php?place_id=$id&format=json':238 '/g':159 '/gnome/gnome-weather/-/issues/247#note_1819885)':61 '/julianfairfax)':69 '/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads).':79 '/post/1969330](https://lemmy.eco.br/post/1969330)':10 '/script.sh':431 '/search?q=$query&format=json&limit=1':164 '/weather/)':42 '1':106,116,120,122,277,287,310,338 '10':18 '180':256,271 '2':301,415 '3':423 '3.141592654':257,272 'ad':191,217,222 'add':148,200 'alway':22 'answer':210,212 'apps.gnome.org':41 'apps.gnome.org/weather/)':40 'av':317,349 'bash':96 'bc':258,273 'bother':23 'brief':394 'chmod':419 'citi':27,91 'click':429 'command':292,343,353,367 'confirm':94 'consid':173,190 'cross':2 'cross-post':1 'curl':161,235 'dd':307 'display':205 'doubl':428 'echo':124,155,169,201,215,221,226,246,254,261,269,323,359 'els':136,220,328,364 'enter':86 'execut':417 'exit':130,178,219 'extens':414 'fals':303 'fi':107,117,131,153,179,224,284,298,334,335,374,375 'file':408 'flatpak':110,115,121,286,290,337,341,351,365 'found':36,52,56,172 'get':281,295,314,346 'gitlab.com':78 'gitlab.com/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads).':77 'gitlab.gnome.org':60,68 'gitlab.gnome.org/gnome/gnome-weather/-/issues/247#note_1819885)':59 'gitlab.gnome.org/julianfairfax)':67 'gnome':15,102,125,150 'gnome-weath':101 'grep':112 'gset':280,293,313,319,329,344,354,368 'id':225,231 'inhabit':33 'instal':129 'isn':127 'julian':66 'know':385 'l':259,274 'lat':245,250,253,255,304 'lemmy.eco.br':7,9 'lemmy.eco.br/post/1969330](https://lemmy.eco.br/post/1969330)':8 'linux1':401 'linux@lemmy.eco.br':5 'list':111 'locat':144,171,187,218,223,279,283,289,297,299,316,322,324,327,332,333,348,358,360,363,372,373 'lon':260,265,268,270,305 'look':45 'made':70 'might':383 'million':32 'month':19 'name':88,141,206,234,242,302 'never':51 'nominatim.openstreetmap.org':163,237 'nominatim.openstreetmap.org/details.php?place_id=$id&format=json':236 'nominatim.openstreetmap.org/search?q=$query&format=json&limit=1':162 'occur':377 'org.gnome.weather':113,282,294,296,315,321,331,345,347,355,357,369,371 'p':138,181 'peopl':382 'permiss':418 'place':230 'post':3 'problem':76 'program':43 'provid':416 'queri':135,152,154,156 'read':137,180 'remov':174 'request':160,167,202,227,247,262 'run':84,291,342,352,366,388,398,424 'save':402,410 'script':72,95,389,399,404,426 'script.sh':422 'search':176,192 'sed':157,203,207,228,232,240,243,248,251,263,266,325,361 'set':320,330,356,370 'sever':48 'sh':413 'solut':47 'solv':74 'sure':196 'system':105,119,276,309 'term':177,193 'text':407 'thread':58 'time':49 'tutori':395 'type':139 'u':420 'uint32':300 'use':14 'user':65 've':12 'want':146,189,198 'weather':39,103,126,151 'x':421 'y':213 'y/n':209 'yesterday':62 'z':99,109,133"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1701367347
+visibility: "visible "
+apId: "https://lemmy.eco.br/post/1973179"
+editedAt: DateTimeImmutable @1702191218 {#1858
date: 2023-12-10 07:53:38.0 +01:00
}
+createdAt: DateTimeImmutable @1701280947 {#2388
date: 2023-11-29 19:02:27.0 +01:00
}
}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4119
+user: App\Entity\User {#4102 …}
+entry: App\Entity\Entry {#2413}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: null
+root: null
+body: "This is amazing! I’m not using Gnome, but moments like this are the reason why I love Linux so much."
+lang: "en"
+isAdult: false
+favouriteCount: 11
+score: 0
+lastActive: DateTime @1702481761 {#4120
date: 2023-12-13 16:36:01.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@a"
"@av"
"@ademir@lemmy.eco.br"
]
+children: Doctrine\ORM\PersistentCollection {#4117 …}
+nested: Doctrine\ORM\PersistentCollection {#4115 …}
+votes: Doctrine\ORM\PersistentCollection {#4113 …}
+reports: Doctrine\ORM\PersistentCollection {#4110 …}
+favourites: Doctrine\ORM\PersistentCollection {#4106 …}
+notifications: Doctrine\ORM\PersistentCollection {#4104 …}
-id: 178454
-bodyTs: "'amaz':3 'gnome':8 'like':11 'linux':19 'love':18 'm':5 'moment':10 'much':21 'reason':15 'use':7"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://iusearchlinux.fyi/comment/3833698"
+editedAt: DateTimeImmutable @1702222871 {#4125
date: 2023-12-10 16:41:11.0 +01:00
}
+createdAt: DateTimeImmutable @1701294191 {#4123
date: 2023-11-29 22:43:11.0 +01:00
}
}
+root: App\Entity\EntryComment {#4119}
+body: "As a gnome user and huge Linux enthusiast, this should not have to exist. Gnome weather is just badly designed"
+lang: "en"
+isAdult: false
+favouriteCount: 23
+score: 0
+lastActive: DateTime @1701298859 {#4353
date: 2023-11-30 00:00:59.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@a"
"@av"
"@ademir@lemmy.eco.br"
"@stepanzak@iusearchlinux.fyi"
]
+children: Doctrine\ORM\PersistentCollection {#4361 …}
+nested: Doctrine\ORM\PersistentCollection {#4363 …}
+votes: Doctrine\ORM\PersistentCollection {#4359 …}
+reports: Doctrine\ORM\PersistentCollection {#4365 …}
+favourites: Doctrine\ORM\PersistentCollection {#4367 …}
+notifications: Doctrine\ORM\PersistentCollection {#4369 …}
-id: 178812
-bodyTs: "'bad':19 'design':20 'enthusiast':8 'exist':14 'gnome':3,15 'huge':6 'linux':7 'user':4 'weather':16"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/5682084"
+editedAt: null
+createdAt: DateTimeImmutable @1701298859 {#4350
date: 2023-11-30 00:00:59.0 +01:00
}
} |
|
Show voter details
|
15 |
DENIED
|
edit
|
App\Entity\EntryComment {#4354
+user: Proxies\__CG__\App\Entity\User {#4357 …}
+entry: App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "Add-YOUR-city-to-the-Gnome-weather-app-Solved"
+title: "Add YOUR city to the Gnome weather app [Solved]"
+url: null
+body: """
cross-posted from: [!linux@lemmy.eco.br](/c/linux@lemmy.eco.br) | [lemmy.eco.br/post/1969330](https://lemmy.eco.br/post/1969330)\n
\n
I’ve been using Gnome for about 10 months and it always bothered me that my city (with more than a million inhabitants) was not found in the [Weather](https://apps.gnome.org/Weather/) program.\n
\n
I looked for solutions several times and never found them, until I found [this thread](https://gitlab.gnome.org/GNOME/gnome-weather/-/issues/247#note_1819885) yesterday. That the user [Julian](https://gitlab.gnome.org/julianfairfax) made a [script that solves this problem](https://gitlab.com/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads). you just have to run and enter the name of your city and then confirm.\n
\n
script`bash #!/bin/bash if [[ ! -z “$(which gnome-weather)” ]]; then \tsystem=1 fi if [[ ! -z “$(flatpak list | grep org.gnome.Weather)” ]]; then \tflatpak=1 fi if [[ ! $system == 1 && ! $flatpak == 1 ]]; then \techo “GNOME Weather isn’t installed” \texit fi if [[ ! -z “$*” ]]; then \tquery=“$*” else \tread -p “Type the name of the location you want to add to GNOME Weather: " query fi query=”$(echo $query | sed ‘s/ /+/g’)" request=$(curl “https://nominatim.openstreetmap.org/search?q=$query&format=json&limit=1” -s) if [[ $request == “[]” ]]; then \techo “No locations found, consider removing some search terms” \texit fi read -p “If this is not the location you wanted, consider adding search terms Are you sure you want to add $(echo $request | sed 's/.*“display_name”:”//’ | sed ‘s/".*//’)? [y/n] : " answer if [[ ! $answer == “y” ]]; then \techo “Not adding location” \texit else \techo “Adding location” fi id=$(echo $request | sed ‘s/.*“place_id”://’ | sed ‘s/,.*//’) name=$(curl “https://nominatim.openstreetmap.org/details.php?place_id=$id&format=json” -s | sed ‘s/.*“name”: "//’ | sed ‘s/".*//’) lat=$(echo $request | sed ‘s/.*“lat”:"//’ | sed ‘s/".*//’) lat=$(echo “$lat / (180 / 3.141592654)” | bc -l) lon=$(echo $request | sed ‘s/.*“lon”:"//’ | sed ‘s/".*//’) lon=$(echo “$lon / (180 / 3.141592654)” | bc -l) if [[ $system == 1 ]]; then \tlocations=$(gsettings get org.gnome.Weather locations) fi if [[ $flatpak == 1 ]]; then \tlocations=$(flatpak run --command=gsettings org.gnome.Weather get org.gnome.Weather locations) fi location=“<(uint32 2, <(‘$name’, ‘’, false, [($lat, $lon)], @a(dd) [])>)>” if [[ $system == 1 ]]; then \tif [[ ! $(gsettings get org.gnome.Weather locations) == “@av []” ]]; then \t\tgsettings set org.gnome.Weather locations “$(echo $locations | sed “s|>]|>, $location]|”)” \telse \t\tgsettings set org.gnome.Weather locations “[$location]” \tfi fi if [[ $flatpak == 1 ]]; then \tif [[ ! $(flatpak run --command=gsettings org.gnome.Weather get org.gnome.Weather locations) == “@av []” ]]; then \t\tflatpak run --command=gsettings org.gnome.Weather set org.gnome.Weather locations “$(echo $locations | sed “s|>]|>, $location]|”)” \telse \t\tflatpak run --command=gsettings org.gnome.Weather set org.gnome.Weather locations “[$location]” \tfi fi `\n
\n
---\n
\n
It occurred to me that some people might not know how to run scripts, so here’s a brief tutorial:\n
\n
How to run scripts in Linux1. Save the script to a text file and save with the `.sh` extension 2. Provide execute permission: `chmod u+x script.sh`3. run the script by double clicking or `./script.sh`
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 8
+favouriteCount: 52
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1701364533 {#2418
date: 2023-11-30 18:15:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: [
"@a"
"@av"
]
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 18263
-titleTs: "'add':1 'app':8 'citi':3 'gnome':6 'solv':9 'weather':7"
-bodyTs: "'/bin/bash':97 '/c/linux':6 '/details.php?place_id=$id&format=json':238 '/g':159 '/gnome/gnome-weather/-/issues/247#note_1819885)':61 '/julianfairfax)':69 '/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads).':79 '/post/1969330](https://lemmy.eco.br/post/1969330)':10 '/script.sh':431 '/search?q=$query&format=json&limit=1':164 '/weather/)':42 '1':106,116,120,122,277,287,310,338 '10':18 '180':256,271 '2':301,415 '3':423 '3.141592654':257,272 'ad':191,217,222 'add':148,200 'alway':22 'answer':210,212 'apps.gnome.org':41 'apps.gnome.org/weather/)':40 'av':317,349 'bash':96 'bc':258,273 'bother':23 'brief':394 'chmod':419 'citi':27,91 'click':429 'command':292,343,353,367 'confirm':94 'consid':173,190 'cross':2 'cross-post':1 'curl':161,235 'dd':307 'display':205 'doubl':428 'echo':124,155,169,201,215,221,226,246,254,261,269,323,359 'els':136,220,328,364 'enter':86 'execut':417 'exit':130,178,219 'extens':414 'fals':303 'fi':107,117,131,153,179,224,284,298,334,335,374,375 'file':408 'flatpak':110,115,121,286,290,337,341,351,365 'found':36,52,56,172 'get':281,295,314,346 'gitlab.com':78 'gitlab.com/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads).':77 'gitlab.gnome.org':60,68 'gitlab.gnome.org/gnome/gnome-weather/-/issues/247#note_1819885)':59 'gitlab.gnome.org/julianfairfax)':67 'gnome':15,102,125,150 'gnome-weath':101 'grep':112 'gset':280,293,313,319,329,344,354,368 'id':225,231 'inhabit':33 'instal':129 'isn':127 'julian':66 'know':385 'l':259,274 'lat':245,250,253,255,304 'lemmy.eco.br':7,9 'lemmy.eco.br/post/1969330](https://lemmy.eco.br/post/1969330)':8 'linux1':401 'linux@lemmy.eco.br':5 'list':111 'locat':144,171,187,218,223,279,283,289,297,299,316,322,324,327,332,333,348,358,360,363,372,373 'lon':260,265,268,270,305 'look':45 'made':70 'might':383 'million':32 'month':19 'name':88,141,206,234,242,302 'never':51 'nominatim.openstreetmap.org':163,237 'nominatim.openstreetmap.org/details.php?place_id=$id&format=json':236 'nominatim.openstreetmap.org/search?q=$query&format=json&limit=1':162 'occur':377 'org.gnome.weather':113,282,294,296,315,321,331,345,347,355,357,369,371 'p':138,181 'peopl':382 'permiss':418 'place':230 'post':3 'problem':76 'program':43 'provid':416 'queri':135,152,154,156 'read':137,180 'remov':174 'request':160,167,202,227,247,262 'run':84,291,342,352,366,388,398,424 'save':402,410 'script':72,95,389,399,404,426 'script.sh':422 'search':176,192 'sed':157,203,207,228,232,240,243,248,251,263,266,325,361 'set':320,330,356,370 'sever':48 'sh':413 'solut':47 'solv':74 'sure':196 'system':105,119,276,309 'term':177,193 'text':407 'thread':58 'time':49 'tutori':395 'type':139 'u':420 'uint32':300 'use':14 'user':65 've':12 'want':146,189,198 'weather':39,103,126,151 'x':421 'y':213 'y/n':209 'yesterday':62 'z':99,109,133"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1701367347
+visibility: "visible "
+apId: "https://lemmy.eco.br/post/1973179"
+editedAt: DateTimeImmutable @1702191218 {#1858
date: 2023-12-10 07:53:38.0 +01:00
}
+createdAt: DateTimeImmutable @1701280947 {#2388
date: 2023-11-29 19:02:27.0 +01:00
}
}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4119
+user: App\Entity\User {#4102 …}
+entry: App\Entity\Entry {#2413}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: null
+root: null
+body: "This is amazing! I’m not using Gnome, but moments like this are the reason why I love Linux so much."
+lang: "en"
+isAdult: false
+favouriteCount: 11
+score: 0
+lastActive: DateTime @1702481761 {#4120
date: 2023-12-13 16:36:01.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@a"
"@av"
"@ademir@lemmy.eco.br"
]
+children: Doctrine\ORM\PersistentCollection {#4117 …}
+nested: Doctrine\ORM\PersistentCollection {#4115 …}
+votes: Doctrine\ORM\PersistentCollection {#4113 …}
+reports: Doctrine\ORM\PersistentCollection {#4110 …}
+favourites: Doctrine\ORM\PersistentCollection {#4106 …}
+notifications: Doctrine\ORM\PersistentCollection {#4104 …}
-id: 178454
-bodyTs: "'amaz':3 'gnome':8 'like':11 'linux':19 'love':18 'm':5 'moment':10 'much':21 'reason':15 'use':7"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://iusearchlinux.fyi/comment/3833698"
+editedAt: DateTimeImmutable @1702222871 {#4125
date: 2023-12-10 16:41:11.0 +01:00
}
+createdAt: DateTimeImmutable @1701294191 {#4123
date: 2023-11-29 22:43:11.0 +01:00
}
}
+root: App\Entity\EntryComment {#4119}
+body: "As a gnome user and huge Linux enthusiast, this should not have to exist. Gnome weather is just badly designed"
+lang: "en"
+isAdult: false
+favouriteCount: 23
+score: 0
+lastActive: DateTime @1701298859 {#4353
date: 2023-11-30 00:00:59.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@a"
"@av"
"@ademir@lemmy.eco.br"
"@stepanzak@iusearchlinux.fyi"
]
+children: Doctrine\ORM\PersistentCollection {#4361 …}
+nested: Doctrine\ORM\PersistentCollection {#4363 …}
+votes: Doctrine\ORM\PersistentCollection {#4359 …}
+reports: Doctrine\ORM\PersistentCollection {#4365 …}
+favourites: Doctrine\ORM\PersistentCollection {#4367 …}
+notifications: Doctrine\ORM\PersistentCollection {#4369 …}
-id: 178812
-bodyTs: "'bad':19 'design':20 'enthusiast':8 'exist':14 'gnome':3,15 'huge':6 'linux':7 'user':4 'weather':16"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/5682084"
+editedAt: null
+createdAt: DateTimeImmutable @1701298859 {#4350
date: 2023-11-30 00:00:59.0 +01:00
}
} |
|
Show voter details
|
16 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4354
+user: Proxies\__CG__\App\Entity\User {#4357 …}
+entry: App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "Add-YOUR-city-to-the-Gnome-weather-app-Solved"
+title: "Add YOUR city to the Gnome weather app [Solved]"
+url: null
+body: """
cross-posted from: [!linux@lemmy.eco.br](/c/linux@lemmy.eco.br) | [lemmy.eco.br/post/1969330](https://lemmy.eco.br/post/1969330)\n
\n
I’ve been using Gnome for about 10 months and it always bothered me that my city (with more than a million inhabitants) was not found in the [Weather](https://apps.gnome.org/Weather/) program.\n
\n
I looked for solutions several times and never found them, until I found [this thread](https://gitlab.gnome.org/GNOME/gnome-weather/-/issues/247#note_1819885) yesterday. That the user [Julian](https://gitlab.gnome.org/julianfairfax) made a [script that solves this problem](https://gitlab.com/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads). you just have to run and enter the name of your city and then confirm.\n
\n
script`bash #!/bin/bash if [[ ! -z “$(which gnome-weather)” ]]; then \tsystem=1 fi if [[ ! -z “$(flatpak list | grep org.gnome.Weather)” ]]; then \tflatpak=1 fi if [[ ! $system == 1 && ! $flatpak == 1 ]]; then \techo “GNOME Weather isn’t installed” \texit fi if [[ ! -z “$*” ]]; then \tquery=“$*” else \tread -p “Type the name of the location you want to add to GNOME Weather: " query fi query=”$(echo $query | sed ‘s/ /+/g’)" request=$(curl “https://nominatim.openstreetmap.org/search?q=$query&format=json&limit=1” -s) if [[ $request == “[]” ]]; then \techo “No locations found, consider removing some search terms” \texit fi read -p “If this is not the location you wanted, consider adding search terms Are you sure you want to add $(echo $request | sed 's/.*“display_name”:”//’ | sed ‘s/".*//’)? [y/n] : " answer if [[ ! $answer == “y” ]]; then \techo “Not adding location” \texit else \techo “Adding location” fi id=$(echo $request | sed ‘s/.*“place_id”://’ | sed ‘s/,.*//’) name=$(curl “https://nominatim.openstreetmap.org/details.php?place_id=$id&format=json” -s | sed ‘s/.*“name”: "//’ | sed ‘s/".*//’) lat=$(echo $request | sed ‘s/.*“lat”:"//’ | sed ‘s/".*//’) lat=$(echo “$lat / (180 / 3.141592654)” | bc -l) lon=$(echo $request | sed ‘s/.*“lon”:"//’ | sed ‘s/".*//’) lon=$(echo “$lon / (180 / 3.141592654)” | bc -l) if [[ $system == 1 ]]; then \tlocations=$(gsettings get org.gnome.Weather locations) fi if [[ $flatpak == 1 ]]; then \tlocations=$(flatpak run --command=gsettings org.gnome.Weather get org.gnome.Weather locations) fi location=“<(uint32 2, <(‘$name’, ‘’, false, [($lat, $lon)], @a(dd) [])>)>” if [[ $system == 1 ]]; then \tif [[ ! $(gsettings get org.gnome.Weather locations) == “@av []” ]]; then \t\tgsettings set org.gnome.Weather locations “$(echo $locations | sed “s|>]|>, $location]|”)” \telse \t\tgsettings set org.gnome.Weather locations “[$location]” \tfi fi if [[ $flatpak == 1 ]]; then \tif [[ ! $(flatpak run --command=gsettings org.gnome.Weather get org.gnome.Weather locations) == “@av []” ]]; then \t\tflatpak run --command=gsettings org.gnome.Weather set org.gnome.Weather locations “$(echo $locations | sed “s|>]|>, $location]|”)” \telse \t\tflatpak run --command=gsettings org.gnome.Weather set org.gnome.Weather locations “[$location]” \tfi fi `\n
\n
---\n
\n
It occurred to me that some people might not know how to run scripts, so here’s a brief tutorial:\n
\n
How to run scripts in Linux1. Save the script to a text file and save with the `.sh` extension 2. Provide execute permission: `chmod u+x script.sh`3. run the script by double clicking or `./script.sh`
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 8
+favouriteCount: 52
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1701364533 {#2418
date: 2023-11-30 18:15:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: [
"@a"
"@av"
]
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 18263
-titleTs: "'add':1 'app':8 'citi':3 'gnome':6 'solv':9 'weather':7"
-bodyTs: "'/bin/bash':97 '/c/linux':6 '/details.php?place_id=$id&format=json':238 '/g':159 '/gnome/gnome-weather/-/issues/247#note_1819885)':61 '/julianfairfax)':69 '/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads).':79 '/post/1969330](https://lemmy.eco.br/post/1969330)':10 '/script.sh':431 '/search?q=$query&format=json&limit=1':164 '/weather/)':42 '1':106,116,120,122,277,287,310,338 '10':18 '180':256,271 '2':301,415 '3':423 '3.141592654':257,272 'ad':191,217,222 'add':148,200 'alway':22 'answer':210,212 'apps.gnome.org':41 'apps.gnome.org/weather/)':40 'av':317,349 'bash':96 'bc':258,273 'bother':23 'brief':394 'chmod':419 'citi':27,91 'click':429 'command':292,343,353,367 'confirm':94 'consid':173,190 'cross':2 'cross-post':1 'curl':161,235 'dd':307 'display':205 'doubl':428 'echo':124,155,169,201,215,221,226,246,254,261,269,323,359 'els':136,220,328,364 'enter':86 'execut':417 'exit':130,178,219 'extens':414 'fals':303 'fi':107,117,131,153,179,224,284,298,334,335,374,375 'file':408 'flatpak':110,115,121,286,290,337,341,351,365 'found':36,52,56,172 'get':281,295,314,346 'gitlab.com':78 'gitlab.com/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads).':77 'gitlab.gnome.org':60,68 'gitlab.gnome.org/gnome/gnome-weather/-/issues/247#note_1819885)':59 'gitlab.gnome.org/julianfairfax)':67 'gnome':15,102,125,150 'gnome-weath':101 'grep':112 'gset':280,293,313,319,329,344,354,368 'id':225,231 'inhabit':33 'instal':129 'isn':127 'julian':66 'know':385 'l':259,274 'lat':245,250,253,255,304 'lemmy.eco.br':7,9 'lemmy.eco.br/post/1969330](https://lemmy.eco.br/post/1969330)':8 'linux1':401 'linux@lemmy.eco.br':5 'list':111 'locat':144,171,187,218,223,279,283,289,297,299,316,322,324,327,332,333,348,358,360,363,372,373 'lon':260,265,268,270,305 'look':45 'made':70 'might':383 'million':32 'month':19 'name':88,141,206,234,242,302 'never':51 'nominatim.openstreetmap.org':163,237 'nominatim.openstreetmap.org/details.php?place_id=$id&format=json':236 'nominatim.openstreetmap.org/search?q=$query&format=json&limit=1':162 'occur':377 'org.gnome.weather':113,282,294,296,315,321,331,345,347,355,357,369,371 'p':138,181 'peopl':382 'permiss':418 'place':230 'post':3 'problem':76 'program':43 'provid':416 'queri':135,152,154,156 'read':137,180 'remov':174 'request':160,167,202,227,247,262 'run':84,291,342,352,366,388,398,424 'save':402,410 'script':72,95,389,399,404,426 'script.sh':422 'search':176,192 'sed':157,203,207,228,232,240,243,248,251,263,266,325,361 'set':320,330,356,370 'sever':48 'sh':413 'solut':47 'solv':74 'sure':196 'system':105,119,276,309 'term':177,193 'text':407 'thread':58 'time':49 'tutori':395 'type':139 'u':420 'uint32':300 'use':14 'user':65 've':12 'want':146,189,198 'weather':39,103,126,151 'x':421 'y':213 'y/n':209 'yesterday':62 'z':99,109,133"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1701367347
+visibility: "visible "
+apId: "https://lemmy.eco.br/post/1973179"
+editedAt: DateTimeImmutable @1702191218 {#1858
date: 2023-12-10 07:53:38.0 +01:00
}
+createdAt: DateTimeImmutable @1701280947 {#2388
date: 2023-11-29 19:02:27.0 +01:00
}
}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4119
+user: App\Entity\User {#4102 …}
+entry: App\Entity\Entry {#2413}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: null
+root: null
+body: "This is amazing! I’m not using Gnome, but moments like this are the reason why I love Linux so much."
+lang: "en"
+isAdult: false
+favouriteCount: 11
+score: 0
+lastActive: DateTime @1702481761 {#4120
date: 2023-12-13 16:36:01.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@a"
"@av"
"@ademir@lemmy.eco.br"
]
+children: Doctrine\ORM\PersistentCollection {#4117 …}
+nested: Doctrine\ORM\PersistentCollection {#4115 …}
+votes: Doctrine\ORM\PersistentCollection {#4113 …}
+reports: Doctrine\ORM\PersistentCollection {#4110 …}
+favourites: Doctrine\ORM\PersistentCollection {#4106 …}
+notifications: Doctrine\ORM\PersistentCollection {#4104 …}
-id: 178454
-bodyTs: "'amaz':3 'gnome':8 'like':11 'linux':19 'love':18 'm':5 'moment':10 'much':21 'reason':15 'use':7"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://iusearchlinux.fyi/comment/3833698"
+editedAt: DateTimeImmutable @1702222871 {#4125
date: 2023-12-10 16:41:11.0 +01:00
}
+createdAt: DateTimeImmutable @1701294191 {#4123
date: 2023-11-29 22:43:11.0 +01:00
}
}
+root: App\Entity\EntryComment {#4119}
+body: "As a gnome user and huge Linux enthusiast, this should not have to exist. Gnome weather is just badly designed"
+lang: "en"
+isAdult: false
+favouriteCount: 23
+score: 0
+lastActive: DateTime @1701298859 {#4353
date: 2023-11-30 00:00:59.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@a"
"@av"
"@ademir@lemmy.eco.br"
"@stepanzak@iusearchlinux.fyi"
]
+children: Doctrine\ORM\PersistentCollection {#4361 …}
+nested: Doctrine\ORM\PersistentCollection {#4363 …}
+votes: Doctrine\ORM\PersistentCollection {#4359 …}
+reports: Doctrine\ORM\PersistentCollection {#4365 …}
+favourites: Doctrine\ORM\PersistentCollection {#4367 …}
+notifications: Doctrine\ORM\PersistentCollection {#4369 …}
-id: 178812
-bodyTs: "'bad':19 'design':20 'enthusiast':8 'exist':14 'gnome':3,15 'huge':6 'linux':7 'user':4 'weather':16"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/5682084"
+editedAt: null
+createdAt: DateTimeImmutable @1701298859 {#4350
date: 2023-11-30 00:00:59.0 +01:00
}
} |
|
Show voter details
|
17 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
18 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4395
+user: App\Entity\User {#4102 …}
+entry: App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "Add-YOUR-city-to-the-Gnome-weather-app-Solved"
+title: "Add YOUR city to the Gnome weather app [Solved]"
+url: null
+body: """
cross-posted from: [!linux@lemmy.eco.br](/c/linux@lemmy.eco.br) | [lemmy.eco.br/post/1969330](https://lemmy.eco.br/post/1969330)\n
\n
I’ve been using Gnome for about 10 months and it always bothered me that my city (with more than a million inhabitants) was not found in the [Weather](https://apps.gnome.org/Weather/) program.\n
\n
I looked for solutions several times and never found them, until I found [this thread](https://gitlab.gnome.org/GNOME/gnome-weather/-/issues/247#note_1819885) yesterday. That the user [Julian](https://gitlab.gnome.org/julianfairfax) made a [script that solves this problem](https://gitlab.com/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads). you just have to run and enter the name of your city and then confirm.\n
\n
script`bash #!/bin/bash if [[ ! -z “$(which gnome-weather)” ]]; then \tsystem=1 fi if [[ ! -z “$(flatpak list | grep org.gnome.Weather)” ]]; then \tflatpak=1 fi if [[ ! $system == 1 && ! $flatpak == 1 ]]; then \techo “GNOME Weather isn’t installed” \texit fi if [[ ! -z “$*” ]]; then \tquery=“$*” else \tread -p “Type the name of the location you want to add to GNOME Weather: " query fi query=”$(echo $query | sed ‘s/ /+/g’)" request=$(curl “https://nominatim.openstreetmap.org/search?q=$query&format=json&limit=1” -s) if [[ $request == “[]” ]]; then \techo “No locations found, consider removing some search terms” \texit fi read -p “If this is not the location you wanted, consider adding search terms Are you sure you want to add $(echo $request | sed 's/.*“display_name”:”//’ | sed ‘s/".*//’)? [y/n] : " answer if [[ ! $answer == “y” ]]; then \techo “Not adding location” \texit else \techo “Adding location” fi id=$(echo $request | sed ‘s/.*“place_id”://’ | sed ‘s/,.*//’) name=$(curl “https://nominatim.openstreetmap.org/details.php?place_id=$id&format=json” -s | sed ‘s/.*“name”: "//’ | sed ‘s/".*//’) lat=$(echo $request | sed ‘s/.*“lat”:"//’ | sed ‘s/".*//’) lat=$(echo “$lat / (180 / 3.141592654)” | bc -l) lon=$(echo $request | sed ‘s/.*“lon”:"//’ | sed ‘s/".*//’) lon=$(echo “$lon / (180 / 3.141592654)” | bc -l) if [[ $system == 1 ]]; then \tlocations=$(gsettings get org.gnome.Weather locations) fi if [[ $flatpak == 1 ]]; then \tlocations=$(flatpak run --command=gsettings org.gnome.Weather get org.gnome.Weather locations) fi location=“<(uint32 2, <(‘$name’, ‘’, false, [($lat, $lon)], @a(dd) [])>)>” if [[ $system == 1 ]]; then \tif [[ ! $(gsettings get org.gnome.Weather locations) == “@av []” ]]; then \t\tgsettings set org.gnome.Weather locations “$(echo $locations | sed “s|>]|>, $location]|”)” \telse \t\tgsettings set org.gnome.Weather locations “[$location]” \tfi fi if [[ $flatpak == 1 ]]; then \tif [[ ! $(flatpak run --command=gsettings org.gnome.Weather get org.gnome.Weather locations) == “@av []” ]]; then \t\tflatpak run --command=gsettings org.gnome.Weather set org.gnome.Weather locations “$(echo $locations | sed “s|>]|>, $location]|”)” \telse \t\tflatpak run --command=gsettings org.gnome.Weather set org.gnome.Weather locations “[$location]” \tfi fi `\n
\n
---\n
\n
It occurred to me that some people might not know how to run scripts, so here’s a brief tutorial:\n
\n
How to run scripts in Linux1. Save the script to a text file and save with the `.sh` extension 2. Provide execute permission: `chmod u+x script.sh`3. run the script by double clicking or `./script.sh`
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 8
+favouriteCount: 52
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1701364533 {#2418
date: 2023-11-30 18:15:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: [
"@a"
"@av"
]
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 18263
-titleTs: "'add':1 'app':8 'citi':3 'gnome':6 'solv':9 'weather':7"
-bodyTs: "'/bin/bash':97 '/c/linux':6 '/details.php?place_id=$id&format=json':238 '/g':159 '/gnome/gnome-weather/-/issues/247#note_1819885)':61 '/julianfairfax)':69 '/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads).':79 '/post/1969330](https://lemmy.eco.br/post/1969330)':10 '/script.sh':431 '/search?q=$query&format=json&limit=1':164 '/weather/)':42 '1':106,116,120,122,277,287,310,338 '10':18 '180':256,271 '2':301,415 '3':423 '3.141592654':257,272 'ad':191,217,222 'add':148,200 'alway':22 'answer':210,212 'apps.gnome.org':41 'apps.gnome.org/weather/)':40 'av':317,349 'bash':96 'bc':258,273 'bother':23 'brief':394 'chmod':419 'citi':27,91 'click':429 'command':292,343,353,367 'confirm':94 'consid':173,190 'cross':2 'cross-post':1 'curl':161,235 'dd':307 'display':205 'doubl':428 'echo':124,155,169,201,215,221,226,246,254,261,269,323,359 'els':136,220,328,364 'enter':86 'execut':417 'exit':130,178,219 'extens':414 'fals':303 'fi':107,117,131,153,179,224,284,298,334,335,374,375 'file':408 'flatpak':110,115,121,286,290,337,341,351,365 'found':36,52,56,172 'get':281,295,314,346 'gitlab.com':78 'gitlab.com/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads).':77 'gitlab.gnome.org':60,68 'gitlab.gnome.org/gnome/gnome-weather/-/issues/247#note_1819885)':59 'gitlab.gnome.org/julianfairfax)':67 'gnome':15,102,125,150 'gnome-weath':101 'grep':112 'gset':280,293,313,319,329,344,354,368 'id':225,231 'inhabit':33 'instal':129 'isn':127 'julian':66 'know':385 'l':259,274 'lat':245,250,253,255,304 'lemmy.eco.br':7,9 'lemmy.eco.br/post/1969330](https://lemmy.eco.br/post/1969330)':8 'linux1':401 'linux@lemmy.eco.br':5 'list':111 'locat':144,171,187,218,223,279,283,289,297,299,316,322,324,327,332,333,348,358,360,363,372,373 'lon':260,265,268,270,305 'look':45 'made':70 'might':383 'million':32 'month':19 'name':88,141,206,234,242,302 'never':51 'nominatim.openstreetmap.org':163,237 'nominatim.openstreetmap.org/details.php?place_id=$id&format=json':236 'nominatim.openstreetmap.org/search?q=$query&format=json&limit=1':162 'occur':377 'org.gnome.weather':113,282,294,296,315,321,331,345,347,355,357,369,371 'p':138,181 'peopl':382 'permiss':418 'place':230 'post':3 'problem':76 'program':43 'provid':416 'queri':135,152,154,156 'read':137,180 'remov':174 'request':160,167,202,227,247,262 'run':84,291,342,352,366,388,398,424 'save':402,410 'script':72,95,389,399,404,426 'script.sh':422 'search':176,192 'sed':157,203,207,228,232,240,243,248,251,263,266,325,361 'set':320,330,356,370 'sever':48 'sh':413 'solut':47 'solv':74 'sure':196 'system':105,119,276,309 'term':177,193 'text':407 'thread':58 'time':49 'tutori':395 'type':139 'u':420 'uint32':300 'use':14 'user':65 've':12 'want':146,189,198 'weather':39,103,126,151 'x':421 'y':213 'y/n':209 'yesterday':62 'z':99,109,133"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1701367347
+visibility: "visible "
+apId: "https://lemmy.eco.br/post/1973179"
+editedAt: DateTimeImmutable @1702191218 {#1858
date: 2023-12-10 07:53:38.0 +01:00
}
+createdAt: DateTimeImmutable @1701280947 {#2388
date: 2023-11-29 19:02:27.0 +01:00
}
}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4354
+user: Proxies\__CG__\App\Entity\User {#4357 …}
+entry: App\Entity\Entry {#2413}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4119
+user: App\Entity\User {#4102 …}
+entry: App\Entity\Entry {#2413}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: null
+root: null
+body: "This is amazing! I’m not using Gnome, but moments like this are the reason why I love Linux so much."
+lang: "en"
+isAdult: false
+favouriteCount: 11
+score: 0
+lastActive: DateTime @1702481761 {#4120
date: 2023-12-13 16:36:01.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@a"
"@av"
"@ademir@lemmy.eco.br"
]
+children: Doctrine\ORM\PersistentCollection {#4117 …}
+nested: Doctrine\ORM\PersistentCollection {#4115 …}
+votes: Doctrine\ORM\PersistentCollection {#4113 …}
+reports: Doctrine\ORM\PersistentCollection {#4110 …}
+favourites: Doctrine\ORM\PersistentCollection {#4106 …}
+notifications: Doctrine\ORM\PersistentCollection {#4104 …}
-id: 178454
-bodyTs: "'amaz':3 'gnome':8 'like':11 'linux':19 'love':18 'm':5 'moment':10 'much':21 'reason':15 'use':7"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://iusearchlinux.fyi/comment/3833698"
+editedAt: DateTimeImmutable @1702222871 {#4125
date: 2023-12-10 16:41:11.0 +01:00
}
+createdAt: DateTimeImmutable @1701294191 {#4123
date: 2023-11-29 22:43:11.0 +01:00
}
}
+root: App\Entity\EntryComment {#4119}
+body: "As a gnome user and huge Linux enthusiast, this should not have to exist. Gnome weather is just badly designed"
+lang: "en"
+isAdult: false
+favouriteCount: 23
+score: 0
+lastActive: DateTime @1701298859 {#4353
date: 2023-11-30 00:00:59.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@a"
"@av"
"@ademir@lemmy.eco.br"
"@stepanzak@iusearchlinux.fyi"
]
+children: Doctrine\ORM\PersistentCollection {#4361 …}
+nested: Doctrine\ORM\PersistentCollection {#4363 …}
+votes: Doctrine\ORM\PersistentCollection {#4359 …}
+reports: Doctrine\ORM\PersistentCollection {#4365 …}
+favourites: Doctrine\ORM\PersistentCollection {#4367 …}
+notifications: Doctrine\ORM\PersistentCollection {#4369 …}
-id: 178812
-bodyTs: "'bad':19 'design':20 'enthusiast':8 'exist':14 'gnome':3,15 'huge':6 'linux':7 'user':4 'weather':16"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/5682084"
+editedAt: null
+createdAt: DateTimeImmutable @1701298859 {#4350
date: 2023-11-30 00:00:59.0 +01:00
}
}
+root: App\Entity\EntryComment {#4119}
+body: "Yeah, it’s a terrible thing that you have to do this to get your city into the weather app, but I simply love the fact that you **can** do that, whereas on some proprietary system, you might wait months for the fix."
+lang: "en"
+isAdult: false
+favouriteCount: 8
+score: 0
+lastActive: DateTime @1701334724 {#4392
date: 2023-11-30 09:58:44.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@a"
"@av"
"@ademir@lemmy.eco.br"
"@stepanzak@iusearchlinux.fyi"
"@turbowafflz@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4398 …}
+nested: Doctrine\ORM\PersistentCollection {#4400 …}
+votes: Doctrine\ORM\PersistentCollection {#4396 …}
+reports: Doctrine\ORM\PersistentCollection {#4403 …}
+favourites: Doctrine\ORM\PersistentCollection {#4405 …}
+notifications: Doctrine\ORM\PersistentCollection {#4407 …}
-id: 180150
-bodyTs: "'app':20 'citi':16 'fact':26 'fix':43 'get':14 'love':24 'might':38 'month':40 'proprietari':35 'simpli':23 'system':36 'terribl':5 'thing':6 'wait':39 'weather':19 'wherea':32 'yeah':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://iusearchlinux.fyi/comment/3843159"
+editedAt: DateTimeImmutable @1702321773 {#4389
date: 2023-12-11 20:09:33.0 +01:00
}
+createdAt: DateTimeImmutable @1701334724 {#4387
date: 2023-11-30 09:58:44.0 +01:00
}
} |
|
Show voter details
|
19 |
DENIED
|
edit
|
App\Entity\EntryComment {#4395
+user: App\Entity\User {#4102 …}
+entry: App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "Add-YOUR-city-to-the-Gnome-weather-app-Solved"
+title: "Add YOUR city to the Gnome weather app [Solved]"
+url: null
+body: """
cross-posted from: [!linux@lemmy.eco.br](/c/linux@lemmy.eco.br) | [lemmy.eco.br/post/1969330](https://lemmy.eco.br/post/1969330)\n
\n
I’ve been using Gnome for about 10 months and it always bothered me that my city (with more than a million inhabitants) was not found in the [Weather](https://apps.gnome.org/Weather/) program.\n
\n
I looked for solutions several times and never found them, until I found [this thread](https://gitlab.gnome.org/GNOME/gnome-weather/-/issues/247#note_1819885) yesterday. That the user [Julian](https://gitlab.gnome.org/julianfairfax) made a [script that solves this problem](https://gitlab.com/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads). you just have to run and enter the name of your city and then confirm.\n
\n
script`bash #!/bin/bash if [[ ! -z “$(which gnome-weather)” ]]; then \tsystem=1 fi if [[ ! -z “$(flatpak list | grep org.gnome.Weather)” ]]; then \tflatpak=1 fi if [[ ! $system == 1 && ! $flatpak == 1 ]]; then \techo “GNOME Weather isn’t installed” \texit fi if [[ ! -z “$*” ]]; then \tquery=“$*” else \tread -p “Type the name of the location you want to add to GNOME Weather: " query fi query=”$(echo $query | sed ‘s/ /+/g’)" request=$(curl “https://nominatim.openstreetmap.org/search?q=$query&format=json&limit=1” -s) if [[ $request == “[]” ]]; then \techo “No locations found, consider removing some search terms” \texit fi read -p “If this is not the location you wanted, consider adding search terms Are you sure you want to add $(echo $request | sed 's/.*“display_name”:”//’ | sed ‘s/".*//’)? [y/n] : " answer if [[ ! $answer == “y” ]]; then \techo “Not adding location” \texit else \techo “Adding location” fi id=$(echo $request | sed ‘s/.*“place_id”://’ | sed ‘s/,.*//’) name=$(curl “https://nominatim.openstreetmap.org/details.php?place_id=$id&format=json” -s | sed ‘s/.*“name”: "//’ | sed ‘s/".*//’) lat=$(echo $request | sed ‘s/.*“lat”:"//’ | sed ‘s/".*//’) lat=$(echo “$lat / (180 / 3.141592654)” | bc -l) lon=$(echo $request | sed ‘s/.*“lon”:"//’ | sed ‘s/".*//’) lon=$(echo “$lon / (180 / 3.141592654)” | bc -l) if [[ $system == 1 ]]; then \tlocations=$(gsettings get org.gnome.Weather locations) fi if [[ $flatpak == 1 ]]; then \tlocations=$(flatpak run --command=gsettings org.gnome.Weather get org.gnome.Weather locations) fi location=“<(uint32 2, <(‘$name’, ‘’, false, [($lat, $lon)], @a(dd) [])>)>” if [[ $system == 1 ]]; then \tif [[ ! $(gsettings get org.gnome.Weather locations) == “@av []” ]]; then \t\tgsettings set org.gnome.Weather locations “$(echo $locations | sed “s|>]|>, $location]|”)” \telse \t\tgsettings set org.gnome.Weather locations “[$location]” \tfi fi if [[ $flatpak == 1 ]]; then \tif [[ ! $(flatpak run --command=gsettings org.gnome.Weather get org.gnome.Weather locations) == “@av []” ]]; then \t\tflatpak run --command=gsettings org.gnome.Weather set org.gnome.Weather locations “$(echo $locations | sed “s|>]|>, $location]|”)” \telse \t\tflatpak run --command=gsettings org.gnome.Weather set org.gnome.Weather locations “[$location]” \tfi fi `\n
\n
---\n
\n
It occurred to me that some people might not know how to run scripts, so here’s a brief tutorial:\n
\n
How to run scripts in Linux1. Save the script to a text file and save with the `.sh` extension 2. Provide execute permission: `chmod u+x script.sh`3. run the script by double clicking or `./script.sh`
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 8
+favouriteCount: 52
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1701364533 {#2418
date: 2023-11-30 18:15:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: [
"@a"
"@av"
]
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 18263
-titleTs: "'add':1 'app':8 'citi':3 'gnome':6 'solv':9 'weather':7"
-bodyTs: "'/bin/bash':97 '/c/linux':6 '/details.php?place_id=$id&format=json':238 '/g':159 '/gnome/gnome-weather/-/issues/247#note_1819885)':61 '/julianfairfax)':69 '/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads).':79 '/post/1969330](https://lemmy.eco.br/post/1969330)':10 '/script.sh':431 '/search?q=$query&format=json&limit=1':164 '/weather/)':42 '1':106,116,120,122,277,287,310,338 '10':18 '180':256,271 '2':301,415 '3':423 '3.141592654':257,272 'ad':191,217,222 'add':148,200 'alway':22 'answer':210,212 'apps.gnome.org':41 'apps.gnome.org/weather/)':40 'av':317,349 'bash':96 'bc':258,273 'bother':23 'brief':394 'chmod':419 'citi':27,91 'click':429 'command':292,343,353,367 'confirm':94 'consid':173,190 'cross':2 'cross-post':1 'curl':161,235 'dd':307 'display':205 'doubl':428 'echo':124,155,169,201,215,221,226,246,254,261,269,323,359 'els':136,220,328,364 'enter':86 'execut':417 'exit':130,178,219 'extens':414 'fals':303 'fi':107,117,131,153,179,224,284,298,334,335,374,375 'file':408 'flatpak':110,115,121,286,290,337,341,351,365 'found':36,52,56,172 'get':281,295,314,346 'gitlab.com':78 'gitlab.com/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads).':77 'gitlab.gnome.org':60,68 'gitlab.gnome.org/gnome/gnome-weather/-/issues/247#note_1819885)':59 'gitlab.gnome.org/julianfairfax)':67 'gnome':15,102,125,150 'gnome-weath':101 'grep':112 'gset':280,293,313,319,329,344,354,368 'id':225,231 'inhabit':33 'instal':129 'isn':127 'julian':66 'know':385 'l':259,274 'lat':245,250,253,255,304 'lemmy.eco.br':7,9 'lemmy.eco.br/post/1969330](https://lemmy.eco.br/post/1969330)':8 'linux1':401 'linux@lemmy.eco.br':5 'list':111 'locat':144,171,187,218,223,279,283,289,297,299,316,322,324,327,332,333,348,358,360,363,372,373 'lon':260,265,268,270,305 'look':45 'made':70 'might':383 'million':32 'month':19 'name':88,141,206,234,242,302 'never':51 'nominatim.openstreetmap.org':163,237 'nominatim.openstreetmap.org/details.php?place_id=$id&format=json':236 'nominatim.openstreetmap.org/search?q=$query&format=json&limit=1':162 'occur':377 'org.gnome.weather':113,282,294,296,315,321,331,345,347,355,357,369,371 'p':138,181 'peopl':382 'permiss':418 'place':230 'post':3 'problem':76 'program':43 'provid':416 'queri':135,152,154,156 'read':137,180 'remov':174 'request':160,167,202,227,247,262 'run':84,291,342,352,366,388,398,424 'save':402,410 'script':72,95,389,399,404,426 'script.sh':422 'search':176,192 'sed':157,203,207,228,232,240,243,248,251,263,266,325,361 'set':320,330,356,370 'sever':48 'sh':413 'solut':47 'solv':74 'sure':196 'system':105,119,276,309 'term':177,193 'text':407 'thread':58 'time':49 'tutori':395 'type':139 'u':420 'uint32':300 'use':14 'user':65 've':12 'want':146,189,198 'weather':39,103,126,151 'x':421 'y':213 'y/n':209 'yesterday':62 'z':99,109,133"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1701367347
+visibility: "visible "
+apId: "https://lemmy.eco.br/post/1973179"
+editedAt: DateTimeImmutable @1702191218 {#1858
date: 2023-12-10 07:53:38.0 +01:00
}
+createdAt: DateTimeImmutable @1701280947 {#2388
date: 2023-11-29 19:02:27.0 +01:00
}
}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4354
+user: Proxies\__CG__\App\Entity\User {#4357 …}
+entry: App\Entity\Entry {#2413}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4119
+user: App\Entity\User {#4102 …}
+entry: App\Entity\Entry {#2413}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: null
+root: null
+body: "This is amazing! I’m not using Gnome, but moments like this are the reason why I love Linux so much."
+lang: "en"
+isAdult: false
+favouriteCount: 11
+score: 0
+lastActive: DateTime @1702481761 {#4120
date: 2023-12-13 16:36:01.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@a"
"@av"
"@ademir@lemmy.eco.br"
]
+children: Doctrine\ORM\PersistentCollection {#4117 …}
+nested: Doctrine\ORM\PersistentCollection {#4115 …}
+votes: Doctrine\ORM\PersistentCollection {#4113 …}
+reports: Doctrine\ORM\PersistentCollection {#4110 …}
+favourites: Doctrine\ORM\PersistentCollection {#4106 …}
+notifications: Doctrine\ORM\PersistentCollection {#4104 …}
-id: 178454
-bodyTs: "'amaz':3 'gnome':8 'like':11 'linux':19 'love':18 'm':5 'moment':10 'much':21 'reason':15 'use':7"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://iusearchlinux.fyi/comment/3833698"
+editedAt: DateTimeImmutable @1702222871 {#4125
date: 2023-12-10 16:41:11.0 +01:00
}
+createdAt: DateTimeImmutable @1701294191 {#4123
date: 2023-11-29 22:43:11.0 +01:00
}
}
+root: App\Entity\EntryComment {#4119}
+body: "As a gnome user and huge Linux enthusiast, this should not have to exist. Gnome weather is just badly designed"
+lang: "en"
+isAdult: false
+favouriteCount: 23
+score: 0
+lastActive: DateTime @1701298859 {#4353
date: 2023-11-30 00:00:59.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@a"
"@av"
"@ademir@lemmy.eco.br"
"@stepanzak@iusearchlinux.fyi"
]
+children: Doctrine\ORM\PersistentCollection {#4361 …}
+nested: Doctrine\ORM\PersistentCollection {#4363 …}
+votes: Doctrine\ORM\PersistentCollection {#4359 …}
+reports: Doctrine\ORM\PersistentCollection {#4365 …}
+favourites: Doctrine\ORM\PersistentCollection {#4367 …}
+notifications: Doctrine\ORM\PersistentCollection {#4369 …}
-id: 178812
-bodyTs: "'bad':19 'design':20 'enthusiast':8 'exist':14 'gnome':3,15 'huge':6 'linux':7 'user':4 'weather':16"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/5682084"
+editedAt: null
+createdAt: DateTimeImmutable @1701298859 {#4350
date: 2023-11-30 00:00:59.0 +01:00
}
}
+root: App\Entity\EntryComment {#4119}
+body: "Yeah, it’s a terrible thing that you have to do this to get your city into the weather app, but I simply love the fact that you **can** do that, whereas on some proprietary system, you might wait months for the fix."
+lang: "en"
+isAdult: false
+favouriteCount: 8
+score: 0
+lastActive: DateTime @1701334724 {#4392
date: 2023-11-30 09:58:44.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@a"
"@av"
"@ademir@lemmy.eco.br"
"@stepanzak@iusearchlinux.fyi"
"@turbowafflz@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4398 …}
+nested: Doctrine\ORM\PersistentCollection {#4400 …}
+votes: Doctrine\ORM\PersistentCollection {#4396 …}
+reports: Doctrine\ORM\PersistentCollection {#4403 …}
+favourites: Doctrine\ORM\PersistentCollection {#4405 …}
+notifications: Doctrine\ORM\PersistentCollection {#4407 …}
-id: 180150
-bodyTs: "'app':20 'citi':16 'fact':26 'fix':43 'get':14 'love':24 'might':38 'month':40 'proprietari':35 'simpli':23 'system':36 'terribl':5 'thing':6 'wait':39 'weather':19 'wherea':32 'yeah':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://iusearchlinux.fyi/comment/3843159"
+editedAt: DateTimeImmutable @1702321773 {#4389
date: 2023-12-11 20:09:33.0 +01:00
}
+createdAt: DateTimeImmutable @1701334724 {#4387
date: 2023-11-30 09:58:44.0 +01:00
}
} |
|
Show voter details
|
20 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4395
+user: App\Entity\User {#4102 …}
+entry: App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "Add-YOUR-city-to-the-Gnome-weather-app-Solved"
+title: "Add YOUR city to the Gnome weather app [Solved]"
+url: null
+body: """
cross-posted from: [!linux@lemmy.eco.br](/c/linux@lemmy.eco.br) | [lemmy.eco.br/post/1969330](https://lemmy.eco.br/post/1969330)\n
\n
I’ve been using Gnome for about 10 months and it always bothered me that my city (with more than a million inhabitants) was not found in the [Weather](https://apps.gnome.org/Weather/) program.\n
\n
I looked for solutions several times and never found them, until I found [this thread](https://gitlab.gnome.org/GNOME/gnome-weather/-/issues/247#note_1819885) yesterday. That the user [Julian](https://gitlab.gnome.org/julianfairfax) made a [script that solves this problem](https://gitlab.com/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads). you just have to run and enter the name of your city and then confirm.\n
\n
script`bash #!/bin/bash if [[ ! -z “$(which gnome-weather)” ]]; then \tsystem=1 fi if [[ ! -z “$(flatpak list | grep org.gnome.Weather)” ]]; then \tflatpak=1 fi if [[ ! $system == 1 && ! $flatpak == 1 ]]; then \techo “GNOME Weather isn’t installed” \texit fi if [[ ! -z “$*” ]]; then \tquery=“$*” else \tread -p “Type the name of the location you want to add to GNOME Weather: " query fi query=”$(echo $query | sed ‘s/ /+/g’)" request=$(curl “https://nominatim.openstreetmap.org/search?q=$query&format=json&limit=1” -s) if [[ $request == “[]” ]]; then \techo “No locations found, consider removing some search terms” \texit fi read -p “If this is not the location you wanted, consider adding search terms Are you sure you want to add $(echo $request | sed 's/.*“display_name”:”//’ | sed ‘s/".*//’)? [y/n] : " answer if [[ ! $answer == “y” ]]; then \techo “Not adding location” \texit else \techo “Adding location” fi id=$(echo $request | sed ‘s/.*“place_id”://’ | sed ‘s/,.*//’) name=$(curl “https://nominatim.openstreetmap.org/details.php?place_id=$id&format=json” -s | sed ‘s/.*“name”: "//’ | sed ‘s/".*//’) lat=$(echo $request | sed ‘s/.*“lat”:"//’ | sed ‘s/".*//’) lat=$(echo “$lat / (180 / 3.141592654)” | bc -l) lon=$(echo $request | sed ‘s/.*“lon”:"//’ | sed ‘s/".*//’) lon=$(echo “$lon / (180 / 3.141592654)” | bc -l) if [[ $system == 1 ]]; then \tlocations=$(gsettings get org.gnome.Weather locations) fi if [[ $flatpak == 1 ]]; then \tlocations=$(flatpak run --command=gsettings org.gnome.Weather get org.gnome.Weather locations) fi location=“<(uint32 2, <(‘$name’, ‘’, false, [($lat, $lon)], @a(dd) [])>)>” if [[ $system == 1 ]]; then \tif [[ ! $(gsettings get org.gnome.Weather locations) == “@av []” ]]; then \t\tgsettings set org.gnome.Weather locations “$(echo $locations | sed “s|>]|>, $location]|”)” \telse \t\tgsettings set org.gnome.Weather locations “[$location]” \tfi fi if [[ $flatpak == 1 ]]; then \tif [[ ! $(flatpak run --command=gsettings org.gnome.Weather get org.gnome.Weather locations) == “@av []” ]]; then \t\tflatpak run --command=gsettings org.gnome.Weather set org.gnome.Weather locations “$(echo $locations | sed “s|>]|>, $location]|”)” \telse \t\tflatpak run --command=gsettings org.gnome.Weather set org.gnome.Weather locations “[$location]” \tfi fi `\n
\n
---\n
\n
It occurred to me that some people might not know how to run scripts, so here’s a brief tutorial:\n
\n
How to run scripts in Linux1. Save the script to a text file and save with the `.sh` extension 2. Provide execute permission: `chmod u+x script.sh`3. run the script by double clicking or `./script.sh`
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 8
+favouriteCount: 52
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1701364533 {#2418
date: 2023-11-30 18:15:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: [
"@a"
"@av"
]
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 18263
-titleTs: "'add':1 'app':8 'citi':3 'gnome':6 'solv':9 'weather':7"
-bodyTs: "'/bin/bash':97 '/c/linux':6 '/details.php?place_id=$id&format=json':238 '/g':159 '/gnome/gnome-weather/-/issues/247#note_1819885)':61 '/julianfairfax)':69 '/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads).':79 '/post/1969330](https://lemmy.eco.br/post/1969330)':10 '/script.sh':431 '/search?q=$query&format=json&limit=1':164 '/weather/)':42 '1':106,116,120,122,277,287,310,338 '10':18 '180':256,271 '2':301,415 '3':423 '3.141592654':257,272 'ad':191,217,222 'add':148,200 'alway':22 'answer':210,212 'apps.gnome.org':41 'apps.gnome.org/weather/)':40 'av':317,349 'bash':96 'bc':258,273 'bother':23 'brief':394 'chmod':419 'citi':27,91 'click':429 'command':292,343,353,367 'confirm':94 'consid':173,190 'cross':2 'cross-post':1 'curl':161,235 'dd':307 'display':205 'doubl':428 'echo':124,155,169,201,215,221,226,246,254,261,269,323,359 'els':136,220,328,364 'enter':86 'execut':417 'exit':130,178,219 'extens':414 'fals':303 'fi':107,117,131,153,179,224,284,298,334,335,374,375 'file':408 'flatpak':110,115,121,286,290,337,341,351,365 'found':36,52,56,172 'get':281,295,314,346 'gitlab.com':78 'gitlab.com/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads).':77 'gitlab.gnome.org':60,68 'gitlab.gnome.org/gnome/gnome-weather/-/issues/247#note_1819885)':59 'gitlab.gnome.org/julianfairfax)':67 'gnome':15,102,125,150 'gnome-weath':101 'grep':112 'gset':280,293,313,319,329,344,354,368 'id':225,231 'inhabit':33 'instal':129 'isn':127 'julian':66 'know':385 'l':259,274 'lat':245,250,253,255,304 'lemmy.eco.br':7,9 'lemmy.eco.br/post/1969330](https://lemmy.eco.br/post/1969330)':8 'linux1':401 'linux@lemmy.eco.br':5 'list':111 'locat':144,171,187,218,223,279,283,289,297,299,316,322,324,327,332,333,348,358,360,363,372,373 'lon':260,265,268,270,305 'look':45 'made':70 'might':383 'million':32 'month':19 'name':88,141,206,234,242,302 'never':51 'nominatim.openstreetmap.org':163,237 'nominatim.openstreetmap.org/details.php?place_id=$id&format=json':236 'nominatim.openstreetmap.org/search?q=$query&format=json&limit=1':162 'occur':377 'org.gnome.weather':113,282,294,296,315,321,331,345,347,355,357,369,371 'p':138,181 'peopl':382 'permiss':418 'place':230 'post':3 'problem':76 'program':43 'provid':416 'queri':135,152,154,156 'read':137,180 'remov':174 'request':160,167,202,227,247,262 'run':84,291,342,352,366,388,398,424 'save':402,410 'script':72,95,389,399,404,426 'script.sh':422 'search':176,192 'sed':157,203,207,228,232,240,243,248,251,263,266,325,361 'set':320,330,356,370 'sever':48 'sh':413 'solut':47 'solv':74 'sure':196 'system':105,119,276,309 'term':177,193 'text':407 'thread':58 'time':49 'tutori':395 'type':139 'u':420 'uint32':300 'use':14 'user':65 've':12 'want':146,189,198 'weather':39,103,126,151 'x':421 'y':213 'y/n':209 'yesterday':62 'z':99,109,133"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1701367347
+visibility: "visible "
+apId: "https://lemmy.eco.br/post/1973179"
+editedAt: DateTimeImmutable @1702191218 {#1858
date: 2023-12-10 07:53:38.0 +01:00
}
+createdAt: DateTimeImmutable @1701280947 {#2388
date: 2023-11-29 19:02:27.0 +01:00
}
}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4354
+user: Proxies\__CG__\App\Entity\User {#4357 …}
+entry: App\Entity\Entry {#2413}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4119
+user: App\Entity\User {#4102 …}
+entry: App\Entity\Entry {#2413}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: null
+root: null
+body: "This is amazing! I’m not using Gnome, but moments like this are the reason why I love Linux so much."
+lang: "en"
+isAdult: false
+favouriteCount: 11
+score: 0
+lastActive: DateTime @1702481761 {#4120
date: 2023-12-13 16:36:01.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@a"
"@av"
"@ademir@lemmy.eco.br"
]
+children: Doctrine\ORM\PersistentCollection {#4117 …}
+nested: Doctrine\ORM\PersistentCollection {#4115 …}
+votes: Doctrine\ORM\PersistentCollection {#4113 …}
+reports: Doctrine\ORM\PersistentCollection {#4110 …}
+favourites: Doctrine\ORM\PersistentCollection {#4106 …}
+notifications: Doctrine\ORM\PersistentCollection {#4104 …}
-id: 178454
-bodyTs: "'amaz':3 'gnome':8 'like':11 'linux':19 'love':18 'm':5 'moment':10 'much':21 'reason':15 'use':7"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://iusearchlinux.fyi/comment/3833698"
+editedAt: DateTimeImmutable @1702222871 {#4125
date: 2023-12-10 16:41:11.0 +01:00
}
+createdAt: DateTimeImmutable @1701294191 {#4123
date: 2023-11-29 22:43:11.0 +01:00
}
}
+root: App\Entity\EntryComment {#4119}
+body: "As a gnome user and huge Linux enthusiast, this should not have to exist. Gnome weather is just badly designed"
+lang: "en"
+isAdult: false
+favouriteCount: 23
+score: 0
+lastActive: DateTime @1701298859 {#4353
date: 2023-11-30 00:00:59.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@a"
"@av"
"@ademir@lemmy.eco.br"
"@stepanzak@iusearchlinux.fyi"
]
+children: Doctrine\ORM\PersistentCollection {#4361 …}
+nested: Doctrine\ORM\PersistentCollection {#4363 …}
+votes: Doctrine\ORM\PersistentCollection {#4359 …}
+reports: Doctrine\ORM\PersistentCollection {#4365 …}
+favourites: Doctrine\ORM\PersistentCollection {#4367 …}
+notifications: Doctrine\ORM\PersistentCollection {#4369 …}
-id: 178812
-bodyTs: "'bad':19 'design':20 'enthusiast':8 'exist':14 'gnome':3,15 'huge':6 'linux':7 'user':4 'weather':16"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/5682084"
+editedAt: null
+createdAt: DateTimeImmutable @1701298859 {#4350
date: 2023-11-30 00:00:59.0 +01:00
}
}
+root: App\Entity\EntryComment {#4119}
+body: "Yeah, it’s a terrible thing that you have to do this to get your city into the weather app, but I simply love the fact that you **can** do that, whereas on some proprietary system, you might wait months for the fix."
+lang: "en"
+isAdult: false
+favouriteCount: 8
+score: 0
+lastActive: DateTime @1701334724 {#4392
date: 2023-11-30 09:58:44.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@a"
"@av"
"@ademir@lemmy.eco.br"
"@stepanzak@iusearchlinux.fyi"
"@turbowafflz@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4398 …}
+nested: Doctrine\ORM\PersistentCollection {#4400 …}
+votes: Doctrine\ORM\PersistentCollection {#4396 …}
+reports: Doctrine\ORM\PersistentCollection {#4403 …}
+favourites: Doctrine\ORM\PersistentCollection {#4405 …}
+notifications: Doctrine\ORM\PersistentCollection {#4407 …}
-id: 180150
-bodyTs: "'app':20 'citi':16 'fact':26 'fix':43 'get':14 'love':24 'might':38 'month':40 'proprietari':35 'simpli':23 'system':36 'terribl':5 'thing':6 'wait':39 'weather':19 'wherea':32 'yeah':1"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://iusearchlinux.fyi/comment/3843159"
+editedAt: DateTimeImmutable @1702321773 {#4389
date: 2023-12-11 20:09:33.0 +01:00
}
+createdAt: DateTimeImmutable @1701334724 {#4387
date: 2023-11-30 09:58:44.0 +01:00
}
} |
|
Show voter details
|
21 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
22 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4446
+user: App\Entity\User {#4102 …}
+entry: App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "Add-YOUR-city-to-the-Gnome-weather-app-Solved"
+title: "Add YOUR city to the Gnome weather app [Solved]"
+url: null
+body: """
cross-posted from: [!linux@lemmy.eco.br](/c/linux@lemmy.eco.br) | [lemmy.eco.br/post/1969330](https://lemmy.eco.br/post/1969330)\n
\n
I’ve been using Gnome for about 10 months and it always bothered me that my city (with more than a million inhabitants) was not found in the [Weather](https://apps.gnome.org/Weather/) program.\n
\n
I looked for solutions several times and never found them, until I found [this thread](https://gitlab.gnome.org/GNOME/gnome-weather/-/issues/247#note_1819885) yesterday. That the user [Julian](https://gitlab.gnome.org/julianfairfax) made a [script that solves this problem](https://gitlab.com/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads). you just have to run and enter the name of your city and then confirm.\n
\n
script`bash #!/bin/bash if [[ ! -z “$(which gnome-weather)” ]]; then \tsystem=1 fi if [[ ! -z “$(flatpak list | grep org.gnome.Weather)” ]]; then \tflatpak=1 fi if [[ ! $system == 1 && ! $flatpak == 1 ]]; then \techo “GNOME Weather isn’t installed” \texit fi if [[ ! -z “$*” ]]; then \tquery=“$*” else \tread -p “Type the name of the location you want to add to GNOME Weather: " query fi query=”$(echo $query | sed ‘s/ /+/g’)" request=$(curl “https://nominatim.openstreetmap.org/search?q=$query&format=json&limit=1” -s) if [[ $request == “[]” ]]; then \techo “No locations found, consider removing some search terms” \texit fi read -p “If this is not the location you wanted, consider adding search terms Are you sure you want to add $(echo $request | sed 's/.*“display_name”:”//’ | sed ‘s/".*//’)? [y/n] : " answer if [[ ! $answer == “y” ]]; then \techo “Not adding location” \texit else \techo “Adding location” fi id=$(echo $request | sed ‘s/.*“place_id”://’ | sed ‘s/,.*//’) name=$(curl “https://nominatim.openstreetmap.org/details.php?place_id=$id&format=json” -s | sed ‘s/.*“name”: "//’ | sed ‘s/".*//’) lat=$(echo $request | sed ‘s/.*“lat”:"//’ | sed ‘s/".*//’) lat=$(echo “$lat / (180 / 3.141592654)” | bc -l) lon=$(echo $request | sed ‘s/.*“lon”:"//’ | sed ‘s/".*//’) lon=$(echo “$lon / (180 / 3.141592654)” | bc -l) if [[ $system == 1 ]]; then \tlocations=$(gsettings get org.gnome.Weather locations) fi if [[ $flatpak == 1 ]]; then \tlocations=$(flatpak run --command=gsettings org.gnome.Weather get org.gnome.Weather locations) fi location=“<(uint32 2, <(‘$name’, ‘’, false, [($lat, $lon)], @a(dd) [])>)>” if [[ $system == 1 ]]; then \tif [[ ! $(gsettings get org.gnome.Weather locations) == “@av []” ]]; then \t\tgsettings set org.gnome.Weather locations “$(echo $locations | sed “s|>]|>, $location]|”)” \telse \t\tgsettings set org.gnome.Weather locations “[$location]” \tfi fi if [[ $flatpak == 1 ]]; then \tif [[ ! $(flatpak run --command=gsettings org.gnome.Weather get org.gnome.Weather locations) == “@av []” ]]; then \t\tflatpak run --command=gsettings org.gnome.Weather set org.gnome.Weather locations “$(echo $locations | sed “s|>]|>, $location]|”)” \telse \t\tflatpak run --command=gsettings org.gnome.Weather set org.gnome.Weather locations “[$location]” \tfi fi `\n
\n
---\n
\n
It occurred to me that some people might not know how to run scripts, so here’s a brief tutorial:\n
\n
How to run scripts in Linux1. Save the script to a text file and save with the `.sh` extension 2. Provide execute permission: `chmod u+x script.sh`3. run the script by double clicking or `./script.sh`
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 8
+favouriteCount: 52
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1701364533 {#2418
date: 2023-11-30 18:15:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: [
"@a"
"@av"
]
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 18263
-titleTs: "'add':1 'app':8 'citi':3 'gnome':6 'solv':9 'weather':7"
-bodyTs: "'/bin/bash':97 '/c/linux':6 '/details.php?place_id=$id&format=json':238 '/g':159 '/gnome/gnome-weather/-/issues/247#note_1819885)':61 '/julianfairfax)':69 '/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads).':79 '/post/1969330](https://lemmy.eco.br/post/1969330)':10 '/script.sh':431 '/search?q=$query&format=json&limit=1':164 '/weather/)':42 '1':106,116,120,122,277,287,310,338 '10':18 '180':256,271 '2':301,415 '3':423 '3.141592654':257,272 'ad':191,217,222 'add':148,200 'alway':22 'answer':210,212 'apps.gnome.org':41 'apps.gnome.org/weather/)':40 'av':317,349 'bash':96 'bc':258,273 'bother':23 'brief':394 'chmod':419 'citi':27,91 'click':429 'command':292,343,353,367 'confirm':94 'consid':173,190 'cross':2 'cross-post':1 'curl':161,235 'dd':307 'display':205 'doubl':428 'echo':124,155,169,201,215,221,226,246,254,261,269,323,359 'els':136,220,328,364 'enter':86 'execut':417 'exit':130,178,219 'extens':414 'fals':303 'fi':107,117,131,153,179,224,284,298,334,335,374,375 'file':408 'flatpak':110,115,121,286,290,337,341,351,365 'found':36,52,56,172 'get':281,295,314,346 'gitlab.com':78 'gitlab.com/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads).':77 'gitlab.gnome.org':60,68 'gitlab.gnome.org/gnome/gnome-weather/-/issues/247#note_1819885)':59 'gitlab.gnome.org/julianfairfax)':67 'gnome':15,102,125,150 'gnome-weath':101 'grep':112 'gset':280,293,313,319,329,344,354,368 'id':225,231 'inhabit':33 'instal':129 'isn':127 'julian':66 'know':385 'l':259,274 'lat':245,250,253,255,304 'lemmy.eco.br':7,9 'lemmy.eco.br/post/1969330](https://lemmy.eco.br/post/1969330)':8 'linux1':401 'linux@lemmy.eco.br':5 'list':111 'locat':144,171,187,218,223,279,283,289,297,299,316,322,324,327,332,333,348,358,360,363,372,373 'lon':260,265,268,270,305 'look':45 'made':70 'might':383 'million':32 'month':19 'name':88,141,206,234,242,302 'never':51 'nominatim.openstreetmap.org':163,237 'nominatim.openstreetmap.org/details.php?place_id=$id&format=json':236 'nominatim.openstreetmap.org/search?q=$query&format=json&limit=1':162 'occur':377 'org.gnome.weather':113,282,294,296,315,321,331,345,347,355,357,369,371 'p':138,181 'peopl':382 'permiss':418 'place':230 'post':3 'problem':76 'program':43 'provid':416 'queri':135,152,154,156 'read':137,180 'remov':174 'request':160,167,202,227,247,262 'run':84,291,342,352,366,388,398,424 'save':402,410 'script':72,95,389,399,404,426 'script.sh':422 'search':176,192 'sed':157,203,207,228,232,240,243,248,251,263,266,325,361 'set':320,330,356,370 'sever':48 'sh':413 'solut':47 'solv':74 'sure':196 'system':105,119,276,309 'term':177,193 'text':407 'thread':58 'time':49 'tutori':395 'type':139 'u':420 'uint32':300 'use':14 'user':65 've':12 'want':146,189,198 'weather':39,103,126,151 'x':421 'y':213 'y/n':209 'yesterday':62 'z':99,109,133"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1701367347
+visibility: "visible "
+apId: "https://lemmy.eco.br/post/1973179"
+editedAt: DateTimeImmutable @1702191218 {#1858
date: 2023-12-10 07:53:38.0 +01:00
}
+createdAt: DateTimeImmutable @1701280947 {#2388
date: 2023-11-29 19:02:27.0 +01:00
}
}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4424 …}
+root: App\Entity\EntryComment {#4119
+user: App\Entity\User {#4102 …}
+entry: App\Entity\Entry {#2413}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: null
+root: null
+body: "This is amazing! I’m not using Gnome, but moments like this are the reason why I love Linux so much."
+lang: "en"
+isAdult: false
+favouriteCount: 11
+score: 0
+lastActive: DateTime @1702481761 {#4120
date: 2023-12-13 16:36:01.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@a"
"@av"
"@ademir@lemmy.eco.br"
]
+children: Doctrine\ORM\PersistentCollection {#4117 …}
+nested: Doctrine\ORM\PersistentCollection {#4115 …}
+votes: Doctrine\ORM\PersistentCollection {#4113 …}
+reports: Doctrine\ORM\PersistentCollection {#4110 …}
+favourites: Doctrine\ORM\PersistentCollection {#4106 …}
+notifications: Doctrine\ORM\PersistentCollection {#4104 …}
-id: 178454
-bodyTs: "'amaz':3 'gnome':8 'like':11 'linux':19 'love':18 'm':5 'moment':10 'much':21 'reason':15 'use':7"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://iusearchlinux.fyi/comment/3833698"
+editedAt: DateTimeImmutable @1702222871 {#4125
date: 2023-12-10 16:41:11.0 +01:00
}
+createdAt: DateTimeImmutable @1701294191 {#4123
date: 2023-11-29 22:43:11.0 +01:00
}
}
+body: "My happiness is ruined :("
+lang: "en"
+isAdult: false
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1701347225 {#4441
date: 2023-11-30 13:27:05.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@a"
"@av"
"@ademir@lemmy.eco.br"
"@stepanzak@iusearchlinux.fyi"
"@turbowafflz@lemmy.world"
"@DangerousInternet@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4438 …}
+nested: Doctrine\ORM\PersistentCollection {#4435 …}
+votes: Doctrine\ORM\PersistentCollection {#4433 …}
+reports: Doctrine\ORM\PersistentCollection {#4447 …}
+favourites: Doctrine\ORM\PersistentCollection {#4449 …}
+notifications: Doctrine\ORM\PersistentCollection {#4451 …}
-id: 180602
-bodyTs: "'happi':2 'ruin':4"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://iusearchlinux.fyi/comment/3845175"
+editedAt: null
+createdAt: DateTimeImmutable @1701347225 {#4444
date: 2023-11-30 13:27:05.0 +01:00
}
} |
|
Show voter details
|
23 |
DENIED
|
edit
|
App\Entity\EntryComment {#4446
+user: App\Entity\User {#4102 …}
+entry: App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "Add-YOUR-city-to-the-Gnome-weather-app-Solved"
+title: "Add YOUR city to the Gnome weather app [Solved]"
+url: null
+body: """
cross-posted from: [!linux@lemmy.eco.br](/c/linux@lemmy.eco.br) | [lemmy.eco.br/post/1969330](https://lemmy.eco.br/post/1969330)\n
\n
I’ve been using Gnome for about 10 months and it always bothered me that my city (with more than a million inhabitants) was not found in the [Weather](https://apps.gnome.org/Weather/) program.\n
\n
I looked for solutions several times and never found them, until I found [this thread](https://gitlab.gnome.org/GNOME/gnome-weather/-/issues/247#note_1819885) yesterday. That the user [Julian](https://gitlab.gnome.org/julianfairfax) made a [script that solves this problem](https://gitlab.com/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads). you just have to run and enter the name of your city and then confirm.\n
\n
script`bash #!/bin/bash if [[ ! -z “$(which gnome-weather)” ]]; then \tsystem=1 fi if [[ ! -z “$(flatpak list | grep org.gnome.Weather)” ]]; then \tflatpak=1 fi if [[ ! $system == 1 && ! $flatpak == 1 ]]; then \techo “GNOME Weather isn’t installed” \texit fi if [[ ! -z “$*” ]]; then \tquery=“$*” else \tread -p “Type the name of the location you want to add to GNOME Weather: " query fi query=”$(echo $query | sed ‘s/ /+/g’)" request=$(curl “https://nominatim.openstreetmap.org/search?q=$query&format=json&limit=1” -s) if [[ $request == “[]” ]]; then \techo “No locations found, consider removing some search terms” \texit fi read -p “If this is not the location you wanted, consider adding search terms Are you sure you want to add $(echo $request | sed 's/.*“display_name”:”//’ | sed ‘s/".*//’)? [y/n] : " answer if [[ ! $answer == “y” ]]; then \techo “Not adding location” \texit else \techo “Adding location” fi id=$(echo $request | sed ‘s/.*“place_id”://’ | sed ‘s/,.*//’) name=$(curl “https://nominatim.openstreetmap.org/details.php?place_id=$id&format=json” -s | sed ‘s/.*“name”: "//’ | sed ‘s/".*//’) lat=$(echo $request | sed ‘s/.*“lat”:"//’ | sed ‘s/".*//’) lat=$(echo “$lat / (180 / 3.141592654)” | bc -l) lon=$(echo $request | sed ‘s/.*“lon”:"//’ | sed ‘s/".*//’) lon=$(echo “$lon / (180 / 3.141592654)” | bc -l) if [[ $system == 1 ]]; then \tlocations=$(gsettings get org.gnome.Weather locations) fi if [[ $flatpak == 1 ]]; then \tlocations=$(flatpak run --command=gsettings org.gnome.Weather get org.gnome.Weather locations) fi location=“<(uint32 2, <(‘$name’, ‘’, false, [($lat, $lon)], @a(dd) [])>)>” if [[ $system == 1 ]]; then \tif [[ ! $(gsettings get org.gnome.Weather locations) == “@av []” ]]; then \t\tgsettings set org.gnome.Weather locations “$(echo $locations | sed “s|>]|>, $location]|”)” \telse \t\tgsettings set org.gnome.Weather locations “[$location]” \tfi fi if [[ $flatpak == 1 ]]; then \tif [[ ! $(flatpak run --command=gsettings org.gnome.Weather get org.gnome.Weather locations) == “@av []” ]]; then \t\tflatpak run --command=gsettings org.gnome.Weather set org.gnome.Weather locations “$(echo $locations | sed “s|>]|>, $location]|”)” \telse \t\tflatpak run --command=gsettings org.gnome.Weather set org.gnome.Weather locations “[$location]” \tfi fi `\n
\n
---\n
\n
It occurred to me that some people might not know how to run scripts, so here’s a brief tutorial:\n
\n
How to run scripts in Linux1. Save the script to a text file and save with the `.sh` extension 2. Provide execute permission: `chmod u+x script.sh`3. run the script by double clicking or `./script.sh`
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 8
+favouriteCount: 52
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1701364533 {#2418
date: 2023-11-30 18:15:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: [
"@a"
"@av"
]
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 18263
-titleTs: "'add':1 'app':8 'citi':3 'gnome':6 'solv':9 'weather':7"
-bodyTs: "'/bin/bash':97 '/c/linux':6 '/details.php?place_id=$id&format=json':238 '/g':159 '/gnome/gnome-weather/-/issues/247#note_1819885)':61 '/julianfairfax)':69 '/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads).':79 '/post/1969330](https://lemmy.eco.br/post/1969330)':10 '/script.sh':431 '/search?q=$query&format=json&limit=1':164 '/weather/)':42 '1':106,116,120,122,277,287,310,338 '10':18 '180':256,271 '2':301,415 '3':423 '3.141592654':257,272 'ad':191,217,222 'add':148,200 'alway':22 'answer':210,212 'apps.gnome.org':41 'apps.gnome.org/weather/)':40 'av':317,349 'bash':96 'bc':258,273 'bother':23 'brief':394 'chmod':419 'citi':27,91 'click':429 'command':292,343,353,367 'confirm':94 'consid':173,190 'cross':2 'cross-post':1 'curl':161,235 'dd':307 'display':205 'doubl':428 'echo':124,155,169,201,215,221,226,246,254,261,269,323,359 'els':136,220,328,364 'enter':86 'execut':417 'exit':130,178,219 'extens':414 'fals':303 'fi':107,117,131,153,179,224,284,298,334,335,374,375 'file':408 'flatpak':110,115,121,286,290,337,341,351,365 'found':36,52,56,172 'get':281,295,314,346 'gitlab.com':78 'gitlab.com/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads).':77 'gitlab.gnome.org':60,68 'gitlab.gnome.org/gnome/gnome-weather/-/issues/247#note_1819885)':59 'gitlab.gnome.org/julianfairfax)':67 'gnome':15,102,125,150 'gnome-weath':101 'grep':112 'gset':280,293,313,319,329,344,354,368 'id':225,231 'inhabit':33 'instal':129 'isn':127 'julian':66 'know':385 'l':259,274 'lat':245,250,253,255,304 'lemmy.eco.br':7,9 'lemmy.eco.br/post/1969330](https://lemmy.eco.br/post/1969330)':8 'linux1':401 'linux@lemmy.eco.br':5 'list':111 'locat':144,171,187,218,223,279,283,289,297,299,316,322,324,327,332,333,348,358,360,363,372,373 'lon':260,265,268,270,305 'look':45 'made':70 'might':383 'million':32 'month':19 'name':88,141,206,234,242,302 'never':51 'nominatim.openstreetmap.org':163,237 'nominatim.openstreetmap.org/details.php?place_id=$id&format=json':236 'nominatim.openstreetmap.org/search?q=$query&format=json&limit=1':162 'occur':377 'org.gnome.weather':113,282,294,296,315,321,331,345,347,355,357,369,371 'p':138,181 'peopl':382 'permiss':418 'place':230 'post':3 'problem':76 'program':43 'provid':416 'queri':135,152,154,156 'read':137,180 'remov':174 'request':160,167,202,227,247,262 'run':84,291,342,352,366,388,398,424 'save':402,410 'script':72,95,389,399,404,426 'script.sh':422 'search':176,192 'sed':157,203,207,228,232,240,243,248,251,263,266,325,361 'set':320,330,356,370 'sever':48 'sh':413 'solut':47 'solv':74 'sure':196 'system':105,119,276,309 'term':177,193 'text':407 'thread':58 'time':49 'tutori':395 'type':139 'u':420 'uint32':300 'use':14 'user':65 've':12 'want':146,189,198 'weather':39,103,126,151 'x':421 'y':213 'y/n':209 'yesterday':62 'z':99,109,133"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1701367347
+visibility: "visible "
+apId: "https://lemmy.eco.br/post/1973179"
+editedAt: DateTimeImmutable @1702191218 {#1858
date: 2023-12-10 07:53:38.0 +01:00
}
+createdAt: DateTimeImmutable @1701280947 {#2388
date: 2023-11-29 19:02:27.0 +01:00
}
}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4424 …}
+root: App\Entity\EntryComment {#4119
+user: App\Entity\User {#4102 …}
+entry: App\Entity\Entry {#2413}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: null
+root: null
+body: "This is amazing! I’m not using Gnome, but moments like this are the reason why I love Linux so much."
+lang: "en"
+isAdult: false
+favouriteCount: 11
+score: 0
+lastActive: DateTime @1702481761 {#4120
date: 2023-12-13 16:36:01.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@a"
"@av"
"@ademir@lemmy.eco.br"
]
+children: Doctrine\ORM\PersistentCollection {#4117 …}
+nested: Doctrine\ORM\PersistentCollection {#4115 …}
+votes: Doctrine\ORM\PersistentCollection {#4113 …}
+reports: Doctrine\ORM\PersistentCollection {#4110 …}
+favourites: Doctrine\ORM\PersistentCollection {#4106 …}
+notifications: Doctrine\ORM\PersistentCollection {#4104 …}
-id: 178454
-bodyTs: "'amaz':3 'gnome':8 'like':11 'linux':19 'love':18 'm':5 'moment':10 'much':21 'reason':15 'use':7"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://iusearchlinux.fyi/comment/3833698"
+editedAt: DateTimeImmutable @1702222871 {#4125
date: 2023-12-10 16:41:11.0 +01:00
}
+createdAt: DateTimeImmutable @1701294191 {#4123
date: 2023-11-29 22:43:11.0 +01:00
}
}
+body: "My happiness is ruined :("
+lang: "en"
+isAdult: false
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1701347225 {#4441
date: 2023-11-30 13:27:05.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@a"
"@av"
"@ademir@lemmy.eco.br"
"@stepanzak@iusearchlinux.fyi"
"@turbowafflz@lemmy.world"
"@DangerousInternet@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4438 …}
+nested: Doctrine\ORM\PersistentCollection {#4435 …}
+votes: Doctrine\ORM\PersistentCollection {#4433 …}
+reports: Doctrine\ORM\PersistentCollection {#4447 …}
+favourites: Doctrine\ORM\PersistentCollection {#4449 …}
+notifications: Doctrine\ORM\PersistentCollection {#4451 …}
-id: 180602
-bodyTs: "'happi':2 'ruin':4"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://iusearchlinux.fyi/comment/3845175"
+editedAt: null
+createdAt: DateTimeImmutable @1701347225 {#4444
date: 2023-11-30 13:27:05.0 +01:00
}
} |
|
Show voter details
|
24 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4446
+user: App\Entity\User {#4102 …}
+entry: App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "Add-YOUR-city-to-the-Gnome-weather-app-Solved"
+title: "Add YOUR city to the Gnome weather app [Solved]"
+url: null
+body: """
cross-posted from: [!linux@lemmy.eco.br](/c/linux@lemmy.eco.br) | [lemmy.eco.br/post/1969330](https://lemmy.eco.br/post/1969330)\n
\n
I’ve been using Gnome for about 10 months and it always bothered me that my city (with more than a million inhabitants) was not found in the [Weather](https://apps.gnome.org/Weather/) program.\n
\n
I looked for solutions several times and never found them, until I found [this thread](https://gitlab.gnome.org/GNOME/gnome-weather/-/issues/247#note_1819885) yesterday. That the user [Julian](https://gitlab.gnome.org/julianfairfax) made a [script that solves this problem](https://gitlab.com/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads). you just have to run and enter the name of your city and then confirm.\n
\n
script`bash #!/bin/bash if [[ ! -z “$(which gnome-weather)” ]]; then \tsystem=1 fi if [[ ! -z “$(flatpak list | grep org.gnome.Weather)” ]]; then \tflatpak=1 fi if [[ ! $system == 1 && ! $flatpak == 1 ]]; then \techo “GNOME Weather isn’t installed” \texit fi if [[ ! -z “$*” ]]; then \tquery=“$*” else \tread -p “Type the name of the location you want to add to GNOME Weather: " query fi query=”$(echo $query | sed ‘s/ /+/g’)" request=$(curl “https://nominatim.openstreetmap.org/search?q=$query&format=json&limit=1” -s) if [[ $request == “[]” ]]; then \techo “No locations found, consider removing some search terms” \texit fi read -p “If this is not the location you wanted, consider adding search terms Are you sure you want to add $(echo $request | sed 's/.*“display_name”:”//’ | sed ‘s/".*//’)? [y/n] : " answer if [[ ! $answer == “y” ]]; then \techo “Not adding location” \texit else \techo “Adding location” fi id=$(echo $request | sed ‘s/.*“place_id”://’ | sed ‘s/,.*//’) name=$(curl “https://nominatim.openstreetmap.org/details.php?place_id=$id&format=json” -s | sed ‘s/.*“name”: "//’ | sed ‘s/".*//’) lat=$(echo $request | sed ‘s/.*“lat”:"//’ | sed ‘s/".*//’) lat=$(echo “$lat / (180 / 3.141592654)” | bc -l) lon=$(echo $request | sed ‘s/.*“lon”:"//’ | sed ‘s/".*//’) lon=$(echo “$lon / (180 / 3.141592654)” | bc -l) if [[ $system == 1 ]]; then \tlocations=$(gsettings get org.gnome.Weather locations) fi if [[ $flatpak == 1 ]]; then \tlocations=$(flatpak run --command=gsettings org.gnome.Weather get org.gnome.Weather locations) fi location=“<(uint32 2, <(‘$name’, ‘’, false, [($lat, $lon)], @a(dd) [])>)>” if [[ $system == 1 ]]; then \tif [[ ! $(gsettings get org.gnome.Weather locations) == “@av []” ]]; then \t\tgsettings set org.gnome.Weather locations “$(echo $locations | sed “s|>]|>, $location]|”)” \telse \t\tgsettings set org.gnome.Weather locations “[$location]” \tfi fi if [[ $flatpak == 1 ]]; then \tif [[ ! $(flatpak run --command=gsettings org.gnome.Weather get org.gnome.Weather locations) == “@av []” ]]; then \t\tflatpak run --command=gsettings org.gnome.Weather set org.gnome.Weather locations “$(echo $locations | sed “s|>]|>, $location]|”)” \telse \t\tflatpak run --command=gsettings org.gnome.Weather set org.gnome.Weather locations “[$location]” \tfi fi `\n
\n
---\n
\n
It occurred to me that some people might not know how to run scripts, so here’s a brief tutorial:\n
\n
How to run scripts in Linux1. Save the script to a text file and save with the `.sh` extension 2. Provide execute permission: `chmod u+x script.sh`3. run the script by double clicking or `./script.sh`
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 8
+favouriteCount: 52
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1701364533 {#2418
date: 2023-11-30 18:15:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: [
"@a"
"@av"
]
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 18263
-titleTs: "'add':1 'app':8 'citi':3 'gnome':6 'solv':9 'weather':7"
-bodyTs: "'/bin/bash':97 '/c/linux':6 '/details.php?place_id=$id&format=json':238 '/g':159 '/gnome/gnome-weather/-/issues/247#note_1819885)':61 '/julianfairfax)':69 '/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads).':79 '/post/1969330](https://lemmy.eco.br/post/1969330)':10 '/script.sh':431 '/search?q=$query&format=json&limit=1':164 '/weather/)':42 '1':106,116,120,122,277,287,310,338 '10':18 '180':256,271 '2':301,415 '3':423 '3.141592654':257,272 'ad':191,217,222 'add':148,200 'alway':22 'answer':210,212 'apps.gnome.org':41 'apps.gnome.org/weather/)':40 'av':317,349 'bash':96 'bc':258,273 'bother':23 'brief':394 'chmod':419 'citi':27,91 'click':429 'command':292,343,353,367 'confirm':94 'consid':173,190 'cross':2 'cross-post':1 'curl':161,235 'dd':307 'display':205 'doubl':428 'echo':124,155,169,201,215,221,226,246,254,261,269,323,359 'els':136,220,328,364 'enter':86 'execut':417 'exit':130,178,219 'extens':414 'fals':303 'fi':107,117,131,153,179,224,284,298,334,335,374,375 'file':408 'flatpak':110,115,121,286,290,337,341,351,365 'found':36,52,56,172 'get':281,295,314,346 'gitlab.com':78 'gitlab.com/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads).':77 'gitlab.gnome.org':60,68 'gitlab.gnome.org/gnome/gnome-weather/-/issues/247#note_1819885)':59 'gitlab.gnome.org/julianfairfax)':67 'gnome':15,102,125,150 'gnome-weath':101 'grep':112 'gset':280,293,313,319,329,344,354,368 'id':225,231 'inhabit':33 'instal':129 'isn':127 'julian':66 'know':385 'l':259,274 'lat':245,250,253,255,304 'lemmy.eco.br':7,9 'lemmy.eco.br/post/1969330](https://lemmy.eco.br/post/1969330)':8 'linux1':401 'linux@lemmy.eco.br':5 'list':111 'locat':144,171,187,218,223,279,283,289,297,299,316,322,324,327,332,333,348,358,360,363,372,373 'lon':260,265,268,270,305 'look':45 'made':70 'might':383 'million':32 'month':19 'name':88,141,206,234,242,302 'never':51 'nominatim.openstreetmap.org':163,237 'nominatim.openstreetmap.org/details.php?place_id=$id&format=json':236 'nominatim.openstreetmap.org/search?q=$query&format=json&limit=1':162 'occur':377 'org.gnome.weather':113,282,294,296,315,321,331,345,347,355,357,369,371 'p':138,181 'peopl':382 'permiss':418 'place':230 'post':3 'problem':76 'program':43 'provid':416 'queri':135,152,154,156 'read':137,180 'remov':174 'request':160,167,202,227,247,262 'run':84,291,342,352,366,388,398,424 'save':402,410 'script':72,95,389,399,404,426 'script.sh':422 'search':176,192 'sed':157,203,207,228,232,240,243,248,251,263,266,325,361 'set':320,330,356,370 'sever':48 'sh':413 'solut':47 'solv':74 'sure':196 'system':105,119,276,309 'term':177,193 'text':407 'thread':58 'time':49 'tutori':395 'type':139 'u':420 'uint32':300 'use':14 'user':65 've':12 'want':146,189,198 'weather':39,103,126,151 'x':421 'y':213 'y/n':209 'yesterday':62 'z':99,109,133"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1701367347
+visibility: "visible "
+apId: "https://lemmy.eco.br/post/1973179"
+editedAt: DateTimeImmutable @1702191218 {#1858
date: 2023-12-10 07:53:38.0 +01:00
}
+createdAt: DateTimeImmutable @1701280947 {#2388
date: 2023-11-29 19:02:27.0 +01:00
}
}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4424 …}
+root: App\Entity\EntryComment {#4119
+user: App\Entity\User {#4102 …}
+entry: App\Entity\Entry {#2413}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: null
+root: null
+body: "This is amazing! I’m not using Gnome, but moments like this are the reason why I love Linux so much."
+lang: "en"
+isAdult: false
+favouriteCount: 11
+score: 0
+lastActive: DateTime @1702481761 {#4120
date: 2023-12-13 16:36:01.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@a"
"@av"
"@ademir@lemmy.eco.br"
]
+children: Doctrine\ORM\PersistentCollection {#4117 …}
+nested: Doctrine\ORM\PersistentCollection {#4115 …}
+votes: Doctrine\ORM\PersistentCollection {#4113 …}
+reports: Doctrine\ORM\PersistentCollection {#4110 …}
+favourites: Doctrine\ORM\PersistentCollection {#4106 …}
+notifications: Doctrine\ORM\PersistentCollection {#4104 …}
-id: 178454
-bodyTs: "'amaz':3 'gnome':8 'like':11 'linux':19 'love':18 'm':5 'moment':10 'much':21 'reason':15 'use':7"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://iusearchlinux.fyi/comment/3833698"
+editedAt: DateTimeImmutable @1702222871 {#4125
date: 2023-12-10 16:41:11.0 +01:00
}
+createdAt: DateTimeImmutable @1701294191 {#4123
date: 2023-11-29 22:43:11.0 +01:00
}
}
+body: "My happiness is ruined :("
+lang: "en"
+isAdult: false
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1701347225 {#4441
date: 2023-11-30 13:27:05.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@a"
"@av"
"@ademir@lemmy.eco.br"
"@stepanzak@iusearchlinux.fyi"
"@turbowafflz@lemmy.world"
"@DangerousInternet@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4438 …}
+nested: Doctrine\ORM\PersistentCollection {#4435 …}
+votes: Doctrine\ORM\PersistentCollection {#4433 …}
+reports: Doctrine\ORM\PersistentCollection {#4447 …}
+favourites: Doctrine\ORM\PersistentCollection {#4449 …}
+notifications: Doctrine\ORM\PersistentCollection {#4451 …}
-id: 180602
-bodyTs: "'happi':2 'ruin':4"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://iusearchlinux.fyi/comment/3845175"
+editedAt: null
+createdAt: DateTimeImmutable @1701347225 {#4444
date: 2023-11-30 13:27:05.0 +01:00
}
} |
|
Show voter details
|
25 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
26 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4468
+user: Proxies\__CG__\App\Entity\User {#4460 …}
+entry: App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "Add-YOUR-city-to-the-Gnome-weather-app-Solved"
+title: "Add YOUR city to the Gnome weather app [Solved]"
+url: null
+body: """
cross-posted from: [!linux@lemmy.eco.br](/c/linux@lemmy.eco.br) | [lemmy.eco.br/post/1969330](https://lemmy.eco.br/post/1969330)\n
\n
I’ve been using Gnome for about 10 months and it always bothered me that my city (with more than a million inhabitants) was not found in the [Weather](https://apps.gnome.org/Weather/) program.\n
\n
I looked for solutions several times and never found them, until I found [this thread](https://gitlab.gnome.org/GNOME/gnome-weather/-/issues/247#note_1819885) yesterday. That the user [Julian](https://gitlab.gnome.org/julianfairfax) made a [script that solves this problem](https://gitlab.com/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads). you just have to run and enter the name of your city and then confirm.\n
\n
script`bash #!/bin/bash if [[ ! -z “$(which gnome-weather)” ]]; then \tsystem=1 fi if [[ ! -z “$(flatpak list | grep org.gnome.Weather)” ]]; then \tflatpak=1 fi if [[ ! $system == 1 && ! $flatpak == 1 ]]; then \techo “GNOME Weather isn’t installed” \texit fi if [[ ! -z “$*” ]]; then \tquery=“$*” else \tread -p “Type the name of the location you want to add to GNOME Weather: " query fi query=”$(echo $query | sed ‘s/ /+/g’)" request=$(curl “https://nominatim.openstreetmap.org/search?q=$query&format=json&limit=1” -s) if [[ $request == “[]” ]]; then \techo “No locations found, consider removing some search terms” \texit fi read -p “If this is not the location you wanted, consider adding search terms Are you sure you want to add $(echo $request | sed 's/.*“display_name”:”//’ | sed ‘s/".*//’)? [y/n] : " answer if [[ ! $answer == “y” ]]; then \techo “Not adding location” \texit else \techo “Adding location” fi id=$(echo $request | sed ‘s/.*“place_id”://’ | sed ‘s/,.*//’) name=$(curl “https://nominatim.openstreetmap.org/details.php?place_id=$id&format=json” -s | sed ‘s/.*“name”: "//’ | sed ‘s/".*//’) lat=$(echo $request | sed ‘s/.*“lat”:"//’ | sed ‘s/".*//’) lat=$(echo “$lat / (180 / 3.141592654)” | bc -l) lon=$(echo $request | sed ‘s/.*“lon”:"//’ | sed ‘s/".*//’) lon=$(echo “$lon / (180 / 3.141592654)” | bc -l) if [[ $system == 1 ]]; then \tlocations=$(gsettings get org.gnome.Weather locations) fi if [[ $flatpak == 1 ]]; then \tlocations=$(flatpak run --command=gsettings org.gnome.Weather get org.gnome.Weather locations) fi location=“<(uint32 2, <(‘$name’, ‘’, false, [($lat, $lon)], @a(dd) [])>)>” if [[ $system == 1 ]]; then \tif [[ ! $(gsettings get org.gnome.Weather locations) == “@av []” ]]; then \t\tgsettings set org.gnome.Weather locations “$(echo $locations | sed “s|>]|>, $location]|”)” \telse \t\tgsettings set org.gnome.Weather locations “[$location]” \tfi fi if [[ $flatpak == 1 ]]; then \tif [[ ! $(flatpak run --command=gsettings org.gnome.Weather get org.gnome.Weather locations) == “@av []” ]]; then \t\tflatpak run --command=gsettings org.gnome.Weather set org.gnome.Weather locations “$(echo $locations | sed “s|>]|>, $location]|”)” \telse \t\tflatpak run --command=gsettings org.gnome.Weather set org.gnome.Weather locations “[$location]” \tfi fi `\n
\n
---\n
\n
It occurred to me that some people might not know how to run scripts, so here’s a brief tutorial:\n
\n
How to run scripts in Linux1. Save the script to a text file and save with the `.sh` extension 2. Provide execute permission: `chmod u+x script.sh`3. run the script by double clicking or `./script.sh`
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 8
+favouriteCount: 52
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1701364533 {#2418
date: 2023-11-30 18:15:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: [
"@a"
"@av"
]
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 18263
-titleTs: "'add':1 'app':8 'citi':3 'gnome':6 'solv':9 'weather':7"
-bodyTs: "'/bin/bash':97 '/c/linux':6 '/details.php?place_id=$id&format=json':238 '/g':159 '/gnome/gnome-weather/-/issues/247#note_1819885)':61 '/julianfairfax)':69 '/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads).':79 '/post/1969330](https://lemmy.eco.br/post/1969330)':10 '/script.sh':431 '/search?q=$query&format=json&limit=1':164 '/weather/)':42 '1':106,116,120,122,277,287,310,338 '10':18 '180':256,271 '2':301,415 '3':423 '3.141592654':257,272 'ad':191,217,222 'add':148,200 'alway':22 'answer':210,212 'apps.gnome.org':41 'apps.gnome.org/weather/)':40 'av':317,349 'bash':96 'bc':258,273 'bother':23 'brief':394 'chmod':419 'citi':27,91 'click':429 'command':292,343,353,367 'confirm':94 'consid':173,190 'cross':2 'cross-post':1 'curl':161,235 'dd':307 'display':205 'doubl':428 'echo':124,155,169,201,215,221,226,246,254,261,269,323,359 'els':136,220,328,364 'enter':86 'execut':417 'exit':130,178,219 'extens':414 'fals':303 'fi':107,117,131,153,179,224,284,298,334,335,374,375 'file':408 'flatpak':110,115,121,286,290,337,341,351,365 'found':36,52,56,172 'get':281,295,314,346 'gitlab.com':78 'gitlab.com/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads).':77 'gitlab.gnome.org':60,68 'gitlab.gnome.org/gnome/gnome-weather/-/issues/247#note_1819885)':59 'gitlab.gnome.org/julianfairfax)':67 'gnome':15,102,125,150 'gnome-weath':101 'grep':112 'gset':280,293,313,319,329,344,354,368 'id':225,231 'inhabit':33 'instal':129 'isn':127 'julian':66 'know':385 'l':259,274 'lat':245,250,253,255,304 'lemmy.eco.br':7,9 'lemmy.eco.br/post/1969330](https://lemmy.eco.br/post/1969330)':8 'linux1':401 'linux@lemmy.eco.br':5 'list':111 'locat':144,171,187,218,223,279,283,289,297,299,316,322,324,327,332,333,348,358,360,363,372,373 'lon':260,265,268,270,305 'look':45 'made':70 'might':383 'million':32 'month':19 'name':88,141,206,234,242,302 'never':51 'nominatim.openstreetmap.org':163,237 'nominatim.openstreetmap.org/details.php?place_id=$id&format=json':236 'nominatim.openstreetmap.org/search?q=$query&format=json&limit=1':162 'occur':377 'org.gnome.weather':113,282,294,296,315,321,331,345,347,355,357,369,371 'p':138,181 'peopl':382 'permiss':418 'place':230 'post':3 'problem':76 'program':43 'provid':416 'queri':135,152,154,156 'read':137,180 'remov':174 'request':160,167,202,227,247,262 'run':84,291,342,352,366,388,398,424 'save':402,410 'script':72,95,389,399,404,426 'script.sh':422 'search':176,192 'sed':157,203,207,228,232,240,243,248,251,263,266,325,361 'set':320,330,356,370 'sever':48 'sh':413 'solut':47 'solv':74 'sure':196 'system':105,119,276,309 'term':177,193 'text':407 'thread':58 'time':49 'tutori':395 'type':139 'u':420 'uint32':300 'use':14 'user':65 've':12 'want':146,189,198 'weather':39,103,126,151 'x':421 'y':213 'y/n':209 'yesterday':62 'z':99,109,133"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1701367347
+visibility: "visible "
+apId: "https://lemmy.eco.br/post/1973179"
+editedAt: DateTimeImmutable @1702191218 {#1858
date: 2023-12-10 07:53:38.0 +01:00
}
+createdAt: DateTimeImmutable @1701280947 {#2388
date: 2023-11-29 19:02:27.0 +01:00
}
}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4446
+user: App\Entity\User {#4102 …}
+entry: App\Entity\Entry {#2413}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4424 …}
+root: App\Entity\EntryComment {#4119
+user: App\Entity\User {#4102 …}
+entry: App\Entity\Entry {#2413}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: null
+root: null
+body: "This is amazing! I’m not using Gnome, but moments like this are the reason why I love Linux so much."
+lang: "en"
+isAdult: false
+favouriteCount: 11
+score: 0
+lastActive: DateTime @1702481761 {#4120
date: 2023-12-13 16:36:01.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@a"
"@av"
"@ademir@lemmy.eco.br"
]
+children: Doctrine\ORM\PersistentCollection {#4117 …}
+nested: Doctrine\ORM\PersistentCollection {#4115 …}
+votes: Doctrine\ORM\PersistentCollection {#4113 …}
+reports: Doctrine\ORM\PersistentCollection {#4110 …}
+favourites: Doctrine\ORM\PersistentCollection {#4106 …}
+notifications: Doctrine\ORM\PersistentCollection {#4104 …}
-id: 178454
-bodyTs: "'amaz':3 'gnome':8 'like':11 'linux':19 'love':18 'm':5 'moment':10 'much':21 'reason':15 'use':7"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://iusearchlinux.fyi/comment/3833698"
+editedAt: DateTimeImmutable @1702222871 {#4125
date: 2023-12-10 16:41:11.0 +01:00
}
+createdAt: DateTimeImmutable @1701294191 {#4123
date: 2023-11-29 22:43:11.0 +01:00
}
}
+body: "My happiness is ruined :("
+lang: "en"
+isAdult: false
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1701347225 {#4441
date: 2023-11-30 13:27:05.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@a"
"@av"
"@ademir@lemmy.eco.br"
"@stepanzak@iusearchlinux.fyi"
"@turbowafflz@lemmy.world"
"@DangerousInternet@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4438 …}
+nested: Doctrine\ORM\PersistentCollection {#4435 …}
+votes: Doctrine\ORM\PersistentCollection {#4433 …}
+reports: Doctrine\ORM\PersistentCollection {#4447 …}
+favourites: Doctrine\ORM\PersistentCollection {#4449 …}
+notifications: Doctrine\ORM\PersistentCollection {#4451 …}
-id: 180602
-bodyTs: "'happi':2 'ruin':4"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://iusearchlinux.fyi/comment/3845175"
+editedAt: null
+createdAt: DateTimeImmutable @1701347225 {#4444
date: 2023-11-30 13:27:05.0 +01:00
}
}
+root: App\Entity\EntryComment {#4119}
+body: """
KDE is very receptive to community help! I can only think of one specific example in KDE history where a developer dragged their feet in the mud about a change the community wanted/submitted pull requests for, and thats the vertical HTML indicator bar in kmail.\n
\n
Gnome on the other hand…
"""
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1701364533 {#4463
date: 2023-11-30 18:15:33.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@a"
"@av"
"@ademir@lemmy.eco.br"
"@stepanzak@iusearchlinux.fyi"
"@turbowafflz@lemmy.world"
"@DangerousInternet@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4458 …}
+nested: Doctrine\ORM\PersistentCollection {#4456 …}
+votes: Doctrine\ORM\PersistentCollection {#4454 …}
+reports: Doctrine\ORM\PersistentCollection {#4470 …}
+favourites: Doctrine\ORM\PersistentCollection {#4472 …}
+notifications: Doctrine\ORM\PersistentCollection {#4474 …}
-id: 183887
-bodyTs: "'bar':43 'chang':30 'communiti':6,32 'develop':21 'drag':22 'exampl':15 'feet':24 'gnome':46 'hand':50 'help':7 'histori':18 'html':41 'indic':42 'kde':1,17 'kmail':45 'mud':27 'one':13 'pull':34 'recept':4 'request':35 'specif':14 'that':38 'think':11 'vertic':40 'wanted/submitted':33"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/5699628"
+editedAt: null
+createdAt: DateTimeImmutable @1701364533 {#4466
date: 2023-11-30 18:15:33.0 +01:00
}
} |
|
Show voter details
|
27 |
DENIED
|
edit
|
App\Entity\EntryComment {#4468
+user: Proxies\__CG__\App\Entity\User {#4460 …}
+entry: App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "Add-YOUR-city-to-the-Gnome-weather-app-Solved"
+title: "Add YOUR city to the Gnome weather app [Solved]"
+url: null
+body: """
cross-posted from: [!linux@lemmy.eco.br](/c/linux@lemmy.eco.br) | [lemmy.eco.br/post/1969330](https://lemmy.eco.br/post/1969330)\n
\n
I’ve been using Gnome for about 10 months and it always bothered me that my city (with more than a million inhabitants) was not found in the [Weather](https://apps.gnome.org/Weather/) program.\n
\n
I looked for solutions several times and never found them, until I found [this thread](https://gitlab.gnome.org/GNOME/gnome-weather/-/issues/247#note_1819885) yesterday. That the user [Julian](https://gitlab.gnome.org/julianfairfax) made a [script that solves this problem](https://gitlab.com/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads). you just have to run and enter the name of your city and then confirm.\n
\n
script`bash #!/bin/bash if [[ ! -z “$(which gnome-weather)” ]]; then \tsystem=1 fi if [[ ! -z “$(flatpak list | grep org.gnome.Weather)” ]]; then \tflatpak=1 fi if [[ ! $system == 1 && ! $flatpak == 1 ]]; then \techo “GNOME Weather isn’t installed” \texit fi if [[ ! -z “$*” ]]; then \tquery=“$*” else \tread -p “Type the name of the location you want to add to GNOME Weather: " query fi query=”$(echo $query | sed ‘s/ /+/g’)" request=$(curl “https://nominatim.openstreetmap.org/search?q=$query&format=json&limit=1” -s) if [[ $request == “[]” ]]; then \techo “No locations found, consider removing some search terms” \texit fi read -p “If this is not the location you wanted, consider adding search terms Are you sure you want to add $(echo $request | sed 's/.*“display_name”:”//’ | sed ‘s/".*//’)? [y/n] : " answer if [[ ! $answer == “y” ]]; then \techo “Not adding location” \texit else \techo “Adding location” fi id=$(echo $request | sed ‘s/.*“place_id”://’ | sed ‘s/,.*//’) name=$(curl “https://nominatim.openstreetmap.org/details.php?place_id=$id&format=json” -s | sed ‘s/.*“name”: "//’ | sed ‘s/".*//’) lat=$(echo $request | sed ‘s/.*“lat”:"//’ | sed ‘s/".*//’) lat=$(echo “$lat / (180 / 3.141592654)” | bc -l) lon=$(echo $request | sed ‘s/.*“lon”:"//’ | sed ‘s/".*//’) lon=$(echo “$lon / (180 / 3.141592654)” | bc -l) if [[ $system == 1 ]]; then \tlocations=$(gsettings get org.gnome.Weather locations) fi if [[ $flatpak == 1 ]]; then \tlocations=$(flatpak run --command=gsettings org.gnome.Weather get org.gnome.Weather locations) fi location=“<(uint32 2, <(‘$name’, ‘’, false, [($lat, $lon)], @a(dd) [])>)>” if [[ $system == 1 ]]; then \tif [[ ! $(gsettings get org.gnome.Weather locations) == “@av []” ]]; then \t\tgsettings set org.gnome.Weather locations “$(echo $locations | sed “s|>]|>, $location]|”)” \telse \t\tgsettings set org.gnome.Weather locations “[$location]” \tfi fi if [[ $flatpak == 1 ]]; then \tif [[ ! $(flatpak run --command=gsettings org.gnome.Weather get org.gnome.Weather locations) == “@av []” ]]; then \t\tflatpak run --command=gsettings org.gnome.Weather set org.gnome.Weather locations “$(echo $locations | sed “s|>]|>, $location]|”)” \telse \t\tflatpak run --command=gsettings org.gnome.Weather set org.gnome.Weather locations “[$location]” \tfi fi `\n
\n
---\n
\n
It occurred to me that some people might not know how to run scripts, so here’s a brief tutorial:\n
\n
How to run scripts in Linux1. Save the script to a text file and save with the `.sh` extension 2. Provide execute permission: `chmod u+x script.sh`3. run the script by double clicking or `./script.sh`
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 8
+favouriteCount: 52
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1701364533 {#2418
date: 2023-11-30 18:15:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: [
"@a"
"@av"
]
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 18263
-titleTs: "'add':1 'app':8 'citi':3 'gnome':6 'solv':9 'weather':7"
-bodyTs: "'/bin/bash':97 '/c/linux':6 '/details.php?place_id=$id&format=json':238 '/g':159 '/gnome/gnome-weather/-/issues/247#note_1819885)':61 '/julianfairfax)':69 '/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads).':79 '/post/1969330](https://lemmy.eco.br/post/1969330)':10 '/script.sh':431 '/search?q=$query&format=json&limit=1':164 '/weather/)':42 '1':106,116,120,122,277,287,310,338 '10':18 '180':256,271 '2':301,415 '3':423 '3.141592654':257,272 'ad':191,217,222 'add':148,200 'alway':22 'answer':210,212 'apps.gnome.org':41 'apps.gnome.org/weather/)':40 'av':317,349 'bash':96 'bc':258,273 'bother':23 'brief':394 'chmod':419 'citi':27,91 'click':429 'command':292,343,353,367 'confirm':94 'consid':173,190 'cross':2 'cross-post':1 'curl':161,235 'dd':307 'display':205 'doubl':428 'echo':124,155,169,201,215,221,226,246,254,261,269,323,359 'els':136,220,328,364 'enter':86 'execut':417 'exit':130,178,219 'extens':414 'fals':303 'fi':107,117,131,153,179,224,284,298,334,335,374,375 'file':408 'flatpak':110,115,121,286,290,337,341,351,365 'found':36,52,56,172 'get':281,295,314,346 'gitlab.com':78 'gitlab.com/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads).':77 'gitlab.gnome.org':60,68 'gitlab.gnome.org/gnome/gnome-weather/-/issues/247#note_1819885)':59 'gitlab.gnome.org/julianfairfax)':67 'gnome':15,102,125,150 'gnome-weath':101 'grep':112 'gset':280,293,313,319,329,344,354,368 'id':225,231 'inhabit':33 'instal':129 'isn':127 'julian':66 'know':385 'l':259,274 'lat':245,250,253,255,304 'lemmy.eco.br':7,9 'lemmy.eco.br/post/1969330](https://lemmy.eco.br/post/1969330)':8 'linux1':401 'linux@lemmy.eco.br':5 'list':111 'locat':144,171,187,218,223,279,283,289,297,299,316,322,324,327,332,333,348,358,360,363,372,373 'lon':260,265,268,270,305 'look':45 'made':70 'might':383 'million':32 'month':19 'name':88,141,206,234,242,302 'never':51 'nominatim.openstreetmap.org':163,237 'nominatim.openstreetmap.org/details.php?place_id=$id&format=json':236 'nominatim.openstreetmap.org/search?q=$query&format=json&limit=1':162 'occur':377 'org.gnome.weather':113,282,294,296,315,321,331,345,347,355,357,369,371 'p':138,181 'peopl':382 'permiss':418 'place':230 'post':3 'problem':76 'program':43 'provid':416 'queri':135,152,154,156 'read':137,180 'remov':174 'request':160,167,202,227,247,262 'run':84,291,342,352,366,388,398,424 'save':402,410 'script':72,95,389,399,404,426 'script.sh':422 'search':176,192 'sed':157,203,207,228,232,240,243,248,251,263,266,325,361 'set':320,330,356,370 'sever':48 'sh':413 'solut':47 'solv':74 'sure':196 'system':105,119,276,309 'term':177,193 'text':407 'thread':58 'time':49 'tutori':395 'type':139 'u':420 'uint32':300 'use':14 'user':65 've':12 'want':146,189,198 'weather':39,103,126,151 'x':421 'y':213 'y/n':209 'yesterday':62 'z':99,109,133"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1701367347
+visibility: "visible "
+apId: "https://lemmy.eco.br/post/1973179"
+editedAt: DateTimeImmutable @1702191218 {#1858
date: 2023-12-10 07:53:38.0 +01:00
}
+createdAt: DateTimeImmutable @1701280947 {#2388
date: 2023-11-29 19:02:27.0 +01:00
}
}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4446
+user: App\Entity\User {#4102 …}
+entry: App\Entity\Entry {#2413}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4424 …}
+root: App\Entity\EntryComment {#4119
+user: App\Entity\User {#4102 …}
+entry: App\Entity\Entry {#2413}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: null
+root: null
+body: "This is amazing! I’m not using Gnome, but moments like this are the reason why I love Linux so much."
+lang: "en"
+isAdult: false
+favouriteCount: 11
+score: 0
+lastActive: DateTime @1702481761 {#4120
date: 2023-12-13 16:36:01.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@a"
"@av"
"@ademir@lemmy.eco.br"
]
+children: Doctrine\ORM\PersistentCollection {#4117 …}
+nested: Doctrine\ORM\PersistentCollection {#4115 …}
+votes: Doctrine\ORM\PersistentCollection {#4113 …}
+reports: Doctrine\ORM\PersistentCollection {#4110 …}
+favourites: Doctrine\ORM\PersistentCollection {#4106 …}
+notifications: Doctrine\ORM\PersistentCollection {#4104 …}
-id: 178454
-bodyTs: "'amaz':3 'gnome':8 'like':11 'linux':19 'love':18 'm':5 'moment':10 'much':21 'reason':15 'use':7"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://iusearchlinux.fyi/comment/3833698"
+editedAt: DateTimeImmutable @1702222871 {#4125
date: 2023-12-10 16:41:11.0 +01:00
}
+createdAt: DateTimeImmutable @1701294191 {#4123
date: 2023-11-29 22:43:11.0 +01:00
}
}
+body: "My happiness is ruined :("
+lang: "en"
+isAdult: false
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1701347225 {#4441
date: 2023-11-30 13:27:05.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@a"
"@av"
"@ademir@lemmy.eco.br"
"@stepanzak@iusearchlinux.fyi"
"@turbowafflz@lemmy.world"
"@DangerousInternet@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4438 …}
+nested: Doctrine\ORM\PersistentCollection {#4435 …}
+votes: Doctrine\ORM\PersistentCollection {#4433 …}
+reports: Doctrine\ORM\PersistentCollection {#4447 …}
+favourites: Doctrine\ORM\PersistentCollection {#4449 …}
+notifications: Doctrine\ORM\PersistentCollection {#4451 …}
-id: 180602
-bodyTs: "'happi':2 'ruin':4"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://iusearchlinux.fyi/comment/3845175"
+editedAt: null
+createdAt: DateTimeImmutable @1701347225 {#4444
date: 2023-11-30 13:27:05.0 +01:00
}
}
+root: App\Entity\EntryComment {#4119}
+body: """
KDE is very receptive to community help! I can only think of one specific example in KDE history where a developer dragged their feet in the mud about a change the community wanted/submitted pull requests for, and thats the vertical HTML indicator bar in kmail.\n
\n
Gnome on the other hand…
"""
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1701364533 {#4463
date: 2023-11-30 18:15:33.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@a"
"@av"
"@ademir@lemmy.eco.br"
"@stepanzak@iusearchlinux.fyi"
"@turbowafflz@lemmy.world"
"@DangerousInternet@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4458 …}
+nested: Doctrine\ORM\PersistentCollection {#4456 …}
+votes: Doctrine\ORM\PersistentCollection {#4454 …}
+reports: Doctrine\ORM\PersistentCollection {#4470 …}
+favourites: Doctrine\ORM\PersistentCollection {#4472 …}
+notifications: Doctrine\ORM\PersistentCollection {#4474 …}
-id: 183887
-bodyTs: "'bar':43 'chang':30 'communiti':6,32 'develop':21 'drag':22 'exampl':15 'feet':24 'gnome':46 'hand':50 'help':7 'histori':18 'html':41 'indic':42 'kde':1,17 'kmail':45 'mud':27 'one':13 'pull':34 'recept':4 'request':35 'specif':14 'that':38 'think':11 'vertic':40 'wanted/submitted':33"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/5699628"
+editedAt: null
+createdAt: DateTimeImmutable @1701364533 {#4466
date: 2023-11-30 18:15:33.0 +01:00
}
} |
|
Show voter details
|
28 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4468
+user: Proxies\__CG__\App\Entity\User {#4460 …}
+entry: App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "Add-YOUR-city-to-the-Gnome-weather-app-Solved"
+title: "Add YOUR city to the Gnome weather app [Solved]"
+url: null
+body: """
cross-posted from: [!linux@lemmy.eco.br](/c/linux@lemmy.eco.br) | [lemmy.eco.br/post/1969330](https://lemmy.eco.br/post/1969330)\n
\n
I’ve been using Gnome for about 10 months and it always bothered me that my city (with more than a million inhabitants) was not found in the [Weather](https://apps.gnome.org/Weather/) program.\n
\n
I looked for solutions several times and never found them, until I found [this thread](https://gitlab.gnome.org/GNOME/gnome-weather/-/issues/247#note_1819885) yesterday. That the user [Julian](https://gitlab.gnome.org/julianfairfax) made a [script that solves this problem](https://gitlab.com/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads). you just have to run and enter the name of your city and then confirm.\n
\n
script`bash #!/bin/bash if [[ ! -z “$(which gnome-weather)” ]]; then \tsystem=1 fi if [[ ! -z “$(flatpak list | grep org.gnome.Weather)” ]]; then \tflatpak=1 fi if [[ ! $system == 1 && ! $flatpak == 1 ]]; then \techo “GNOME Weather isn’t installed” \texit fi if [[ ! -z “$*” ]]; then \tquery=“$*” else \tread -p “Type the name of the location you want to add to GNOME Weather: " query fi query=”$(echo $query | sed ‘s/ /+/g’)" request=$(curl “https://nominatim.openstreetmap.org/search?q=$query&format=json&limit=1” -s) if [[ $request == “[]” ]]; then \techo “No locations found, consider removing some search terms” \texit fi read -p “If this is not the location you wanted, consider adding search terms Are you sure you want to add $(echo $request | sed 's/.*“display_name”:”//’ | sed ‘s/".*//’)? [y/n] : " answer if [[ ! $answer == “y” ]]; then \techo “Not adding location” \texit else \techo “Adding location” fi id=$(echo $request | sed ‘s/.*“place_id”://’ | sed ‘s/,.*//’) name=$(curl “https://nominatim.openstreetmap.org/details.php?place_id=$id&format=json” -s | sed ‘s/.*“name”: "//’ | sed ‘s/".*//’) lat=$(echo $request | sed ‘s/.*“lat”:"//’ | sed ‘s/".*//’) lat=$(echo “$lat / (180 / 3.141592654)” | bc -l) lon=$(echo $request | sed ‘s/.*“lon”:"//’ | sed ‘s/".*//’) lon=$(echo “$lon / (180 / 3.141592654)” | bc -l) if [[ $system == 1 ]]; then \tlocations=$(gsettings get org.gnome.Weather locations) fi if [[ $flatpak == 1 ]]; then \tlocations=$(flatpak run --command=gsettings org.gnome.Weather get org.gnome.Weather locations) fi location=“<(uint32 2, <(‘$name’, ‘’, false, [($lat, $lon)], @a(dd) [])>)>” if [[ $system == 1 ]]; then \tif [[ ! $(gsettings get org.gnome.Weather locations) == “@av []” ]]; then \t\tgsettings set org.gnome.Weather locations “$(echo $locations | sed “s|>]|>, $location]|”)” \telse \t\tgsettings set org.gnome.Weather locations “[$location]” \tfi fi if [[ $flatpak == 1 ]]; then \tif [[ ! $(flatpak run --command=gsettings org.gnome.Weather get org.gnome.Weather locations) == “@av []” ]]; then \t\tflatpak run --command=gsettings org.gnome.Weather set org.gnome.Weather locations “$(echo $locations | sed “s|>]|>, $location]|”)” \telse \t\tflatpak run --command=gsettings org.gnome.Weather set org.gnome.Weather locations “[$location]” \tfi fi `\n
\n
---\n
\n
It occurred to me that some people might not know how to run scripts, so here’s a brief tutorial:\n
\n
How to run scripts in Linux1. Save the script to a text file and save with the `.sh` extension 2. Provide execute permission: `chmod u+x script.sh`3. run the script by double clicking or `./script.sh`
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 8
+favouriteCount: 52
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1701364533 {#2418
date: 2023-11-30 18:15:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: [
"@a"
"@av"
]
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 18263
-titleTs: "'add':1 'app':8 'citi':3 'gnome':6 'solv':9 'weather':7"
-bodyTs: "'/bin/bash':97 '/c/linux':6 '/details.php?place_id=$id&format=json':238 '/g':159 '/gnome/gnome-weather/-/issues/247#note_1819885)':61 '/julianfairfax)':69 '/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads).':79 '/post/1969330](https://lemmy.eco.br/post/1969330)':10 '/script.sh':431 '/search?q=$query&format=json&limit=1':164 '/weather/)':42 '1':106,116,120,122,277,287,310,338 '10':18 '180':256,271 '2':301,415 '3':423 '3.141592654':257,272 'ad':191,217,222 'add':148,200 'alway':22 'answer':210,212 'apps.gnome.org':41 'apps.gnome.org/weather/)':40 'av':317,349 'bash':96 'bc':258,273 'bother':23 'brief':394 'chmod':419 'citi':27,91 'click':429 'command':292,343,353,367 'confirm':94 'consid':173,190 'cross':2 'cross-post':1 'curl':161,235 'dd':307 'display':205 'doubl':428 'echo':124,155,169,201,215,221,226,246,254,261,269,323,359 'els':136,220,328,364 'enter':86 'execut':417 'exit':130,178,219 'extens':414 'fals':303 'fi':107,117,131,153,179,224,284,298,334,335,374,375 'file':408 'flatpak':110,115,121,286,290,337,341,351,365 'found':36,52,56,172 'get':281,295,314,346 'gitlab.com':78 'gitlab.com/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads).':77 'gitlab.gnome.org':60,68 'gitlab.gnome.org/gnome/gnome-weather/-/issues/247#note_1819885)':59 'gitlab.gnome.org/julianfairfax)':67 'gnome':15,102,125,150 'gnome-weath':101 'grep':112 'gset':280,293,313,319,329,344,354,368 'id':225,231 'inhabit':33 'instal':129 'isn':127 'julian':66 'know':385 'l':259,274 'lat':245,250,253,255,304 'lemmy.eco.br':7,9 'lemmy.eco.br/post/1969330](https://lemmy.eco.br/post/1969330)':8 'linux1':401 'linux@lemmy.eco.br':5 'list':111 'locat':144,171,187,218,223,279,283,289,297,299,316,322,324,327,332,333,348,358,360,363,372,373 'lon':260,265,268,270,305 'look':45 'made':70 'might':383 'million':32 'month':19 'name':88,141,206,234,242,302 'never':51 'nominatim.openstreetmap.org':163,237 'nominatim.openstreetmap.org/details.php?place_id=$id&format=json':236 'nominatim.openstreetmap.org/search?q=$query&format=json&limit=1':162 'occur':377 'org.gnome.weather':113,282,294,296,315,321,331,345,347,355,357,369,371 'p':138,181 'peopl':382 'permiss':418 'place':230 'post':3 'problem':76 'program':43 'provid':416 'queri':135,152,154,156 'read':137,180 'remov':174 'request':160,167,202,227,247,262 'run':84,291,342,352,366,388,398,424 'save':402,410 'script':72,95,389,399,404,426 'script.sh':422 'search':176,192 'sed':157,203,207,228,232,240,243,248,251,263,266,325,361 'set':320,330,356,370 'sever':48 'sh':413 'solut':47 'solv':74 'sure':196 'system':105,119,276,309 'term':177,193 'text':407 'thread':58 'time':49 'tutori':395 'type':139 'u':420 'uint32':300 'use':14 'user':65 've':12 'want':146,189,198 'weather':39,103,126,151 'x':421 'y':213 'y/n':209 'yesterday':62 'z':99,109,133"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1701367347
+visibility: "visible "
+apId: "https://lemmy.eco.br/post/1973179"
+editedAt: DateTimeImmutable @1702191218 {#1858
date: 2023-12-10 07:53:38.0 +01:00
}
+createdAt: DateTimeImmutable @1701280947 {#2388
date: 2023-11-29 19:02:27.0 +01:00
}
}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4446
+user: App\Entity\User {#4102 …}
+entry: App\Entity\Entry {#2413}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4424 …}
+root: App\Entity\EntryComment {#4119
+user: App\Entity\User {#4102 …}
+entry: App\Entity\Entry {#2413}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: null
+root: null
+body: "This is amazing! I’m not using Gnome, but moments like this are the reason why I love Linux so much."
+lang: "en"
+isAdult: false
+favouriteCount: 11
+score: 0
+lastActive: DateTime @1702481761 {#4120
date: 2023-12-13 16:36:01.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@a"
"@av"
"@ademir@lemmy.eco.br"
]
+children: Doctrine\ORM\PersistentCollection {#4117 …}
+nested: Doctrine\ORM\PersistentCollection {#4115 …}
+votes: Doctrine\ORM\PersistentCollection {#4113 …}
+reports: Doctrine\ORM\PersistentCollection {#4110 …}
+favourites: Doctrine\ORM\PersistentCollection {#4106 …}
+notifications: Doctrine\ORM\PersistentCollection {#4104 …}
-id: 178454
-bodyTs: "'amaz':3 'gnome':8 'like':11 'linux':19 'love':18 'm':5 'moment':10 'much':21 'reason':15 'use':7"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://iusearchlinux.fyi/comment/3833698"
+editedAt: DateTimeImmutable @1702222871 {#4125
date: 2023-12-10 16:41:11.0 +01:00
}
+createdAt: DateTimeImmutable @1701294191 {#4123
date: 2023-11-29 22:43:11.0 +01:00
}
}
+body: "My happiness is ruined :("
+lang: "en"
+isAdult: false
+favouriteCount: 3
+score: 0
+lastActive: DateTime @1701347225 {#4441
date: 2023-11-30 13:27:05.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@a"
"@av"
"@ademir@lemmy.eco.br"
"@stepanzak@iusearchlinux.fyi"
"@turbowafflz@lemmy.world"
"@DangerousInternet@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4438 …}
+nested: Doctrine\ORM\PersistentCollection {#4435 …}
+votes: Doctrine\ORM\PersistentCollection {#4433 …}
+reports: Doctrine\ORM\PersistentCollection {#4447 …}
+favourites: Doctrine\ORM\PersistentCollection {#4449 …}
+notifications: Doctrine\ORM\PersistentCollection {#4451 …}
-id: 180602
-bodyTs: "'happi':2 'ruin':4"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://iusearchlinux.fyi/comment/3845175"
+editedAt: null
+createdAt: DateTimeImmutable @1701347225 {#4444
date: 2023-11-30 13:27:05.0 +01:00
}
}
+root: App\Entity\EntryComment {#4119}
+body: """
KDE is very receptive to community help! I can only think of one specific example in KDE history where a developer dragged their feet in the mud about a change the community wanted/submitted pull requests for, and thats the vertical HTML indicator bar in kmail.\n
\n
Gnome on the other hand…
"""
+lang: "en"
+isAdult: false
+favouriteCount: 2
+score: 0
+lastActive: DateTime @1701364533 {#4463
date: 2023-11-30 18:15:33.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@a"
"@av"
"@ademir@lemmy.eco.br"
"@stepanzak@iusearchlinux.fyi"
"@turbowafflz@lemmy.world"
"@DangerousInternet@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4458 …}
+nested: Doctrine\ORM\PersistentCollection {#4456 …}
+votes: Doctrine\ORM\PersistentCollection {#4454 …}
+reports: Doctrine\ORM\PersistentCollection {#4470 …}
+favourites: Doctrine\ORM\PersistentCollection {#4472 …}
+notifications: Doctrine\ORM\PersistentCollection {#4474 …}
-id: 183887
-bodyTs: "'bar':43 'chang':30 'communiti':6,32 'develop':21 'drag':22 'exampl':15 'feet':24 'gnome':46 'hand':50 'help':7 'histori':18 'html':41 'indic':42 'kde':1,17 'kmail':45 'mud':27 'one':13 'pull':34 'recept':4 'request':35 'specif':14 'that':38 'think':11 'vertic':40 'wanted/submitted':33"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.world/comment/5699628"
+editedAt: null
+createdAt: DateTimeImmutable @1701364533 {#4466
date: 2023-11-30 18:15:33.0 +01:00
}
} |
|
Show voter details
|
29 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
30 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4373
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+entry: App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "Add-YOUR-city-to-the-Gnome-weather-app-Solved"
+title: "Add YOUR city to the Gnome weather app [Solved]"
+url: null
+body: """
cross-posted from: [!linux@lemmy.eco.br](/c/linux@lemmy.eco.br) | [lemmy.eco.br/post/1969330](https://lemmy.eco.br/post/1969330)\n
\n
I’ve been using Gnome for about 10 months and it always bothered me that my city (with more than a million inhabitants) was not found in the [Weather](https://apps.gnome.org/Weather/) program.\n
\n
I looked for solutions several times and never found them, until I found [this thread](https://gitlab.gnome.org/GNOME/gnome-weather/-/issues/247#note_1819885) yesterday. That the user [Julian](https://gitlab.gnome.org/julianfairfax) made a [script that solves this problem](https://gitlab.com/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads). you just have to run and enter the name of your city and then confirm.\n
\n
script`bash #!/bin/bash if [[ ! -z “$(which gnome-weather)” ]]; then \tsystem=1 fi if [[ ! -z “$(flatpak list | grep org.gnome.Weather)” ]]; then \tflatpak=1 fi if [[ ! $system == 1 && ! $flatpak == 1 ]]; then \techo “GNOME Weather isn’t installed” \texit fi if [[ ! -z “$*” ]]; then \tquery=“$*” else \tread -p “Type the name of the location you want to add to GNOME Weather: " query fi query=”$(echo $query | sed ‘s/ /+/g’)" request=$(curl “https://nominatim.openstreetmap.org/search?q=$query&format=json&limit=1” -s) if [[ $request == “[]” ]]; then \techo “No locations found, consider removing some search terms” \texit fi read -p “If this is not the location you wanted, consider adding search terms Are you sure you want to add $(echo $request | sed 's/.*“display_name”:”//’ | sed ‘s/".*//’)? [y/n] : " answer if [[ ! $answer == “y” ]]; then \techo “Not adding location” \texit else \techo “Adding location” fi id=$(echo $request | sed ‘s/.*“place_id”://’ | sed ‘s/,.*//’) name=$(curl “https://nominatim.openstreetmap.org/details.php?place_id=$id&format=json” -s | sed ‘s/.*“name”: "//’ | sed ‘s/".*//’) lat=$(echo $request | sed ‘s/.*“lat”:"//’ | sed ‘s/".*//’) lat=$(echo “$lat / (180 / 3.141592654)” | bc -l) lon=$(echo $request | sed ‘s/.*“lon”:"//’ | sed ‘s/".*//’) lon=$(echo “$lon / (180 / 3.141592654)” | bc -l) if [[ $system == 1 ]]; then \tlocations=$(gsettings get org.gnome.Weather locations) fi if [[ $flatpak == 1 ]]; then \tlocations=$(flatpak run --command=gsettings org.gnome.Weather get org.gnome.Weather locations) fi location=“<(uint32 2, <(‘$name’, ‘’, false, [($lat, $lon)], @a(dd) [])>)>” if [[ $system == 1 ]]; then \tif [[ ! $(gsettings get org.gnome.Weather locations) == “@av []” ]]; then \t\tgsettings set org.gnome.Weather locations “$(echo $locations | sed “s|>]|>, $location]|”)” \telse \t\tgsettings set org.gnome.Weather locations “[$location]” \tfi fi if [[ $flatpak == 1 ]]; then \tif [[ ! $(flatpak run --command=gsettings org.gnome.Weather get org.gnome.Weather locations) == “@av []” ]]; then \t\tflatpak run --command=gsettings org.gnome.Weather set org.gnome.Weather locations “$(echo $locations | sed “s|>]|>, $location]|”)” \telse \t\tflatpak run --command=gsettings org.gnome.Weather set org.gnome.Weather locations “[$location]” \tfi fi `\n
\n
---\n
\n
It occurred to me that some people might not know how to run scripts, so here’s a brief tutorial:\n
\n
How to run scripts in Linux1. Save the script to a text file and save with the `.sh` extension 2. Provide execute permission: `chmod u+x script.sh`3. run the script by double clicking or `./script.sh`
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 8
+favouriteCount: 52
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1701364533 {#2418
date: 2023-11-30 18:15:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: [
"@a"
"@av"
]
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 18263
-titleTs: "'add':1 'app':8 'citi':3 'gnome':6 'solv':9 'weather':7"
-bodyTs: "'/bin/bash':97 '/c/linux':6 '/details.php?place_id=$id&format=json':238 '/g':159 '/gnome/gnome-weather/-/issues/247#note_1819885)':61 '/julianfairfax)':69 '/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads).':79 '/post/1969330](https://lemmy.eco.br/post/1969330)':10 '/script.sh':431 '/search?q=$query&format=json&limit=1':164 '/weather/)':42 '1':106,116,120,122,277,287,310,338 '10':18 '180':256,271 '2':301,415 '3':423 '3.141592654':257,272 'ad':191,217,222 'add':148,200 'alway':22 'answer':210,212 'apps.gnome.org':41 'apps.gnome.org/weather/)':40 'av':317,349 'bash':96 'bc':258,273 'bother':23 'brief':394 'chmod':419 'citi':27,91 'click':429 'command':292,343,353,367 'confirm':94 'consid':173,190 'cross':2 'cross-post':1 'curl':161,235 'dd':307 'display':205 'doubl':428 'echo':124,155,169,201,215,221,226,246,254,261,269,323,359 'els':136,220,328,364 'enter':86 'execut':417 'exit':130,178,219 'extens':414 'fals':303 'fi':107,117,131,153,179,224,284,298,334,335,374,375 'file':408 'flatpak':110,115,121,286,290,337,341,351,365 'found':36,52,56,172 'get':281,295,314,346 'gitlab.com':78 'gitlab.com/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads).':77 'gitlab.gnome.org':60,68 'gitlab.gnome.org/gnome/gnome-weather/-/issues/247#note_1819885)':59 'gitlab.gnome.org/julianfairfax)':67 'gnome':15,102,125,150 'gnome-weath':101 'grep':112 'gset':280,293,313,319,329,344,354,368 'id':225,231 'inhabit':33 'instal':129 'isn':127 'julian':66 'know':385 'l':259,274 'lat':245,250,253,255,304 'lemmy.eco.br':7,9 'lemmy.eco.br/post/1969330](https://lemmy.eco.br/post/1969330)':8 'linux1':401 'linux@lemmy.eco.br':5 'list':111 'locat':144,171,187,218,223,279,283,289,297,299,316,322,324,327,332,333,348,358,360,363,372,373 'lon':260,265,268,270,305 'look':45 'made':70 'might':383 'million':32 'month':19 'name':88,141,206,234,242,302 'never':51 'nominatim.openstreetmap.org':163,237 'nominatim.openstreetmap.org/details.php?place_id=$id&format=json':236 'nominatim.openstreetmap.org/search?q=$query&format=json&limit=1':162 'occur':377 'org.gnome.weather':113,282,294,296,315,321,331,345,347,355,357,369,371 'p':138,181 'peopl':382 'permiss':418 'place':230 'post':3 'problem':76 'program':43 'provid':416 'queri':135,152,154,156 'read':137,180 'remov':174 'request':160,167,202,227,247,262 'run':84,291,342,352,366,388,398,424 'save':402,410 'script':72,95,389,399,404,426 'script.sh':422 'search':176,192 'sed':157,203,207,228,232,240,243,248,251,263,266,325,361 'set':320,330,356,370 'sever':48 'sh':413 'solut':47 'solv':74 'sure':196 'system':105,119,276,309 'term':177,193 'text':407 'thread':58 'time':49 'tutori':395 'type':139 'u':420 'uint32':300 'use':14 'user':65 've':12 'want':146,189,198 'weather':39,103,126,151 'x':421 'y':213 'y/n':209 'yesterday':62 'z':99,109,133"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1701367347
+visibility: "visible "
+apId: "https://lemmy.eco.br/post/1973179"
+editedAt: DateTimeImmutable @1702191218 {#1858
date: 2023-12-10 07:53:38.0 +01:00
}
+createdAt: DateTimeImmutable @1701280947 {#2388
date: 2023-11-29 19:02:27.0 +01:00
}
}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4200 …}
+root: App\Entity\EntryComment {#4200 …}
+body: """
For me it does, the creator said he adjusted it, maybe you tried when it was still wrong?\n
\n
I have checked my temp. Against the source (norway service) and it was right.\n
\n
I am on my phone now but i can print the page later.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1701304657 {#4371
date: 2023-11-30 01:37:37.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@a"
"@av"
"@ademir@lemmy.eco.br"
"@DangerousInternet@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4374 …}
+nested: Doctrine\ORM\PersistentCollection {#4376 …}
+votes: Doctrine\ORM\PersistentCollection {#4378 …}
+reports: Doctrine\ORM\PersistentCollection {#4380 …}
+favourites: Doctrine\ORM\PersistentCollection {#4382 …}
+notifications: Doctrine\ORM\PersistentCollection {#4384 …}
-id: 179117
-bodyTs: "'adjust':9 'check':21 'creator':6 'later':45 'mayb':11 'norway':27 'page':44 'phone':37 'print':42 'right':32 'said':7 'servic':28 'sourc':26 'still':17 'temp':23 'tri':13 'wrong':18"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.eco.br/comment/3909679"
+editedAt: null
+createdAt: DateTimeImmutable @1701304657 {#4372
date: 2023-11-30 01:37:37.0 +01:00
}
} |
|
Show voter details
|
31 |
DENIED
|
edit
|
App\Entity\EntryComment {#4373
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+entry: App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "Add-YOUR-city-to-the-Gnome-weather-app-Solved"
+title: "Add YOUR city to the Gnome weather app [Solved]"
+url: null
+body: """
cross-posted from: [!linux@lemmy.eco.br](/c/linux@lemmy.eco.br) | [lemmy.eco.br/post/1969330](https://lemmy.eco.br/post/1969330)\n
\n
I’ve been using Gnome for about 10 months and it always bothered me that my city (with more than a million inhabitants) was not found in the [Weather](https://apps.gnome.org/Weather/) program.\n
\n
I looked for solutions several times and never found them, until I found [this thread](https://gitlab.gnome.org/GNOME/gnome-weather/-/issues/247#note_1819885) yesterday. That the user [Julian](https://gitlab.gnome.org/julianfairfax) made a [script that solves this problem](https://gitlab.com/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads). you just have to run and enter the name of your city and then confirm.\n
\n
script`bash #!/bin/bash if [[ ! -z “$(which gnome-weather)” ]]; then \tsystem=1 fi if [[ ! -z “$(flatpak list | grep org.gnome.Weather)” ]]; then \tflatpak=1 fi if [[ ! $system == 1 && ! $flatpak == 1 ]]; then \techo “GNOME Weather isn’t installed” \texit fi if [[ ! -z “$*” ]]; then \tquery=“$*” else \tread -p “Type the name of the location you want to add to GNOME Weather: " query fi query=”$(echo $query | sed ‘s/ /+/g’)" request=$(curl “https://nominatim.openstreetmap.org/search?q=$query&format=json&limit=1” -s) if [[ $request == “[]” ]]; then \techo “No locations found, consider removing some search terms” \texit fi read -p “If this is not the location you wanted, consider adding search terms Are you sure you want to add $(echo $request | sed 's/.*“display_name”:”//’ | sed ‘s/".*//’)? [y/n] : " answer if [[ ! $answer == “y” ]]; then \techo “Not adding location” \texit else \techo “Adding location” fi id=$(echo $request | sed ‘s/.*“place_id”://’ | sed ‘s/,.*//’) name=$(curl “https://nominatim.openstreetmap.org/details.php?place_id=$id&format=json” -s | sed ‘s/.*“name”: "//’ | sed ‘s/".*//’) lat=$(echo $request | sed ‘s/.*“lat”:"//’ | sed ‘s/".*//’) lat=$(echo “$lat / (180 / 3.141592654)” | bc -l) lon=$(echo $request | sed ‘s/.*“lon”:"//’ | sed ‘s/".*//’) lon=$(echo “$lon / (180 / 3.141592654)” | bc -l) if [[ $system == 1 ]]; then \tlocations=$(gsettings get org.gnome.Weather locations) fi if [[ $flatpak == 1 ]]; then \tlocations=$(flatpak run --command=gsettings org.gnome.Weather get org.gnome.Weather locations) fi location=“<(uint32 2, <(‘$name’, ‘’, false, [($lat, $lon)], @a(dd) [])>)>” if [[ $system == 1 ]]; then \tif [[ ! $(gsettings get org.gnome.Weather locations) == “@av []” ]]; then \t\tgsettings set org.gnome.Weather locations “$(echo $locations | sed “s|>]|>, $location]|”)” \telse \t\tgsettings set org.gnome.Weather locations “[$location]” \tfi fi if [[ $flatpak == 1 ]]; then \tif [[ ! $(flatpak run --command=gsettings org.gnome.Weather get org.gnome.Weather locations) == “@av []” ]]; then \t\tflatpak run --command=gsettings org.gnome.Weather set org.gnome.Weather locations “$(echo $locations | sed “s|>]|>, $location]|”)” \telse \t\tflatpak run --command=gsettings org.gnome.Weather set org.gnome.Weather locations “[$location]” \tfi fi `\n
\n
---\n
\n
It occurred to me that some people might not know how to run scripts, so here’s a brief tutorial:\n
\n
How to run scripts in Linux1. Save the script to a text file and save with the `.sh` extension 2. Provide execute permission: `chmod u+x script.sh`3. run the script by double clicking or `./script.sh`
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 8
+favouriteCount: 52
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1701364533 {#2418
date: 2023-11-30 18:15:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: [
"@a"
"@av"
]
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 18263
-titleTs: "'add':1 'app':8 'citi':3 'gnome':6 'solv':9 'weather':7"
-bodyTs: "'/bin/bash':97 '/c/linux':6 '/details.php?place_id=$id&format=json':238 '/g':159 '/gnome/gnome-weather/-/issues/247#note_1819885)':61 '/julianfairfax)':69 '/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads).':79 '/post/1969330](https://lemmy.eco.br/post/1969330)':10 '/script.sh':431 '/search?q=$query&format=json&limit=1':164 '/weather/)':42 '1':106,116,120,122,277,287,310,338 '10':18 '180':256,271 '2':301,415 '3':423 '3.141592654':257,272 'ad':191,217,222 'add':148,200 'alway':22 'answer':210,212 'apps.gnome.org':41 'apps.gnome.org/weather/)':40 'av':317,349 'bash':96 'bc':258,273 'bother':23 'brief':394 'chmod':419 'citi':27,91 'click':429 'command':292,343,353,367 'confirm':94 'consid':173,190 'cross':2 'cross-post':1 'curl':161,235 'dd':307 'display':205 'doubl':428 'echo':124,155,169,201,215,221,226,246,254,261,269,323,359 'els':136,220,328,364 'enter':86 'execut':417 'exit':130,178,219 'extens':414 'fals':303 'fi':107,117,131,153,179,224,284,298,334,335,374,375 'file':408 'flatpak':110,115,121,286,290,337,341,351,365 'found':36,52,56,172 'get':281,295,314,346 'gitlab.com':78 'gitlab.com/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads).':77 'gitlab.gnome.org':60,68 'gitlab.gnome.org/gnome/gnome-weather/-/issues/247#note_1819885)':59 'gitlab.gnome.org/julianfairfax)':67 'gnome':15,102,125,150 'gnome-weath':101 'grep':112 'gset':280,293,313,319,329,344,354,368 'id':225,231 'inhabit':33 'instal':129 'isn':127 'julian':66 'know':385 'l':259,274 'lat':245,250,253,255,304 'lemmy.eco.br':7,9 'lemmy.eco.br/post/1969330](https://lemmy.eco.br/post/1969330)':8 'linux1':401 'linux@lemmy.eco.br':5 'list':111 'locat':144,171,187,218,223,279,283,289,297,299,316,322,324,327,332,333,348,358,360,363,372,373 'lon':260,265,268,270,305 'look':45 'made':70 'might':383 'million':32 'month':19 'name':88,141,206,234,242,302 'never':51 'nominatim.openstreetmap.org':163,237 'nominatim.openstreetmap.org/details.php?place_id=$id&format=json':236 'nominatim.openstreetmap.org/search?q=$query&format=json&limit=1':162 'occur':377 'org.gnome.weather':113,282,294,296,315,321,331,345,347,355,357,369,371 'p':138,181 'peopl':382 'permiss':418 'place':230 'post':3 'problem':76 'program':43 'provid':416 'queri':135,152,154,156 'read':137,180 'remov':174 'request':160,167,202,227,247,262 'run':84,291,342,352,366,388,398,424 'save':402,410 'script':72,95,389,399,404,426 'script.sh':422 'search':176,192 'sed':157,203,207,228,232,240,243,248,251,263,266,325,361 'set':320,330,356,370 'sever':48 'sh':413 'solut':47 'solv':74 'sure':196 'system':105,119,276,309 'term':177,193 'text':407 'thread':58 'time':49 'tutori':395 'type':139 'u':420 'uint32':300 'use':14 'user':65 've':12 'want':146,189,198 'weather':39,103,126,151 'x':421 'y':213 'y/n':209 'yesterday':62 'z':99,109,133"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1701367347
+visibility: "visible "
+apId: "https://lemmy.eco.br/post/1973179"
+editedAt: DateTimeImmutable @1702191218 {#1858
date: 2023-12-10 07:53:38.0 +01:00
}
+createdAt: DateTimeImmutable @1701280947 {#2388
date: 2023-11-29 19:02:27.0 +01:00
}
}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4200 …}
+root: App\Entity\EntryComment {#4200 …}
+body: """
For me it does, the creator said he adjusted it, maybe you tried when it was still wrong?\n
\n
I have checked my temp. Against the source (norway service) and it was right.\n
\n
I am on my phone now but i can print the page later.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1701304657 {#4371
date: 2023-11-30 01:37:37.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@a"
"@av"
"@ademir@lemmy.eco.br"
"@DangerousInternet@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4374 …}
+nested: Doctrine\ORM\PersistentCollection {#4376 …}
+votes: Doctrine\ORM\PersistentCollection {#4378 …}
+reports: Doctrine\ORM\PersistentCollection {#4380 …}
+favourites: Doctrine\ORM\PersistentCollection {#4382 …}
+notifications: Doctrine\ORM\PersistentCollection {#4384 …}
-id: 179117
-bodyTs: "'adjust':9 'check':21 'creator':6 'later':45 'mayb':11 'norway':27 'page':44 'phone':37 'print':42 'right':32 'said':7 'servic':28 'sourc':26 'still':17 'temp':23 'tri':13 'wrong':18"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.eco.br/comment/3909679"
+editedAt: null
+createdAt: DateTimeImmutable @1701304657 {#4372
date: 2023-11-30 01:37:37.0 +01:00
}
} |
|
Show voter details
|
32 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4373
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+entry: App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "Add-YOUR-city-to-the-Gnome-weather-app-Solved"
+title: "Add YOUR city to the Gnome weather app [Solved]"
+url: null
+body: """
cross-posted from: [!linux@lemmy.eco.br](/c/linux@lemmy.eco.br) | [lemmy.eco.br/post/1969330](https://lemmy.eco.br/post/1969330)\n
\n
I’ve been using Gnome for about 10 months and it always bothered me that my city (with more than a million inhabitants) was not found in the [Weather](https://apps.gnome.org/Weather/) program.\n
\n
I looked for solutions several times and never found them, until I found [this thread](https://gitlab.gnome.org/GNOME/gnome-weather/-/issues/247#note_1819885) yesterday. That the user [Julian](https://gitlab.gnome.org/julianfairfax) made a [script that solves this problem](https://gitlab.com/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads). you just have to run and enter the name of your city and then confirm.\n
\n
script`bash #!/bin/bash if [[ ! -z “$(which gnome-weather)” ]]; then \tsystem=1 fi if [[ ! -z “$(flatpak list | grep org.gnome.Weather)” ]]; then \tflatpak=1 fi if [[ ! $system == 1 && ! $flatpak == 1 ]]; then \techo “GNOME Weather isn’t installed” \texit fi if [[ ! -z “$*” ]]; then \tquery=“$*” else \tread -p “Type the name of the location you want to add to GNOME Weather: " query fi query=”$(echo $query | sed ‘s/ /+/g’)" request=$(curl “https://nominatim.openstreetmap.org/search?q=$query&format=json&limit=1” -s) if [[ $request == “[]” ]]; then \techo “No locations found, consider removing some search terms” \texit fi read -p “If this is not the location you wanted, consider adding search terms Are you sure you want to add $(echo $request | sed 's/.*“display_name”:”//’ | sed ‘s/".*//’)? [y/n] : " answer if [[ ! $answer == “y” ]]; then \techo “Not adding location” \texit else \techo “Adding location” fi id=$(echo $request | sed ‘s/.*“place_id”://’ | sed ‘s/,.*//’) name=$(curl “https://nominatim.openstreetmap.org/details.php?place_id=$id&format=json” -s | sed ‘s/.*“name”: "//’ | sed ‘s/".*//’) lat=$(echo $request | sed ‘s/.*“lat”:"//’ | sed ‘s/".*//’) lat=$(echo “$lat / (180 / 3.141592654)” | bc -l) lon=$(echo $request | sed ‘s/.*“lon”:"//’ | sed ‘s/".*//’) lon=$(echo “$lon / (180 / 3.141592654)” | bc -l) if [[ $system == 1 ]]; then \tlocations=$(gsettings get org.gnome.Weather locations) fi if [[ $flatpak == 1 ]]; then \tlocations=$(flatpak run --command=gsettings org.gnome.Weather get org.gnome.Weather locations) fi location=“<(uint32 2, <(‘$name’, ‘’, false, [($lat, $lon)], @a(dd) [])>)>” if [[ $system == 1 ]]; then \tif [[ ! $(gsettings get org.gnome.Weather locations) == “@av []” ]]; then \t\tgsettings set org.gnome.Weather locations “$(echo $locations | sed “s|>]|>, $location]|”)” \telse \t\tgsettings set org.gnome.Weather locations “[$location]” \tfi fi if [[ $flatpak == 1 ]]; then \tif [[ ! $(flatpak run --command=gsettings org.gnome.Weather get org.gnome.Weather locations) == “@av []” ]]; then \t\tflatpak run --command=gsettings org.gnome.Weather set org.gnome.Weather locations “$(echo $locations | sed “s|>]|>, $location]|”)” \telse \t\tflatpak run --command=gsettings org.gnome.Weather set org.gnome.Weather locations “[$location]” \tfi fi `\n
\n
---\n
\n
It occurred to me that some people might not know how to run scripts, so here’s a brief tutorial:\n
\n
How to run scripts in Linux1. Save the script to a text file and save with the `.sh` extension 2. Provide execute permission: `chmod u+x script.sh`3. run the script by double clicking or `./script.sh`
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 8
+favouriteCount: 52
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1701364533 {#2418
date: 2023-11-30 18:15:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: [
"@a"
"@av"
]
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 18263
-titleTs: "'add':1 'app':8 'citi':3 'gnome':6 'solv':9 'weather':7"
-bodyTs: "'/bin/bash':97 '/c/linux':6 '/details.php?place_id=$id&format=json':238 '/g':159 '/gnome/gnome-weather/-/issues/247#note_1819885)':61 '/julianfairfax)':69 '/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads).':79 '/post/1969330](https://lemmy.eco.br/post/1969330)':10 '/script.sh':431 '/search?q=$query&format=json&limit=1':164 '/weather/)':42 '1':106,116,120,122,277,287,310,338 '10':18 '180':256,271 '2':301,415 '3':423 '3.141592654':257,272 'ad':191,217,222 'add':148,200 'alway':22 'answer':210,212 'apps.gnome.org':41 'apps.gnome.org/weather/)':40 'av':317,349 'bash':96 'bc':258,273 'bother':23 'brief':394 'chmod':419 'citi':27,91 'click':429 'command':292,343,353,367 'confirm':94 'consid':173,190 'cross':2 'cross-post':1 'curl':161,235 'dd':307 'display':205 'doubl':428 'echo':124,155,169,201,215,221,226,246,254,261,269,323,359 'els':136,220,328,364 'enter':86 'execut':417 'exit':130,178,219 'extens':414 'fals':303 'fi':107,117,131,153,179,224,284,298,334,335,374,375 'file':408 'flatpak':110,115,121,286,290,337,341,351,365 'found':36,52,56,172 'get':281,295,314,346 'gitlab.com':78 'gitlab.com/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads).':77 'gitlab.gnome.org':60,68 'gitlab.gnome.org/gnome/gnome-weather/-/issues/247#note_1819885)':59 'gitlab.gnome.org/julianfairfax)':67 'gnome':15,102,125,150 'gnome-weath':101 'grep':112 'gset':280,293,313,319,329,344,354,368 'id':225,231 'inhabit':33 'instal':129 'isn':127 'julian':66 'know':385 'l':259,274 'lat':245,250,253,255,304 'lemmy.eco.br':7,9 'lemmy.eco.br/post/1969330](https://lemmy.eco.br/post/1969330)':8 'linux1':401 'linux@lemmy.eco.br':5 'list':111 'locat':144,171,187,218,223,279,283,289,297,299,316,322,324,327,332,333,348,358,360,363,372,373 'lon':260,265,268,270,305 'look':45 'made':70 'might':383 'million':32 'month':19 'name':88,141,206,234,242,302 'never':51 'nominatim.openstreetmap.org':163,237 'nominatim.openstreetmap.org/details.php?place_id=$id&format=json':236 'nominatim.openstreetmap.org/search?q=$query&format=json&limit=1':162 'occur':377 'org.gnome.weather':113,282,294,296,315,321,331,345,347,355,357,369,371 'p':138,181 'peopl':382 'permiss':418 'place':230 'post':3 'problem':76 'program':43 'provid':416 'queri':135,152,154,156 'read':137,180 'remov':174 'request':160,167,202,227,247,262 'run':84,291,342,352,366,388,398,424 'save':402,410 'script':72,95,389,399,404,426 'script.sh':422 'search':176,192 'sed':157,203,207,228,232,240,243,248,251,263,266,325,361 'set':320,330,356,370 'sever':48 'sh':413 'solut':47 'solv':74 'sure':196 'system':105,119,276,309 'term':177,193 'text':407 'thread':58 'time':49 'tutori':395 'type':139 'u':420 'uint32':300 'use':14 'user':65 've':12 'want':146,189,198 'weather':39,103,126,151 'x':421 'y':213 'y/n':209 'yesterday':62 'z':99,109,133"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1701367347
+visibility: "visible "
+apId: "https://lemmy.eco.br/post/1973179"
+editedAt: DateTimeImmutable @1702191218 {#1858
date: 2023-12-10 07:53:38.0 +01:00
}
+createdAt: DateTimeImmutable @1701280947 {#2388
date: 2023-11-29 19:02:27.0 +01:00
}
}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: App\Entity\EntryComment {#4200 …}
+root: App\Entity\EntryComment {#4200 …}
+body: """
For me it does, the creator said he adjusted it, maybe you tried when it was still wrong?\n
\n
I have checked my temp. Against the source (norway service) and it was right.\n
\n
I am on my phone now but i can print the page later.
"""
+lang: "en"
+isAdult: false
+favouriteCount: 4
+score: 0
+lastActive: DateTime @1701304657 {#4371
date: 2023-11-30 01:37:37.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@a"
"@av"
"@ademir@lemmy.eco.br"
"@DangerousInternet@lemmy.world"
]
+children: Doctrine\ORM\PersistentCollection {#4374 …}
+nested: Doctrine\ORM\PersistentCollection {#4376 …}
+votes: Doctrine\ORM\PersistentCollection {#4378 …}
+reports: Doctrine\ORM\PersistentCollection {#4380 …}
+favourites: Doctrine\ORM\PersistentCollection {#4382 …}
+notifications: Doctrine\ORM\PersistentCollection {#4384 …}
-id: 179117
-bodyTs: "'adjust':9 'check':21 'creator':6 'later':45 'mayb':11 'norway':27 'page':44 'phone':37 'print':42 'right':32 'said':7 'servic':28 'sourc':26 'still':17 'temp':23 'tri':13 'wrong':18"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://lemmy.eco.br/comment/3909679"
+editedAt: null
+createdAt: DateTimeImmutable @1701304657 {#4372
date: 2023-11-30 01:37:37.0 +01:00
}
} |
|
Show voter details
|
33 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
34 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4274
+user: App\Entity\User {#4287 …}
+entry: App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "Add-YOUR-city-to-the-Gnome-weather-app-Solved"
+title: "Add YOUR city to the Gnome weather app [Solved]"
+url: null
+body: """
cross-posted from: [!linux@lemmy.eco.br](/c/linux@lemmy.eco.br) | [lemmy.eco.br/post/1969330](https://lemmy.eco.br/post/1969330)\n
\n
I’ve been using Gnome for about 10 months and it always bothered me that my city (with more than a million inhabitants) was not found in the [Weather](https://apps.gnome.org/Weather/) program.\n
\n
I looked for solutions several times and never found them, until I found [this thread](https://gitlab.gnome.org/GNOME/gnome-weather/-/issues/247#note_1819885) yesterday. That the user [Julian](https://gitlab.gnome.org/julianfairfax) made a [script that solves this problem](https://gitlab.com/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads). you just have to run and enter the name of your city and then confirm.\n
\n
script`bash #!/bin/bash if [[ ! -z “$(which gnome-weather)” ]]; then \tsystem=1 fi if [[ ! -z “$(flatpak list | grep org.gnome.Weather)” ]]; then \tflatpak=1 fi if [[ ! $system == 1 && ! $flatpak == 1 ]]; then \techo “GNOME Weather isn’t installed” \texit fi if [[ ! -z “$*” ]]; then \tquery=“$*” else \tread -p “Type the name of the location you want to add to GNOME Weather: " query fi query=”$(echo $query | sed ‘s/ /+/g’)" request=$(curl “https://nominatim.openstreetmap.org/search?q=$query&format=json&limit=1” -s) if [[ $request == “[]” ]]; then \techo “No locations found, consider removing some search terms” \texit fi read -p “If this is not the location you wanted, consider adding search terms Are you sure you want to add $(echo $request | sed 's/.*“display_name”:”//’ | sed ‘s/".*//’)? [y/n] : " answer if [[ ! $answer == “y” ]]; then \techo “Not adding location” \texit else \techo “Adding location” fi id=$(echo $request | sed ‘s/.*“place_id”://’ | sed ‘s/,.*//’) name=$(curl “https://nominatim.openstreetmap.org/details.php?place_id=$id&format=json” -s | sed ‘s/.*“name”: "//’ | sed ‘s/".*//’) lat=$(echo $request | sed ‘s/.*“lat”:"//’ | sed ‘s/".*//’) lat=$(echo “$lat / (180 / 3.141592654)” | bc -l) lon=$(echo $request | sed ‘s/.*“lon”:"//’ | sed ‘s/".*//’) lon=$(echo “$lon / (180 / 3.141592654)” | bc -l) if [[ $system == 1 ]]; then \tlocations=$(gsettings get org.gnome.Weather locations) fi if [[ $flatpak == 1 ]]; then \tlocations=$(flatpak run --command=gsettings org.gnome.Weather get org.gnome.Weather locations) fi location=“<(uint32 2, <(‘$name’, ‘’, false, [($lat, $lon)], @a(dd) [])>)>” if [[ $system == 1 ]]; then \tif [[ ! $(gsettings get org.gnome.Weather locations) == “@av []” ]]; then \t\tgsettings set org.gnome.Weather locations “$(echo $locations | sed “s|>]|>, $location]|”)” \telse \t\tgsettings set org.gnome.Weather locations “[$location]” \tfi fi if [[ $flatpak == 1 ]]; then \tif [[ ! $(flatpak run --command=gsettings org.gnome.Weather get org.gnome.Weather locations) == “@av []” ]]; then \t\tflatpak run --command=gsettings org.gnome.Weather set org.gnome.Weather locations “$(echo $locations | sed “s|>]|>, $location]|”)” \telse \t\tflatpak run --command=gsettings org.gnome.Weather set org.gnome.Weather locations “[$location]” \tfi fi `\n
\n
---\n
\n
It occurred to me that some people might not know how to run scripts, so here’s a brief tutorial:\n
\n
How to run scripts in Linux1. Save the script to a text file and save with the `.sh` extension 2. Provide execute permission: `chmod u+x script.sh`3. run the script by double clicking or `./script.sh`
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 8
+favouriteCount: 52
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1701364533 {#2418
date: 2023-11-30 18:15:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: [
"@a"
"@av"
]
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 18263
-titleTs: "'add':1 'app':8 'citi':3 'gnome':6 'solv':9 'weather':7"
-bodyTs: "'/bin/bash':97 '/c/linux':6 '/details.php?place_id=$id&format=json':238 '/g':159 '/gnome/gnome-weather/-/issues/247#note_1819885)':61 '/julianfairfax)':69 '/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads).':79 '/post/1969330](https://lemmy.eco.br/post/1969330)':10 '/script.sh':431 '/search?q=$query&format=json&limit=1':164 '/weather/)':42 '1':106,116,120,122,277,287,310,338 '10':18 '180':256,271 '2':301,415 '3':423 '3.141592654':257,272 'ad':191,217,222 'add':148,200 'alway':22 'answer':210,212 'apps.gnome.org':41 'apps.gnome.org/weather/)':40 'av':317,349 'bash':96 'bc':258,273 'bother':23 'brief':394 'chmod':419 'citi':27,91 'click':429 'command':292,343,353,367 'confirm':94 'consid':173,190 'cross':2 'cross-post':1 'curl':161,235 'dd':307 'display':205 'doubl':428 'echo':124,155,169,201,215,221,226,246,254,261,269,323,359 'els':136,220,328,364 'enter':86 'execut':417 'exit':130,178,219 'extens':414 'fals':303 'fi':107,117,131,153,179,224,284,298,334,335,374,375 'file':408 'flatpak':110,115,121,286,290,337,341,351,365 'found':36,52,56,172 'get':281,295,314,346 'gitlab.com':78 'gitlab.com/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads).':77 'gitlab.gnome.org':60,68 'gitlab.gnome.org/gnome/gnome-weather/-/issues/247#note_1819885)':59 'gitlab.gnome.org/julianfairfax)':67 'gnome':15,102,125,150 'gnome-weath':101 'grep':112 'gset':280,293,313,319,329,344,354,368 'id':225,231 'inhabit':33 'instal':129 'isn':127 'julian':66 'know':385 'l':259,274 'lat':245,250,253,255,304 'lemmy.eco.br':7,9 'lemmy.eco.br/post/1969330](https://lemmy.eco.br/post/1969330)':8 'linux1':401 'linux@lemmy.eco.br':5 'list':111 'locat':144,171,187,218,223,279,283,289,297,299,316,322,324,327,332,333,348,358,360,363,372,373 'lon':260,265,268,270,305 'look':45 'made':70 'might':383 'million':32 'month':19 'name':88,141,206,234,242,302 'never':51 'nominatim.openstreetmap.org':163,237 'nominatim.openstreetmap.org/details.php?place_id=$id&format=json':236 'nominatim.openstreetmap.org/search?q=$query&format=json&limit=1':162 'occur':377 'org.gnome.weather':113,282,294,296,315,321,331,345,347,355,357,369,371 'p':138,181 'peopl':382 'permiss':418 'place':230 'post':3 'problem':76 'program':43 'provid':416 'queri':135,152,154,156 'read':137,180 'remov':174 'request':160,167,202,227,247,262 'run':84,291,342,352,366,388,398,424 'save':402,410 'script':72,95,389,399,404,426 'script.sh':422 'search':176,192 'sed':157,203,207,228,232,240,243,248,251,263,266,325,361 'set':320,330,356,370 'sever':48 'sh':413 'solut':47 'solv':74 'sure':196 'system':105,119,276,309 'term':177,193 'text':407 'thread':58 'time':49 'tutori':395 'type':139 'u':420 'uint32':300 'use':14 'user':65 've':12 'want':146,189,198 'weather':39,103,126,151 'x':421 'y':213 'y/n':209 'yesterday':62 'z':99,109,133"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1701367347
+visibility: "visible "
+apId: "https://lemmy.eco.br/post/1973179"
+editedAt: DateTimeImmutable @1702191218 {#1858
date: 2023-12-10 07:53:38.0 +01:00
}
+createdAt: DateTimeImmutable @1701280947 {#2388
date: 2023-11-29 19:02:27.0 +01:00
}
}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: null
+root: null
+body: "Damn, how very user friendly."
+lang: "en"
+isAdult: false
+favouriteCount: 22
+score: 0
+lastActive: DateTime @1701313938 {#4269
date: 2023-11-30 04:12:18.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@a"
"@av"
"@ademir@lemmy.eco.br"
]
+children: Doctrine\ORM\PersistentCollection {#4275 …}
+nested: Doctrine\ORM\PersistentCollection {#4277 …}
+votes: Doctrine\ORM\PersistentCollection {#4279 …}
+reports: Doctrine\ORM\PersistentCollection {#4281 …}
+favourites: Doctrine\ORM\PersistentCollection {#4283 …}
+notifications: Doctrine\ORM\PersistentCollection {#4285 …}
-id: 179514
-bodyTs: "'damn':1 'friend':5 'user':4"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.de/comment/5272091"
+editedAt: null
+createdAt: DateTimeImmutable @1701313938 {#4270
date: 2023-11-30 04:12:18.0 +01:00
}
} |
|
Show voter details
|
35 |
DENIED
|
edit
|
App\Entity\EntryComment {#4274
+user: App\Entity\User {#4287 …}
+entry: App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "Add-YOUR-city-to-the-Gnome-weather-app-Solved"
+title: "Add YOUR city to the Gnome weather app [Solved]"
+url: null
+body: """
cross-posted from: [!linux@lemmy.eco.br](/c/linux@lemmy.eco.br) | [lemmy.eco.br/post/1969330](https://lemmy.eco.br/post/1969330)\n
\n
I’ve been using Gnome for about 10 months and it always bothered me that my city (with more than a million inhabitants) was not found in the [Weather](https://apps.gnome.org/Weather/) program.\n
\n
I looked for solutions several times and never found them, until I found [this thread](https://gitlab.gnome.org/GNOME/gnome-weather/-/issues/247#note_1819885) yesterday. That the user [Julian](https://gitlab.gnome.org/julianfairfax) made a [script that solves this problem](https://gitlab.com/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads). you just have to run and enter the name of your city and then confirm.\n
\n
script`bash #!/bin/bash if [[ ! -z “$(which gnome-weather)” ]]; then \tsystem=1 fi if [[ ! -z “$(flatpak list | grep org.gnome.Weather)” ]]; then \tflatpak=1 fi if [[ ! $system == 1 && ! $flatpak == 1 ]]; then \techo “GNOME Weather isn’t installed” \texit fi if [[ ! -z “$*” ]]; then \tquery=“$*” else \tread -p “Type the name of the location you want to add to GNOME Weather: " query fi query=”$(echo $query | sed ‘s/ /+/g’)" request=$(curl “https://nominatim.openstreetmap.org/search?q=$query&format=json&limit=1” -s) if [[ $request == “[]” ]]; then \techo “No locations found, consider removing some search terms” \texit fi read -p “If this is not the location you wanted, consider adding search terms Are you sure you want to add $(echo $request | sed 's/.*“display_name”:”//’ | sed ‘s/".*//’)? [y/n] : " answer if [[ ! $answer == “y” ]]; then \techo “Not adding location” \texit else \techo “Adding location” fi id=$(echo $request | sed ‘s/.*“place_id”://’ | sed ‘s/,.*//’) name=$(curl “https://nominatim.openstreetmap.org/details.php?place_id=$id&format=json” -s | sed ‘s/.*“name”: "//’ | sed ‘s/".*//’) lat=$(echo $request | sed ‘s/.*“lat”:"//’ | sed ‘s/".*//’) lat=$(echo “$lat / (180 / 3.141592654)” | bc -l) lon=$(echo $request | sed ‘s/.*“lon”:"//’ | sed ‘s/".*//’) lon=$(echo “$lon / (180 / 3.141592654)” | bc -l) if [[ $system == 1 ]]; then \tlocations=$(gsettings get org.gnome.Weather locations) fi if [[ $flatpak == 1 ]]; then \tlocations=$(flatpak run --command=gsettings org.gnome.Weather get org.gnome.Weather locations) fi location=“<(uint32 2, <(‘$name’, ‘’, false, [($lat, $lon)], @a(dd) [])>)>” if [[ $system == 1 ]]; then \tif [[ ! $(gsettings get org.gnome.Weather locations) == “@av []” ]]; then \t\tgsettings set org.gnome.Weather locations “$(echo $locations | sed “s|>]|>, $location]|”)” \telse \t\tgsettings set org.gnome.Weather locations “[$location]” \tfi fi if [[ $flatpak == 1 ]]; then \tif [[ ! $(flatpak run --command=gsettings org.gnome.Weather get org.gnome.Weather locations) == “@av []” ]]; then \t\tflatpak run --command=gsettings org.gnome.Weather set org.gnome.Weather locations “$(echo $locations | sed “s|>]|>, $location]|”)” \telse \t\tflatpak run --command=gsettings org.gnome.Weather set org.gnome.Weather locations “[$location]” \tfi fi `\n
\n
---\n
\n
It occurred to me that some people might not know how to run scripts, so here’s a brief tutorial:\n
\n
How to run scripts in Linux1. Save the script to a text file and save with the `.sh` extension 2. Provide execute permission: `chmod u+x script.sh`3. run the script by double clicking or `./script.sh`
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 8
+favouriteCount: 52
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1701364533 {#2418
date: 2023-11-30 18:15:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: [
"@a"
"@av"
]
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 18263
-titleTs: "'add':1 'app':8 'citi':3 'gnome':6 'solv':9 'weather':7"
-bodyTs: "'/bin/bash':97 '/c/linux':6 '/details.php?place_id=$id&format=json':238 '/g':159 '/gnome/gnome-weather/-/issues/247#note_1819885)':61 '/julianfairfax)':69 '/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads).':79 '/post/1969330](https://lemmy.eco.br/post/1969330)':10 '/script.sh':431 '/search?q=$query&format=json&limit=1':164 '/weather/)':42 '1':106,116,120,122,277,287,310,338 '10':18 '180':256,271 '2':301,415 '3':423 '3.141592654':257,272 'ad':191,217,222 'add':148,200 'alway':22 'answer':210,212 'apps.gnome.org':41 'apps.gnome.org/weather/)':40 'av':317,349 'bash':96 'bc':258,273 'bother':23 'brief':394 'chmod':419 'citi':27,91 'click':429 'command':292,343,353,367 'confirm':94 'consid':173,190 'cross':2 'cross-post':1 'curl':161,235 'dd':307 'display':205 'doubl':428 'echo':124,155,169,201,215,221,226,246,254,261,269,323,359 'els':136,220,328,364 'enter':86 'execut':417 'exit':130,178,219 'extens':414 'fals':303 'fi':107,117,131,153,179,224,284,298,334,335,374,375 'file':408 'flatpak':110,115,121,286,290,337,341,351,365 'found':36,52,56,172 'get':281,295,314,346 'gitlab.com':78 'gitlab.com/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads).':77 'gitlab.gnome.org':60,68 'gitlab.gnome.org/gnome/gnome-weather/-/issues/247#note_1819885)':59 'gitlab.gnome.org/julianfairfax)':67 'gnome':15,102,125,150 'gnome-weath':101 'grep':112 'gset':280,293,313,319,329,344,354,368 'id':225,231 'inhabit':33 'instal':129 'isn':127 'julian':66 'know':385 'l':259,274 'lat':245,250,253,255,304 'lemmy.eco.br':7,9 'lemmy.eco.br/post/1969330](https://lemmy.eco.br/post/1969330)':8 'linux1':401 'linux@lemmy.eco.br':5 'list':111 'locat':144,171,187,218,223,279,283,289,297,299,316,322,324,327,332,333,348,358,360,363,372,373 'lon':260,265,268,270,305 'look':45 'made':70 'might':383 'million':32 'month':19 'name':88,141,206,234,242,302 'never':51 'nominatim.openstreetmap.org':163,237 'nominatim.openstreetmap.org/details.php?place_id=$id&format=json':236 'nominatim.openstreetmap.org/search?q=$query&format=json&limit=1':162 'occur':377 'org.gnome.weather':113,282,294,296,315,321,331,345,347,355,357,369,371 'p':138,181 'peopl':382 'permiss':418 'place':230 'post':3 'problem':76 'program':43 'provid':416 'queri':135,152,154,156 'read':137,180 'remov':174 'request':160,167,202,227,247,262 'run':84,291,342,352,366,388,398,424 'save':402,410 'script':72,95,389,399,404,426 'script.sh':422 'search':176,192 'sed':157,203,207,228,232,240,243,248,251,263,266,325,361 'set':320,330,356,370 'sever':48 'sh':413 'solut':47 'solv':74 'sure':196 'system':105,119,276,309 'term':177,193 'text':407 'thread':58 'time':49 'tutori':395 'type':139 'u':420 'uint32':300 'use':14 'user':65 've':12 'want':146,189,198 'weather':39,103,126,151 'x':421 'y':213 'y/n':209 'yesterday':62 'z':99,109,133"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1701367347
+visibility: "visible "
+apId: "https://lemmy.eco.br/post/1973179"
+editedAt: DateTimeImmutable @1702191218 {#1858
date: 2023-12-10 07:53:38.0 +01:00
}
+createdAt: DateTimeImmutable @1701280947 {#2388
date: 2023-11-29 19:02:27.0 +01:00
}
}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: null
+root: null
+body: "Damn, how very user friendly."
+lang: "en"
+isAdult: false
+favouriteCount: 22
+score: 0
+lastActive: DateTime @1701313938 {#4269
date: 2023-11-30 04:12:18.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@a"
"@av"
"@ademir@lemmy.eco.br"
]
+children: Doctrine\ORM\PersistentCollection {#4275 …}
+nested: Doctrine\ORM\PersistentCollection {#4277 …}
+votes: Doctrine\ORM\PersistentCollection {#4279 …}
+reports: Doctrine\ORM\PersistentCollection {#4281 …}
+favourites: Doctrine\ORM\PersistentCollection {#4283 …}
+notifications: Doctrine\ORM\PersistentCollection {#4285 …}
-id: 179514
-bodyTs: "'damn':1 'friend':5 'user':4"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.de/comment/5272091"
+editedAt: null
+createdAt: DateTimeImmutable @1701313938 {#4270
date: 2023-11-30 04:12:18.0 +01:00
}
} |
|
Show voter details
|
36 |
DENIED
|
moderate
|
App\Entity\EntryComment {#4274
+user: App\Entity\User {#4287 …}
+entry: App\Entity\Entry {#2413
+user: Proxies\__CG__\App\Entity\User {#1973 …}
+magazine: App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1899 …}
+slug: "Add-YOUR-city-to-the-Gnome-weather-app-Solved"
+title: "Add YOUR city to the Gnome weather app [Solved]"
+url: null
+body: """
cross-posted from: [!linux@lemmy.eco.br](/c/linux@lemmy.eco.br) | [lemmy.eco.br/post/1969330](https://lemmy.eco.br/post/1969330)\n
\n
I’ve been using Gnome for about 10 months and it always bothered me that my city (with more than a million inhabitants) was not found in the [Weather](https://apps.gnome.org/Weather/) program.\n
\n
I looked for solutions several times and never found them, until I found [this thread](https://gitlab.gnome.org/GNOME/gnome-weather/-/issues/247#note_1819885) yesterday. That the user [Julian](https://gitlab.gnome.org/julianfairfax) made a [script that solves this problem](https://gitlab.com/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads). you just have to run and enter the name of your city and then confirm.\n
\n
script`bash #!/bin/bash if [[ ! -z “$(which gnome-weather)” ]]; then \tsystem=1 fi if [[ ! -z “$(flatpak list | grep org.gnome.Weather)” ]]; then \tflatpak=1 fi if [[ ! $system == 1 && ! $flatpak == 1 ]]; then \techo “GNOME Weather isn’t installed” \texit fi if [[ ! -z “$*” ]]; then \tquery=“$*” else \tread -p “Type the name of the location you want to add to GNOME Weather: " query fi query=”$(echo $query | sed ‘s/ /+/g’)" request=$(curl “https://nominatim.openstreetmap.org/search?q=$query&format=json&limit=1” -s) if [[ $request == “[]” ]]; then \techo “No locations found, consider removing some search terms” \texit fi read -p “If this is not the location you wanted, consider adding search terms Are you sure you want to add $(echo $request | sed 's/.*“display_name”:”//’ | sed ‘s/".*//’)? [y/n] : " answer if [[ ! $answer == “y” ]]; then \techo “Not adding location” \texit else \techo “Adding location” fi id=$(echo $request | sed ‘s/.*“place_id”://’ | sed ‘s/,.*//’) name=$(curl “https://nominatim.openstreetmap.org/details.php?place_id=$id&format=json” -s | sed ‘s/.*“name”: "//’ | sed ‘s/".*//’) lat=$(echo $request | sed ‘s/.*“lat”:"//’ | sed ‘s/".*//’) lat=$(echo “$lat / (180 / 3.141592654)” | bc -l) lon=$(echo $request | sed ‘s/.*“lon”:"//’ | sed ‘s/".*//’) lon=$(echo “$lon / (180 / 3.141592654)” | bc -l) if [[ $system == 1 ]]; then \tlocations=$(gsettings get org.gnome.Weather locations) fi if [[ $flatpak == 1 ]]; then \tlocations=$(flatpak run --command=gsettings org.gnome.Weather get org.gnome.Weather locations) fi location=“<(uint32 2, <(‘$name’, ‘’, false, [($lat, $lon)], @a(dd) [])>)>” if [[ $system == 1 ]]; then \tif [[ ! $(gsettings get org.gnome.Weather locations) == “@av []” ]]; then \t\tgsettings set org.gnome.Weather locations “$(echo $locations | sed “s|>]|>, $location]|”)” \telse \t\tgsettings set org.gnome.Weather locations “[$location]” \tfi fi if [[ $flatpak == 1 ]]; then \tif [[ ! $(flatpak run --command=gsettings org.gnome.Weather get org.gnome.Weather locations) == “@av []” ]]; then \t\tflatpak run --command=gsettings org.gnome.Weather set org.gnome.Weather locations “$(echo $locations | sed “s|>]|>, $location]|”)” \telse \t\tflatpak run --command=gsettings org.gnome.Weather set org.gnome.Weather locations “[$location]” \tfi fi `\n
\n
---\n
\n
It occurred to me that some people might not know how to run scripts, so here’s a brief tutorial:\n
\n
How to run scripts in Linux1. Save the script to a text file and save with the `.sh` extension 2. Provide execute permission: `chmod u+x script.sh`3. run the script by double clicking or `./script.sh`
"""
+type: "article"
+lang: "en"
+isOc: false
+hasEmbed: false
+commentCount: 8
+favouriteCount: 52
+score: 0
+isAdult: false
+sticky: false
+lastActive: DateTime @1701364533 {#2418
date: 2023-11-30 18:15:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: [
"@a"
"@av"
]
+comments: Doctrine\ORM\PersistentCollection {#1408 …}
+votes: Doctrine\ORM\PersistentCollection {#1961 …}
+reports: Doctrine\ORM\PersistentCollection {#1972 …}
+favourites: Doctrine\ORM\PersistentCollection {#1399 …}
+notifications: Doctrine\ORM\PersistentCollection {#2440 …}
+badges: Doctrine\ORM\PersistentCollection {#2436 …}
+children: []
-id: 18263
-titleTs: "'add':1 'app':8 'citi':3 'gnome':6 'solv':9 'weather':7"
-bodyTs: "'/bin/bash':97 '/c/linux':6 '/details.php?place_id=$id&format=json':238 '/g':159 '/gnome/gnome-weather/-/issues/247#note_1819885)':61 '/julianfairfax)':69 '/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads).':79 '/post/1969330](https://lemmy.eco.br/post/1969330)':10 '/script.sh':431 '/search?q=$query&format=json&limit=1':164 '/weather/)':42 '1':106,116,120,122,277,287,310,338 '10':18 '180':256,271 '2':301,415 '3':423 '3.141592654':257,272 'ad':191,217,222 'add':148,200 'alway':22 'answer':210,212 'apps.gnome.org':41 'apps.gnome.org/weather/)':40 'av':317,349 'bash':96 'bc':258,273 'bother':23 'brief':394 'chmod':419 'citi':27,91 'click':429 'command':292,343,353,367 'confirm':94 'consid':173,190 'cross':2 'cross-post':1 'curl':161,235 'dd':307 'display':205 'doubl':428 'echo':124,155,169,201,215,221,226,246,254,261,269,323,359 'els':136,220,328,364 'enter':86 'execut':417 'exit':130,178,219 'extens':414 'fals':303 'fi':107,117,131,153,179,224,284,298,334,335,374,375 'file':408 'flatpak':110,115,121,286,290,337,341,351,365 'found':36,52,56,172 'get':281,295,314,346 'gitlab.com':78 'gitlab.com/julianfairfax/scripts/-/blob/main/add-location-to-gnome-weather.sh?ref_type=heads).':77 'gitlab.gnome.org':60,68 'gitlab.gnome.org/gnome/gnome-weather/-/issues/247#note_1819885)':59 'gitlab.gnome.org/julianfairfax)':67 'gnome':15,102,125,150 'gnome-weath':101 'grep':112 'gset':280,293,313,319,329,344,354,368 'id':225,231 'inhabit':33 'instal':129 'isn':127 'julian':66 'know':385 'l':259,274 'lat':245,250,253,255,304 'lemmy.eco.br':7,9 'lemmy.eco.br/post/1969330](https://lemmy.eco.br/post/1969330)':8 'linux1':401 'linux@lemmy.eco.br':5 'list':111 'locat':144,171,187,218,223,279,283,289,297,299,316,322,324,327,332,333,348,358,360,363,372,373 'lon':260,265,268,270,305 'look':45 'made':70 'might':383 'million':32 'month':19 'name':88,141,206,234,242,302 'never':51 'nominatim.openstreetmap.org':163,237 'nominatim.openstreetmap.org/details.php?place_id=$id&format=json':236 'nominatim.openstreetmap.org/search?q=$query&format=json&limit=1':162 'occur':377 'org.gnome.weather':113,282,294,296,315,321,331,345,347,355,357,369,371 'p':138,181 'peopl':382 'permiss':418 'place':230 'post':3 'problem':76 'program':43 'provid':416 'queri':135,152,154,156 'read':137,180 'remov':174 'request':160,167,202,227,247,262 'run':84,291,342,352,366,388,398,424 'save':402,410 'script':72,95,389,399,404,426 'script.sh':422 'search':176,192 'sed':157,203,207,228,232,240,243,248,251,263,266,325,361 'set':320,330,356,370 'sever':48 'sh':413 'solut':47 'solv':74 'sure':196 'system':105,119,276,309 'term':177,193 'text':407 'thread':58 'time':49 'tutori':395 'type':139 'u':420 'uint32':300 'use':14 'user':65 've':12 'want':146,189,198 'weather':39,103,126,151 'x':421 'y':213 'y/n':209 'yesterday':62 'z':99,109,133"
+cross: false
+upVotes: 0
+downVotes: 0
+ranking: 1701367347
+visibility: "visible "
+apId: "https://lemmy.eco.br/post/1973179"
+editedAt: DateTimeImmutable @1702191218 {#1858
date: 2023-12-10 07:53:38.0 +01:00
}
+createdAt: DateTimeImmutable @1701280947 {#2388
date: 2023-11-29 19:02:27.0 +01:00
}
}
+magazine: App\Entity\Magazine {#264}
+image: null
+parent: null
+root: null
+body: "Damn, how very user friendly."
+lang: "en"
+isAdult: false
+favouriteCount: 22
+score: 0
+lastActive: DateTime @1701313938 {#4269
date: 2023-11-30 04:12:18.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@a"
"@av"
"@ademir@lemmy.eco.br"
]
+children: Doctrine\ORM\PersistentCollection {#4275 …}
+nested: Doctrine\ORM\PersistentCollection {#4277 …}
+votes: Doctrine\ORM\PersistentCollection {#4279 …}
+reports: Doctrine\ORM\PersistentCollection {#4281 …}
+favourites: Doctrine\ORM\PersistentCollection {#4283 …}
+notifications: Doctrine\ORM\PersistentCollection {#4285 …}
-id: 179514
-bodyTs: "'damn':1 'friend':5 'user':4"
+ranking: 0
+commentCount: 0
+upVotes: 0
+downVotes: 0
+visibility: "visible "
+apId: "https://feddit.de/comment/5272091"
+editedAt: null
+createdAt: DateTimeImmutable @1701313938 {#4270
date: 2023-11-30 04:12:18.0 +01:00
}
} |
|
Show voter details
|
37 |
DENIED
|
edit
|
App\Entity\Magazine {#264
+icon: Proxies\__CG__\App\Entity\Image {#245 …}
+name: "linux@lemmy.ml"
+title: "linux"
+description: """
From Wikipedia, the free encyclopedia\n
\n
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
\n
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
\n
### Rules\n
\n
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
- No misinformation\n
- No NSFW content\n
- No hate speech, bigotry, etc\n
\n
### Related Communities\n
\n
- [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
- [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
- [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
- [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
\n
Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
"""
+rules: null
+subscriptionsCount: 1
+entryCount: 1406
+entryCommentCount: 28632
+postCount: 6
+postCommentCount: 214
+isAdult: false
+customCss: null
+lastActive: DateTime @1729583542 {#274
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#236 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#232 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#221 …}
+entries: Doctrine\ORM\PersistentCollection {#179 …}
+posts: Doctrine\ORM\PersistentCollection {#137 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#199 …}
+bans: Doctrine\ORM\PersistentCollection {#116 …}
+reports: Doctrine\ORM\PersistentCollection {#102 …}
+badges: Doctrine\ORM\PersistentCollection {#80 …}
+logs: Doctrine\ORM\PersistentCollection {#70 …}
+awards: Doctrine\ORM\PersistentCollection {#1360 …}
+categories: Doctrine\ORM\PersistentCollection {#1792 …}
-id: 73
+apId: "linux@lemmy.ml"
+apProfileId: "https://lemmy.ml/c/linux"
+apPublicUrl: "https://lemmy.ml/c/linux"
+apFollowersUrl: "https://lemmy.ml/c/linux/followers"
+apInboxUrl: "https://lemmy.ml/inbox"
+apDomain: "lemmy.ml"
+apPreferredUsername: "linux"
+apDiscoverable: true
+apManuallyApprovesFollowers: null
+privateKey: null
+publicKey: null
+apFetchedAt: DateTime @1729583596 {#268
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#270
date: 2023-11-02 13:51:08.0 +01:00
}
} |
|
Show voter details
|