Forfatter Emne: Pellmon  (Læst 13525 gange)

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

Offline Claws

  • Øvet
  • **
  • Indlæg: 21
  • Respekt optjent: +1/-0
Sv: Pellmon
« Svar #30 Dato: Dec 13, 2016, 04:20 »
Motoz, Pellmon ser rigtig spændende ud og jeg deler din holdning om ikke at være afhængig af 3part. Spørgsmålet er så, om Pellmon kan spille sammen med et RTB fyr? :)

Mvh
Claus

Offline motoz

  • Top of the pop
  • *****
  • Indlæg: 255
  • Respekt optjent: +18/-0
Sv: Pellmon
« Svar #31 Dato: Dec 13, 2016, 07:08 »
Lyracken, yes you update by downloading the .deb file, for instance with wget or with your browser, then install it with gdebi.

Kode: [Vælg]
wget https://github.com/motoz/PellMon/releases/download/v0.7.0-beta4/pellmon_0.7.0.beta4-1_all.deb
sudo gdebi v0.7.0-beta4/pellmon_0.7.0.beta4-1_all.deb

To be able to use the openweathermap service you need to enable the plugin in the "conf.d/enabled_plugins.conf" file, and you also need to create an account at openweathermap.com to get your own "apikey" which you copy to the "conf.d/plugins/openweathermap.conf" file. See https://github.com/motoz/PellMon/blob/develop/src/conf.d/plugins/openweathermap.conf

Keep in mind that this was quite quickly thrown together so there may be bugs, you can always install the old release again if there are any problems (which I will of course fix...)

Claus, as far as I know the RTB controller is exactly the same as a scotte/woody V7 controller so it should work. You need to use the 0.7.0-beta version of PellMon and make some changes in the configuration. The default config has the "ScotteCom" plugin activated, which expects to find a V6 controller on a serial port. You need to disable that in "conf.d/enabled_plugins.conf" and enable the "NBECom" plugin in the same file. Then the NBECom plugin need to have your controller's serial number and password to be able to talk to it, that's set in conf.d/plugins/nbecom.conf. https://github.com/motoz/PellMon/blob/develop/src/conf.d/plugins/nbecom.conf Now PellMon should find your controller on your local network automatically. Usage of stokercloud and the android app is not affected by using PellMon and the NBECom plugin.

Then the configuration for the graphs and the system image need to be adjusted for the new plugin. The default database config https://github.com/motoz/PellMon/blob/develop/src/conf.d/database.conf.in is made for the ScotteCom plugin, the data items in the NBECom plugin have different names so you need to change the [pollvalues] section to get something in the graph. For instance something like this:

d01 = operating_data-power_kw
d02 = operating_data-boiler_temp
d03 = operating_data-shaft_temp
d04 = operating_data-photo_level
d05 = operating_data-oxygen_ref
d06 = operating_data-oxygen
d07 = operating_data-power_pct
d08 = operating_data-smoke_temp

You can find out what the data items are called from the parameters view in the webinterface or in the terminal with
Kode: [Vælg]
pellmoncli listTo read an item in the terminal use "pellmoncli get" and to write to an item use "pellmoncli set item value":
Kode: [Vælg]
pellmoncli get advanced_data-boiler_power_kw
And the last thing that needs to be adjusted is the system image. The system image is a plain standard svg file that contains some text elements that are tagged with references to the data items. This too is by default made to fit the ScotteCom plugin so you need to modify the systemimage to get data from the NBECom plugin instead. The PellMon wiki has an article on how to do that here: https://github.com/motoz/PellMon/wiki/Custom-system-image.

« Senest Redigeret: Dec 13, 2016, 07:20 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 lyrakken

  • Guru
  • ****
  • Indlæg: 69
  • Respekt optjent: +0/-0
Sv: Pellmon
« Svar #32 Dato: Dec 17, 2016, 20:52 »



Hvad er galt, har lavet pip install pyowm
Og hvor vælger man hvor målingerne skal tages fra.

