AllskyTeam / allsky-website

Web interface displaying an image from an allsky camera.
54 stars 42 forks source link

All Sky image is not loading onto webpage. Loading image only presented. #20

Closed spacetrace1982 closed 3 years ago

spacetrace1982 commented 4 years ago

Good Evening. I hope that you can help.

I have set up the website and the All sky cam is now sending images to my host via FTP. However, I am still seeing the Loading page on the website.

On the FTP server: The Image "image-resize.jpg"is saving into a directory one level up from my public_html folder.

For Information the config.js is as below

var config = { title: "The Black Cat Observatory", imageName: "/image-resize.jpg", #Just a note - I have tried with and without the "/" location: "North Wales, Penrhyn Bay", latitude: 53.1, longitude: -003.05, az: 180, camera: "ASI20M", computer: "Raspberry Pi 3", owner: "Tracey Snelus", auroraMap: "north", overlaySize: 875, overlayOffsetLeft: 0, overlayOffsetTop: 0,

The Index files are pretty much untouched

BlackCatAllSky
The Black Cat Observatory All Sky
Aurora activity: {{key}}: {{getScale(val)}}
  • Location: North Wales, Penrhyn Bay
  • Latitude: 53.18N
  • Longitude: 003.05W
  • Camera: ZWO ASI 120M
  • Computer: RaspberryPi
  • Owner: J&THarty

the website if you wish to see and inspect it can be found at: https://muciferous-invoices.000webhostapp.com/

I am happy to send FTP svr settings if necessary. I am certain that it is going to be a simple fix and I am missing something rather simple.

Thank you

Tracey

thomasjacquin commented 4 years ago

Good evening Tracey,

Try this in config.js.

longitude: -3.05,
spacetrace1982 commented 4 years ago

Hello Thomas

Thank you for the suggestion. I have made the change and the website is now giving me the aurora forecast successfully. However today I have had to shift everything onto a new host server. I set it all up again to the point where the image-resize.jpg is being loaded to the htdocs folder of the website, however still no success with it loading onto the webpage. It is still displaying to loading image.

Thank you

www.blackcatobservatoryallskycam.co.uk http://www.blackcatobservatoryallskycam.co.uk

From: Thomas Jacquin notifications@github.com Sent: 11 April 2020 07:18 To: thomasjacquin/allsky-website allsky-website@noreply.github.com Cc: spacetrace1982 tsnelus@gmail.com; Author author@noreply.github.com Subject: Re: [thomasjacquin/allsky-website] All Sky image is not loading onto webpage. Loading image only presented. (#20)

Good evening Tracey,

Try this in config.js.

longitude: -3.05,

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/thomasjacquin/allsky-website/issues/20#issuecomment-612342273 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AKGFHKEKKPNDISODID7IA6TRMADSNANCNFSM4MFZPZ2Q . https://github.com/notifications/beacon/AKGFHKCS4VIERVFF2VJCR2TRMADSNA5CNFSM4MFZPZ22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOER7ZUAI.gif

spacetrace1982 commented 4 years ago

the correct URL is http://www.blackcatobservatoryallsky.co.uk/

thomasjacquin commented 4 years ago

There doesn't seem to be an image at this address: http://www.blackcatobservatoryallsky.co.uk/current/image-current.jpg

Make sure you RPi is uploading successfully. Since you've changed servers, you might need to add the new IP to the known hosts. Try ssh blackcatobservatoryallsky.co.uk. It'll probably ask if you want to add this website to your know hosts.

spacetrace1982 commented 4 years ago

Good Evening

So first I just tried to get theimages to upload to /htdocs/ so that I know the images are loading to the host. Then I can repoint the webpage to the right images location.

I updated the ftp config file and double checked everything is ok.

I ran allsky .sh so I could see what was happening and I see the following

aving...20200411 23:15:27

Auto Exposure value: 12196 ms

Sleeping: 7805 ms

Resizing

Uploading

Exposure value: 12196548 µs.]

Saving...20200411 23:15:39

Auto Exposure value: 12196 ms

Sleeping: 7805 ms

Resizing docs' [Not connected]

Uploading

Exposure value: 12196548 µs.]

Saving...20200411 23:15:51

Auto Exposure value: 12196 ms

Sleeping: 7805 ms

Resizing

Uploading

Sleeping: 7805 ms

Resizing docs' [Delaying before reconnect: 22]

Uploading ocs' [Delaying before reconnect: 3]

Exposure value: 12196548 µsore reconnect: 11]

Saving...20200411 23:18:18

Auto Exposure value: 12196 ms

Sleeping: 7805 ms

Resizing docs' [Delaying before reconnect: 10]

Uploading ocs' [Delaying before reconnect: 3]

Exposure value: 12196548 µsore reconnect: 63]

Saving...20200411 23:18:30

Auto Exposure value: 12196 ms

Sleeping: 7805 ms

Resizing docs' [Delaying before reconnect: 34]

Uploading ocs' [Delaying before reconnect: 33]

Exposure value: 12196548 µsore reconnect: 51]

Saving...20200411 23:18:42

Auto Exposure value: 12196 ms

Sleeping: 7805 ms

Resizing docs' [Delaying before reconnect: 50]

Uploading ocs' [Delaying before reconnect: 33]

I presume that this is not loading to the host

From: Thomas Jacquin notifications@github.com Sent: 11 April 2020 22:11 To: thomasjacquin/allsky-website allsky-website@noreply.github.com Cc: spacetrace1982 tsnelus@gmail.com; Author author@noreply.github.com Subject: Re: [thomasjacquin/allsky-website] All Sky image is not loading onto webpage. Loading image only presented. (#20)

There doesn't seem to be an image at this address: http://www.blackcatobservatoryallsky.co.uk/current/image-current.jpg

Make sure you RPi is uploading successfully. Since you've changed servers, you might need to add the new IP to the known hosts. Try ssh blackcatobservatoryallsky.co.uk. It'll probably ask if you want to add this website to your know hosts.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/thomasjacquin/allsky-website/issues/20#issuecomment-612514339 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AKGFHKCJMTFRJBXXNAM47VTRMDMHDANCNFSM4MFZPZ2Q . https://github.com/notifications/beacon/AKGFHKCL3GMBJ5WSZUU7PUDRMDMHDA5CNFSM4MFZPZ22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOESBDUIY.gif

spacetrace1982 commented 4 years ago

I have managed to sort it all out now. Thank you for your patience and help

Tracey

From: Thomas Jacquin notifications@github.com Sent: 11 April 2020 22:11 To: thomasjacquin/allsky-website allsky-website@noreply.github.com Cc: spacetrace1982 tsnelus@gmail.com; Author author@noreply.github.com Subject: Re: [thomasjacquin/allsky-website] All Sky image is not loading onto webpage. Loading image only presented. (#20)

There doesn't seem to be an image at this address: http://www.blackcatobservatoryallsky.co.uk/current/image-current.jpg

Make sure you RPi is uploading successfully. Since you've changed servers, you might need to add the new IP to the known hosts. Try ssh blackcatobservatoryallsky.co.uk. It'll probably ask if you want to add this website to your know hosts.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/thomasjacquin/allsky-website/issues/20#issuecomment-612514339 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AKGFHKCJMTFRJBXXNAM47VTRMDMHDANCNFSM4MFZPZ2Q . https://github.com/notifications/beacon/AKGFHKCL3GMBJ5WSZUU7PUDRMDMHDA5CNFSM4MFZPZ22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOESBDUIY.gif