Stokerforum

Interface => Interface til varme systemer => Stoker kontrol => Emne startet af: Christian_IA efter Jul 29, 2014, 09:23

Titel: StokerKontrol på Raspberry Pi ?
Indlæg af: Christian_IA efter Jul 29, 2014, 09:23
Hej alle sammen.
Jeg vil gerne af med den bærbare jeg har liggende i fyrrummet og overvejer en Raspberry Pi som denne:
http://www.dustinhome.dk/product/5010659585/raspberry-pi-700mhz-arm-cpu-512mb-ram/

Vil jeg (jeg har rigtigt gode IT kundskaber og middel kendskab til Linux) relativt nemt kunne få Linux og StokerKontrol op at køre på den ?

Hvordan med Teamviewer eller lign ?
Titel: Sv: StokerKontrol på Raspberry Pi ?
Indlæg af: DenHalve efter Jul 29, 2014, 12:37
prøv at kigge her

http://www.stokerpro.dk/viewtopic.php?f=137&t=22172
Titel: Sv: StokerKontrol på Raspberry Pi ?
Indlæg af: Christian_IA efter Jul 29, 2014, 13:29
prøv at kigge her

http://www.stokerpro.dk/viewtopic.php?f=137&t=22172
Mener du at det er en blindgyde at prøve med en Raspberry Pi ?
Titel: Sv: StokerKontrol på Raspberry Pi ?
Indlæg af: DenHalve efter Jul 29, 2014, 14:20
Nej - jeg mente - prøv evt. at kigge nærmere på PellMon som nævnes i tredie indlæg ( på engelsk ) ( det er så vidt jeg ved ham der har lavet det, der skriver det ).
Titel: Sv: StokerKontrol på Raspberry Pi ?
Indlæg af: Christian_IA efter Jul 30, 2014, 10:51
Nej - jeg mente - prøv evt. at kigge nærmere på PellMon som nævnes i tredie indlæg ( på engelsk ) ( det er så vidt jeg ved ham der har lavet det, der skriver det ).
Jeg har allerede købt en licens til Stokerkontrol og har det kørende på en bærbar i fyrrummet.
Ville dog gerne have det kørende på en lidt mindre enhed for at spare strøm (og så kunne det også være lidt sjovt at nørde lidt med Raspberry Pi og Linux....)
Titel: Sv: StokerKontrol på Raspberry Pi ?
Indlæg af: DenHalve efter Jul 30, 2014, 11:39
Kig på hjemmesiden ( stokerkontrol ) under tips og tricks - der er der skrevet noget om at installere på Raspberry Pi'en - og linux-versionen mener jeg kan downloades hvis man har licens.
Jeg kan ikke kigge efter, da jeg er skiftet V10.
Titel: Sv: StokerKontrol på Raspberry Pi ?
Indlæg af: Christian_IA efter Jul 30, 2014, 12:19
Kig på hjemmesiden ( stokerkontrol ) under tips og tricks - der er der skrevet noget om at installere på Raspberry Pi'en - og linux-versionen mener jeg kan downloades hvis man har licens.
Jeg kan ikke kigge efter, da jeg er skiftet V10.
Det jeg mest søgte var om det var relativt ligetil at få det til at køre :-)
Så ligetil som Linux er :-)
Og så om der var noget fjernstyringssoftware ala Teamviewer til Linux.
Jeg har siden fundet ud af at VNC vist kan bruges.
Titel: Sv: StokerKontrol på Raspberry Pi ?
Indlæg af: albert efter Jul 31, 2014, 06:52
Hej Christian

Mine erfaringer er, at det nok lader sig gøre at installere Stokerkontrol på RaspberryPI. Men det kører på ingen måde stabilt på nuværende tidspunkt.
Som du kan se i andre tråde her på forummet, har Jens (BOINKUSER), som står for udvikling af programmet, for snart meget længe siden lovet at lave en forbedret version specielt til rpi - men han har endnu ikke haft tid til det.

