@grantc66 Hi,
it may be a timing issue.
Maybe a sleep 1 between the two xrand commands helps.
@grantc66 Hi,
it may be a timing issue.
Maybe a sleep 1 between the two xrand commands helps.
@MarkV
Hi,
as @MMRIZE wrote already there are plenty of ways to interact with ESP or Arduino boards.
I use a couple of them in my house to provide i.e. temperature values and control some led strips. One of them has a radar sensor connected which signals user presence to my mirror.
I started by connecting two Arduinos to my Raspberry hosting the mirror by serial console and reacted to messages send by gesture sensors (turn on/off display, increase/decrease volume, play radio, etc. with MMM-Serial-Notifications).
As i started playing around with ESP boards i changed to make HTTP calls to the boards i.e. by MMM-CommandToNotification and wrote my first temperature module MMM-Temperature.
My first user presence detection used the HTTP API of MMM-Remote-Control to send notifications to my MMM-Screen-Powersave-Notification. The notification got triggered by a simple HTTP call of the ESP. My current presence detection uses MQTT to publish the values to the mirror.
I added more and more ESP boards to my setup and ended up using MQTT to both control the boards and get values of them. In consequence i took over the ownership of MMM-MQTTbridge, wrote a module to control led strips connected to ESP boards (MMM-LEDStripControl) and wrote a universal module to display values of any notification (MMM-ValuesByNotification).
As i build a house the last two years and added KNX-Bus home automation to it i now use a installation of Node-Red to control my bus devices, convert values of ESP boards, control my Christmas decoration and a lot of more stuff.
My cameras are connected to my Synology NAS thats why i build MMM-SynologySurveillance which is able to display simple MJPEG streams of ESPCams (i.e. flashed with this sketch https://github.com/arkhipenko/esp32-cam-mjpeg-multiclient), too.
As an alternative MJPEG streams can by displayed with my MMM-EmbedURL module by using a img
embed element.
I use MMM-EmbedURL to embed my whole Node-Red dashboard at one profile/page of my mirror.
I added some touch enabled icons with my MMM-TouchButton to my mirror to be able to switch on some lights if i see movement on my camera.
Soooo. As a conclusion i can say there are a lot of ways to integrate ESP boards but as there are many different ways there are no complete walk-through tutorials.
Most of my modules have some examples checked in so you maybe want to give it a try.
I strongly suggest to setup a MQTT Broker (i.e. Mosquitto) to interact with the boards.
@gerbenvs Interesting…
Maybe the page you want to display does not support properly.
Does it scale down automatically if you display the page in a normal browser, resize the browser window and refresh the page?
@plainbroke
Hi, if the stream works wit MMM-Webview you can use MMM-EmbedURL to either embed one ore more streams. If you want to embed the streams at different positions the module supports multi instance by default.
@gerbenvs Hi, I think it might be possible if you add a width and height to the attributes of the webview:
{
module: "MMM-EmbedURL",
position: "bottom_left",
header: "P1 Monitor",
config: {
updateInterval: 120,
embedElementType: "webview",
basicElementType: "div",
embed: [
{
attributes: [
"frameborder=0",
"scrolling=no",
"width=600px",
"height=400px",
],
embed: [
"http://p1monitor/main-1.php"
]
},
]
},
},
I do not have a chance to test it at the moment but you may want to give it a try.
@bugsounet Hi,
sorry but at the moment a do not have plans to maintain more modules than i already do.
In addition i do not see a reason why there should be a need for a additional screensave module.
Most of the features are present in the exiting ones. I do not like the idea of putting the GPIO logic and screensave logic into the same module and had problems with it in my setup in the past. Thats why i created the two separted modules.
I forked MMM-Screen as i wanted to check if there is a easy way to implement the CEC logic to my screensave module. I do not think it would be a big deal. The problem is that i do not have a CEC aware monitor at the moment and do not have the time to build a dev environment with my tv.
@Freddy_boy
Hi, my MMM-Screen-Powersave-Notification module can do this job. It has a hideInsteadShutoff
option.
You need my MMM-GPIO-Notifications in addition.
I wrote a Guide of how to configure the modules.
@stoffel
Ich hab vor ein paar Minuten Version 0.1.2 vom Modul veröffentlich. Der streamlinkWrapper untersützt jetzt auch zusätzliche Argumente
@stoffel
Hi, klar. Ich pass den Stream wrapper die Tage so an, wie die anderen beiden Skripts. Sollte kein Thema sein.
Mit der nächsten Version ist es dann mit dabei.