Forfatter Emne: PellMon på Raspberry  (Læst 167016 gange)

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

Offline kivi

  • Top of the pop
  • *****
  • Indlæg: 352
  • Respekt optjent: +6/-0
PellMon på Raspberry
« Dato: Aug 22, 2014, 20:41 »
Blot til info.

Er der nogle der savner et alternativ til Stokerkontrol, så kan PellMon til Raspberry/Linux varmt anbefales.

Man kan tilgå den fra en hvilken som helst webbrowser og justere næsten alle parametrer i styringen.

Følger man Motoz vejledning, er det nemt at installere også uden Linux erfaring (hvilket jeg ikke har)

Se mere her, https://github.com/motoz/PellMon/wiki
« Senest Redigeret: Nov 03, 2014, 20:19 af kivi »
Mvh
Ole
BlackStar 1016, 16 kW, V6.76, 160+54 m2,  kompressorrens, 300L VVB med solfanger, Pellmon på Raspberry pi

Offline albert

  • Prof
  • ***
  • Indlæg: 60
  • Respekt optjent: +1/-0
    • Data fra vores pillefyr
Sv: PellMon på Raspberry
« Svar #1 Dato: Okt 17, 2014, 12:52 »
Hej Ole

Har du mulighed for på nogle få linjer at beskrive, hvordan jeg installerer PellMon på Raspberry.

Mit kendskab til Linux begrænser sig til det, der har været nødvendigt for at få Stokerkontrol til at køre på Raspberry.
- Denne installationsproces har jeg så til gengæld prøvet nogle gange!

Jeg er blevet træt af, at Stokerkontrol går ned hele tiden.
Og jeg er blevet træt af at vente på, at Jens får tid til at lave en opdatering af Stokerkontrol til Raspberry - har så også ventet et år nu.

Hilsen
Albert
« Senest Redigeret: Okt 17, 2014, 12:53 af albert »
Scotte 16 kw. Black Star S 10-16 kw. Semirens.
VVB med 3 vejs ventil. Kompressorrens. Version 6.79.
Opstart 04.01.2013.
Opvarmer 174 kvm med støtte fra brændeovn. Før brændeovnens entre et forbrug på ca. 4400 l olie pr år.
Minicomputeren Raspberry PI med Pellmon software.

Offline motoz

  • Top of the pop
  • *****
  • Indlæg: 255
  • Respekt optjent: +18/-0
Sv: PellMon på Raspberry
« Svar #2 Dato: Okt 17, 2014, 13:48 »
Hello Albert.
The installation instructions Ole refers to are in the PellMon wiki at https://github.com/motoz/PellMon/wiki/How%20to%20install%20PellMon
You can get it installed by copy/pasting the commands one by one. If you don't mind me answering in English I'm happy to assist in case you have questions.
Bio Comfort 30kW, compressor cleaning, lambda. Termax 25cr boiler. Matene vertical pellet conveyor. PellMon open source pellet logger: https://github.com/motoz/PellMon

Offline kivi

  • Top of the pop
  • *****
  • Indlæg: 352
  • Respekt optjent: +6/-0
Sv: PellMon på Raspberry
« Svar #3 Dato: Okt 17, 2014, 13:51 »
Hej Albert

Jeg må også indrømme at min Linux viden er begrænset.

Men jeg fulgte bare Motoz installations vejledning slavisk, den ligger her:

https://github.com/motoz/PellMon/wiki

Jeg kan også se at Motoz har lavet et installations script som du kan hente her:

https://github.com/motoz/InstallPellMon

Så skulle det køre af sig selv, jeg har dog ikke prøvet det.

Håber svaret kan bruges.

Min Raspberry har til info kørt upåklageligt uden genstart i over 2 måneder
Mvh
Ole
BlackStar 1016, 16 kW, V6.76, 160+54 m2,  kompressorrens, 300L VVB med solfanger, Pellmon på Raspberry pi

Offline motoz

  • Top of the pop
  • *****
  • Indlæg: 255
  • Respekt optjent: +18/-0
Sv: PellMon på Raspberry
« Svar #4 Dato: Okt 17, 2014, 17:16 »
I opened access to my logger at http://pellmon.dhcp.io/pellmon/ with username: stoker password: forum so you can check it out (apart from parameter access which needs another login...)

