-
Notifications
You must be signed in to change notification settings - Fork 6
2. Install the pre configured Raspberry Pi image
A pre-configured raspberry Pi image is available at PylonToMQTT/releases. The image contain all the required components along with a sample grafana dashboard to view your battery data. note: the image is the headless Raspberry Pi OS Lite image (so no desktop environment).
- download and install balenaEtcher from https://www.balena.io/etcher/
- Insert a empty SD card.
- Run balenaEtcher and select download from url (Balena.etcher has to run as administrator)
- enter
https://github.com/ClassicDIY/PylonToMQTT/releases/download/V1.2.2/Rpi.img.xz
- select the target SD card and Flash!
- When complete, eject the SD card and insert it into your raspberry Pi.
-
Power up the Pi, after a minute you can use putty or window terminal to ssh to the pi using
ssh pi@battery.local
(password is: raspberry) -
note: if you have previously connected to your pi using ssh with a different image, you may need to delete the entry in your %HOMEPATH%.ssh\known_hosts file that refers to your pi's IP address. From the command prompt on windows, run:
notepad %HOMEPATH%\.ssh\known_hosts
delete the line with your pi's IP or with the battery.local hostname. -
run
sudo raspi-config
select "8 Update" then select "6 Advanced Options" then "A1 Expand Filesystem" "back" and "Finish" (might reboot on finish). -
login again with
ssh pi@battery.local
-
sudo apt update
-
sudo apt upgrade -y
-
Plug in the battery console cable to one of the pi's USB ports.
-
sudo reboot now
-
Wait a couple of minutes for it to start up before proceeding to checking the docker containers with Portainer-ce.
- Browse http://battery.local:9000 user:
admin
password:password1234
- Make sure all containers are running, click on
local
thencontainers
, select and start any stopped containers. You can view the logs of the containers by clicking the "logs" quick action
- Browse http://battery.local:3000 to open grafana and select "Jakiper Battery" in "Dashboards->Browse" (default user/password is admin/admin)
- InfluxDB: user/password is dba/supremo, configured database name: mqtt_pylon (use 'exec console' in portainer quick actions) then 'influx'
- mosquitto broker has no user/password user mqtt.fx to view
battery.local:1883