GithubHelp home page GithubHelp logo

allsky-website's Introduction

Allsky Website v2023-05-01

The "allsky-website" package allows you to display your images on a website, either on your Pi or on another machine. It can optionally add an overlay of constellations and other objects, as well as optional Aurora data.

Update

This version of the Website requires Allsky software version v2023.05.01 or newer.

Installation

The installation script for installing on a Pi is documented on the main Allsky GitHub page.

Once installed, there are several configuration variables you'll need to change. Click on the "Documentation" link in the WebUI, then the link for Settings -> Allsky Website.

allsky-website's People

Contributors

ckuethe avatar ericclaeys avatar hamop avatar leitmori avatar linuxkidd avatar thomasjacquin avatar tjacquin 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

allsky-website's Issues

Want to increase image size on website liveview

The liveview image size on my AllSky Admin Panel is perfect but when I view it on my own website it is too small (I have to zoom the view to 150%-175% to get it to the size I want).

Hopefully there is an easy way to fix this. Eric

virtualsky

I would like to enlarge the projection of the virtual map, because it does not cover the whole image, as I have to do

Sorting

I there a way to change the sorting on the webpage. now it sorts the oldest to the newest. i like to sort it from newest to oldest. I know in the prior version it was a done with the index file.

Sunset time not correct

Hi,
I came across this issue because virtualsky is sometimes showing constellations and sometimes just a plain grid. I see the constellations during daytime and the grid at night. I think this should be the other way round. Also the console log prints that it is night-time during my daytime and vice-versa.

My first thought was, that I have to adjust the timezone from Yukon to Germany, but I did'nt find a setting for this.

Long story short, I tried to read the code and it compares the current time, to the time of sunset. The sunset-time is read from file data.json, which has a timestamp from last night, but the content shows
{"sunset": "2016-05-27T00:24:00.000-0200"}
which is some years ago.
I cant see where this content comes from. But maybe someone has an idea.

kind regards
Beorn

Trying to enable the do not display image during the day.

What do I need to be changed and or correct for turning off the day time image at the web site. I would like it to only show evening images and during the day the count down to dark.

I see in controller.js that it has the code to do this and data.json has a option set to true/false
but not been able to get it to work so I am thinking I am missing a setting.
Thanks
Brad
site is www.dentonknifeworks.com/allsky

Image not displaying, only loading...

I have the site stood up on my host. After finally getting the FTP to upload my issue is now the image does not display. I only see the loading screen. When I look at the index.html i see
<div id="live_container"> <img id="current" class="current" src="loading.jpg">

Should this image be pointing to the loading.jpg? I did not see this when I inspected your site. I changed the src to be the name of the image. Was this the correct thing to do?

video thumbnails are created with each call

functions.php

The thumbnails file are checked with file_exists (line 87) before they are "renamed" with $thumbnail = str_replace(".mp4", ".jpg", $thumbnail); in line 91.

The check should be done after renaming.

Image refresh rate

Which parameter controls the refresh rate of the image shown on the front page?

Site title and icon

How can i change the title of the site and insert a custom icon? What is the file to modify?
Thanks

403 Forbidden

I have uploaded your website code and the main page is working. However - as soon as I want to access any of the file folders (videos, keograms, startrails) I get the following error:

You don't have permission to access /~Berna_felix/Saanenmoeser/allsky/startrails/ on this server.

Any help to this?

Timelapses, keograms and startrails in reverse order

I just saw that on my install of the website, all of the nightly files are ordered "oldest one first", while in the demo website and all the other ones I looked at, order is reversed and the last night is shown first.
It was easy to fix by replacing the asort() by arsort(), but I don't understand why this happens on my site. Could that have something to to do with PHP versions?

No timelapses on website yet Keogram and Startrails are there ??????

Hi,
Loving the project and will deffo buy you some coffees Thomas :). I have two questions please?

Q1*
Installed Allsky and the website on Pi 4B. All cool.
http://sjk.zapto.org:1289/allsky

I can see time-lapse videos on the admin page just fine and but they are not on the website. I check /var/www/html/allsky/videos and no timelapse in there. However, there are Keogram and Stratrails in those respective folders in /var/www/html/allsky. Timelapse ARE in /allsky/images/ddmmyy just fine hence that is why it works on the admin page. But they are not in the /var/www/html/allsky/videos..... Why is this? No symlink, no thumbnail, nothing, just empty videos directory.