Offline motoz

  • Top of the pop
  • *****
  • Indlæg: 255
  • Respekt optjent: +18/-0
Sv: Pellmon
« Svar #33 Dato: Dec 18, 2016, 12:43 »
You need to use sudo with pip install to install the module globally, otherwise it's available only to programs running as user "pi".
Kode: [Vælg]
sudo pip install pyowmYour location is set in the parameters view in the webinterface. For now you have to restart pellmon after changing the location, otherwise you'll have to wait half an hour for the next update. I'll fix that sometime...

« Senest Redigeret: Dec 18, 2016, 12:47 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 lyrakken

  • Guru
  • ****
  • Indlæg: 69
  • Respekt optjent: +0/-0
Sv: Pellmon
« Svar #34 Dato: Dec 18, 2016, 17:11 »




Så er det fixet, det virker dog stadig ikke helt.


Offline motoz

  • Top of the pop
  • *****
  • Indlæg: 255
  • Respekt optjent: +18/-0
Sv: Pellmon
« Svar #35 Dato: Dec 18, 2016, 17:38 »
I think what's happening is that your raspberry starts up so quickly (model 2 or 3 maybe?) that pellmon is up and running before it has received an IP address. My somewhat hastily thrown together openweathermap plugin can't in it's present form handle that there is no internet when it starts. It should get a temperature value at the next update after 30 minutes though, but then it has been constantly spamming the event log with "invalid value" for half an hour. Quite inexcusably bad programming from me there, I'll have to fix that.

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
« Svar #36 Dato: Dec 19, 2016, 18:53 »
The openweathermap plugin should work a lot better in 0.7.0-beta5
https://github.com/motoz/PellMon/releases
Bio Comfort 30kW, compressor cleaning, lambda. Termax 25cr boiler. Matene vertical pellet conveyor. PellMon open source pellet logger: https://github.com/motoz/PellMon

Offline spumanti

  • Øvet
  • **
  • Indlæg: 18
  • Respekt optjent: +3/-0
Sv: Pellmon
« Svar #37 Dato: Dec 20, 2016, 14:09 »
Hi Motoz.

Great explanation there... I think it is what I need to get the PellMon going with my RTB at home.

Thanks for sharing :)


...The default config has the "ScotteCom" plugin activated, which expects to find a V6 controller on a serial port. You need to disable that in "conf.d/enabled_plugins.conf" and enable the "NBECom" plugin in the same file. Then the NBECom plugin need to have your controller's serial number and password to be able to talk to it, that's set in conf.d/plugins/nbecom.conf. https://github.com/motoz/PellMon/blob/develop/src/conf.d/plugins/nbecom.conf Now PellMon should find your controller on your local network automatically. Usage of stokercloud and the android app is not affected by using PellMon and the NBECom plugin.

Then the configuration for the graphs and the system image need to be adjusted for the new plugin. The default database config https://github.com/motoz/PellMon/blob/develop/src/conf.d/database.conf.in is made for the ScotteCom plugin, the data items in the NBECom plugin have different names so you need to change the [pollvalues] section to get something in the graph. For instance something like this:

d01 = operating_data-power_kw
d02 = operating_data-boiler_temp
d03 = operating_data-shaft_temp
d04 = operating_data-photo_level
d05 = operating_data-oxygen_ref
d06 = operating_data-oxygen
d07 = operating_data-power_pct
d08 = operating_data-smoke_temp

You can find out what the data items are called from the parameters view in the webinterface or in the terminal with
Kode: [Vælg]
pellmoncli listTo read an item in the terminal use "pellmoncli get" and to write to an item use "pellmoncli set item value":
Kode: [Vælg]
pellmoncli get advanced_data-boiler_power_kw
And the last thing that needs to be adjusted is the system image. The system image is a plain standard svg file that contains some text elements that are tagged with references to the data items. This too is by default made to fit the ScotteCom plugin so you need to modify the systemimage to get data from the NBECom plugin instead. The PellMon wiki has an article on how to do that here: https://github.com/motoz/PellMon/wiki/Custom-system-image.

 :D