Giter VIP home page Giter VIP logo

nasa-wallpaper's People

Contributors

davidpob99 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

nasa-wallpaper's Issues

Changing wallpaper generates an error and crash

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 'called Result::unwrap() on an Err value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/libcore/result.rs:997:5
note: Run with RUST_BACKTRACE=1 environment variable to display a backtrace.

Using -a flag causes crash.

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.

error (main thread panic) when passing '-t' flag

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

Changing wallpaper not working on Manjaro Budgie

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.