Welcome, Guest
Username: Password: Remember me
20 Aug 2017
INDI development team is happy to announce the release of INDI Library v1.5.0. This new exciting release builds on the maturity of INDI Library and comes with many new supported devices and fixes for existing drivers.
Read More...

TOPIC: Astroberry Server

Astroberry Server 6 months 1 week ago #16582

  • patdut
  • patdut's Avatar
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 266
  • Karma: 1
  • Thank you received: 32
Hello Kaczorek,

Would it be possible to add those possibilities to astroberry:

1 improve wlan-conf gui to display the availables SSID and devices to use a better wifi device or to use an ethernet wired link (as network-manager do).
2 a little gui to choose the frame-buffer size in height and width (reducing it improve a lot display performances) with reboot choice.
3 integrate the indi webmanager to be able to use astroberry as a simple access point
4 include skychart and ccdciel in the available tools.
5 a swap space of 2Gb that could be useful
6 make a compressed iso image that can be expanded when starting mate for the first time. I must admit that I don't know how it can be done. But maybe you know :)

I appreciate the https access it is very useful. I have worked on point 4 and 5. It looks easy to do.

Thank you for this great job.

Please Log in or Create an account to join the conversation.

Astroberry Server 6 months 1 week ago #16585

  • maudy
  • maudy's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 320
  • Karma: 2
  • Thank you received: 23
3. I already added it for myself, and it work easily. The tutorial is here in case it helps: indilib.org/support/tutorials/162-indi-web-manager.html
5. Is an easy add to. These are the steps I used, perhaps yours are different?
- make sure you have space on SD Card: df -h
- sudo -s
- sudo echo "/swapfile none swap sw 0 0" >> /etc/fstab

These next two you may want to search around and see what settings meet you needs:
- sudo echo "vm.swappiness = 10" >> /etc/sysctl.conf
- sudo echo "vm.vfs_cache_pressure = 50" >> /etc/sysctl.conf
- exit
- sudo fallocate -l 2G /swapfile
- sudo chmod 600 /swapfile
- sudo mkswap /swapfile
- sudo swapon /swapfile
- sudo swapon -s

Agreed - it is a great image.

Cheers!

Please Log in or Create an account to join the conversation.

Astroberry Server 6 months 1 week ago #16587

  • maudy
  • maudy's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 320
  • Karma: 2
  • Thank you received: 23

Kaczorek wrote: Thanks for your input. Self-signed certificate was my candidate for trouble maker.
I will slightly redesign SSL approach for noVNC so we can use it on various devices.


Please let me know if you wish something tested. For now, in hopes clouds disappear I am using the non-SSL.

If you do come up with a web page for configuring the RPI3 or a button to download the SSL cert (I have had to do this before), some ideas I was working on:

- websocket to monitoring the mounting/unmounting of a USB stick
- same websocket to monitor the apt-get update and apt-get distilled-upgrade
- websocket to monitor the time, date and LAT/long - and reset if needed; my procedures were not good enough on setup (I setup and take down each session unfortunately) and it seems when I disable the/location update between RPI3 and mount, the mount goes to 0's :(
- Button to reboot RPI3
- Button to shutdown RPI3

I was looking at nginx to do the above, and was working on lower the number of worker threads to save more RAM.

Please Log in or Create an account to join the conversation.

Astroberry Server 6 months 1 week ago #16589

  • patdut
  • patdut's Avatar
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 266
  • Karma: 1
  • Thank you received: 32
@maudy
I have tried to install indi-webmanager but got an error message when I run it.
I opened a new thread on this topic, because I guess this is not astroberry topic.
To manage date I have done a client/server in python that worked quite good but needed to be activated manually. Maybe not the better solution.

Please Log in or Create an account to join the conversation.

Astroberry Server 6 months 1 week ago #16598

  • Kaczorek
  • Kaczorek's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 389
  • Karma: 4
  • Thank you received: 133

patdut wrote: Would it be possible to add those possibilities to astroberry...


I have added these to change request pipeline.
Two question to clarify:
- what is a use case scenario for INDI Webmanager while having Ekos Profiles and INDI server start/stop procedures? Are we sure webmanager will not get into conflict with Ekos Profiles?
- using swap on a SD card is a security issue - it tears down the media very quickly, I can add a script but will leave it up to a user to activate swap

Please Log in or Create an account to join the conversation.

Astroberry Server 6 months 1 week ago #16599

  • Kaczorek
  • Kaczorek's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 389
  • Karma: 4
  • Thank you received: 133

maudy wrote: Please let me know if you wish something tested. For now, in hopes clouds disappear I am using the non-SSL.