Jeg følge anvisningerne her
http://stokersoft.com/blog/stokerkontrol/stokerkontrol-pa-raspberry-pi/
når jeg installerer.
Jeg undlader det sidste patch
http://stokersoft.com/download/linux/sk325-stokercloud-patch.zip
da jeg ikke kan få det til at virke alligevel.

Min installation kører i bedste fald en måned, før det låser og bryder ned. Men oftest kun en uge eller blot en enkelt dag.
Jeg har lavet et image af installationen, som jeg så igen indlæser på sd-kortet, så skidtet kører lidt igen.

Hvis du sender mig en mail med tlf.nummer kan vi snakke mere om det, hvis du har brug for det.

Hilsen
Albert


Titel: Sv: StokerKontrol på Raspberry Pi ?
Indlæg af: Christian_IA efter Jul 31, 2014, 07:20
Hej Albert.
Tak for dit input.
Jeg vælger at prøve det af, hvis så det driller så må jeg finde anden spændende anvendelse for Pi'en :-)
Min nuværende pc installation driller faktisk lidt, det er som om at der er noget med usb donglen som driller, selv om det er den anbefalede FTDI chip.
Titel: Sv: StokerKontrol på Raspberry Pi ?
Indlæg af: motoz efter Jul 31, 2014, 09:26
Well, if you already have a 'pi and want to tinker with it then I can't see why you wouldn't try out PellMon also? I can absolutely understand that you like to keep using stokerkontrol and don't want to lose the history you already have there, but couldn't it be fun just to try it out anyway? A PellMon install will only cost you 10 minutes of your time copy-pasting the installation commands from the wiki, and uninstalls cleanly with a single command when you want to get rid of it ...

(Albert, if you have to reimage the sd-card to get your raspberry up and running again then you might have a bad power supply, a bad sd card or both. The raspberry is a bit 'famous' for having weak voltage regulation, and I have read claims that a below average quality power supply can cause sd card corruption. If it boots normally but only stokerkontrol won't work then that's of course not the case)