Edit:
Well... as you who were watching my logger noticed my light sensor broke 30 minutes after I posted this. I've been meaning to order some spares for quite a while and now I realize I haven't done that yet. Silly.  :(



« Senest Redigeret: Okt 17, 2014, 19:09 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 nordgren.dk

  • Top of the pop
  • *****
  • Indlæg: 107
  • Respekt optjent: +2/-0
Sv: PellMon på Raspberry
« Svar #5 Dato: Okt 17, 2014, 19:53 »
Hej motoz.
Min kammerat mener at der er et sted man kan melde sig ind og derved få adgang til sine data fra denne konf.
Jeg mener at hvis han vil kunne se og konfigurere sin rasp. er der kun en vej, og det er at åbne for port 8081 i hans router.

Hvem af os har ret ???

OBS Vi er lige stædige :)

Jeg er sikker på, at vi er mange der ville blive meget glade. Hvis tidsstyringen i PellMon, blev ændret så det kom til at ligne den sidste ændring til styring 7 & 10. Med uge ur og 1 times intervaller.

« Senest Redigeret: Okt 18, 2014, 08:55 af nordgren.dk »
Vh. Klaus Nordgren
http://stokercloud.dk/dev/nordgren.dk.html
Fyr BS1016 semirens- m. komp. rens &  pumpestyring. Styring ver. 10.0967. Ladeventil VTC300 - 55°C. Retur temp. måles før ladeventil. Skorsten Garmeta 125 mm. Opvarmer 220 m2
Hus fra 1979 m . efterisolering.
Forbrug 4,8 T. Inst. okt. 2013

Offline nordgren.dk

  • Top of the pop
  • *****
  • Indlæg: 107
  • Respekt optjent: +2/-0
Sv: PellMon på Raspberry
« Svar #6 Dato: Okt 18, 2014, 08:24 »
Hej Ole

Har du mulighed for på nogle få linjer at beskrive, hvordan jeg installerer PellMon på Raspberry.

Mit kendskab til Linux begrænser sig til det, der har været nødvendigt for at få Stokerkontrol til at køre på Raspberry.
- Denne installationsproces har jeg så til gengæld prøvet nogle gange!

Jeg er blevet træt af, at Stokerkontrol går ned hele tiden.
Og jeg er blevet træt af at vente på, at Jens får tid til at lave en opdatering af Stokerkontrol til Raspberry - har så også ventet et år nu.

Hilsen
Albert

Hej Albert.

Har lavet et image af min PellMon installation. Så du kan få en kopi. Så skal du kun rette bruger navn & password.

Der er også mulighed for at få en mail ved alarm, fra PellMon. Hvilket jeg ikke har fået til at virke. Men det kommer sikkert.

Hvis du vil tilgå PellMon udefra, skal der åbnes for port 8081 i din router. Hvilket jeg har fået til at fungere.

En sidste ting, er at det er en fordel at sætte Raspberry op til at benytte fast ip. Så der ikke skal ændres i Router ved strømsvigt.

Har kun testet systemet på "kontoret" hvor jeg har en ekstra 6 styring. Der ikke er monteret. Her fungerer det perfekt med at hente, se og redigere i styringen.

Hvis du har mod på at prøve. Kan jeg give dig adgang til mit Google drev. Og ligge image op til deling. Det et image fra et 4 GB sd kort.


Vh. Klaus Nordgren
http://stokercloud.dk/dev/nordgren.dk.html
Fyr BS1016 semirens- m. komp. rens &  pumpestyring. Styring ver. 10.0967. Ladeventil VTC300 - 55°C. Retur temp. måles før ladeventil. Skorsten Garmeta 125 mm. Opvarmer 220 m2
Hus fra 1979 m . efterisolering.
Forbrug 4,8 T. Inst. okt. 2013

Offline albert

  • Prof
  • ***
  • Indlæg: 60
  • Respekt optjent: +1/-0
    • Data fra vores pillefyr
Sv: PellMon på Raspberry
« Svar #7 Dato: Okt 18, 2014, 08:47 »
Hej Klaus

Jeg vil meget gerne prøve med dit image.

Har prøvet at installere med script og manuelt og får error ved begge metoder.

