Skip to content

Commit 027ab16

Browse files
committed
Publishing Version 2.2.2
1 parent 5ce29c4 commit 027ab16

File tree

8 files changed

+14
-16
lines changed

8 files changed

+14
-16
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ohmyoled"
3-
version = "2.2.1"
3+
version = "2.2.2"
44
edition = "2021"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

container/devcontainer_build/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ARG NODE_VERSION="none"
77
RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi
88
RUN apt update && apt install fonts-noto-mono -y && apt install vim python3-dev -y
99

10-
ARG OHMYOLED_VERSION=2.2.1
10+
ARG OHMYOLED_VERSION=2.2.2
1111
ARG RBGMATRIX_GIT_URL=https://github.com/hzeller/rpi-rgb-led-matrix.git
1212
RUN /usr/local/bin/python3 -m pip install --upgrade pip
1313

container/prodcontainer_build/Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ARG NODE_VERSION="none"
77
RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi
88
RUN apt update && apt install fonts-noto-mono -y && apt install vim python3-dev -y
99

10-
ARG OHMYOLED_VERSION=2.2.1
10+
ARG OHMYOLED_VERSION=2.2.2
1111
ARG RBGMATRIX_GIT_URL=https://github.com/hzeller/rpi-rgb-led-matrix.git
1212
RUN /usr/local/bin/python3 -m pip install --upgrade pip
1313

@@ -28,6 +28,4 @@ RUN git clone https://github.com/TheFinalJoke/ohmyoled.git \
2828
WORKDIR /ohmyoled/
2929
RUN /root/.cargo/bin/cargo build --release
3030
ENV RUST_BACKTRACE=full
31-
#SCMD cat /etc/ohmyoled/ohmyoled.json
32-
#ENTRYPOINT ["target/release/ohmyoled"]
33-
CMD /bin/bash
31+
ENTRYPOINT ["target/release/ohmyoled"]

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ fn init_logger() {
100100
async fn main() -> PyResult<()> {
101101
init_logger();
102102
let mut configuration = json::JsonValue::Null;
103-
let app = App::new("ohmyoled").version("2.2.1sssssssssssssssss");
103+
let app = App::new("ohmyoled").version("2.2.2sssssssssssssssss");
104104
let args_vec = vec![
105105
Arg::new("create_json")
106106
.short('c')

src/python/ohmyoled/Pipfile.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/python/ohmyoled/matrix/stock/stockmatrix.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -263,12 +263,12 @@ def build_top_image(self, api, xpos):
263263
top_config = MASTER_IMAGE["master_top_image"]
264264
master_top_image = self.make_new_image(top_config.get("size"))
265265
master_top_image_draw = ImageDraw.Draw(master_top_image)
266-
if int(os.environ["DEV"]) == 1:
266+
if os.getenv("DEV"):
267267
master_top_image_draw.rectangle(top_config["rec"])
268268
for sub_image, config in top_config["sub_images"].items():
269269
image = self.make_new_image(config["size"])
270270
sub_image_draw = ImageDraw.Draw(image)
271-
if int(os.environ["DEV"]) == 1:
271+
if os.getenv("DEV"):
272272
sub_image_draw.rectangle(config["rec"])
273273
if sub_image == "symbol":
274274
self.render_symbol(api, config["size"], config['text_location'], sub_image_draw, xpos)
@@ -281,12 +281,12 @@ def build_middle_image(self, api, xpos):
281281
middle_config = MASTER_IMAGE["master_middle_image"]
282282
master_middle_image = self.make_new_image(middle_config["size"])
283283
master_middle_image_draw = ImageDraw.Draw(master_middle_image)
284-
if int(os.environ["DEV"]) == 1:
284+
if os.getenv("DEV"):
285285
master_middle_image_draw.rectangle(middle_config["rec"])
286286
for sub_image, config in middle_config["sub_images"].items():
287287
image = self.make_new_image(config["size"])
288288
sub_image_draw = ImageDraw.Draw(image)
289-
if int(os.environ["DEV"]) == 1:
289+
if os.getenv("DEV"):
290290
sub_image_draw.rectangle(config["rec"])
291291
if sub_image == "cp_letter":
292292
font = ImageFont.truetype("fonts/04B_03B_.TTF", 8)
@@ -318,12 +318,12 @@ def build_right_image(self, api, xpos):
318318
right_config = MASTER_IMAGE["right_middle_image"]
319319
master_right_image = self.make_new_image(right_config["size"])
320320
master_right_image_draw = ImageDraw.Draw(master_right_image)
321-
if int(os.environ["DEV"]) == 1:
321+
if os.getenv("DEV"):
322322
master_right_image_draw.rectangle(right_config["rec"])
323323
for sub_image, config in right_config["sub_images"].items():
324324
image = self.make_new_image(config["size"])
325325
sub_image_draw = ImageDraw.Draw(image)
326-
if int(os.environ["DEV"]) == 1:
326+
if os.getenv("DEV"):
327327
sub_image_draw.rectangle(config["rec"])
328328
if sub_image == "percentage_letter":
329329
sub_image_draw.text(

src/python/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
ld = file.read()
55
setup(
66
name="ohmyoled",
7-
version="2.2.1",
7+
version="2.2.2",
88
python_requires='>=3.8.9',
99
py_modules=["ohmyoled"], # Tells the name
1010
packages=find_packages(),

0 commit comments

Comments
 (0)