Titel: Sv: StokerKontrol på Raspberry Pi ?
Indlæg af: Christian_IA efter Jul 31, 2014, 10:33
Well, if you already have a 'pi and want to tinker with it then I can't see why you wouldn't try out PellMon also? I can absolutely understand that you like to keep using stokerkontrol and don't want to lose the history you already have there, but couldn't it be fun just to try it out anyway? A PellMon install will only cost you 10 minutes of your time copy-pasting the installation commands from the wiki, and uninstalls cleanly with a single command when you want to get rid of it ...
You are right and I will give it a go :-)
Titel: Sv: StokerKontrol på Raspberry Pi ?
Indlæg af: nordgren.dk efter Aug 04, 2014, 06:42
Kan klart tilslutte mig, at det ikke kommer til at køre stabilt på en på en PI. Har forsøgt med alt hvad der stod i min magt. Har valgt at købe en v.10 styring. Årsag, har brugt min. 40 timer på forskellige setup. Og alle har gået ned efter max. 1 uge.
Skriv en pm for yderligere Info. Har i øvrigt set at teamwiever har en løsning Windows/Linux. Brugte selv vnc.
Titel: Sv: StokerKontrol på Raspberry Pi ?
Indlæg af: motoz efter Aug 04, 2014, 07:46
Then again I believe you never tried PellMon...  ^-^
Titel: Sv: StokerKontrol på Raspberry Pi ?
Indlæg af: Christian_IA efter Aug 04, 2014, 08:10
Kan klart tilslutte mig, at det ikke lommer til at køre stabilt på en på en PI. Har forsøgt med alt hvad der stod i min magt. Har valgt at købe en v.10 styring. Årsag, har brugt min. 40 timer på forskellige setup. Og alle har gået ned efter max. 1 uge.
Skriv en pm for yderligere Info. Har i øvrigt set at teamwiever har en løsning Windows/Linux. Brugte selv vnc.
Jeg tror nu jeg vil give det et forsøg, om ikke andet så kan jeg bruge Pi'en til noget andet sjovt hvis det fejler :-)
Titel: Sv: StokerKontrol på Raspberry Pi ?
Indlæg af: nordgren.dk efter Aug 04, 2014, 12:56
Indtil Jens, får tid til et nyt stykke software. Bør du helt klart gå efter PellMon. Har selv fået glæde af de 4 pi jeg købte ind til formålet. De glæder idag mig og 2 kammerater, da de har fået nyt liv som mediecenter. Kører perfekt med Xbmc til pi. Resten af indkøbet herunder 4 stk. USB adaptere er endt i brokkassen. Hører meget gerne om dine erfaringer med PellMon.
Titel: Sv: StokerKontrol på Raspberry Pi ?
Indlæg af: Christian_IA efter Aug 04, 2014, 14:59
Indtil Jens, får tid til et nyt stykke software. Bør du helt klart gå efter PellMon. Har selv fået glæde af de 4 pi jeg købte ind til formålet. De glæder idag mig og 2 kammerater, da de har fået nyt liv som mediecenter. Kører perfekt med Xbmc til pi. Resten af indkøbet herunder 4 stk. USB adaptere er endt i brokkassen. Hører meget gerne om dine erfaringer med PellMon.
jeg vil bestemt prøve PellMon.
Som mediecenter fungerer Synology NAS og WDTV Live fint :-)
Titel: Sv: StokerKontrol på Raspberry Pi ?
Indlæg af: Christian_IA efter Aug 05, 2014, 08:38
Well, if you already have a 'pi and want to tinker with it then I can't see why you wouldn't try out PellMon also? I can absolutely understand that you like to keep using stokerkontrol and don't want to lose the history you already have there, but couldn't it be fun just to try it out anyway? A PellMon install will only cost you 10 minutes of your time copy-pasting the installation commands from the wiki, and uninstalls cleanly with a single command when you want to get rid of it ...
I have decided to give PellMon a go first, but I'm in doubt on how the HW is connected from the Scotte to the Raspberry.
Can you help me on that ?
Titel: Sv: StokerKontrol på Raspberry Pi ?
Indlæg af: motoz efter Aug 05, 2014, 11:11
The easy way is to use a usb-serial adapter. It will show up on the raspberry as /dev/ttyUSB0 which PellMon is preconfigured to use so it works out of the box.

The more involved way is to use the serial port avaliable on the pin-header on the rasp, which requires first configuring raspbian to leave it alone (it is used as a tty console by default) and also an adapter to match the 0-3.3V inputs/outputs on the raspberry with the rs232 levels from a scotte (+-7.5V).

The really involved way is to remove and bypass the 'communication-chip' in the scotte, which is just a standard max232 chip that converts voltage levels from the internal 0-5V to rs232 levels, then you could make a really simple adapter by limiting the 5V output from the scotte to 3V to protect the 3.3V input on the raspberry. The other way should be fine as it is (3.3V to 5V). I have not tried this (although I inted to do it somtime), I do suggest that you go with a usb-serial adapter if you don't really know what you are doing.

Titel: Sv: StokerKontrol på Raspberry Pi ?
Indlæg af: Christian_IA efter Aug 05, 2014, 11:53
The easy way is to use a usb-serial adapter. It will show up on the raspberry as /dev/ttyUSB0 which PellMon is preconfigured to use so it works out of the box.

The more involved way is to use the serial port avaliable on the pin-header on the rasp, which requires first configuring raspbian to leave it alone (it is used as a tty console by default) and also an adapter to match the 0-3.3V inputs/outputs on the raspberry with the rs232 levels from a scotte (+-7.5V).

