Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Raspberry Pi and Cumulus MX
#41

Shred and hornychz, That's awesome info - just what we "noobs" needed. very much appreciated. I'll give it all a go this afternoon.

spud, no probs and was thinking of something similar. Will do once all up and running, and have been keeping some notes...

Cheers for now guys...

Mark R
Reply
#42

Success... I've got the CumulusMX software up and running on the RasPi3, and connected to the WeatherDuinoPro2 RX station. I'm using the built-in wireless adapter on the Pi3. Stats and data is coming through on the USB, and I've had the Cumulus website (on the Pi) open in a browser on one of my PCs for a couple of hrs now, and all good so far, and no lock ups. (Note that I don't have the solar sensors connected at this point in time, so those figures will look a little skewed (read: High) in the screenshot) I've been making heaps of notes and I'll do up a quick "how to" guide sometime soon.

Mark R

   
{click photo to enlarge}
Reply
#43

Nice work Wizza.
Reply
#44

(01-05-2016, 06:05)Wizza Wrote:  Success...

Good job, Mark. Congratulations! Smile

Best Regards
Zdenek

Brandys/L Weather
Reply
#45

Good job!
Wizza, Spudstrawb and Hornychz, now I know about at least three "gurus" to ask for help. Here, the real NOOB is me. SmileSmileSmile

Reply
#46

Big Grin
Your IT staff ...

Best Regards
Zdenek

Brandys/L Weather
Reply
#47

I configured the VNC server (service) to auto start in the background last night, using an init.d script. I find myself using a SSH shell now to do all of the admin and management on the Pi, so I have set the Xwindows to 'not' auto start. Below is a few notes for reference:

Set Xwindow to 'not' autostart

sudo raspi-config
Select option 3 Boot options
Select option B2 Console Autologin


Install TightVNC

sudo apt-get update
sudo apt-get install tightvncserver


Auto Starting TightVNC Service

sudo nano /etc/init.d/tightvncserver

cut-n-paste the following lines into your new tightvncserver script file:

#!/bin/sh
# /etc/init.d/tightvncserver
# Set the VNCUSER variable to the name of the user to start tightvncserver under
VNCUSER='pi'
case "$1" in
start)
su $VNCUSER -c '/usr/bin/tightvncserver :1'
echo "Starting TightVNC server for $VNCUSER"
;;
stop)
pkill Xtightvnc
echo "Tightvncserver stopped"
;;
*)
echo "Usage: /etc/init.d/tightvncserver {start|stop}"
exit 1
;;
esac
exit 0

To exit and save your new script, hit Ctrl-X, then Y to save, then ENTER to select the file name.

Restart your Pi with: sudu reboot


That's the process I used and all seemed to work ok. This gives you a bash shell at start time on the Pi console (getting you ready to auto run CumulusMX Wink ). If you want to pop into Xwindows for something, just type "sudo startx" If you VNC to your Pi, you will get a Xwindows session. If you SSH to your Pi you will get a bash shell session.
Reply
#48

I have been looking at connecting my Weatherduino Pro2 to a Raspberry pi for a while and I remember old post on other threads regarding some initial attempts, so I spent some time reading this thread as well as the Cumulus forum.
The whole idea was to have a standalone system rather then hooking the station to my MAC..

Eventually two weeks ago, I bought a Raspberry pi3. I installed Raspbian on it with the provided SD card. That was quick and simple. Then I got the latest version of mono, not so much issue there.
I focused after on Cumulux MX. When I first launched it the station was not detected, it took me a couple of tries in Cumulus to have the right settings and make them talk together.. Eventually all went well!

I also hooked 7” touch screen to it to avoid having my screen plugged all the time during the testing. I was wondering if I would keep it but finally decided I won’t as the pi3 is supposed to solely run CumuluxMX and I could access to it remotely. Plus I am not too much a big fan of the rendering on such a small screen (800x600) even though I know we can customize CumulusMX too as a few people did. It’s also a way to keep my existing RX box untouched.
I will keep the touch screen for the Pro4 ☺

I then decided to have all the data relayed to my website. I took me some time to customize the web pages (xxxxT.html templates) integrate them to my existing layout and make work the gauges page – a few test and tries later, I was good to go!
The station is now connected to the Raspberry pi3 for about 2 weeks – I just need to add the auto start script – and it works great. I can connect to it via ssh and the wifi and launch Cumulus MX on my MAC remotely if needed, but most of the times I connect to my website. Pretty handy!

Issues found:
- I noticed a funny issue with the touch screen in the default browser on Raspbian whereby the upper shortcuts in Cumulux MX become inactive after a while when you click on them – rather you get a popup window prompting if you want to download the underlying page..?

- Since the pi3 has no RTC module I found a procedure to initialise the right time zone, but it's something you need every time the power is off.. have to think about it.
Reply
#49

That's great news zitoune, and thank you for sharing your experiences with us. Re your timezone setting, if you already have a script/process to do this for you, maybe you can add it into the CRON scheduler in the Pi and have it preformed automatically upon reboot. Here's a quick reference re the CRON scheduler and editing tasks with CRONTAB:

refer here -> https://www.raspberrypi.org/documentatio...ge/cron.md

Also, you can set your timezone (systemwide) in the rc.conf file. Open /etc/rc.conf in your favorite editor (e.g. type in your console: sudo nano /etc/rc.conf). In this file find the line:

TIMEZONE="Europe/London"

and replace "Europe/London" with your timezone. Maybe that can help you as well.

I too have a Pi3 running CumulusMX and uploading every few minutes to WeatherUnderground. Its a really nice solution. I installed a Voltage Buck Module in my RX station to reduce the voltage down to 5.1V and this runs my Pi3, with battery backup (inside the RX station). A true stand-alone RX and Upload solution.

   
{click photo to enlarge}

Lets know how you get on re automating your timezone setup.

Mark R
Reply
#50

(25-05-2016, 08:03)zitoune Wrote:  - Since the pi3 has no RTC module I found a procedure to initialise the right time zone, but it's something you need every time the power is off.. have to think about it.

Hi,

and congratulations.

I think on the Linux machines is the best way to synchronize the time to use the NTP (= network time protocol).

With Raspbian you can use configuration tool "raspi-config" and in the point "4 Internationalisation Options" choose "I2 Change Timezone". (But - I don't recommend you to change locale if you aren't expert in Linux!) This is the first step.

Second step: you can edit the file /etc/ntp.conf
Maybe you already have some servers in it:
server 0.debian.pool.ntp.org iburst
server 1.debian.pool.ntp.org iburst
server 2.debian.pool.ntp.org iburst
server 3.debian.pool.ntp.org iburst

This pool is maybe enough for you, but there are better servers (higher stratum and close to you). You can find them in Google, for example for Europe:
NTP servers in Europe
(I'm used to use CESNET servers: tik.cesnet.cz and tak.cesnet.cz.)
And after possibly changes in it you can check step three.

The third step is to check, if ntp daemon is starting during boot time. You should have some symlinks to ntp start script in directories /etc/rc3.d and /etc/rc5.d, for example "@S02ntp". Another check is to start command:
/etc/init.d/ntp status
Correct answer is: [ ok ] NTP server is running.

If there is something wrong, let us know.

If it is OK, you get very exact time normal, more accurate then normal PC with Windows ... Good luck!

Best Regards
Zdenek

Brandys/L Weather
Reply




Users browsing this thread: 1 Guest(s)