Tested with
- Raspberry Pi 3 model B+
- RaspiOS image with desktop and recommended software, Release date 2020-05-27
Install the project's SmartMeter software on the Raspberry Pi.
Copy the content of repo's raspi
directory onto the Raspberry Pi into the $HOME/smartmeter
directory. Alternatively, you may want to run the install script.
curl -L https://raw.githubusercontent.com/cdeck3r/SmartMeter/master/raspi/install.sh | bash
GitHub repo of Dropbox Uploader: https://github.com/andreafabrizi/Dropbox-Uploader
You will need a dropbox account.
- Go to https://www.dropbox.com/developers/apps and login
- Click on Create App,
- In section 1, select first radio button Scoped access
- In section 2, select App folder
- In section 3, name your app
- Finally, hit Create App
- on the next screen tick all permissions for Files and folders, but not
files.permanent_delete
- set the
Access token expiration
toNo expiration
- click on the Generate button
- copy the access token in the file
~/.dropbox_uploader
on the Raspberry Pi
Install the provided cronjob example smartmeter.crontab
crontab smartmeter.crontab
crontab -l
The last line verifies that the cronjob got installed. The example schedules the script at reboot and starts it 2 min later to give time for the OS to bring all ressources online.
Run the command below to remove the user's crontab. Note: This will remove all entries.
crontab -r
These instructions describe the initial setup of an unboxed, brand-new Raspberry Pi.
Tools
- SD Formatter portable: format SD card
- Etcher: create bootable SD card from image;
- putty / WinSCP 5.17.7: ssh to raspberry pi
- format SD card using SD formatter
- Flash the image using Etcher
- add empty file
SSH
to SD card's root directory
- Insert SD card into raspberry Pi and bootup
- SSH into pi
- host: raspberrypi.local
- user: pi
- pass: raspberry
- Run:
sudo raspi-config
- enable VNC, see menu
Interfacing Options
- configure screen resolution, see
Advanced Options -> Resolution
- enable VNC, see menu
- Configure VNC to accept other auth method, required if you want to VNC into the raspi with another viewer than realvnc
- root shell:
sudo su
- Add the following lines at the end of
/root/.vnc/config.d/vncserver-x11
- root shell:
Authentication=VncAuth
Encryption=AlwaysOff
Password=e0fd0472492935da
* Password is set to *foobar*. Use `vncpasswd -server` to create a new one.
- Reboot or restart VNC server:
systemctl restart vncserver-x11-serviced.service
- Use a VNC client of your choice
- Server:
raspberrypi.local
- Password:
foobar
- Server:
- Complete setup on the service GUI