By way, startrails, keograms and video directories all have 755 permissions. I just try set videos to 777 to see if that helps.

In ftpsettings.sh I have:

PROTOCOL='local'
USER='admin'
PASSWORD='secret'
HOST='example.com'
IMGDIR='/var/www/html/allsky/'
MP4DIR='/var/www/html/allsky/videos'
KEOGRAM_DIR='/var/www/html/allsky/keograms'
STARTRAILS_DIR='/var/www/html/allsky/startrails/'

And in config.sh I have set up correctly too:

Choose between ZWO or RPiHQ or auto (prefers ZWO if present)

CAMERA="ZWO"

Set to true to upload current image to your website

UPLOAD_IMG=true

Set to true to upload timelapse video to your website at the end of each night

UPLOAD_VIDEO=true

Set to true to send data to your server at the end of each night

POST_END_OF_NIGHT_DATA=true

Set to true to generate a timelapse at the end of the night

TIMELAPSE=true

Set the width and height parameter for timelapse generation (sizes must be divisible by 2)

TIMELAPSEWIDTH=1280
TIMELAPSEHEIGHT=960

Timelapse frame rate (number of frames per second)

FPS=17

Set to true to generate a keogram at the end of the night (image summary of the night)

KEOGRAM=true

Set to true to upload the keogram after it has been generated

UPLOAD_KEOGRAM=true

Why are videos visible on admin page but not visible on the website please????

Q2

Startrails does not look like Startrail. Maybe it is because too bright since it is summer and not dark long at my latitude and I need to tinker with the darkness parameter?

Many thanks!
Steve

Not really an issue but...

Just wondering if it is possible to use the full image scale on my website for live view? If so, how would I go about doing that? Also, is it possible to stretch the image for a larger view on live view (on my website), similar to going full screen in the GUI live view?

By the way, this project and software is great. Thank you so much for the work put into this.

http://astrocandy.org/allsky/

That's a new site and all I have right now is the allsky cam setup.

Thanks,
B

PHP Errors and other problems

I am having some troubles with the website - I did a fresh install but still the same problems are occurring:

The startup screen keeps showing the „Loading ...“ jpg file. I do have a current image-resize.jpg that is updated regularly by the camera.

The constellations overlay only shows a globe grid without any constellations overlaid on the loading.jpg file

Archived Keograms show the following error message:
Warning: mkdir(): File exists in /volume1/web/Saanenmoeser/allsky/keograms/index.php on line 29 Call Stack: 0.0000 245064 1. {main}() /volume1/web/Saanenmoeser/allsky/keograms/index.php:0 0.0002 246536 2. mkdir() /volume1/web/Saanenmoeser/allsky/keograms/index.php:29

Archived Startrails show the following error message:
Warning: mkdir(): File exists in /volume1/web/Saanenmoeser/allsky/startrails/index.php on line 29 Call Stack: 0.0000 245176 1. {main}() /volume1/web/Saanenmoeser/allsky/startrails/index.php:0 0.0002 246648 2. mkdir() /volume1/web/Saanenmoeser/allsky/startrails/index.php:29

Any help to this?

Gain problem on day images+but the link for Timelapse

Hello I have a problem with the daytime images.
I set Auto exposure and Auto gain to Yes.
I do not see how to improve.
I have another problem it is for my website that I just added your site.
We can see live, but the link for Timelapse / Keograms / startrails does not work.
I do not know how to do.
To be honest, this is the first time that I have created a site.
I don't think there is much to do, but I can't see.
here is the link of my website
https://mescreations-r-b-07.pagesperso-orange.fr/
Thanks for your help.

thumbnails for videos and images

Morning Thomas. Notice that you have thumbnails in your startrails .... directory but that the git clone install of your site does not. Can you please share how you did this. I am guessing that you used something like http://fancyapps.com/fancybox/3/ but as it is now a commercial product that you have removed it from your distro.

Any suggestions please? If possible I would like to avoid fees here, but if needs must .... ;-)

Many thanks, Richard

constellation overlay inverted?

I'm not really sure how to explain other than that - I don't remember it looking flipped in the past, but it seems like its flipped across the horizontal axis. I don't think I changed anything (other than swapping from ZWO to Pi HQ Cam (need to update that in my config)).

I dug through my virtualsky.json & config.js, but haven't come up with a way to flip it..

https://jimsnerdstuff.com/allsky/ - The overlaid compass orientations are correct - I'm not sure what I'm missing. I'm sure its something simple - user error somewhere along the line...

