davidpob99 / nasa-wallpaper Goto Github PK
View Code? Open in Web Editor NEWChange your desktop background with a NASA image
License: Apache License 2.0
Change your desktop background with a NASA image
License: Apache License 2.0
Hi,
I am currently using a fresh/updated Manjaro Gnome 18.0.4 installation.
I installed nasa-wallpaper from the AUR repo.
Here is what happens when I execute nasa-wallpaper with "nasa-wallpaper -a" :
Title: 1901 Photograph: The Orion Nebula
Date: 2019-08-17
Explanation: By the turn of the 20th century advances in photography contributed an important tool for astronomers. Improving photographic materials, long exposures, and new telescope designs produced astronomical images with details not visible at the telescopic eyepiece alone. Remarkably recognizable to astrophotographers today, this stunning image of the star forming Orion Nebula was captured in 1901 by American astronomer and telescope designer George Ritchey. The original glass photographic plate, sensitive to green and blue wavelengths, has been digitized and light-to-dark inverted to produce a p ositive image. His hand written notes indicate a 50 minute long exposure that ended at dawn and a reflecting telescope aperture of 24 inches masked to 18 inches to improve the sharpness of the recorded image. Ritchey's plates from over a hundred years ago preserve astronomical data and can still be used for exploring astrophysical processes.
Copyright:
Changing wallpaper...
thread 'main' panicked at 'calledResult::unwrap()
on anErr
value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/libcore/result.rs:997:5
note: Run withRUST_BACKTRACE=1
environment variable to display a backtrace.
To quote from the cargo
FAQ:
it is recommended that all binaries check in their Cargo.lock.
Using nasa-wallpaper -apod
or nasa-wallpaper -a
causes an error:
{"code":404,"msg":"No data available for date: 2021-3-3","service_version":"v1"}
At which point the program stops.
Update: using correct syntax helps!
-a flag grabs image if the date is specified, however if the field is blank it still throws the error.
hi @davidpob99
I just wanted to let you know, a few months ago I created a package for Void linux.
https://github.com/voidlinux/void-packages/commit/7c5df5437a7ed3bc0f565c4c897662e7953cc911
To install it: xbps-install -S nasa-wallpaper
Similar to #6, wallpaper settings were on dynamic. After changing these settings to 'Image' I was able to change the wallpaper.
Hi, I've noticed an issue when attempting to change the background image using the '-t' (title) flag. This is occuring for me on OSX Mojave (10.14.6).
When using the command: RUST_BACKTRACE=1 nasa-wallpaper -n -t 'NGC949'
, I get an error:
thread 'main' panicked at 'No items were found :(', src/main.rs:174:9
stack backtrace:
0: <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt
1: core::fmt::write
2: std::io::Write::write_fmt
3: std::panicking::default_hook::{{closure}}
4: std::panicking::default_hook
5: std::panicking::rust_panic_with_hook
6: std::panicking::begin_panic
7: nasa_wallpaper::main
8: std::rt::lang_start::{{closure}}
9: std::rt::lang_start_internal
10: main
note: Some details are omitted, run with RUST_BACKTRACE=full for a verbose backtrace.`
However, when using the nearly identical command: RUST_BACKTRACE=1 nasa-wallpaper -n -t 'hubble'
, the background changes successfully.
Perhaps an issue when no results are returned or the results contain an unsupported character?
Cheers
I tried either to install the package from AUR or to compile it from source with cargo
.
In both cases the program seems to work (it displays the correct output until "Done"), but nothing happens to the wallpaper.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.