Jeg har jo så også brug for en forklaring på, hvordan jeg skifter navn og password.

Jeg har erfaring med at sætte op til en fast ip.

Du kan jo evt. sende oplysninger om dit Google drev på en mail - adressen er på min profil.

Hilsen og tak
Albert
Scotte 16 kw. Black Star S 10-16 kw. Semirens.
VVB med 3 vejs ventil. Kompressorrens. Version 6.79.
Opstart 04.01.2013.
Opvarmer 174 kvm med støtte fra brændeovn. Før brændeovnens entre et forbrug på ca. 4400 l olie pr år.
Minicomputeren Raspberry PI med Pellmon software.

Offline motoz

  • Top of the pop
  • *****
  • Indlæg: 255
  • Respekt optjent: +18/-0
Sv: PellMon på Raspberry
« Svar #8 Dato: Okt 18, 2014, 09:20 »
If you could copy the errors you get and paste them here I'm sure we can get it sorted out. (And it would also help me to improve the instructions)

I verified that the installation instructions work on a clean raspbian installation not long ago without doing anything but copy/pasting the instructions, so it's probably something simple.

Nice that you got it working nordgren!

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

Offline nordgren.dk

  • Top of the pop
  • *****
  • Indlæg: 107
  • Respekt optjent: +2/-0
Sv: PellMon på Raspberry
« Svar #9 Dato: Okt 18, 2014, 11:53 »
Hi Motoz

The installation vent smooth. And all my old USB port connectors works to. This was a big issue with StokerCloud on the Raspberry.   

I having some problem with making the email alarm working. My provider is one.com. In the log its sayes "2014-10-18 12:33:08,194 - INFO - error trying to send email" PLS help

Have about making the time setting like the new 10.512. have you seen it ?
« Senest Redigeret: Okt 18, 2014, 15:49 af nordgren.dk »
Vh. Klaus Nordgren
http://stokercloud.dk/dev/nordgren.dk.html
Fyr BS1016 semirens- m. komp. rens &  pumpestyring. Styring ver. 10.0967. Ladeventil VTC300 - 55°C. Retur temp. måles før ladeventil. Skorsten Garmeta 125 mm. Opvarmer 220 m2
Hus fra 1979 m . efterisolering.
Forbrug 4,8 T. Inst. okt. 2013

Offline kivi

  • Top of the pop
  • *****
  • Indlæg: 352
  • Respekt optjent: +6/-0
Sv: PellMon på Raspberry
« Svar #10 Dato: Okt 18, 2014, 13:33 »
Hej Nordgren

Jeg havde problemer med en Gmail konto, indtil jeg gav Google/Gmail "lov" til at benytte mindre sikre apps til mail. (ikke at jeg aner hvad det betyder :-)

Måske din mail udbyder også har nogle begrænsninger på.

Mvh
Ole
Mvh
Ole
BlackStar 1016, 16 kW, V6.76, 160+54 m2,  kompressorrens, 300L VVB med solfanger, Pellmon på Raspberry pi

Offline motoz

  • Top of the pop
  • *****
  • Indlæg: 255
  • Respekt optjent: +18/-0
Sv: PellMon på Raspberry
« Svar #11 Dato: Okt 18, 2014, 15:13 »
Hello Nordgren,

I see you have changed the mail port to 25, that might mean that your mail provider uses SSL instead of TLS (which gmail, and pellmon uses).

Sending an email using SSL should be just as easy, so if you like to try editing one file we could test it right away.

The file is /usr/local/bin/pellmonsrv.py (open with eg nano as root, sudo nano /usr/local/bin/pellmonsrv.py)

Locate this line in the beginning of the file:
from smtplib import SMTP

change it to :
from smtplib import SMTP_SSL as SMTP

and then on row 345  (in function sendmail_thread) locate this:
        mailserver = SMTP(conf.emailserver)
        mailserver.starttls()
        mailserver.login(conf.emailusername, conf.emailpassword)
        mailserver.sendmail(msgRoot['From'], msgRoot['To'], msgRoot.as_string())
        mailserver.quit()

you need to remove the mailserver.starttls() call by adding a comment mark:
        mailserver = SMTP(conf.emailserver)
        #mailserver.starttls()
        mailserver.login(conf.emailusername, conf.emailpassword)
        mailserver.sendmail(msgRoot['From'], msgRoot['To'], msgRoot.as_string())
        mailserver.quit()

