eink-weather-display | Battery-powered E-Ink weather display for our home
kandi X-RAY | eink-weather-display Summary
kandi X-RAY | eink-weather-display Summary
Battery-powered E-Ink weather display for our home.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of eink-weather-display
eink-weather-display Key Features
eink-weather-display Examples and Code Snippets
Community Discussions
Trending Discussions on Internet of Things (IoT)
QUESTION
I have js files Dashboard and Adverts. I managed to get Dashboard to list the information in one json file (advertisers), but when clicking on an advertiser I want it to navigate to a separate page that will display some data (Say title and text) from the second json file (productadverts). I can't get it to work. Below is the code for the Dashboard and next for Adverts. Then the json files
...ANSWER
Answered 2020-May-17 at 23:55The new object to get params in React Navigation 5 is:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install eink-weather-display
Download correct image from here: https://www.raspberrypi.com/software/operating-systems/b
Flash it to an SD card with balenaEtcher https://www.balena.io/etcher/ (or use RPIs own flasher)
Boot the raspberry, and do initial setup
sudo raspi-config Setup Wifi SSID and password (System options) Update locales, timezones, etc (Localisation options) Enable SSH server (Interface options) Enable overlayfs (Performance options) to make the FS read-only.
In your router, make sure to assign a static local IP address for the device
Install display updating code Download zip curl -H "Authorization: token <token>" -L https://api.github.com/repos/kimmobrunfeldt/eink-weather-display/zipball/main > main.zip or sudo apt install git and git clone https://<user>:<personal_access_token>@github.com/kimmobrunfeldt/eink-weather-display.git You can create a limited Github personal access token, which only can clone that repo. I found git to be the easiest, it was easy to just git pull any new changes.
sudo apt install python3-pip
~pip install pipenv~ Edit: I wasn't able to get pipenv working due to pijuice being system-wide package. Ended up going with all-system-wide packages.
cd eink-weather-display && pip install Pillow==9.3.0 google-cloud-logging requests python-dotenv pytz Install Python deps
Setup env variables: cp .env.example .env and fill in the details
Follow installation guide from https://www.waveshare.com/wiki/10.3inch_e-Paper_HAT to get the E-Ink display working
After install, test that the demo software (in C) works
sudo apt install pijuice-base
Enable I2C interface More debugging info: https://github.com/PiSupply/PiJuice/issues/175 https://github.com/PiSupply/PiJuice/issues/268
To allow PIJuice to turn on without a battery, go to general settings and enable "Turn on without battery" or similar option.
Make sure to use correct PIJuice battery profile (PJLIPO_12000 for me) If using pijuice_cli, remember to apply changes! It was quite hidden down below.
Test that the PIJuice works with battery too
cd rasp/IT8951 and follow install instructions (inside virtualenv if using one)
Pijuice setup using pijuice_cli. Remember to save the changes inside each setup screen! System events ~Low charge, Low battery voltage and No power: SYS_FUNC_HALT_POW_OFF (docs: https://github.com/PiSupply/PiJuice/blob/master/Software/README.md#user-functions)~. Edit: these seemed to shutdown the device every once in a while. Everything worked more stable without setting any of these. ~Wake-up alarm: every day at 04:00 UTC (6AM Helsinki time in the winter, 7AM in the summer)~ Edit: code will set these, edit main.py
After that's done, you can test the PiJuice + E-Ink display together.
Setup crontab. Run refresh on boot, and shutdown device if on battery. @reboot (cd /home/pi/eink-weather-display/rasp; ./wait-for-network.sh; python main.py;) >> /home/pi/cron.log 2>&1 # Every minute * * * * * (cd /home/pi/eink-weather-display/rasp; python shutdown_if_on_battery.py;) >> /home/pi/cron.log 2>&1
cd rasp/usb-it8951/ and follow README.md instructions to get it build and working. Build it in Raspberry Pi. Find which /dev/sdX your usb device is, and change all commands from main.py accordingly
sudo apt install imagemagick
Finally, edit main.py to have correct paddings. Due to the physical installation, not all pixels of the E-Ink display are visible.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page