Skip to content

Commit

Permalink
adding mqtt
Browse files Browse the repository at this point in the history
  • Loading branch information
JAlcocerT committed Feb 16, 2024
1 parent d87ee56 commit 3c728f9
Show file tree
Hide file tree
Showing 7 changed files with 94 additions and 9 deletions.
16 changes: 13 additions & 3 deletions _posts/2022-08-10-youtube-video-download.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ services:
- ./db/:/data/db
```
After deployment - just visit: http://localhost:8998.
After deployment - just visit: `http://localhost:8998`

if you want to get to know more about the project: <https://tzahi12345.github.io/YoutubeDL-Material/>

Expand All @@ -68,12 +68,22 @@ docker compose up -d
```


The project is public at Github: <https://github.com/TeamPiped/Piped>
The project is public at [Github](https://github.com/TeamPiped/Piped).

## My Favourite - MeTube

ANd you can have [MeTube setup on your Raspberry](https://jalcocert.github.io/Linux/docs/linux__cloud.md/ansible/#ansible-like-a-pro) really quick.

I have done it with [Ansible *and Docker*](https://jalcocert.github.io/Linux/docs/linux__cloud.md/ansible/)

---

## FAQ

### How to use RSS to subscribe to YT channels?

<https://fossengineer.com/selfhosting-freshrss-with-docker>
<https://fossengineer.com/selfhosting-freshrss-with-docker>

### Other Alternative Youtube Front Ends

You can check other [alternatives to Self-Host your Youtube UI](https://fossengineer.com/youtube-alternative-front-ends), Invidious, YT Downloader...
2 changes: 1 addition & 1 deletion _posts/2023-10-20-rpi-iot-dht1122-mongo.md
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ volumes:
metabase_data:
```
Acces it at: http://localhost:3000
Acces it at: `http://localhost:3000`

![Desktop View](/img/metabase-mongoDB.JPG){: width="972" height="589" }
_Metabase Ready to Roll_
Expand Down
7 changes: 5 additions & 2 deletions _posts/2024-01-04-rpi-ansible.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ ansible-playbook ./RPi/Z_ansible/Ansible_py_dht_influx_grafana.yml -i inventory.
> This is the one: [Raspberry Pi - DHT to InfluxDB](https://jalcocert.github.io/RPi/posts/rpi-iot-dht11-influxdb/)
{: .prompt-info }

---

## FAQ

Expand All @@ -88,7 +89,7 @@ Container are a way to encapsule all Software Project dependencies.

For example to encapsule: MongoDB, Influx or the Python Script with all the libraries installed at a specified version.

To run containers, Ansible is actually using Docker.
To run containers, Ansible is actually using [Docker](https://jalcocert.github.io/RPi/posts/selfhosting-with-docker/).

You can check the installed versions with:

Expand All @@ -105,4 +106,6 @@ Why shouldnt we do it with our Pi's?

### Why Docker for SelfHosting?

<https://jalcocert.github.io/RPi/posts/selfhosting-with-docker/>
<https://jalcocert.github.io/RPi/posts/selfhosting-with-docker/>

You can also try [containers with Podman](https://fossengineer.com/docker-alternatives-for-data-analytics/)
63 changes: 63 additions & 0 deletions _posts/2024-02-15-rpi-mqtt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
---
title: MQTT with Raspberry Pi
author: JAlcocerT
date: 2024-02-15 00:34:00 +0800
categories: [Make your Raspberry Useful]
tags: [IoT, Sensors]
---

## Learning MQTT with a RPi

### Why MQTT for IoT?

### To Do list

- [ ] Send DHT Data to MongoDB
+ [x] Install a MQTT Client
+ [ ] Install a MQTT Broker
+ [ ] Testing the MQTT Broker
+ [ ] Test the Connection

## Install MQTT Client

There are many options - I like [MQTTX](https://mqttx.app/) which is free.

Which you can install in any platform (and even SelfHost MQTTX with Docker).

Here is how to install MQTTx with [Flatpak](https://jalcocert.github.io/Linux/docs/debian/linux_installing_apps/#flatpak):

```sh
flatpak install flathub com.emqx.MQTTX
```

## Install MQTT Broker

```sh
docker pull emqx/emqx:5.5.0
docker run -d --name emqx -p 1883:1883 -p 8083:8083 -p 8084:8084 -p 8883:8883 -p 18083:18083 emqx/emqx:5.5.0
```

You have other MQTT Broker options like [Eclipse Mosquitto](https://github.com/eclipse/mosquitto)

### Testing EMQx

```py
import paho.mqtt.publish as publish

# MQTT Broker (EMQX) details
broker_address = "broker.emqx.io"
port = 1883
topic = "python/mqtt"

# Message to publish
message = "Hello from Python!"

# Publish the message
publish.single(topic, message, hostname=broker_address, port=port)
print(f"Message Published to {topic}")
```

---

## FAQ

2 changes: 1 addition & 1 deletion _posts/2024-12-31-HA.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,5 @@ You will need HACS Installed.

Connect to the server where [Ollama is running](https://fossengineer.com/selfhosting-llms-ollama/).

You will need a local ip for example to the PC where you run Ollama: http://homeassistant.local:11434 #192.168.3.103
You will need a local ip for example to the PC where you run Ollama: `http://homeassistant.local:11434`

5 changes: 3 additions & 2 deletions _posts/2024-12-31-rpi_wifi_ethernet_bridge.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ I was inspired by the awsome work of **[William Halley in his blog](https://www.

The script that is provided is this one (again, credits to William):

```
```sh
#!/usr/bin/env bash

set -e
Expand Down Expand Up @@ -133,7 +133,7 @@ ifconfig
sudo nano bridge_wireguard.sh
{{< /cmd >}}

```
```sh
#!/usr/bin/env bash

set -e
Expand Down Expand Up @@ -391,6 +391,7 @@ sudo bash bridge_docker_mullvad.sh
sudo reboot
``` -->

---

## FAQ

Expand Down
8 changes: 8 additions & 0 deletions _posts/2024-13-15-rustberry-pi.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: RustBerry Pi - Learning Rust with a RPi
author: JAlcocerT
date: 2024-12-15 00:34:00 +0800
categories: [Make your Raspberry Useful]
tags: [IoT]
---

0 comments on commit 3c728f9

Please sign in to comment.