Forfatter Emne: PellMon logger/setup program för biocomfort/scotte/woody  (Læst 14165 gange)

0 Medlemmer og 1 Gæst læser dette emne.

Offline motoz

  • Top of the pop
  • *****
  • Indlæg: 255
  • Respekt optjent: +18/-0
Summer came to an end and working on this project was suddenly fun again. PellMon now has an installer which makes it just as easy to testrun it, even without connection to a burner, as to do a system installation. Another highlight is the updated webinterface which now works even better on small mobile screens.
https://github.com/motoz/PellMon
Bio Comfort 30kW, compressor cleaning, lambda. Termax 25cr boiler. Matene vertical pellet conveyor. PellMon open source pellet logger: https://github.com/motoz/PellMon

Offline motoz

  • Top of the pop
  • *****
  • Indlæg: 255
  • Respekt optjent: +18/-0
Sv: PellMon logger/setup program för biocomfort/scotte/woody
« Svar #1 Dato: Okt 03, 2013, 09:04 »
I got the webinterface part of pellmon up and running on http://motoz.pythonanywhere.com/ for testing.
It's just the interface, the communication server is not running so it shows only dummy measurements and random parameter values, but it's better than a screenshot.

You can log in with
username: testuser
password: 12345
to get access to the parameter view.

It's running on a free account so it might be slow or unavailable if traffic gets too high.
Feedback is appreciated!

