1 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
2 |
DENIED
|
moderate
|
App\Entity\Entry {#1810
+user: Proxies\__CG__\App\Entity\User {#1911 …}
+magazine: App\Entity\Magazine {#315
+icon: Proxies\__CG__\App\Entity\Image {#296 …}
+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 {#323
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#287 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#283 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#272 …}
+entries: Doctrine\ORM\PersistentCollection {#230 …}
+posts: Doctrine\ORM\PersistentCollection {#188 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#250 …}
+bans: Doctrine\ORM\PersistentCollection {#167 …}
+reports: Doctrine\ORM\PersistentCollection {#153 …}
+badges: Doctrine\ORM\PersistentCollection {#131 …}
+logs: Doctrine\ORM\PersistentCollection {#121 …}
+awards: Doctrine\ORM\PersistentCollection {#110 …}
+categories: Doctrine\ORM\PersistentCollection {#97 …}
-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 {#324
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#318
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2441 …}
+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 {#2435
date: 2023-11-30 18:15:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: [
"@a"
"@av"
]
+comments: Doctrine\ORM\PersistentCollection {#2419 …}
+votes: Doctrine\ORM\PersistentCollection {#1882 …}
+reports: Doctrine\ORM\PersistentCollection {#1853 …}
+favourites: Doctrine\ORM\PersistentCollection {#1958 …}
+notifications: Doctrine\ORM\PersistentCollection {#1935 …}
+badges: Doctrine\ORM\PersistentCollection {#1392 …}
+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 {#101
date: 2023-12-10 07:53:38.0 +01:00
}
+createdAt: DateTimeImmutable @1701280947 {#2404
date: 2023-11-29 19:02:27.0 +01:00
}
} |
|
Show voter details
|
3 |
DENIED
|
edit
|
App\Entity\Entry {#1810
+user: Proxies\__CG__\App\Entity\User {#1911 …}
+magazine: App\Entity\Magazine {#315
+icon: Proxies\__CG__\App\Entity\Image {#296 …}
+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 {#323
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#287 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#283 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#272 …}
+entries: Doctrine\ORM\PersistentCollection {#230 …}
+posts: Doctrine\ORM\PersistentCollection {#188 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#250 …}
+bans: Doctrine\ORM\PersistentCollection {#167 …}
+reports: Doctrine\ORM\PersistentCollection {#153 …}
+badges: Doctrine\ORM\PersistentCollection {#131 …}
+logs: Doctrine\ORM\PersistentCollection {#121 …}
+awards: Doctrine\ORM\PersistentCollection {#110 …}
+categories: Doctrine\ORM\PersistentCollection {#97 …}
-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 {#324
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#318
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2441 …}
+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 {#2435
date: 2023-11-30 18:15:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: [
"@a"
"@av"
]
+comments: Doctrine\ORM\PersistentCollection {#2419 …}
+votes: Doctrine\ORM\PersistentCollection {#1882 …}
+reports: Doctrine\ORM\PersistentCollection {#1853 …}
+favourites: Doctrine\ORM\PersistentCollection {#1958 …}
+notifications: Doctrine\ORM\PersistentCollection {#1935 …}
+badges: Doctrine\ORM\PersistentCollection {#1392 …}
+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 {#101
date: 2023-12-10 07:53:38.0 +01:00
}
+createdAt: DateTimeImmutable @1701280947 {#2404
date: 2023-11-29 19:02:27.0 +01:00
}
} |
|
Show voter details
|
4 |
DENIED
|
moderate
|
App\Entity\Entry {#1810
+user: Proxies\__CG__\App\Entity\User {#1911 …}
+magazine: App\Entity\Magazine {#315
+icon: Proxies\__CG__\App\Entity\Image {#296 …}
+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 {#323
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#287 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#283 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#272 …}
+entries: Doctrine\ORM\PersistentCollection {#230 …}
+posts: Doctrine\ORM\PersistentCollection {#188 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#250 …}
+bans: Doctrine\ORM\PersistentCollection {#167 …}
+reports: Doctrine\ORM\PersistentCollection {#153 …}
+badges: Doctrine\ORM\PersistentCollection {#131 …}
+logs: Doctrine\ORM\PersistentCollection {#121 …}
+awards: Doctrine\ORM\PersistentCollection {#110 …}
+categories: Doctrine\ORM\PersistentCollection {#97 …}
-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 {#324
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#318
date: 2023-11-02 13:51:08.0 +01:00
}
}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#2441 …}
+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 {#2435
date: 2023-11-30 18:15:33.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: [
"@a"
"@av"
]
+comments: Doctrine\ORM\PersistentCollection {#2419 …}
+votes: Doctrine\ORM\PersistentCollection {#1882 …}
+reports: Doctrine\ORM\PersistentCollection {#1853 …}
+favourites: Doctrine\ORM\PersistentCollection {#1958 …}
+notifications: Doctrine\ORM\PersistentCollection {#1935 …}
+badges: Doctrine\ORM\PersistentCollection {#1392 …}
+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 {#101
date: 2023-12-10 07:53:38.0 +01:00
}
+createdAt: DateTimeImmutable @1701280947 {#2404
date: 2023-11-29 19:02:27.0 +01:00
}
} |
|
Show voter details
|
5 |
DENIED
|
edit
|
App\Entity\Magazine {#315
+icon: Proxies\__CG__\App\Entity\Image {#296 …}
+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 {#323
date: 2024-10-22 09:52:22.0 +02:00
}
+markedForDeletionAt: null
+tags: null
+moderators: Doctrine\ORM\PersistentCollection {#287 …}
+ownershipRequests: Doctrine\ORM\PersistentCollection {#283 …}
+moderatorRequests: Doctrine\ORM\PersistentCollection {#272 …}
+entries: Doctrine\ORM\PersistentCollection {#230 …}
+posts: Doctrine\ORM\PersistentCollection {#188 …}
+subscriptions: Doctrine\ORM\PersistentCollection {#250 …}
+bans: Doctrine\ORM\PersistentCollection {#167 …}
+reports: Doctrine\ORM\PersistentCollection {#153 …}
+badges: Doctrine\ORM\PersistentCollection {#131 …}
+logs: Doctrine\ORM\PersistentCollection {#121 …}
+awards: Doctrine\ORM\PersistentCollection {#110 …}
+categories: Doctrine\ORM\PersistentCollection {#97 …}
-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 {#324
date: 2024-10-22 09:53:16.0 +02:00
}
+apDeletedAt: null
+apTimeoutAt: null
+visibility: "visible "
+createdAt: DateTimeImmutable @1698929468 {#318
date: 2023-11-02 13:51:08.0 +01:00
}
} |
|
Show voter details
|