The really involved way is to remove and bypass the 'communication-chip' in the scotte, which is just a standard max232 chip that converts voltage levels from the internal 0-5V to rs232 levels, then you could make a really simple adapter by limiting the 5V output from the scotte to 3V to protect the 3.3V input on the raspberry. The other way should be fine as it is (3.3V to 5V). I have not tried this (although I inted to do it somtime), I do suggest that you go with a usb-serial adapter if you don't really know what you are doing.
My StokerKontrol PC uses a usb-serial adapter now, so I presume that I could just put this on in the raspberry ?
I plan on using the new B+ board which has more usb port.
Does it matter which usb port or will any show op as  /dev/ttyUSB0 ?
Titel: Sv: StokerKontrol på Raspberry Pi ?
Indlæg af: motoz efter Aug 05, 2014, 12:13
It does not matter which usb port you use (if you have two adapters plugged in at the same time one of them is /dev/ttyUSB1). The adapter you have will most certainly work fine.
Titel: Sv: StokerKontrol på Raspberry Pi ?
Indlæg af: Christian_IA efter Aug 05, 2014, 12:28
It does not matter which usb port you use (if you have two adapters plugged in at the same time one of them is /dev/ttyUSB1). The adapter you have will most certainly work fine.
Thank you very much.
I will look forward to get the rapsberry from the supplier and get going.
Titel: Sv: StokerKontrol på Raspberry Pi ?
Indlæg af: nordgren.dk efter Aug 06, 2014, 07:07
Ser frem til at høre hvordan projektet ender. Som jeg har læst mig til med PellMon. Er der ikke mulighed for fjernstyring. Men kun at hente data.
Når der kører vil du måske lave en iso og dele ?
Titel: Sv: StokerKontrol på Raspberry Pi ?
Indlæg af: motoz efter Aug 06, 2014, 08:24
PellMon has 'burner On', 'burner Off', alarm resetting and parameter setting in the web interface which of course is as remotely available as you wish, or you can remotely log in to a shell and use PellMon's command line interface if that is more to your liking...

PellMon can send email with an attached graph when something happens (any or all of alarm, mode or parameter changes depending on what you want). You can also add your own alarms on any measured or calculated quantity.

PellMon has a scripting engine that you can use to make your own calculations and automated tasks, one user uses it to calculate and graph power input from his solar panels.

You also get access to all the raspberrys GPIO's, which gives you >20 inputs/outputs that can be used for any imaginable purpose together with the scripting engine. My favourite example is adding a big button close to the pellet silo that resets the silo level to a preset level when pressed. It's completely freely programmable so there are no limits to what you can do with it.

PellMon can access onewire sensors, so you can add for instance as many temperature sensors as you like.

And on top of that, PellMon comes with complete source code so if you feel that something is missing from this list anyone can add to it... For instance by writing a new 'plugin'. PellMon has a plugin system that allows you to add almost any functionality without touching PellMon's code, just by adding a new plugin.

Hope this makes it clearer what PellMon is.
Titel: Sv: StokerKontrol på Raspberry Pi ?
Indlæg af: Christian_IA efter Aug 06, 2014, 09:26
Ser frem til at høre hvordan projektet ender. Som jeg har læst mig til med PellMon. Er der ikke mulighed for fjernstyring. Men kun at hente data.
Når der kører vil du måske lave en iso og dele ?
ISO af SD kortet ?
Selvfølgelig hvis jeg må pga rettigheder.
Mon ikke man kan ændre parametre som med StorkerKontrol ?
Titel: Sv: StokerKontrol på Raspberry Pi ?
Indlæg af: Christian_IA efter Aug 06, 2014, 09:40
PellMon has 'burner On', 'burner Off', alarm resetting and parameter setting in the web interface which of course is as remotely available as you wish, or you can remotely log in to a shell and use PellMon's command line interface if that is more to your liking...
....snip a description of lot of nice features....
I must say that I'm really looking forward to try out PellMon :-)
Titel: Sv: StokerKontrol på Raspberry Pi ?
Indlæg af: Christian_IA efter Aug 07, 2014, 12:41
Now I have recieved my two Raspberries (1 for PellMOn and 1 for the fun of it) and a 8 GB Card.
So I can soon say: "Let the fun begin :-)"
Titel: Sv: StokerKontrol på Raspberry Pi ?
Indlæg af: kivi efter Aug 12, 2014, 20:19
Nu har jeg prøvet at installere Pellmon på min Raspberry og det ser ud til at køre fint.
Jeg kan også nemt tilgå den fra min iPad.