Ready to test.
1) Download astroberry.crt and import it to your browser.
2) Download server.pem to /opt/noVNC/ on your raspberry
3) Edit /etc/systemd/system/novnc.service on your raspberry and change a line:
from:
ExecStart=/opt/noVNC/utils/launch.sh --listen 443 --ssl-only --vnc localhost:5900 > /dev/null 2>&1
to:
ExecStart=/opt/noVNC/utils/launch.sh --listen 443 --ssl-only --cert /opt/noVNC/server.pem --vnc localhost:5900 > /dev/null 2>&1
4) Run systemctl daemon-reload on your raspberry
6) Run systemctl restart novnc.service on your raspberry

Let me know how it goes.

Please Log in or Create an account to join the conversation.

Astroberry Server 6 months 1 week ago #16602

  • maudy
  • maudy's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 320
  • Karma: 2
  • Thank you received: 23
The first test on the Mac with Safari - worked!

I need to test again on iOS - first test did not work. I need to confirm I set it correctly given my playing yesterday, Stay tuned :)

Please Log in or Create an account to join the conversation.

Astroberry Server 6 months 1 week ago #16608

  • Kaczorek
  • Kaczorek's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 389
  • Karma: 4
  • Thank you received: 133

patdut wrote: make a compressed iso image that can be expanded when starting mate for the first time


What do you mean by this Patrick? Do you mean autoresize feature for microSD bigger than 16GB?

Please Log in or Create an account to join the conversation.

Astroberry Server 6 months 1 week ago #16612

  • Kaczorek
  • Kaczorek's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 389
  • Karma: 4
  • Thank you received: 133
I have just added system upgrade script which lets you upgrade without need to download full system image. Just start terminal window and run astroberry-update and astroberry-upgrade. It will upgrade your system to the latest release of Astroberry Server. See Changelog for details.

Please Log in or Create an account to join the conversation.

Astroberry Server 6 months 1 week ago #16616

  • patdut
  • patdut's Avatar
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 266
  • Karma: 1
  • Thank you received: 32
Sorry I didn't saw that the 16Go SD card was more than 80% full. I was wondering it would be nice to reduce the size with gparted before creating the iso. But it is not useful.
Another point, I tested the indi-webmanager that worked fine without interaction with ekos profiles.
Another point, it would be nice to have a multiple switch to choose the way to communicate between RPi and PC (wifi access point, wifi home network, usb, RJ45 wired) and display the different wifi network availables.
I suggest that you include indistarter in the iso image.

Please Log in or Create an account to join the conversation.

Last Edit: by patdut.

Astroberry Server 6 months 1 week ago #16630

Hello Kaczorek,

Two things:

Firstly, I must say that I'm truly impressed at the efforts you and others have put into the support of INDI. As an amateur astronomer and electronics hacker, I have dreamt for a long while for integration between systems to arrive, and it is here with INDI, and now the bundling of helpful packages such as Astroberry are being created it allows people like me to control and automate within software. So, I salute you Sir(s).

Secondly, I am using MQTT in raspbian, and when I move over to Astroberry would like to use this within the Astroberry build. So a quick check: have you tried this and are there any dependency issues?

BACKROUND and my thoughts: In the design of my "perfect" world for my observatory set-up (before I found INDI) I based my communications between systems on MQTT (Mosquito on the Raspian/Lunix) - its purely a hardware agnostic comms layer (perfect for INDI), but allows for simple integration between IoT and other stuff. Whilst INDI doesn't need this for the basic package of observatory control, having it would allow for more flexible methods of communication between INDI and the outside world. To truly integrate would require a MQTT client module with INDI - well outside the scope of Astroberry I expect.

Time allowing, I will be adding this into the Ubunute-MATE build myself and will be making the first steps into writing an INDI driver; initially I aim to add Dome compass readings by wifi (which I currently have), and other security stuff to other packages like Home Assistant, but this will be quite limited at first without INDI support (but will be sharing RPi hardware).

Just sharing thoughts!

Keep up the good work - Clear Skies!

Please Log in or Create an account to join the conversation.

Astroberry Server 6 months 1 week ago #16640

  • Kaczorek
  • Kaczorek's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 389
  • Karma: 4
  • Thank you received: 133
Hi Rob

I'm glad you like it. Such appreciation words make great fuel for my development engine ;-)
I'm aware of MQTT, but never used it. It should be pretty much easy to translate INDI information for publishing over MQTT. As I understand it's all about publishing info which is already in portable XML format. I'm not clear how it might be used though... I understand how it's used for IoT but here I'm not sure. INDI as a publisher or as a subscriber or both. What are possible use cases and scenarios? Could you share some ideas on architecture you imagine?

Please Log in or Create an account to join the conversation.

Time to create page: 0.120 seconds

Login



3rd Party

Choose from the numerous 3rd party INDI drivers to suit your needs!

Got Problem?

Check out the FAQ, the forum, and the bug tracking system to resolve any issues you might have!
You can also subscribe to INDI newsletter and development mailing lists to get the latest updates on INDI!


Gallery

Replica

Why INDI

Replica