Closed maserowik closed 2 years ago
@maserowik Please grab the latest controller.js from the allsky-website GitHub page. It should work better, but I am still improving it.
@EricClaeys This is still not working correctly for me.
I went back to the daylight streaming for now.
Mike
@maserowik Mike, can you try the attached file with daytime streaming OFF? It seems to be working on my Pi with the aurora picture appearing during the day and going away at night, then re-appearing the next day.
It goes in the website's "allsky" directory. I suggest renaming the current controller.js, then remove the trailing ".txt" of the attached file then copy it in. Simply refresh your browser window (may need to press F12 first).
@maserowik Mike, can you try the attached file with daytime streaming OFF? It seems to be working on my Pi with the aurora picture appearing during the day and going away at night, then re-appearing the next day.
It goes in the website's "allsky" directory. I suggest renaming the current controller.js, then remove the trailing ".txt" of the attached file then copy it in. Simply refresh your browser window (may need to press F12 first).
Still not working for me.
@maserowik Mike, What is it doing or not doing? Can you press F12 and click on "Console" and copy/paste what it shows?
@EricClaeys
so placed the controller.js on my hosting site. renaming my old controller.js
on my data.json file I changed the streamDaytime to false. it is 3.52 pm here where i live
in my camera settings I have both daytime capture = false and daytime save=false
but on my local web gui I see the image
on my hosting site I see the following
so for the console here is the output
I did a shift f5 on my browser and the only thing that changed was the color of the title It's not dark yet ....
Mike
@maserowik Assuming you have "auroraForecast" set to "false", the website is doing exactly what it should. It's telling you that daytime pictures aren't being taken, and it's displaying the picture it has. The problem is on the Pi - it should have uploaded the "Camera off during day" notification image rather than an actual image.
If you have "auroraForecast" set to "true" then there's a problem on both the website (it should display the aurora forecast image) and on the Pi (it should not be taking images).
The white vs red notice at the top is because I changed the "it's not dark yet" message from red to white. Red is used for errors, yellow for warnings, and white for informatory messages. When you did the shift-F5 it forced a reload of controller.js to use the new one.
Some things to try/check:
@EricClaeys Not sure what what happened but today I check my website and i got the Aurora Forecast!!!
@maserowik Mike, I am glad it's working but there is still a bug somewhere since it didn't work yesterday when you started the website at 3:55 pm. Can you attach the Console output please?
is this what you want?
@maserowik Yes, thanks. Can you leave that browser window running and send the Console log again tomorrow? It will have transitioned to night, then to day. Thanks.
If you have any feedback on the "It's not dark..." message - how it's worded or how it looks, let me know.
@EricClaeys Sorry it taking log to get back with you on this but here is what I am seeing now.
@EricClaeys Sorry it taking log to get back with you on this but here is what I am seeing now.
Either the pi died or the sd card died.
@maserowik Good thing for the new warning message letting you know. Let me know what happened.
@maserowik This issue should be resolved with the latest updates, primarily to controller.js. Please close the Issue if you agree.
@EricClaeys so in order for me to get the Aurora Forecast I had to do the following I currently have my image save to a folder on my website called /domains/n3bsq.com/public_html/allsky/image/
with the data.json and image in that folder i do not get the Aurora Forecast but as soon as I move the files to the /domains/n3bsq.com/public_html/allsky/
I get the Aurora Forecast.
is there a code change I use to have it look inside the /domains/n3bsq.com/public_html/allsky/image/ folder instead of the /domains/n3bsq.com/public_html/allsky/ folder?
Mike