Coder Social home page Coder Social logo

rkaczorek / astroberry-server Goto Github PK

View Code? Open in Web Editor NEW
260.0 260.0 19.0 61.37 MB

Astroberry Server is a ready to use system for Raspberry Pi for controlling all your astronomy equipment

License: GNU General Public License v3.0

astronomy astronomy-desktop astrophotography desktop indi-driver indi-server raspberry-pi telescope

astroberry-server's People

Contributors

geordanr avatar rkaczorek 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

astroberry-server's Issues

Astroberry Geographical Location

I have just started operating Astroberry as an astrophotography web server on a RPi 3 B+ and I note that the geographical information seems to be locked to Warsaw, Poland and the time and calendar date remain in Polish language and start in 2016. Am I missing something essential in my configuration options?

How to expand image to full SD card size

Hello,

Within a day or two of setting up astroberry, my filesystem has run out of space. However there's a lot of memory on the card available. How can I expand the partition size?

Thank you!

Regards,
Blair

QHY5 IIM

When I try to connect to my QHY5 IIM camera in PHD2 it does not connect

System boot partition too small

Hi Rkaczorek,

This project looks great, thank you for all your hard work.
I have done the install and updated the app but when I run Software Updater for the system I get "Not enough free disk space" error message. The current image has 63Mb for the Boot Sector but needs about 67Mb for the latest software setup. My resizing of the boot sector with Gparted has failed several times. Is there a simple solution to this?
screenshot at 2018-09-12 01-18-39

Thanks Peter

wlan config gui not working

Hi I just donwnloaded AstroBerry and now I have the problem that the WLANCongig-gui has no Text Input for my wlan configuration.

Raspberry PI B+ wifi

i believe WLAN on pi3B+ and Mate 16.04 are not compatible. I tried to mod the replicant conf file but does not work. I can only have the ethernet working

Astroberry Panel shows default Warsaw after GPS has made a fix

Weather plugin was changed to show my location ok - only works if no reboot as it goes back to Warsaw.
However the Celestial applet of the side panel still shows Warsaw even though GPS had made a fix and I had changed the weather app to correct location.

It would be useful to have one location source so that all apps report the same location !

Unless there is a specific way to do this which I have missed.
Not a major problem!

Disappearance of the desktop

Hi,
I tried your image on RPI3 for few weeks without any problems.
Now I'm trying it on RPI4 but my all the buttons on the desktop are gone after set the resolution.
Only the right button of the mouse runs. The desktop is empty.
Do you have an idea ?
Regards

Lost WLAn Accesspoint

Hello,

I changed the language and clicked on the WLAN icon in Mint ... I thought I need to set the Access Point data.
But now the RPI don´t send the WLAN "astroberry" anymore.

How can I restore this?

Thank you!

loading of raw (cr2) files fail on linux

Astroberry by default does not have a RAW decoder it seems so loading CR2 files fail in ASTAP/CCDCIEL. Required ,for me at least, as I pass across CR2 files I have taken from APT(windows) across to ccdciel which as I run on Windows normally has the RAW file decoder preloaded in the install of CCDCIEL. Not the same for Linux !

ccdciel reported this
21:27:57 Could not find libpasraw.so.1, libraw.so or dcraw. Loading camera raw files is not possible.
21:28:16 No RAW decoder found!
ASTAP reported this
Could not find program unprocessed_raw !!, Install libraw. Eg: sudo apt-get install libraw-bin

Bluetooth timeout

I installed a bluetooth serial port module in my mount and this was working flawless with INDI on a raspberry pi zero w running raspbian. However, using the astroberry image, I get timeout errors and I cannot get my mount to do anything.
I'm having a hard time finding any info on this issue and I'm stuck. Is this a known issue with the particular version of Ubuntu Mate? Any suggestions on what I could try next?

EDIT: I am able to connect to my mount, but soon after connecting, I get timeout errors and no commands seem to make it to my mount.

Raspberry pi 4

Is there any way to run astroberry on RPi 4? The performance gain, RAM, plus USB3 is a nice addition.

Low Voltage Warning leads to instability issues

Fresh install of Astroberry image on Raspberry Pi3. During power on stage, a low voltage warning indicator is being printed on the screen. Once the Desktop environment is ready, the yellow voltage indicator on the right appears.

This (https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=58151) might suggest the image is using old boot code but I cannot verify this.

Currently, my Pi is rebooting approx. every 5 mins. I can increase this frequency by inducing load on the system (i.e. running KStars).

[Astroberry 2.0] [SOLVED] indi-web service fails to start

Hi,