config.js
var config = { title: "Boise, Idaho", imageName: "image-resize.jpg", location: "Boise, Idaho", latitude: 43.54, longitude: -116.31, az: 100, // negative number rotates clockwise camera: "ASI120MC-S", computer: "Raspberry Pi 4b", owner: "Jim Cauthen", auroraMap: "north", overlaySize: 748, // 742 was initially close, but 748 is better overlayOffsetLeft: +18, overlayOffsetTop: -40, }

Keograms and Startrails not displaying

I'm having trouble getting thumbnails and startrails to display as I don't seem to have any files in /keograms/thumbnails and startrails/thumbnails.

Could you please tell me where in allsky that the thumbnails are generated and uploaded to allsky-website?

Thanks

Messier Objects on overlay not showing

Greetings:

The Messier Objects are not showing up on the overlay. I have included below my virtualsky.json file. If anyone could help me identify the issue, I would certainly appreciate it. The link for my allsky cam is: https://www.inthebeginning.org/allsky/

virtualsky.json

{
"id":"starmap",
"projection":"fisheye",
"width": 900,
"height": 972,
"constellations": true,
"mouse": false,
"gridlines_eq": true,
"keyboard": false,
"showdate": false,
"showposition": false,
"constellationlabels": true,
"sky_gradient": false,
"gradient": false,
"transparent": true,
"objects": "M1;M4;M7;M8;M11;M13;M16;M27;M31;M42;M45;M51;M57;M81;M82;M101",
"lang": "en"
}

Thank you.

Latest videos, startrails and keograms first

Hi @thomasjacquin,

I see on your AllSky web site that the latest video, startrails and keograms are displayed first. How do you achieve that? On my web site the oldest is displayed first and the latest is last. Which is fine for now because my setup is new but in a few months it may be uncomfortable.

Thank you!

Laurent

It's not dark yet message with aurora image instead of camera image

Hi
since about a week I get a message saying It's not dark yet in Shawinigan. Come back in x hours. I Have not change a thing since installation and it worked before as expected.

I have search a bit in the files but my skills are a bit limited

here is a screen capture

Any idea for a solution ?

Thanks

AllSky Website

Isssue #50 No Video Thumbnails created

I have read the issue listed above about no thumbnail being created. I read the readme but I still do not understand why i am getting the no thumbnail on my video's . I have a thumbnail on my startrails and keograms.

image

Issue with transfering images from Pi to ftp

Hi Thomas, can you help I am struggling to get the Pi to send anything to the ftp host.
Website is all set up and I am recieving all to the Pi interface but just keep getting a loading image on the website.

Here's the URL allsky.salfordastro.org.uk

Cheers
Gary

Allsky

I am having a issue with the sidebars on the website. I am sure I missed a configurations somewhere. I am running allsky on a Raspberry Pi 3b. I cannot get the video, keograms and startails to work.

Thanks Mike

Allsky and webserver on the same device

Hi, I am very happy about your nice software, but I have a small problem

My hardware is Raspberry 3+ and RPiHQ Camera, Apace2 webserver installed on the Raspberry

I installed the website software,
I edited the config.js and I have my own website.
But, there is no live image :-(
Also, the public.php is empty:-(

How can I transfer the live image to the website?

Do I need ftp when the images and the webserver are on the same device?

Thank you in advance!
Henry

Could it show lastest ten images?

Hi, Thomas.
I want to show the lastest ten images (small size) below the liveview image, and can be click to show large size image.
(Like the photo show)
123
I have no idea how to do it, could you help me?
Thanks a lot.

Updating virtual sky

I seem to have posted this to the wrong forum.

I downloaded and installed VirtualSky 0.7.4 on my server. When Allsky tries to access it, nothing happens. No sky map is produced. Has anyone succeeded in updating to the latest version?
Thanks
Paul

Keogram & Startrails index errors

The PHP is throwing errors with the "include_once"

Warning: include_once(analyticstracking.php) [function.include-once]: failed to open stream: No such file or directory in /home/jimcauth/public_html/allsky/keograms/index.php on line 38

Warning: include_once() [function.include]: Failed opening 'analyticstracking.php' for inclusion (include_path='.:/opt/php/php-5.2.16-suhosin/lib/php') in /home/jimcauth/public_html/allsky/keograms/index.php on line 38

I don't know enough about PHP, but is the **include_once("analyticstracking.php");**function good to just erase from both indexes?
reference: My AllSky Pages

And on a related index.php note - the index of 'Videos' seems to have been thrown off a bit with the new CSS? it's not showing the smaller icons as it used to

image/video display order

not so much an issue or problem, but as i'm not good with the workings of web pages, is there an option to change the display order of the images/videos so that newest is on top, instead of having to scroll all the way to the bottom (generating thumbnails the entire way) for the newer data?

Thanks again for all the support and this awesome project! finally got my v0.6 up and running after my 0.5 crashed.

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

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

<title>BlackCatAllSky</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"
        integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS"
        crossorigin="anonymous"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.11.2/moment.min.js"></script>
<!--[if lt IE 9]><script src="virtualsky/excanvas.min.js"></script><![endif]-->
<script src="virtualsky/virtualsky.js" type="text/javascript"></script>
<script src="ng-lodash.min.js"></script>
<script src="config.js"></script>
<script src="controller.js"></script>
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
<ul id="sidebar" class="animated slideInLeft">
	<li><i class="fa fa-2x fa-fw allsky-constellation" id="overlayBtn" title="Show constellations overlay" ng-click="toggleOverlay()" ng-class="{'active': showOverlay}"></i></li>
	<li><a href="../allsky/videos" title="Archived Timelapses"><i class="fa fa-2x fa-fw fa-play-circle"></i></a></li>
	<li><a href="../allsky/keograms" title="Archived Keograms"><i class="fa fa-2x fa-fw fa-barcode"></i></a></li>
	<li><a href="../allsky/startrails" title="Archived Startrails"><i class="fa fa-2x fa-fw fa-circle-o-notch"></i></a></li>
	<li><i class="fa fa-2x fa-fw fa-camera" title="Information about the camera" ng-click="toggleInfo()" ng-class="{'active': showInfo}" style="margin-top: 5px; font-size: 1.9em"></i></li>	
</ul>

<div id="imageContainer">
	<div id="starmap_container" ng-show="showOverlay==true">
		<div id="starmap"></div>
	</div>
	<div id="live_container">
		<img id="current" class="current" src="/loading.jpg">
	</div>
</div>

<div class="diy"><a href="http://thomasjacquin.com/make-your-own-allsky-camera"><i class="fa fa-gear"></i> Make Your Own</div>

<script src="analyticsTracking.js"></script>

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

I can't see the constellations

Hi Thomas and hi everyone,
I can't see the constellations but only the lines, why?
I tried all the settings but also nothing in the virtualsky.json file...
Many Thanks
Antonino

Centering and Sizing the Virtual Sky Overlay

What is the proper way to get the Virtual Sky Overlay to set correctly on the allsky image? It seems the settings in config.js that are text will work but anything having to do with the offset does not change anything, same for controller.js. Any adjustment seems to not have any effect except for changing the text displayed.

Snow Removal

This is not and issue with the program it is with the outside environment.

I have my allsky-website up and running. I live in Pittsburgh PA area and we got our first snow. Looking at the image does anyone have a good way to get the snow off the dome?

http://n3bsq.com/allsky/

Thanks

No Video Thumbnails created

No thumbnails being created for videos, No issue with Keograms or startrails.

No sure if I have setup issue or missed something in the admin panel
Thanks any advise is welcome

FTP not uploading

Hi Thomas

I have faithfully followed the instructions (I hope!) but no files seem to be being transferred to my website.

http://www.xxxxx/allsky/

I am just wondering if you can give me any advice to get operational? The website is windows based but it does run php and the actual software and the raspberry 3 on the site works ok.

Is there a log of errors to look at?

Please note I am not an expert at any of this.

Thanks in advance for your support.

lost arora forcast

I lost the arora forcast on my website

no idea what went wrong

in de config.js

auroraForecast: true,

any ideas what can be wrong

Chris

Italian language issue with it.json

Hi, setting the language in Italian ("lang": "it") in the virtualsky.json file only the outline of the Milky Way is shown.
I tried both generating a new it.json by editing en.json and fr.json and also getting the file from here https://raw.githubusercontent.com/slowe/VirtualSky/gh-pages/lang/it.json
Editing virtualsky.json and / or changing inside the translation file "code": "it" is enough to block the display.
If I take the it.json file and rename it to en.json, changing "code" to "en" and setting ("lang": "en") in the virtualsky.json file everything works by displaying the boundaries of the constellations, the planets and the names in Italian.

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.