(I should mention that it does not work very well on old versions of internet explorer. Should be ok from IE9 and forward, but I'm not able to test that. At least on IE8 you will always get the collapsed mobile view regardless of how big your monitor are, which for instance means that the menu is hidden behind a button in the upper right corner. Any newish version of firefox, chrome, safari or opera and probably a new explorer would be ok)
« Senest Redigeret: Okt 03, 2013, 13:06 af motoz »
Bio Comfort 30kW, compressor cleaning, lambda. Termax 25cr boiler. Matene vertical pellet conveyor. PellMon open source pellet logger: https://github.com/motoz/PellMon

Offline adi_g_s

  • Begynder
  • *
  • Indlæg: 1
  • Respekt optjent: +0/-0
Sv: PellMon logger/setup program för biocomfort/scotte/woody
« Svar #2 Dato: Okt 05, 2013, 14:33 »
Hi Motoz,

I think it is a great project and I'm looking forward to try it on. I like that you use lightweight RRD database.
My setup is based on a TPLink router with OpenWRT on top, and i think PelletMon should work nice on it.
last winter i made myself some bash scripting that allowed me to do basic cli monitoring and configuration, unfortunately i had issues in communication which required frequent reset of usb port /dev/tty/USB0.
i will keep you updated with my progress.
Adrian,
Opop Biopel 24Kw - Biocomfort 6.33

Offline motoz

  • Top of the pop
  • *****
  • Indlæg: 255
  • Respekt optjent: +18/-0
Sv: PellMon logger/setup program för biocomfort/scotte/woody
« Svar #3 Dato: Okt 05, 2013, 19:59 »
Nice that you find it useful. The installation instruction is a bit debian centric since we are running on raspberry with raspbian, and ubuntu. But as long as you can get the dependencies and have dbus running it should work on any linux. Let me know if you need help, it would be really great to have it running on openwrt, I believe you can get a compatible tp-link for 20€
Bio Comfort 30kW, compressor cleaning, lambda. Termax 25cr boiler. Matene vertical pellet conveyor. PellMon open source pellet logger: https://github.com/motoz/PellMon

Offline motoz

  • Top of the pop
  • *****
  • Indlæg: 255
  • Respekt optjent: +18/-0
Sv: PellMon logger/setup program för biocomfort/scotte/woody
« Svar #4 Dato: Jan 08, 2014, 09:53 »
I'll post an update again since there are quite a few new features:
  • Plugin interface, add optional code with new functionality without needing to change anything in the pellmon codebase
  • CustomAlarms plugin, add any number of data and corresponding limit to compare to, and get an email when exceeded
  • SiloLevel plugin, calculate silo level based on fill up date and fill up level and visualize as a graph

  • Consumption bar charts show the consumption up to current time, and a predicted value for the completion of the newest 'unfinished' bar as a light grey bar on top of it
  • Calculate plugin, calculate new values based on existing data using a simple expression that can be edited in the webinterface. The calculated value can be logged and viewed in the graph, used by the CustomAlarms plugin or even used to automatically set values for existing parameters.
  • OWFS plugin, read data from onewire sensors by connecting to an OWFS server
  • ScotteCom plugin. Biocomfort/scotte/woody support is enabled by this plugin, meaning it can now be disabled.
  • RaspberryGPIO plugin. For those that don't have a supported NBE burner, this plugin calculates power and pellet consumption by counting feeder auger revolutions with a microswitch connected to a general purpose input pin on the raspberry pi. This plugin naturally only works when running on a raspberry pi computer
« Senest Redigeret: Jan 08, 2014, 10:30 af motoz »
Bio Comfort 30kW, compressor cleaning, lambda. Termax 25cr boiler. Matene vertical pellet conveyor. PellMon open source pellet logger: https://github.com/motoz/PellMon

Offline motoz

  • Top of the pop
  • *****
  • Indlæg: 255
  • Respekt optjent: +18/-0
Sv: PellMon logger/setup program för biocomfort/scotte/woody
« Svar #5 Dato: Feb 17, 2014, 11:09 »
Hello again,

PellMon is slowly becoming closer to complete, the main two additions lately are:

The RaspberryGPIO plugin now makes it easy to set up and use all 17 I/O of the raspberry pi as inputs / outputs or counters. There is also a 'tachometer' mode that can be used for instance to measure blower rpm, and a latched_input mode that makes sure that short input activations are not missed.

And to be able to use the abundance of I/O, the 'Calculate' has also been improved. Now it has an if..then..[else]..end clause, local and global variables, lots of new operators, descriptive error messages to help in writing the scripts and most importantly cyclic execution. This means that almost any functionality can be added by adding a 'Calculate' script. The scripts are written using reverse polish notation (RPN), so anyone who has used an HP pocket calculator should feel right at home.

Examples:

Flash an alarm light connected to pin 16 at 1Hz when the boiler temperature is above 90 degrees, by adding this to the configuration file https://github.com/motoz/PellMon/blob/master/src/pellmon.conf.in:

[plugin_RaspberryGPIO]
gpio23_function = output
gpio23_item = out
gpio23_pin = 16

[plugin_Calculate]
blink_prog = if boiler_temp get 90 > then out get 0 1 ? out set end
blink_taskcycle = 0.5

and by adding:
blink_progtype = R/W
the 'blink_prog' item holding the script becomes a read/write item, meaning that it can be edited in the parameters view of the webinterface.

Ex 2: add 3 onewire temperature sensors and  read the average temperature from an item named 'average_temp' and maximum temperature from 'max_temp'

[plugin_OWFS]
owfs1_item = temp1
owfs1_path = 10.67C6697351FF/temperature
owfs1_item = temp2
owfs1_path = 10.57C669E352FF/temperature
owfs1_item = temp3
owfs1_path = 10.66A6237321FF/temperature

[plugin_Calculate]
aver_prog = temp1 get temp2 get  temp3 get + + 3 /
aver_readitem = average_temp
max_prog = temp1 get temp2 get max temp3 get max
max_readitem = max_temp

Bio Comfort 30kW, compressor cleaning, lambda. Termax 25cr boiler. Matene vertical pellet conveyor. PellMon open source pellet logger: https://github.com/motoz/PellMon

Offline motoz

  • Top of the pop
  • *****
  • Indlæg: 255
  • Respekt optjent: +18/-0
Sv: PellMon logger/setup program för biocomfort/scotte/woody
« Svar #6 Dato: Mar 06, 2014, 06:45 »
A new small addition to PellMon that I hope will be very useful: clicking an event on the frontpage or in the logview adds a graph showing exactly what happened at that time.

I think this will make it much easier to follow up if a parameter change did improve things or not. The 'look' of the web interface is also updated, hopefully improved:

 

As an illustration I changed the 'blower cleaning' setting from 60 to 50 and later back again, as can be seen by clicking the parameter changes in the logview the blower speed in the 'cleaning peaks' did go from 2400rpm to 2300rpm and back again:
Bio Comfort 30kW, compressor cleaning, lambda. Termax 25cr boiler. Matene vertical pellet conveyor. PellMon open source pellet logger: https://github.com/motoz/PellMon

Offline JensChristensen

  • Top of the pop
  • *****
  • Indlæg: 164
  • Respekt optjent: +3/-1
  • It can and will be done.
Sv: PellMon logger/setup program för biocomfort/scotte/woody
« Svar #7 Dato: Mar 06, 2014, 08:30 »
AWESOME.  :D Can`t get my raspberry to work with stokerkontrol but maybe this will.
Woody blackStar Mini 10 kw.
6,79 Styrring
215 kvm 6 Ton årligt.

Offline motoz

  • Top of the pop
  • *****
  • Indlæg: 255
  • Respekt optjent: +18/-0
Sv: PellMon logger/setup program för biocomfort/scotte/woody
« Svar #8 Dato: Mar 06, 2014, 08:47 »
I would hope so  ^-^, just install all the dependencies listed in the readme (with sudo apt-get install) and then follow 'system installation'. The default configuration works as it is for scotte/woody, just ask if you need any help.
Bio Comfort 30kW, compressor cleaning, lambda. Termax 25cr boiler. Matene vertical pellet conveyor. PellMon open source pellet logger: https://github.com/motoz/PellMon

Offline JensChristensen

  • Top of the pop
  • *****
  • Indlæg: 164
  • Respekt optjent: +3/-1
  • It can and will be done.
Sv: PellMon logger/setup program för biocomfort/scotte/woody
« Svar #9 Dato: Mar 06, 2014, 11:34 »
Super.  :)
Woody blackStar Mini 10 kw.
6,79 Styrring
215 kvm 6 Ton årligt.

Offline motoz

  • Top of the pop
  • *****
  • Indlæg: 255
  • Respekt optjent: +18/-0
Sv: PellMon logger/setup program för biocomfort/scotte/woody
« Svar #10 Dato: Mar 10, 2014, 10:23 »
The PellMon demo at http://motoz.pythonanywhere.com/ is now updated to the latest version, including the 'graph-from-event' links. 
Bio Comfort 30kW, compressor cleaning, lambda. Termax 25cr boiler. Matene vertical pellet conveyor. PellMon open source pellet logger: https://github.com/motoz/PellMon

Offline motoz

  • Top of the pop
  • *****
  • Indlæg: 255
  • Respekt optjent: +18/-0
Sv: PellMon logger/setup program för biocomfort/scotte/woody
« Svar #11 Dato: Mar 14, 2014, 11:13 »
Status emails now include a graph image. The image size, timespan and plot lines to include can be freely set in the configuration file and there is also an option to schedule a 'follow-up' email to be sent when a set time has passed after the alarm went off. The graph image is sent as an inline image in an html email, or if one prefer it can be sent as an attachment to a plain-text email.
Bio Comfort 30kW, compressor cleaning, lambda. Termax 25cr boiler. Matene vertical pellet conveyor. PellMon open source pellet logger: https://github.com/motoz/PellMon

Offline motoz

  • Top of the pop
  • *****
  • Indlæg: 255
  • Respekt optjent: +18/-0
Sv: PellMon logger/setup program för biocomfort/scotte/woody
« Svar #12 Dato: Apr 28, 2014, 09:59 »
New feature in the latest master: Live system picture:


The system picture is an svg file (vector image) that can be edited with any svg capable vector drawing program, for instance the excellent and free inkscape. The data readings are regular text objects in the svg image that are tagged with an id in the form "paramname:parameter", where 'parameter' is the name of the data to insert into the picture. The web application scans the image for these tags and creates a websocket connection to your pellmon webserver that keeps them updated in realtime. This means that any available data can be inserted into the picture with any font, size, color and orientation desired just by opening the system.svg file and redrawing it. Tagging a text with a parameter name is as simple as right clicking it in inkscape, selecting 'object properties', and filling out the 'Id' field in the dialog box:


Since the system image is in vector form it can easily be redrawn to fit any particular boiler installation by moving, resizing and redrawing the elements in the provided image, or of course a new one can be made from scratch. Since it's in vector form it also scales beautifully to the browser window on any screen size.

And as a bonus the event view on the frontpage and the parameter page are now also live, ie. updated in realtime.

Updated installation instructions in the wiki: https://github.com/motoz/PellMon/wiki
Bio Comfort 30kW, compressor cleaning, lambda. Termax 25cr boiler. Matene vertical pellet conveyor. PellMon open source pellet logger: https://github.com/motoz/PellMon

Offline x15th

  • Begynder
  • *
  • Indlæg: 1
  • Respekt optjent: +0/-0
Sv: PellMon logger/setup program för biocomfort/scotte/woody
« Svar #13 Dato: Okt 06, 2015, 13:54 »
Hi, is there any progress with installation of PellMon on OpenWRT? I have OpenWRT router and I would like to use for PellMon, unfortunatelly installation described for Debian doesn't work for OpenWRT.
Any help appreciated...

Offline motoz

  • Top of the pop
  • *****
  • Indlæg: 255
  • Respekt optjent: +18/-0
Sv: PellMon logger/setup program för biocomfort/scotte/woody
« Svar #14 Dato: Okt 07, 2015, 06:10 »
I have not heard from adi_g_s since he mentioned above he will try to port pellmon to openwrt. My guess is that it might be quite hard. Some of the dependencies seem to be available in openwrt and some can probably be installed with pip. What have you tried so far?
Bio Comfort 30kW, compressor cleaning, lambda. Termax 25cr boiler. Matene vertical pellet conveyor. PellMon open source pellet logger: https://github.com/motoz/PellMon