Cruisers & Sailing Forums (https://www.cruisersforum.com/forums/)
-   Marine Electronics (https://www.cruisersforum.com/forums/f13/)
-   -   OpenPlotter project (https://www.cruisersforum.com/forums/f13/openplotter-project-152754.html)

mikedefieslife 18-11-2019 04:40

Re: OpenPlotter project
 
Quote:

Originally Posted by Jubilee39 (Post 3018203)
I am trying to set up remote monitoring on the boat and build on the openplotter. Victron has software that will read their Smart solar controller on a Pi so they say but several things I don't understand. The instructions have you downloading and unzipping to an SD card for the Pi. I want to just put it as an additional program on the Pi and still have open plotter, Can I get pointed to instruction on how to do this? Secondly the link shows many files https://updates.victronenergy.com/fe.../raspberrypi2/ . How can I determine which file is needed

It's an operating system in itself, you cannot run it from within your current Pi installation unless you use a virtual machine which I don't think would work well on a Pi.

It's like trying to run MacOS inside of Microsoft Windows.

sailwing 26-11-2019 11:11

Re: OpenPlotter project
 
Hi, I am not sure if this is the right place to post a specific question but I am using OpenPlotter. I have setup Signal K and Node-Red. In the node-red dashboard, I wanted a chart to plot a history of the last day and it turned out to be a lot of data points (e.g., temperature). I want to reduce the amount of data points, how do I do it? E.g., instead of reading a datapoint every second, I want to change it to every minute. Where do I change the setting? I went through the Signal K setting page, nothing was there fore it.

Thank you in advance.

conachair 26-11-2019 12:40

Re: OpenPlotter project
 
Quote:

Originally Posted by sailwing (Post 3023840)
Hi, I am not sure if this is the right place to post a specific question but I am using OpenPlotter. I have setup Signal K and Node-Red. In the node-red dashboard, I wanted a chart to plot a history of the last day and it turned out to be a lot of data points (e.g., temperature). I want to reduce the amount of data points, how do I do it? E.g., instead of reading a datapoint every second, I want to change it to every minute. Where do I change the setting? I went through the Signal K setting page, nothing was there fore it.

Thank you in advance.

much better way than node-red is to write all the data to a influxdb database.
If your on openpotter 2 it's easy as the sources are set up, in a terminal cut and paste 'sudo apt-get update && sudo apt-get install influxdb chronograf' & hit return. This loads the programs onto the Pi.

Then again in a terminal paste 'sudo systemctl enable influxdb chronograf'.
This means next reboot they will run automatically.

Then 'sudo systemctl start influxdb chronograf' to run now rather than reboot.

Then look in the signalk appstore for the plugin 'signalk-to-influxdb'

To set that up you need to go into chronograf , on a web browser go into 10.10.10.1:8888 and set up a connection -
https://i.imgur.com/MhrBa70.png
Defaults should be OK. And create a database >
https://i.imgur.com/22XYZ1l.png

Back in openplotter server/plugin config put the database name you just created and should be pretty much u and running.
https://i.imgur.com/wLnZ8wA.png
then in chronograf view away :cool:
https://i.imgur.com/r8WOCXQ.png

Thats all from memory so might have missed something, but longer to type than to do! :)

One more thing in influxdb settings to keep the cpu/memory use=age down >https://github.com/influxdata/influx...ment-375773775

influxdb settings are in /etc/influxdb

So much better than trying to plot in node-red. :cool:

HTH

sailwing 26-11-2019 15:41

Re: OpenPlotter project
 
Thank you Conachair. I will certainly investigate.

However, is there a way to reduce sampling frequency?

conachair 26-11-2019 17:20

Re: OpenPlotter project
 
Quote:

Originally Posted by sailwing (Post 3024019)
However, is there a way to reduce sampling frequency?

In the signalk app, also you can set the database to just save for a week or whatever so it doesn't completely fill the hard drive.

plotting is great, see trends you'd never hope to spot just looking at the numbers.

https://i.imgur.com/HNH2kiL.png

Jubilee39 04-12-2019 04:34

Re: OpenPlotter project
 
Are the SPI tabs disabled? I am trying to set up an MCP3008 Analog to digital converter and cannot seem to make it work after two different ways of wiring. I want to interface a 5 channel hall effect board to monitor charging sources

damianham 05-12-2019 00:41

Re: OpenPlotter project
 
Quote:

Originally Posted by sailwing (Post 3024019)
Thank you Conachair. I will certainly investigate.

However, is there a way to reduce sampling frequency?


Although the solution proposed by Conachair looks pretty neat - it is super simple to reduce the sampling frequency in Node-Red. If an Inject node is triggering reading the value from the GPIO for example then alter the frequency in the Inject node. Another method is to insert a Delay node (from the function list) into the message flow and set the delay to whatever frequency is required and ensure 'drop intermediate messages' is checked.


All times are GMT -7. The time now is 10:05.

Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2020, vBulletin Solutions, Inc.


ShowCase vBulletin Plugins by Drive Thru Online, Inc.