Dog er der to ting jeg ikke lige kan finde ud af:
1. hvordan ændrer man brugernavn
2. det ser ikke ud til at man kan justere timerne for VVB og varme.

Måske det skyldes min manglende indsigt i linux, men hvis nogle kan hjælpe vil jeg blive glad ;-)
Titel: Sv: StokerKontrol på Raspberry Pi ?
Indlæg af: motoz efter Aug 13, 2014, 06:30
Hello kivi, that's great!

1. The username and password is changed in traditional linux-style by editing the configuration file /etc/pellmon/pellmon.conf. The file is a "text only" file that can be edited with any text editor, it's quite long but it contains lots of explaining comments. You need to have root rights to be able to save it in the correct place, so you can either save a copy in your home folder and then use a terminal command to copy it to the correct place: "sudo cp /home/pi/pellmon.conf /etc/pellmon/pellmon.conf", or you can start the editor with 'sudo' to give the editor permission to edit the file in place.

To do everything in a terminal, which is very handy if you have no monitor connected, you can for instance edit the file directly with 'sudo nano /etc/pellmon/pellmon.conf'. (Nano is a simple text editor that runs in a terminal)

Look for this section:
[authentication]
# username = password, for webinterface
testuser = 12345

The rows starting with '#' are comments, the default user is 'testuser' and the default password is '12345'

To activate a new configuration just reboot, or if that feels too drastic you can instead restart the pellmon daemons with these commands:"sudo service pellmonsrv restart", and "sudo service pellmonweb restart".

2. Regarding the timers for VVB and heating, there is apparently a bug here... The relevant parameters are found in the meny 'Timers' but they are hidden until you click the menu selection [More...]. There are a lot of seldom used parameters in a scotte and this More.../Less... thing is supposed to show/hide the less useful ones, but the timers should definitely be in the always shown selection! The more/less distinction is btw very hastily made so improvement proposals are gratefully received!

Hope this helps!
Titel: Sv: StokerKontrol på Raspberry Pi ?
Indlæg af: nordgren.dk efter Aug 13, 2014, 13:27
Kan du tilgå din Raspberry pi fra Windows med http://www.teamviewer.com/da/download/linux.aspx

Nice hvis du ville tage nogle skærm dump fra Windows med teamwiever. Og oploade dem, så vi andre kunne få mod på PellMon. Hvis du får held med at ændre username og Password. Kunne du måske dele et image. Evt. dele det på dropbox.
Titel: Sv: StokerKontrol på Raspberry Pi ?
Indlæg af: kivi efter Aug 13, 2014, 16:25
Thanks Motoz.

I have now been able to change my username and I also found the timer settings :)

Regarding the timer settings, it would be nice though, if the timer start was in time/clock format rather than in minutes.

Is it possible to have the hotwater temp in the graph on the frontpage as well.

Thank You for a nice piece of software, now that Stokersoft doesn't seem to update Stokerkontrol anymore.

Would You prefer any future comments in English or is Danish OK?

Ole
Titel: Sv: StokerKontrol på Raspberry Pi ?
Indlæg af: kivi efter Aug 13, 2014, 16:36
Hej Nordgren

Det behøver du ikke, for du kan benytte Pellmon fra en hvilken som helst webbrowser.