Then restart pellmonsrv with:
sudo service pellmonsrv restart

Then it might work, if SSL instead of TLS was the problem... In that case I'll add a setting the the config file so both are supported.

(Gmail has started to more and more move away from standard mail protocols, favouring web access and their own mail apps, so the setting to enable 'less secure apps' probably means 'allow access using standard protocols instead of only our own secret stuff)

What about the time setting? Have never seen a V10 in real life...

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

Offline nordgren.dk

  • Top of the pop
  • *****
  • Indlæg: 107
  • Respekt optjent: +2/-0
Sv: PellMon på Raspberry
« Svar #12 Dato: Okt 18, 2014, 15:39 »
Hi Motoz
I give it shot. Changing the mail in some dayes, and I get back to you  :-)

Here the step in StokerCloud when I control the start/stop periode in my new 10.512


« Senest Redigeret: Okt 18, 2014, 15:52 af nordgren.dk »
Vh. Klaus Nordgren
http://stokercloud.dk/dev/nordgren.dk.html
Fyr BS1016 semirens- m. komp. rens &  pumpestyring. Styring ver. 10.0967. Ladeventil VTC300 - 55°C. Retur temp. måles før ladeventil. Skorsten Garmeta 125 mm. Opvarmer 220 m2
Hus fra 1979 m . efterisolering.
Forbrug 4,8 T. Inst. okt. 2013

Offline kivi

  • Top of the pop
  • *****
  • Indlæg: 352
  • Respekt optjent: +6/-0
Sv: PellMon på Raspberry
« Svar #13 Dato: Okt 18, 2014, 16:15 »
Hi Motoz

Im trying to make an alarm, which should alarm me of low magazine content, but Im a bit unsure of how to do it, would you please help me.

I have made the following in Pellmon.conf

alarm2_item = magazine_content
alarm2_comparator = <
alarm2_level = 10
alarm2_status =
alarm2_enum =

I cant figure out what I should type in line 4 and 5.

Mvh Ole
Mvh
Ole
BlackStar 1016, 16 kW, V6.76, 160+54 m2,  kompressorrens, 300L VVB med solfanger, Pellmon på Raspberry pi

Offline motoz

  • Top of the pop
  • *****
  • Indlæg: 255
  • Respekt optjent: +18/-0
Sv: PellMon på Raspberry
« Svar #14 Dato: Okt 18, 2014, 16:38 »
Kivi:

The documentation says:[plugin_CustomAlarms]
# Define an alarm by creating four parameters:
# xxx_item = item to read
# xxx_comparator = >|>=|<|<=|==|!=
# xxx_level = level to compare against
# xxx_status = item to hold the result of the comparision, 1=True, 0=False
# optional:
# xxx_enum = FalseText|TrueText

xxx_status defines the name of a new parameter to create, to hold the result of the comparision. That means it could be named anything (as long as it doesn't confilict with any existing parameter, and it might be a bit picky about some special characters)

The xxx_enum is optional, it is used to display a text when reading the status parameter instead of 0/1.

Like this:
alarm1_item = magazine_content
alarm1_comparator = <
alarm1_level = 30
alarm1_status = magazine_supv
alarm1_enum = OK|Pellet magazine low

Then you get a new parameter named 'magazine_supv' which reads 'OK' or 'Pellet magazine low', and also an email when it changes state if you have enabled email for alarms.

Nordgren:

I have thought about adding some kind of task scheduler to pellmon, but I don't really have any use for it myself so it hasn't been done. PellMon however has a command line interface meaning that you can use any task scheduler to change any parameter. Every unix since the dawn of time has come with the cron task scheduler which can be used to run commands on specified days, hours, minutes and so on. It's not very easy to use, but there are visual helper programs like eg. http://www.corntab.com/pages/crontab-gui. To turn on the burner use the command '/usr/local/bin/pellmoncli.py set burner_on 0' and to turn it off '/usr/local/bin/pellmoncli.py set burner_off 0'. Open your 'crontab' with 'sudo crontab -e' and paste the line there and you should be set.

« Senest Redigeret: Okt 18, 2014, 19:38 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