Forfatter Emne: Installation af Pellmon på RaspberryPi  (Læst 10852 gange)

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

Offline albert

  • Prof
  • ***
  • Indlæg: 60
  • Respekt optjent: +1/-0
    • Data fra vores pillefyr
Installation af Pellmon på RaspberryPi
« Dato: Okt 21, 2014, 05:55 »
Jeg forsøger at installere Pellmon på RaspberryPi.
Jeg har valgt at starte en ny tråd, idet mine spørgsmål nok er noget fundamentale præget af min begrænsede viden om Linux

Så:
 
Hej Motoz

Nordgren.dk har været så hjælpsom at sende mig et image af sin installation. Men jeg har ikke fået det ikke til at virke endnu.

Nu har jeg så i stedet valgt at prøve at installere forfra - hvis det lykkes for andre, kan jeg nok også!?

Jeg har fulgt vejledningen
https://github.com/motoz/PellMon/wiki, har installeret dependencies - også ws4py som alternative 2 beskriver.
Har også kørt kommandolinierne fra Readme-filens afsnit System Installation.
Ingen errors indtil nu.
Skal jeg også køre linierne fra afsnittet User Installation?
Det virker i hvert fald ikke med http://localhost:8081 i browseren.

Hilsen
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: Installation af Pellmon på RaspberryPi
« Svar #1 Dato: Okt 21, 2014, 06:44 »
Hello Albert.
No you should not run the 'user installation' section, that's more of an 'expert' option (maybe I should remove that from the Readme, those who have any use for it will know it's there anyway, and you are not the first to be confused by it)

If you have run all commands without any errors, then you should be all set. Maybe it's the 'localhost' address that needs explaining?

The 'localhost' part of the URL means 'on this computer', so you need to run the browser on the raspberry for that to work. To open pellmon from another computer you need to know the ip address of your raspberry, which could be something like eg. 192.168.1.8. Then you go to http://192.168.1.8 on any computer in your local network.

To find out your raspberry's currently used IP address you can run the command 'ip addr show' in a terminal on the raspberry. The output will look like this:
Kode: [Vælg]
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether b8:27:eb:d2:0d:80 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.8/24 brd 192.168.1.255 scope global eth0
       valid_lft forever preferred_lft forever

The IP is found in this row:
inet 192.168.1.8/24 brd 192.168.1.255 scope global eth0

Hopefully you now have PellMon open in your browser, but there is more... The raspberry is by default set up to use a 'dynamic IP address', that means it will ask your router for an IP address every time it is started, and will most probably get a different IP every time. This is not very useful, so to be able to use PellMon efficiently you will need to change the IP address to a static IP, which is then always the same. We can continue there when you have it working with the dynamic IP.

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

Offline albert

  • Prof
  • ***
  • Indlæg: 60
  • Respekt optjent: +1/-0
    • Data fra vores pillefyr
Sv: Installation af Pellmon på RaspberryPi
« Svar #2 Dato: Okt 21, 2014, 06:57 »
Hej Motoz

Det virker, når jeg skriver http://192.168.1.49:8081/.
http:// skal åbenbart med!
Jeg har lavet  rpi med fixed ip.

Hilsen
Albert
« Senest Redigeret: Okt 21, 2014, 07:16 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: Installation af Pellmon på RaspberryPi
« Svar #3 Dato: Okt 21, 2014, 07:28 »
Great!

Yes, some browsers use the address bar to do google (or bing... :) )searches for everything that it doesn't think look like an address. Adding http:// makes sure the browser understands that this really is an address.

The port number '8081' can be changed to the default port for the web '80' in the pellmon config file, then you don't need to specify the port in the URL. The default port 8081 is just to avoid a conflict for those who already run a web server on port 80.
Bio Comfort 30kW, compressor cleaning, lambda. Termax 25cr boiler. Matene vertical pellet conveyor. PellMon open source pellet logger: https://github.com/motoz/PellMon

Offline albert

  • Prof
  • ***
  • Indlæg: 60
  • Respekt optjent: +1/-0
    • Data fra vores pillefyr
Sv: Installation af Pellmon på RaspberryPi
« Svar #4 Dato: Okt 21, 2014, 07:49 »
Jeg har ikke en fixed ip hos internetudbyderen = Sydenergi.
Men den er næsten fast, også selvom routeren genstartes.

Jeg har åbnet port 8081 for rpi's ip på routeren.

Så lige nu, kan man se mit fyr med Pellmon på
http://31.185.72.77:8081/

Er det ok, at køre det på den måde?

Hilsen
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: Installation af Pellmon på RaspberryPi
« Svar #5 Dato: Okt 21, 2014, 08:37 »
Sure. Port 8081 could be blocked on some networks, for instance company networks often block everything except port 80 for web traffic.

The dynamic ip can be handled by dynamic dns services like eg. http://www.noip.com/ which is easy to set up if your router has build in support for the service.

Most free dynamic dns services require clicking a link in a mail every once in a while (noip does) to keep the account active, http://dhcp.io/ doesn't but that one is unlikely to be supported directly by your router so that makes using it more complicated.

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