Skærmbillede 1 viser startsiden, ikke så interessant lige nu da fyret er slukket ;-)

Skærmbillede 2 viser alle parametre og herfra kan man indstille dem.

Pellmon virker faktisk bedre fra en anden enhed, formentligt fordi Raspberry'en slipper for at vise grafik.

Ole
Titel: Sv: StokerKontrol på Raspberry Pi ?
Indlæg af: motoz efter Aug 13, 2014, 18:36
Citér
Regarding the timer settings, it would be nice though, if the timer start was in time/clock format rather than in minutes.
At the moment the parameter values are shown exactly as they are read from the control box, it would of course be possible to convert the value to a better representation (hours:minutes in this case) in special cases. Pretty easy to do, I added in 'issue' in github for it so I'll remember it when I have some time for pellmon.

Citér
Is it possible to have the hotwater temp in the graph on the frontpage as well.
Absolutely, you can add as many data lines as you like to the graph. Look into the sections [rrd_ds_names], [pollvalues] and [graphcolors] in the configuration file. Due to the way the rrd database I'm using works you need to either delete the old database and let pellmon create a new if you change the database definitions, or you can use the rather complicated method described in the pellmon wiki to add new datasets to an existing database.

Citér
Would You prefer any future comments in English or is Danish OK?
Any way you feel most comfortable with, I think I handle reading Danish quite well by now and English isn't my first language either.
Titel: Sv: StokerKontrol på Raspberry Pi ?
Indlæg af: Christian_IA efter Aug 14, 2014, 07:46
Kan du tilgå din Raspberry pi fra Windows med http://www.teamviewer.com/da/download/linux.aspx

Nice hvis du ville tage nogle skærm dump fra Windows med teamwiever. Og oploade dem, så vi andre kunne få mod på PellMon. Hvis du får held med at ændre username og Password. Kunne du måske dele et image. Evt. dele det på dropbox.
Har du nogen idé om hvor tungt det er at køre Teamviewer på en RPi ?
Titel: Sv: StokerKontrol på Raspberry Pi ?
Indlæg af: motoz efter Aug 14, 2014, 08:35
It seems there is no teamview linux build for the arm processor architecture, only x86, so it can't run on a raspberry.
Titel: Sv: StokerKontrol på Raspberry Pi ?
Indlæg af: kivi efter Aug 14, 2014, 22:24
Kan jeg bare ikke finde det eller kan man ikke indstille VVB temp i PellMon ?

Jeg kan se der er en sprog indstilling, betyder det man kan indstille det til dansk.
Titel: Sv: StokerKontrol på Raspberry Pi ?
Indlæg af: motoz efter Aug 15, 2014, 06:50
Oh, that seem to be missing... I added 'hotwater desired temp' and 'hotwater temp diff' right away. it's included in the latest master, upgrade instructions are in the wiki.

If you are interested you can look at this commit which adds them: https://github.com/motoz/PellMon/commit/56996002401227dea3b1f0550a45126408cea4dc

The last file (datamap.py) adds the parameters. According to the protocol specification here http://www.nbe.dk/download/pc-kommunikation.html the parameter exist from version 6.03 and forward, which is indicated by this ('6.03','zzzz'), and is read from frame Z03, index 15, has zero decimals, is written with command 'B08', has minimum value 0 and maximum value 80. The datameny.py file adds some 'tags' to the parameter so it will show up in the parameter menus in the webinterface and in descriptions.py the parameter is given an optional nicer visual name and a longer description. That's all there is to adding missing parameters, if you find other userful parameters that are missing I'll add them.

The language setting sets the language in the control-box, pellmon is English only for now.

Titel: Sv: StokerKontrol på Raspberry Pi ?
Indlæg af: kivi efter Aug 15, 2014, 09:33
Oh You are fast acting :-)

Ill try to update tonight to see how it works.

Thanks for the update.