boramalper / himawaripy

Set near-realtime picture of Earth as your desktop background
http://labs.boramalper.org/himawaripy
MIT License
1.62k stars 239 forks source link

No Image #68

Closed hche608 closed 6 years ago

hche608 commented 8 years ago

I am using Mac OS 10.11.6, I got no image, how to solve the problem image

sg-s commented 8 years ago

happened to be for a bit, but then went away on its own

boramalper commented 8 years ago

It happens to me as well (I'm on Ubuntu), although it goes away on its own as @sg-s said.

I have no idea why it's happening: maybe it's a bug in the programs we're calling?

lachlandcp commented 8 years ago

I think it's something to do with dates & timezones.

For instance, I'm in New Zealand (UTC+12), and currently it tries to request the tile 2016/08/06/003000, where as the latest tiles avaliable are for 2016/08/05/223000.

It's trying to request the tiles from tomorrow (or something like that).

hche608 commented 8 years ago

@imnofox you are correct, fixed the problem by deleting line 36 offset_tmp = offset_tmp + timedelta(hours=offset)

lachlandcp commented 8 years ago

Isn't deleting that line just the same as disabling auto_offset in config.py?

boramalper commented 8 years ago

@imnofox is right. The issue is still unsolved so I reopened it. I'll work on a fix asap.

Thanks everyone for figuring it out. Really really nice catch!

hche608 commented 8 years ago

@boramalper is it a logic issue? I am in New Zealand, which is 2 hours beyond the himawaripy time, but the code requests IMG base on NZ time which is a future time. I have check the code offset hour is correct, which is 2 hours,

Local time himawaripy time Local time
6PM 9PM 11PM
Offset Hours -3 0 2

11PM - 2hours = 6PM - -3hours = 9PM

line 36 offset_tmp = offset_tmp - timedelta(hours=offset)

Detavern commented 8 years ago

It's an issue of himawari8 website itself, sometimes it just didn't have any images. You can have a try here: himawari8 Relevant image url I'm not sure if it's same(black background with "No Image" on it) for you

how to solve it: if you got a "No Image" response try to request a more earlier image 20 minutes delayed is near-realtime too

Detavern commented 8 years ago

And I have another question about why we need time zone offset ... you know that himawari8 is a geosynchronous orbit satellite. it can't capture image of earth on the other side ...

sg-s commented 8 years ago

@Detavern because if you didn't, and lived in the Western Hemisphere, with no offset, you'd only see a dark picture during the daytime hours (when you're awake and using your computer)

Detavern commented 8 years ago

@sg-s but.. even you awake, looking at the Australia on image with sunshine, you may suddenly realize that the Western Hemisphere is still in dark XD maybe we need another satellite

sg-s commented 8 years ago

yeah, this is a workaround because we don't have access to an equivalent satellite for the western hemisphere. actually, if you didn't want an offset, you need a geosynchronous satellite for every longitude

boramalper commented 7 years ago

Hello,

as I've said in #82, this was due to a problem in time logic of himawaripy.

Can you please make a clean installation of v2 (https://github.com/boramalper/himawaripy/tree/v2) and let me know if it fixes your problem?

Thanks!

boramalper commented 6 years ago

I assume the problem has been solved, let me know if it still persist. Thanks!