Comments (6)
Thanks @uududde, glad it's working well for you (altho, what was the problem with the image based install?)
Currently, the button mappings are as follows (these did work on an inky impression), I'll give it a test to see if it's broken somehow.
5: self.toggle_picure_frame_mode,
6: self.refresh_display,
16: self.toggle_volume,
24: self.toggle_extended_view,
The config webserver has to be started as a separate python app.
Add cron jobs to start the app and config-server after reboot
(crontab -l 2>/dev/null; echo "@reboot sleep 30 && cd /home/pi/bitbot && python3 run.py") | crontab -
(crontab -l 2>/dev/null; echo "@reboot sleep 30 && cd /home/pi/bitbot && python3 src/config_webserver.py") | crontab -
from bitbot.
@uududde the buttons are working on my 5.6" impression
when using the main
branch.
from bitbot.
@donbing cool, I didn't know they were already implemented... so my idea of button three changing the style is even almost the same option you came up with.
I guess I should've watched syslog in the first place when trying out the buttons. Button 1 delivers an error, button 3 does not do anything (mybe broken), button 2 & 4 work as expected.
Button 1 gives me:
[CRITICAL] root: Uncaught exception
Traceback (most recent call last):
File "/home/pi/bitbot/src/buttons.py", line 25, in <lambda>
lambda pin: self.BUTTONS[pin](),
File "/home/pi/bitbot/src/configuration/log_decorator.py", line 12, in wrapper
result = func(*args, **kwargs)
File "/home/pi/bitbot/src/buttons.py", line 34, in toggle_picure_frame_mode
self.config.toggle_photo_mode(newstate)
TypeError: toggle_photo_mode() missing 1 required positional argument: 'cycle_state'
The problem with the image method was that directly after flashing even though delivering wpa data in the specific file and activating ssh via file before first boot the pi zero would not connect to the wifi.
Thanks I didn't see that the config server should be started by itself. Log says it's running but browser doesn't open it.
from bitbot.
The cycle_state
error should now be fixed in main. I'm pretty sure that I've broken the refresh button by checking for config changes before updating the screen. That's going to be a bit fiddly to fix, so I might go with your suggestion of switching between currencies instead, thanks!
I've a feeling that the disk image doesn't support wpa_supplicant
, it's based on comitup. it starts it's own hotspot allowing you to configure the WiFi from your phone/laptop, I'll check
from bitbot.
The cycle_state
error is gone... now I receive:
[CRITICAL] root: Uncaught exception
Traceback (most recent call last):
File "/home/pi/bitbot/src/input/buttons.py", line 26, in <lambda>
lambda pin: self.BUTTONS[pin](),
File "/home/pi/bitbot/src/configuration/log_decorator.py", line 12, in wrapper
result = func(*args, **kwargs)
File "/home/pi/bitbot/src/input/buttons.py", line 35, in toggle_picure_frame_mode
self.config.toggle_photo_mode(newstate, False)
File "/home/pi/bitbot/src/configuration/bitbot_config.py", line 100, in toggle_photo_mode
self.config['picture_frame_mode']["cycle_pictures"] = cycle_state
File "/usr/lib/python3.9/configparser.py", line 1258, in __setitem__
self._parser._validate_value_types(option=key, value=value)
File "/usr/lib/python3.9/configparser.py", line 1185, in _validate_value_types
raise TypeError("option values must be strings")
TypeError: option values must be strings
from bitbot.
@uududde thanks for the error report, the branch called photo_button_fail
introduces currency cycling instead.. I've not had time to test it yet, but i'll merge it into main once i have
from bitbot.
Related Issues (12)
- improve the font used for the x and y axis.
- Make chart styles editable in the config-server
- Timezone offsets are not being applied to the date axes
- Unable to get it running using optionB. HOT 1
- volume chart has a lot of wasted space below it
- large log files break the html log output HOT 1
- test output is not consistent
- ๐ชต JS log reading causes config web-page to crash
- support for waveshare eink displays HOT 4
- ๐ plot charts using the newer MPF API
- ๐งช Tests are overwriting the same image files
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bitbot.