I switched to astroberry 2.0 and copied my ~/.indi directory to the new installation (UPDATE: solution at the bottom).
Unfortunately indi-web fails to start:

  astroberry@astroberry:~ $ sudo systemctl start indiwebmanager.service

  astroberry@astroberry:~ $ sudo systemctl status indiwebmanager.service
  indiwebmanager.service - INDI Web Manager
     Loaded: loaded (/etc/systemd/system/indiwebmanager.service; enabled; vendor preset: enabled)
     Active: active (running) since Sun 2019-12-01 13:19:58 CET; 187ms ago
   Main PID: 1777 (indi-web)
      Tasks: 1 (limit: 2077)
     Memory: 2.5M
     CGroup: /system.slice/indiwebmanager.service
             └─1777 /usr/bin/python3 /usr/local/bin/indi-web -v

  Dec 01 13:19:58 astroberry systemd[1]: Started INDI Web Manager.

  astroberry@astroberry:~ $ sudo systemctl status indiwebmanager.service
  indiwebmanager.service - INDI Web Manager
     Loaded: loaded (/etc/systemd/system/indiwebmanager.service; enabled; vendor preset: enabled)
     Active: activating (auto-restart) (Result: exit-code) since Sun 2019-12-01 13:19:59 CET; 1s ago
    Process: 1777 ExecStart=/usr/local/bin/indi-web -v (code=exited, status=1/FAILURE)
   Main PID: 1777 (code=exited, status=1/FAILURE)

  astroberry@astroberry:~ $ sudo systemctl status indiwebmanager.service
   indiwebmanager.service - INDI Web Manager
     Loaded: loaded (/etc/systemd/system/indiwebmanager.service; enabled; vendor preset: enabled)
     Active: active (running) since Sun 2019-12-01 13:20:04 CET; 625ms ago
   Main PID: 1803 (indi-web)
      Tasks: 2 (limit: 2077)
     Memory: 8.0M
     CGroup: /system.slice/indiwebmanager.service
             └─1803 /usr/bin/python3 /usr/local/bin/indi-web -v

  Dec 01 13:20:04 astroberry systemd[1]: Started INDI Web Manager.
  Dec 01 13:20:05 astroberry indi-web[1803]: 2019-12-01 13:20:05,189 - DEBUG: command line arguments: {'indi_port': 7624, 'port': 8624, 'host': '0.0.0.0', 'fifo': '/tmp/indiFIFO', 'conf': '/ho
  Dec 01 13:20:05 astroberry indi-web[1803]: 2019-12-01 13:20:05,211 - INFO: pkill -9 indiserver
  Dec 01 13:20:05 astroberry indi-web[1803]: 2019-12-01 13:20:05,240 - WARNING: terminating indiserver failed code 1

If I start indi-web manually I also get a lot of error messages ..

  astroberry@astroberry:~ $ cd /usr/local/bin
  astroberry@astroberry:/usr/local/bin $ ls
  indi-web
  astroberry@astroberry:/usr/local/bin $ ./indi-web -v
  2019-12-01 13:29:13,141 - DEBUG: command line arguments: {'indi_port': 7624, 'port': 8624, 'host': '0.0.0.0', 'fifo': '/tmp/indiFIFO', 'conf': '/home/astroberry/.indi', 'xmldir': '/usr/share/indi/', 'verbose': True, 'logfile': None, 'server': 'standalone'}
  2019-12-01 13:29:13,157 - INFO: pkill -9 indiserver
  2019-12-01 13:29:13,180 - WARNING: terminating indiserver failed code 1
  2019-12-01 13:29:13,184 - INFO: using Bottle as standalone server
  2019-12-01 13:29:13,269 - INFO: Deleting fifo /tmp/indiFIFO
  2019-12-01 13:29:13,282 - INFO: indiserver -p 7624 -m 100 -v -f /tmp/indiFIFO > /tmp/indiserver.log 2>&1 &
  Traceback (most recent call last):
    File "./indi-web", line 10, in <module>
      sys.exit(main())
    File "/usr/local/lib/python3.7/dist-packages/indiweb/main.py", line 315, in main
      start_profile(profile['name'])
    File "/usr/local/lib/python3.7/dist-packages/indiweb/main.py", line 99, in start_profile
      indi_server.start(info['port'], all_drivers)
    File "/usr/local/lib/python3.7/dist-packages/indiweb/indi_server.py", line 74, in start
      self.start_driver(driver)
    File "/usr/local/lib/python3.7/dist-packages/indiweb/indi_server.py", line 37, in start_driver
      cmd = 'start %s' % driver.binary
  AttributeError: 'NoneType' object has no attribute 'binary'

SOLUTION

cd ~/-indi  # this is my backup from the old astroberry
mv profiles.db profiles.db_astroberry_1_$(date +%F)

Now you can start indi-web service*** , which creates a new profile database.

*** https://www.indilib.org/support/tutorials/162-indi-web-manager.html
*** https://github.com/knro/indiwebmanager

Image file larger than 16 SD Card

Hi rkaczorek
thank you very much for your fantastic job!! I'd like to use the astroberry system for controlling my scope and I think that it's really wonderflul!!
I downloaded the image (and checked the checksum), but when I try to write it to my 16GB SD Card (with Win32DiskImager) it says that the image is a little bit larger than the SD Card; a 16GB SD card has 14.4 free space while the image is 14.8GB.
I tried to write it ignoring the warning, but when I start Pi there is immediately a kernel panic "Kernel Panic: VFS : Unable to mount root fs on unknown-block (179,2)".
Could you please help me with this issue?
Thanks very very much!!!

possible update issues

This was on a fresh image.
There was an issue in the update. Rerunning allowed it to continue

astroberry@astroberry:$ sudo astroberry-update
[sudo] password for astroberry:
/usr/local/bin/astroberry-update: line 81: unexpected EOF while looking for matching `"'
/usr/local/bin/astroberry-update: line 84: syntax error: unexpected end of file

astroberry@astroberry:
$ sudo astroberry-update
Updating Astroberry Server...
Astroberry Server updated successfully

There seems to be an issue in the upgrade script:

astroberry@astroberry:~$ sudo astroberry-upgrade
Your system version is 1.0.1 and the latest version is 1.0.3
Do you want to upgrade your system (y/n)? y
Upgrading to version 1.0.2...
Updating PHD2...
Fixing hostname...
Updating noVNC...
Updating custom packages...
Installing Planetary Imager...
Your system has been upgraded to version 1.0.2
Upgrading to version 1.0.3...
Updating Planetary Imager...
/usr/local/bin/astroberry-upgrade: line 159: apt-get-y: command not found
Installing Skychart/Cartes du Ciel...
Installing INDI Web Manager...
Created symlink from /etc/systemd/system/multi-user.target.wants/indiwebmanager.service to /etc/systemd/system/indiwebmanager.service.
Updating noNVC...
Synchronizing state of nginx.service with SysV init with /lib/systemd/systemd-sysv-install...
Executing /lib/systemd/systemd-sysv-install enable nginx
Setting up welcome page...
Your system has been upgraded to version 1.0.3
From now on visit http://astroberry.local to access welcome page and https://astroberry.local/desktop/ to access Astroberry Server
Your system is up to date.

Astropanel GPS stuck to Warsaw

Hi,

On a fresh and upgraded astroberry install, the GPS location cannot be forced using configuration files.

After setting my location coordinates in /etc/astropanel.conf with use_gps = no and enabling debug ouput, I can cleary see astropanel.py using my configuration file

Loading values from configuration file
/etc/astropanel.conf
xxx
xxx
0
xxx
My location

But somehow, the astropanel is locked to Warsaw and is waiting for a gps fix
image

Even setting the location in the system weather file /etc/xdg/lxpanel/LXDE-astroberry/panels/panel does not change the gps panel location.

Black Screens

Initial black screen issues, reburned SD card
VNC and https OK
expanded filesystem and rebooted, VNC black screen and https immediately disconnected after connect
ssh into RasPi and rebooted
now VNC and https seem OK

GPS possible problem

Not sure if this is hardware related or python but GPS is not working well with Astroberry Panel at times.

Symptom:-

  1. Panel says "waiting" for GPS fix.
  2. If you run CGPS this clearly shows GPS is working and displays correct details.
  3. You can wait over the 60 secs refresh time (I tried 5 mins) and the situation as described in (1) still exists and CGPS is still working.
  4. Reboot and both GPS in Astropanel and CGPS are correct and sync'd.

Debug just says "trying GPS ........ " then "no coordinates" and takes the default

Ublox-7 is my GPS dongle but the above problem doesn't have a pattern. As I have said before the GPS is next to the Window so not best placed but the fact hat CGPS is working ok seems to suggest a problem with Astropanel GPS/Python program. I do wait a good deal of time for the GPS to stabilise.

Sorry I could find more info !

Kstars not showing profiles created by Astroberry and other issues.

Hi Radek,

As requested info on above problem.

  1. Existing Kstars/Indi was installed under PI user

2.Astroberry installed as per instructions using APT etc

  1. Astroberry is able to see only User Astroberry profiles (guess thats what is expected)

  2. Created new profiles via Web Browser utility - these can be seen even after power off/on

  3. Running Kstars via Menu - education etc via REALVNC viewer - ekos only see's original pre Astroberry profiles.

  4. Astroberry Connect does NOT work with my Realvnc server - which was installed before Astroberry but is up to date. Press "connect" in Web browser and just displays "failed to connect". Thats using either Hotspot or Static Wired Ethernet addresses. Dont get the option to input a password! Realvnc viewer works as before Astroberry install.

No DOT(.)indi directory exists under Astroberry user but does still exist under PI.. Used ls -la to verify which should have shown "hidden directories".

Guess problem is with having existing user PI with Indi/Kstars/ekos compiled and installed,

Where are the log files for Astroberry server etc kept - nothing shown in SYSLOG,DMESG etc

Also Rpi-config is not holding on to changes for Wifi (GB).

Hotspot working fine even when connected to static wired ethernet - i.e. both working together.

Weather plugin does not hold onto location change using UK post code - it might be warmer in Warsaw but not really helpful. Reverts back to Warsaw when HOTSPOT only connected.

To be fair I would have used a clean install but haven't a spare SD card at the moment

VNC in every session?

For connections by VNC, I need execute in every session VNCserver. I want to have the rapsberry in my personal remote observatory, and I don't know how can I would connect by VNCclient in my PC without to do in first time the manual activation of the VNC server in the Rapsberry.
Is it possible execute it automatically in the setup of the rapsberry session?
Sorry for my poor english, and congratulations for your excellent work in this astroberry server!!!

VNC is very laggy

Trying to connect to RPi over VNC - it is very slow and laggy. The response time is in the order of seconds

Connection not private

Hi,
I installed the certificate and am running Chrome. But I get the "Your connection is not private" message from Chrome and even using an anonymous window has the same result. I am using Windows 10
Is there something I am doing wrong?
Thanks in advance
Olivier

VAP and Home Wlan compatibility

Hullo!
when I active my rapsberry pi 3 Model B, after SD flash and expand the space with raspi-config, VAP works correctly. But, when I configure my Home Wlan, VAP wireless does not appear. Is it incompatible? Can I do the remote control by ethernet lan connection?
Thanks!

gphoto2 lib_usb_bulk_transfer timeout when capturing Nikon DSLR d7000

6.666016 ptp_usb_getdata (2): Reading PTP_OC 0x1008 (Get object info) data...
6.666036 gp_port_read (3): Reading 1024 = 0x400 bytes from port...
6.666151 gp_libusb1_read libusb1.c:577: 'libusb_bulk_transfer (port->pl->dh, port->settings.usb.inep, (unsigned char*)bytes, size, &curread, port->timeout)' failed: Pipe error (-9)
6.666185 gp_port_read gphoto2-port.c:437: Reading 1024 = 0x400 bytes from port failed: Error reading from the port (-34)
6.666203 ptp_usb_getpacket (2): Clearing halt on IN EP and retrying once.
6.666221 gp_port_usb_clear_halt (2): Clear USB halt...
6.666282 gp_port_read (3): Reading 1024 = 0x400 bytes from port...

novnc version update

novnc has recently been updated.
Is it possible to update this app on astroberry?

question not a problem :-)

Radek,
Indiserver started via the panel seems to use a PIPE(/tmp/indififo for communication with drivers ?

Does this mean the astroberry indi drivers are special in any way or is this something indi drivers have always been able to do.

Does this give any advantages?

Just being nosey :-)

Error on login

Hi,

First, great job for your application :).

When i want to log in via web browser on https:///desktop, i have this on login screen :
noVNC encountered an error: Uncaught TypeError: Cannot read property 'appendChild' of null https://astroberry.local/desktop/app/custom_ui.js:834:40 TypeError: Cannot read property 'appendChild' of null at Object.setAlienStyles (https://astroberry.local/desktop/app/custom_ui.js:834:40) at Object.initSettings (https://astroberry.local/desktop/app/custom_ui.js:192:16) at Object.start (https://astroberry.local/desktop/app/custom_ui.js:114:16) at Object.WebUtil.initSettings (https://astroberry.local/desktop/app/webutil.js:165:22) at Object.load (https://astroberry.local/desktop/app/custom_ui.js:104:21) at window.onscriptsload (https://astroberry.local/desktop/app/custom_ui.js:75:45) at HTMLScriptElement.loadFunc (https://astroberry.local/desktop/app/webutil.js:409:28)

When i turn off and on my rPi i havn't these errors yet.

Few weeks ago, i have only change wifi configuration to allow my rPi to connect to my local network and sometime i update packets via synaptics.
If you have some questions, i will trying to answer you.

Thx

Firefox crashed at start

Hello,
I tried the astroberry today. It is a great project. I like it.
There is small issue, sometimes I need firefox for internet downloads or to check my mail.
Firefox is crashing right after clicking the symbol. If you do not think that is related to astroberry, close this issue.
astroberry

GPS (latest version) causes problem

Radek,

Having a real GPS switched on makes the map repeatedly jump between default location and the fix from the real GPS. Ok if no real GPS attached.

tablet connection

I can connect access point with laptop (Windows 10) using VNC Viewer but not with my tablet A (android). MSG: The computer's domain name could not be resolve.

Feature list incorrect on readme.

Is the list of features correct on the readme page? I don't see some of this stuff and am wondering if I missed something when I installed from an existing Raspbian build.

I don't see things like Cartes du Ciel and CCDciel, but I do see Kstars, PHD2, and oaCapture. I might not need the missing stuff, just curious if the readme is up-to-date.

Also, do you recommend getting a USB GPS device for the Raspberry Pi? It would be nice if I could rely on the polar finder chart. Without an accurate location, I think it's going to be incorrect all of the time.

Enhancement request for the distant future - perhaps

Maybe to make Astroberry more "turnkey" the Astroberry panel could allow the user to state which applications are started on boot (tick box approach aka Indi drivers) so when they press "connect" for NoVnc these applications are open and ready for user input. I know it can be done normally via the desktop autostart mechanism/files.

Just thought it might be a feature to have for those who dont want to get too involved in Linux etc.

Just a thought. :-)

Image too big

Burning to 16Gb SD using dd or Etcher gives warning image too big.
Following instructions to shrink image in gparted shows no loop0p1 just loop0 and gparted shows 3.9Gb partition but you can't resize or get any info.
Please shrink image before posting for download as I can't use the image file you provide
Linux Mint 18.3

Update consistently fails

I've just recently installed the astroberry-server and it seems to work OK apart from Firefox. In attempting to upgrade the system using Software Updater, the system always crashes halfway through the update. There are something like 400 modules to be updated. Is this a known problem?

Edit: This was caused by a faulty SD card. All now OK.

astroberry-server_2.0.0.img

Hi,
I'have just copied astroberry-server_2.0.0.img on a Scandisk Ultra 16 Gb + RPI3B.
There is no wifi hotspot so, nothing possible to do.
Thanks to help me.
Richard

Unable to connect from Safari browser

Loaded the latest version of astroberry today on to my RPi3B+

Trying to access from my iMac running OSX 10.14.3

ssh connection works fine. via Wifi
VNC connection also works fine but is a little laggy.

When I try and connect via my safari browser I get asked to connect and when I enter the password I get the error message below.

Also tried with Opera browser and get the same message.

screenshot 2019-03-07 at 14 04 28

Web VNC

I installed the astroberry2 image, but vnc is not accessible via web, it says FAILED TO CONNECT, but it works if i use the vnc client from my pc or tablet

Astrometry Index files

I am setting up Astroberry for the first time. I have used StellarMate.

When I go to settings to download astrometry index files, it says “downloads disabled.” The user interface is different from StellarMate, so I am stuck. I don’t see any check box to change the setting.

I see that the astrometry.cfg file is editable, but I am not a programmer.

How do I enable downloads so I can install the plate solving files?

I see reference to ASTAP, which I have heard of, but again, no idea how to set it up with index files for plate solving. Is there a manual for Astroberry?

My hope is to get this Raspberry Pi 4 working once and for all without all the crashes and headaches and workarounds of StellarMate.

Thank you for putting this package together. Looking forward to trying it under the stars.

Tim

No local WiFi and change keybord layout

Hi,

I have no WiFi connexion, edited the /etc/wpa_supplicant/wpa_supplicant.conf with ssid and psk (my wifi password) and reboot, no ip in ifconfig (http://astroberry.local/ => ERR_NAME_NOT_RESOLVED).

And with the raspi-config, I can't change the keyboard layout.
With other raspi-config i do :

  1. Run raspi-config.
  2. Choose Internationalization.
  3. Choose Keyboard setup.
  4. Choose your keyboard or one of the generics.
  5. Choose your langauge. For instance, for American English choose English (US)
  6. sudo reboot.
    But Internationalization is not visible.

Firefox

when I launch Firefox it reports an error immediately. The error is
We're sorry
Firefox had a problem and crashed
I tried to update Firefox but it reported that I had the latest version

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.